/* Hallmark · genre: modern-minimal · macrostructure: Workbench · design-system: design.md · designed-as-app */
/* Central · sistema: conexões, registro e ajuda. Só tokens do tema; sem estilos embutidos (CSP). */
.sy-body { display: grid; gap: 28px; margin-top: 24px; min-width: 0; }
.sy-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sy-tools a.btn { text-decoration: none; }

/* semáforo */
.sy-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-5); align-items: start; padding: var(--sp-6); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); box-shadow: none; }
.sy-hero.sy-l-ok { background: var(--surface); border-top-color: var(--brand); }
.sy-hero.sy-l-warn { background: var(--surface); border-top-color: var(--sun); }
.sy-hero.sy-l-bad { background: var(--surface); border-top-color: var(--coral); }
.sy-hero.sy-l-unknown { background: var(--surface-2); }
.sy-hero-title { font-family: var(--font-display, var(--font)); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.045em; line-height: 1.2; margin: 6px 0 10px; text-wrap: balance; }
.sy-hero-main p { max-width: 62ch; font-size: 16px; line-height: 1.6; }
.sy-hero-act { display: grid; gap: 8px; justify-items: stretch; max-width: 260px; }
.sy-hero-act .sub { font-size: var(--fs-xs); }
.sy-signal { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--ink); background: var(--surface-2); }
.sy-signal .ic { width: 26px; height: 26px; }
.sy-signal.sy-ok { color: var(--brand-2); background: var(--mint-soft); }
.sy-signal.sy-warn { color: var(--ink); background: var(--sun-soft); }
.sy-signal.sy-bad { color: var(--coral-ink); background: var(--coral-soft); }
.sy-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.sy-dot.sy-ok { background: var(--brand); }
.sy-dot.sy-warn { background: var(--sun); box-shadow: inset 0 0 0 1px var(--muted); }
.sy-dot.sy-bad { background: var(--coral); }
.sy-err { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sy-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* o que fazer agora */
.sy-todo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.sy-todo li { display: flex; gap: 12px 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.sy-todo li:first-child { border-top: 0; padding-top: 4px; }
.sy-todo-main { flex: 1 1 320px; min-width: 0; }
.sy-todo-main p { margin-top: 4px; font-size: var(--fs-base); }
.sy-todo .sy-tools { margin-top: 0; }

/* grupos e cartões */
.sy-group { display: grid; gap: var(--sp-4); }
.sy-gh { display: flex; gap: 4px 14px; align-items: baseline; flex-wrap: wrap; }
.sy-gh h2 { font-weight: 600; font-size: 23px; letter-spacing: -.035em; }
.sy-grid { display: grid; gap: 0 var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.sy-card { padding: var(--sp-4) 0 var(--sp-5); background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.sy-card-top { display: flex; gap: 8px 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.sy-card-top h3 { font-family: var(--font-display, var(--font)); font-weight: 600; font-size: 18px; letter-spacing: -.025em; flex: 1 1 140px; min-width: 0; }
.sy-sum { font-size: var(--fs-base); color: var(--ink); }
.sy-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); margin: 4px 0 0; padding-top: var(--sp-2); border-top: 0; }
.sy-facts div { min-width: 0; }
.sy-facts dt { font-size: var(--fs-sm); font-weight: 650; color: var(--muted); }
.sy-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.sy-card .sy-tools { margin-top: auto; padding-top: 6px; }

/* registro */
.sy-hist-wrap { max-height: 520px; overflow: auto; }
.sy-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.sy-hist > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sy-hist > li:first-child { border-top: 0; }
.sy-hist-time { font-weight: 700; font-size: var(--fs-sm); }
.sy-hist-time small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.sy-hist-body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.sy-hist-body ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: var(--fs-sm); }
.sy-hist-body ul li { list-style: disc; }
.sy-audit td, .sy-audit th { vertical-align: top; }
.sy-audit th { font-size: var(--fs-xs); }
.sy-audit td:last-child { overflow-wrap: anywhere; min-width: 180px; }

/* ajuda */
.sy-help { display: grid; gap: 14px; }
.sy-topics { margin-bottom: 2px; }
.sy-help-body { display: grid; gap: 14px; min-width: 0; }
.sy-steps, .sy-rules, .sy-src { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sy-steps > li { display: flex; gap: 14px; align-items: flex-start; }
.sy-n { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--mint-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 750; flex: none; }
.sy-steps h3, .sy-rules h3, .sy-src h3, .sy-keys h3 { font-weight: 700; font-size: var(--fs-md); letter-spacing: -.01em; }
.sy-rules > li { display: flex; gap: 12px; align-items: flex-start; }
.sy-rules .ic { color: var(--brand-2); margin-top: 2px; }
.sy-src > li { display: grid; gap: 6px; align-content: start; }
.sy-src a { color: var(--brand-2); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.sy-keys dl { margin: 10px 0 0; display: grid; gap: 4px; }
.sy-keys dl > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.sy-keys dl > div:first-child { border-top: 0; }
.sy-keys dt { white-space: nowrap; }
.sy-keys dd { margin: 0; font-size: var(--fs-base); }
#v-sistema kbd { font-size: var(--fs-xs); padding: 1px 8px; border-radius: var(--r-xs); color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.sy-plus { margin: 0 4px; color: var(--muted); font-weight: 700; }
.sy-gsearch { max-width: 420px; flex: 0 1 420px; }
.sy-gsearch input { height: 40px; }
.sy-gloss { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 4px 28px; }
.sy-gloss > div { padding: 10px 0; border-top: 1px solid var(--line); }
.sy-gloss dt { font-weight: 700; }
.sy-gloss dd { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-base); }

@media (max-width: 820px) {
  .sy-hero { grid-template-columns: auto minmax(0, 1fr); }
  .sy-hero-act { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  .sy-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .sy-facts { grid-template-columns: minmax(0, 1fr); }
  .sy-hist > li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sy-keys dl > div { grid-template-columns: minmax(0, 1fr); }
  .sy-keys dt { white-space: normal; }
}
.sy-hero .eyebrow { color: var(--muted); }
.sy-hero.sy-l-ok, .sy-hero.sy-l-warn, .sy-hero.sy-l-bad, .sy-hero.sy-l-unknown { background: var(--surface); }
.sy-hero.sy-l-ok { border-left-color: var(--brand); }
.sy-hero.sy-l-warn { border-left-color: var(--sun); }
.sy-hero.sy-l-bad { border-left-color: var(--coral); }
.sy-help-body .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: var(--sp-5) 0; }
.sy-attn.card { box-shadow: none; }
