/* System page (v2/pages/system.js). Built only from app.css tokens. Prefix: sy- */

/* ── head + sub-tabs ───────────────────────────────────────────────────── */
.sy-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 6px 4px 30px; }
.sy-ttl { min-width: 0; }
.sy-lead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0; min-height: 22px; font-size: 15px; color: var(--text-2); }
.sy-lead b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sy-lead .faint { margin-left: 4px; font-size: 13px; }
.sy-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin: 0 10px; opacity: .6; }
.sy-view { animation: page-in .38s var(--ease) both; }
.sy-band { margin-top: var(--gap); }
.sy-sec-t { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sy-sec-t .t-cap { margin-left: 0; }
.sy-chev { display: inline-grid; place-items: center; flex: none; margin-left: auto; color: var(--text-3); align-self: center; }
.sy-chev svg { width: 16px; height: 16px; }

/* ── status orb (hero, sheets, calm state) ─────────────────────────────── */
.sy-orb { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.sy-orb svg { width: 28px; height: 28px; position: relative; }
.sy-orb.up { background: var(--up-fill); color: var(--up); }
.sy-orb.warn { background: var(--warn-fill); color: var(--warn); }
.sy-orb.down { background: var(--down-fill); color: var(--down); }
.sy-orb.accent { background: var(--accent-fill); color: var(--accent); }
.sy-orb.sm { width: 40px; height: 40px; }
.sy-orb.sm svg { width: 20px; height: 20px; }
.sy-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--up-mark); opacity: 0; animation: sy-breathe 3.6s var(--ease) infinite; }
@keyframes sy-breathe { 0% { opacity: .55; transform: scale(.82); } 70% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; transform: scale(1.18); } }

/* ── hero: verdict + services pulse ────────────────────────────────────── */
.sy-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: 0; overflow: hidden; }
.sy-hero-main { padding: 30px 36px 28px; min-width: 0; display: flex; flex-direction: column; }
.sy-hero-side { padding: 28px 32px 24px; border-left: 1px solid var(--hair); background: var(--surface-2); min-width: 0; display: flex; flex-direction: column; }
.sy-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; margin-bottom: 26px; }
.sy-state { display: flex; align-items: center; gap: 22px; }
.sy-state-t { min-width: 0; }
.sy-headline { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.024em; line-height: 1.15; }
.sy-state.st-down .sy-headline { color: var(--down); }
.sy-sum { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--text-2); max-width: 62ch; }
.sy-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.is-down { color: var(--down); } .is-warn { color: var(--warn); }
.sy .dot.run { background: var(--accent); }
.sy-acc { color: var(--accent); font-weight: 500; }

/* the five timers the desk cannot run without */
.sy-keys { margin-top: auto; padding-top: 26px; }
.sy-keys > .t-cap2 { margin-bottom: 8px; }
.sy-keys-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sy-kt { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 12px 13px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); text-align: left; font: inherit; color: var(--text); cursor: pointer; transition: transform .2s var(--spring), box-shadow var(--t-fast), background var(--t-fast); }
.sy-kt:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-2px); }
.sy-kt:active { transform: scale(.98); }
.sy-kt-n { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-kt-n .dot { width: 7px; height: 7px; }
.sy-kt-a { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sy-kt .sy-cyc { margin-top: 3px; height: 3px; }
.sy-facts .kpi-v small, .sy-sum-g .kpi-v small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.sy-facts .kpi-v .down, .sy-sum-g .kpi-v .down { color: var(--down); }
.sy-facts .kpi-v .warn, .sy-sum-g .kpi-v .warn { color: var(--warn); }
.sy-sum-g .kpi-v .up { color: var(--up); }

.sy-side-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sy-grps { display: flex; flex-direction: column; }
.sy-grp { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h d" "k n"; align-items: center; gap: 5px 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.sy-grp:first-child { padding-top: 2px; }
.sy-grp:last-child { border-bottom: 0; }
.sy-grp-h { grid-area: h; font-size: 14.5px; font-weight: 600; color: var(--text); transition: color var(--t-fast); }
.sy-grp-h:hover { text-decoration: none; color: var(--accent); }
.sy-grp-n { grid-area: n; justify-self: end; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sy-grp-n .is-down, .sy-grp-n .is-warn { font-weight: 600; }
.sy-dots { grid-area: d; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.sy-grp-k { grid-area: k; display: block; min-width: 0; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 14px; }
.sy-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sy-legend .sy-dot { width: 8px; height: 8px; cursor: default; }
.sy-legend .sy-dot.run { animation: none; }

.sy-dot { display: inline-block; flex: none; width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; background: var(--ok-mark); cursor: pointer; transition: transform .2s var(--spring); }
button.sy-dot:hover { transform: scale(1.3); }
.sy-dot.ok { background: var(--ok-mark); }
.sy-dot.run { background: var(--accent); animation: sy-ping 1.8s var(--ease) infinite; }
.sy-dot.late, .sy-dot.idle { background: var(--warn-mark); }
.sy-dot.fail { background: var(--down-mark); }
.sy-dot.never { background: transparent; box-shadow: inset 0 0 0 2px var(--text-3); }
@keyframes sy-ping { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(0, 113, 227, 0); } }

/* ── health checks ─────────────────────────────────────────────────────── */
.sy-chks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; margin: 0 -12px; }
.sy-chk { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--text); transition: background var(--t-fast); }
.sy-chk:hover { background: var(--surface-2); }
.sy-chk .dot { margin-top: 6px; }
.sy-chk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sy-chk-t b { font-size: 14.5px; font-weight: 600; }
.sy-chk-t span { font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.sy-chk .sy-chev { opacity: 0; transition: opacity var(--t-fast); }
.sy-chk:hover .sy-chev, .sy-chk:focus-visible .sy-chev { opacity: 1; }

/* ── what to look at ───────────────────────────────────────────────────── */
.sy-alerts { display: flex; flex-direction: column; }
.sy-issl { list-style: none; margin: 0; padding: 0; }
.sy-iss { display: flex; align-items: flex-start; gap: 12px; width: calc(100% + 20px); margin: 0 -10px; padding: 11px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--text); transition: background var(--t-fast); }
button.sy-iss, a.sy-iss { cursor: pointer; }
button.sy-iss:hover, a.sy-iss:hover { background: var(--surface-2); text-decoration: none; }
.sy-iss .dot { margin-top: 6px; }
.sy-iss-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sy-iss-t b { font-size: 14.5px; font-weight: 600; }
.sy-iss-t span { font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.sy-calm { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.sy-calm b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.sy-facts-l { list-style: none; margin: 16px 0 0; padding: 0; }
.sy-facts-l li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.sy-facts-l li:last-child { border-bottom: 0; padding-bottom: 0; }
.sy-facts-l span { color: var(--text-2); flex: none; }
.sy-facts-l b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sy-facts-l b.down { color: var(--down); } .sy-facts-l b.warn { color: var(--warn); }
.sy-facts-l small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 1px; }
.sy-errs { list-style: none; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-fill); }
.sy-errs li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px 10px; padding: 6px 0; font-size: 13px; }
.sy-errs li > :last-child { grid-column: 2; }
.sy-errs code { font-family: var(--mono); font-size: 12px; }

/* ── risk rails ────────────────────────────────────────────────────────── */
.sy-rails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 34px; }
.sy-rail { min-width: 0; display: flex; flex-direction: column; }
.sy-rail-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; font-size: 13.5px; color: var(--text-2); }
.sy-rail-v { margin-top: 6px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sy-rail-v small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.sy-rail .meter { margin-top: 12px; }
.sy-rail-c { margin: 8px 0 0; line-height: 1.45; }
.sy-rails-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); }
.sy-rails-f > .t-cap2 { margin-right: 2px; }
.sy-rails-legs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sy-leg { display: inline-flex; align-items: baseline; gap: 4px; height: 24px; align-items: center; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sy-leg b { font-weight: 600; }
.sy-rails-reg { margin-left: auto; }

/* ── data freshness ────────────────────────────────────────────────────── */
.sy-fr { display: flex; flex-direction: column; }
.sy-fr-r { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.35fr) minmax(0, .9fr) minmax(56px, .8fr); align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.sy-fr-r:last-child { border-bottom: 0; padding-bottom: 0; }
.sy-fr-r:first-child { padding-top: 0; }
.sy-fr-n { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sy-fr-n .dot { margin-top: 6px; }
.sy-fr-n b, .sy-fr-a b { display: block; font-size: 14.5px; font-weight: 600; }
.sy-fr-a b { font-weight: 500; font-variant-numeric: tabular-nums; }
.sy-fr-n small, .sy-fr-a small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-fr-a { min-width: 0; font-size: 14px; }
.sy-fr-a .down { color: var(--down); font-weight: 500; }
.sy-fr-a .faint { font-size: 13px; }
.sy-fr-r.t-warn .sy-fr-a b { color: var(--warn); }
.sy-fr-r.t-down .sy-fr-a b { color: var(--down); }
.sy-fr-c { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.sy-fr-b { display: block; height: 4px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.sy-fr-b > i { display: block; height: 100%; border-radius: inherit; background: var(--ok-mark); transition: width .9s var(--spring), background var(--t); }
.sy-fr-r.t-warn .sy-fr-b > i { background: var(--warn-mark); }
.sy-fr-r.t-down .sy-fr-b > i { background: var(--down-mark); }
.sy-fr-r.t-wait .sy-fr-b > i, .sy-fr-r.t-none .sy-fr-b > i { background: var(--text-3); }

/* ── links ─────────────────────────────────────────────────────────────── */
.sy-links-c { display: flex; flex-direction: column; }
.sy-links-c .card-f { margin-top: auto; }
.sy-lk { list-style: none; margin: -6px -10px 14px; padding: 0; }
.sy-lk-h { padding: 12px 10px 4px; }
.sy-lk-a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; color: var(--text); transition: background var(--t-fast); }
.sy-lk-a:hover { background: var(--surface-2); text-decoration: none; }
.sy-lk-a:hover .sy-chev { color: var(--accent); }
.sy-lk-i { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.sy-lk-i svg { width: 19px; height: 19px; }
.sy-lk-t { min-width: 0; flex: 1; }
.sy-lk-t b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sy-lk-t small { display: block; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-ro { display: inline-flex; align-items: center; gap: 8px; }
.sy-ro svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }

/* ── services ──────────────────────────────────────────────────────────── */
.sy-sum-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 20px; }
.sy-sum-n { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); }
.sy-groups { display: flex; flex-direction: column; gap: var(--gap); margin-top: var(--gap); }
.sy-g { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sy-g.sy-hl { animation: sy-hl 1.8s var(--ease); }
@keyframes sy-hl { 0%, 30% { box-shadow: var(--shadow), 0 0 0 3px rgba(0, 113, 227, .32); } 100% { box-shadow: var(--shadow); } }
.sy-g-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sy-g-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.sy-g-i svg { width: 20px; height: 20px; }
.sy-g-tt { flex: 1; min-width: 0; }
.sy-u-head, .sy-u { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr) 18px; gap: 16px; align-items: center; }
.sy-u-head.nores, .sy-us.nores .sy-u { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1.25fr) 18px; }
.sy-u-head { padding: 0 0 9px; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--text-3); }
.sy-u { width: calc(100% + 20px); margin: 0 -10px; padding: 12px 10px; border-bottom: 1px solid var(--hair); border-radius: 12px; cursor: pointer; transition: background var(--t-fast); outline: none; }
.sy-u:last-child { border-bottom-color: transparent; }
.sy-u:hover { background: var(--surface-2); }
.sy-u:focus-visible { box-shadow: var(--focus); }
.sy-u-n { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sy-u-n > span { min-width: 0; }
.sy-u-n b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sy-u-n small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-key { font-family: var(--font); font-size: 10.5px; font-weight: 600; color: var(--text-2); padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .06); letter-spacing: 0; }
.sy-u-last, .sy-u-next { min-width: 0; }
.sy-u-last b, .sy-u-next b { display: block; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sy-u-next b.warn { color: var(--warn); }
.sy-u-last small, .sy-u-next small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sy-u-lbl { display: none; }
.sy-u.fail .sy-u-last b { color: var(--down); }
.sy-u.late .sy-u-last b { color: var(--warn); }
.sy-u-cyc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sy-u-cyc small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-u .sy-chev { opacity: .6; }
.sy-u:hover .sy-chev { opacity: 1; }
.sy-run { gap: 6px; }
.sy-spin { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }

/* cycle bar: last start → next start, filled in real time by CSS */
.sy-cyc { position: relative; display: block; width: 100%; height: 4px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.sy-cyc > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p0, 0%); border-radius: inherit; background: rgba(0, 0, 0, .26); animation: sy-cyc var(--dur, 0s) linear forwards; }
@keyframes sy-cyc { from { width: var(--p0, 0%); } to { width: 100%; } }
.sy-cyc.late > i { width: 100%; background: var(--warn-mark); animation: none; }
.sy-cyc.fail > i { background: var(--down-mark); }
.sy-cyc.none > i { width: 0; animation: none; }
.sy-cyc.run > i { width: 38%; background: var(--accent); animation: sy-indet 1.5s var(--ease) infinite; }
@keyframes sy-indet { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
.sy-cyc.big { height: 8px; }

/* ── sheets ────────────────────────────────────────────────────────────── */
.sy-sh-state { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.sy-sh-state b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.sy-sh-state p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.sy-sh-state.st-down b { color: var(--down); }
.sy-sh-state.st-warn b { color: var(--warn); }
.sy-sh-sec h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.sy-sh-sec p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.sy-sh-sec p.t-cap2 { margin-top: 8px; font-size: 12px; }
.sy-sh-cyc-l { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.sy-sh-cyc-l b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sy-sh-cyc-l .sy-acc { color: var(--accent); }
.sy-cmd { display: flex; align-items: center; gap: 10px; }
.sy-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 9px 12px; border-radius: 10px; background: var(--surface-3); font-family: var(--mono); font-size: 12.5px; color: var(--text); scrollbar-width: thin; }

/* ── reports: research headline ────────────────────────────────────────── */
.sy-res-h { display: flex; align-items: flex-start; gap: 18px; }
.sy-res-i { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.sy-res-i svg { width: 22px; height: 22px; }
.sy-res-m { flex: 1; min-width: 0; }
.sy-res-k { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.sy-res-t { display: block; margin: 8px 0 12px; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; max-width: 80ch; }
.sy-res-f { gap: 8px 12px; }
.sy-grade { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.sy-grade b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.sy-grade.gA b { background: var(--text); color: #fff; }
.sy-grade.gB b { background: rgba(0, 0, 0, .12); color: var(--text); }
.sy-grade.gC b { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair-2); color: var(--text-2); }
.sy-res-go { align-self: center; flex: none; }
.sy-res-go svg { width: 14px; height: 14px; }
.sy-res .sy-res-h > div > .t-cap { margin: 4px 0 0; }

/* ── reports: documents ────────────────────────────────────────────────── */
.sy-doc { margin-top: var(--gap); }
.sy-doc-meta { min-height: 26px; margin-top: 18px; }
.sy-doc-m { gap: 6px 12px; }
.sy-doc-m b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sy-stale { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--warn-fill); color: var(--warn); font-size: 13.5px; }
.sy-stale svg { width: 16px; height: 16px; flex: none; }
.sy-doc-g { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; margin-top: 28px; }
.sy-doc-g.solo { grid-template-columns: minmax(0, 1fr); }
.sy-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 1px; padding-left: 16px; border-left: 1px solid var(--hair); }
.sy-toc .t-cap2 { margin-bottom: 8px; }
.sy-toc button { display: block; width: 100%; text-align: left; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13.5px; line-height: 1.4; color: var(--text-2); cursor: pointer; transition: color var(--t-fast); }
.sy-toc button:hover { color: var(--accent); }
.sy-toc button.l4 { padding-left: 12px; font-size: 13px; }
.sy-cut { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); }
.sy-cut svg { width: 15px; height: 15px; flex: none; }

.sy-md { font-size: 16px; line-height: 1.72; color: var(--text); max-width: 72ch; min-width: 0; overflow-wrap: anywhere; }
.sy-md > :first-child { margin-top: 0; }
.sy-md h2, .sy-md h3, .sy-md h4, .sy-md h5 { scroll-margin-top: calc(var(--nav-h) + 20px); letter-spacing: -.014em; line-height: 1.3; }
.sy-md h2 { font-size: 26px; font-weight: 600; margin: 40px 0 12px; }
.sy-md h3 { font-size: 21px; font-weight: 600; margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--hair); }
.sy-md > h3:first-child, .sy-md > h4:first-child { padding-top: 0; border-top: 0; }
.sy-md h4 { font-size: 18px; font-weight: 600; margin: 34px 0 10px; padding-top: 24px; border-top: 1px solid var(--hair); }
.sy-md h3 + h4 { border-top: 0; padding-top: 0; margin-top: 16px; }
.sy-md h5 { font-size: 15.5px; font-weight: 600; margin: 20px 0 6px; }
.sy-md p { margin: 12px 0; }
.sy-md-brief > p:first-child { font-size: 19px; line-height: 1.55; letter-spacing: -.01em; }
.sy-md ul, .sy-md ol { margin: 12px 0; padding-left: 22px; }
.sy-md li { margin: 7px 0; padding-left: 4px; }
.sy-md li.sub { margin-left: 20px; list-style-type: circle; }
.sy-md li::marker { color: var(--text-3); }
.sy-md strong { font-weight: 600; }
.sy-md em { font-style: italic; color: var(--text-2); }
.sy-md code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .05); color: var(--text); }
.sy-md blockquote { margin: 14px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--hair-2); color: var(--text-2); }
.sy-md hr { border: 0; height: 1px; background: var(--hair); margin: 28px 0; }
.sy-md pre { margin: 14px 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); overflow-x: auto; font-size: 13px; line-height: 1.55; }
.sy-md pre code { padding: 0; background: none; font-size: inherit; }
.sy-md-tw { margin: 16px 0; overflow-x: auto; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hair); }
.sy-md-tw table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.sy-md-tw th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--hair); white-space: nowrap; }
.sy-md-tw td { padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.sy-md-tw tr:last-child td { border-bottom: 0; }
.sy-md-tw .r { text-align: right; } .sy-md-tw .c { text-align: center; }
.sy-md-tw td:first-child { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .sy-ring { display: none; }
  .sy-cyc > i { animation: none; }
  .sy-cyc.run > i { width: 100%; opacity: .45; }
  .sy-dot.run { animation: none; }
}

/* ── narrower screens ──────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .sy-rails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-sum-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sy-doc-g { grid-template-columns: minmax(0, 1fr) 190px; gap: 36px; }
}
@media (max-width: 900px) {
  .sy-hero { grid-template-columns: 1fr; }
  .sy-hero-side { border-left: 0; border-top: 1px solid var(--hair); }
  .sy-band > .card, .sec .grid > .card { grid-column: 1 / -1; }
  .sy-doc-g, .sy-doc-g.solo { grid-template-columns: minmax(0, 1fr); }
  .sy-toc { display: none; }
}
@media (max-width: 760px) {
  .sy-head { margin: 2px 2px 20px; }
  .sy-head .seg { width: 100%; }
  .sy-head .seg > a { flex: 1; text-align: center; }
  .sy-segw { width: 100%; }
  .sy-lead { font-size: 13.5px; }
  .sy-hero-main { padding: 20px 20px 20px; }
  .sy-hero-side { padding: 20px 20px 18px; }
  .sy-top { margin-bottom: 18px; }
  .sy-state { gap: 16px; align-items: flex-start; }
  .sy-orb { width: 50px; height: 50px; }
  .sy-orb svg { width: 24px; height: 24px; }
  .sy-orb.sm { width: 38px; height: 38px; }
  .sy-headline { font-size: 25px; }
  .sy-sum { font-size: 14.5px; }
  .sy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sy-state + .sy-facts { margin-top: 22px; }
  .sy-dot { width: 14px; height: 14px; }
  .sy-dots { gap: 8px; }
  .sy-grp { grid-template-areas: "h n" "d d" "k k"; }
  .sy-dots { justify-self: start; justify-content: flex-start; margin: 3px 0 2px; }
  .sy-keys { padding-top: 22px; }
  .sy-keys-g { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .sy-chks { grid-template-columns: 1fr; margin: 0 -10px; }
  .sy-chk { padding: 11px 10px; }
  .sy-chk .sy-chev { opacity: .6; }
  .sy-rails { grid-template-columns: 1fr; gap: 26px; }
  .sy-rails-reg { margin-left: 0; width: 100%; }
  .sy-fr-r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "b b"; gap: 8px 12px; }
  .sy-fr-n { grid-area: n; }
  .sy-fr-a { grid-area: a; text-align: right; }
  .sy-fr-c { display: none; }
  .sy-fr-b { grid-area: b; margin-left: 20px; }
  .sy-fr-n small { white-space: normal; }
  .sy-sum-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-sum-g > :last-child { grid-column: 1 / -1; }
  .sy-u-head { display: none; }
  .sy-u, .sy-us.nores .sy-u { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n res" "last next" "cyc cyc"; gap: 8px 14px; padding: 14px 10px; }
  .sy-us.nores .sy-u { grid-template-areas: "n n" "last next" "cyc cyc"; }
  .sy-u-n { grid-area: n; }
  .sy-u-res { grid-area: res; }
  .sy-u-last { grid-area: last; }
  .sy-u-next { grid-area: next; text-align: right; }
  .sy-u-next .chip { margin-left: auto; }
  .sy-u-last, .sy-u-next { display: flex; flex-direction: column; align-items: flex-start; }
  .sy-u-next { align-items: flex-end; }
  .sy-u-lbl { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 1px; }
  .sy-u-cyc { grid-area: cyc; flex-direction: row; align-items: center; gap: 10px; padding-left: 20px; }
  .sy-u-cyc small { flex: none; }
  .sy-u .sy-chev { display: none; }
  .sy-g-h { gap: 12px; margin-bottom: 10px; }
  .sy-g-i { width: 36px; height: 36px; }
  .sy-res-h { flex-wrap: wrap; gap: 14px; }
  .sy-res-i { width: 38px; height: 38px; }
  .sy-res-m { flex-basis: calc(100% - 52px); }
  .sy-res-t { font-size: 16px; }
  .sy-res-go { width: 100%; }
  .sy-doc-g { margin-top: 20px; }
  .sy-md { font-size: 15px; line-height: 1.68; }
  .sy-md-brief > p:first-child { font-size: 17px; }
  .sy-md h2 { font-size: 22px; } .sy-md h3 { font-size: 19px; margin-top: 30px; padding-top: 20px; } .sy-md h4 { font-size: 17px; margin-top: 28px; padding-top: 18px; }
  .sy-md-tw table { min-width: 420px; }
  .sy-errs li { grid-template-columns: 1fr; }
  .sy-errs li > :last-child { grid-column: 1; }
  .sy-cmd { flex-direction: column; align-items: stretch; }
}
