/* Sirony Vitalia — layout & motion system (namespaced vt-*).
   Matched to the tokens in base.html: base #0a0e17 · panel #121826 ·
   line #1e293b · ink #e2e8f0 · primary #06b6d4 · Inter.
   What the motion encodes:
     - the score ring fills to the number and STOPS — the arc is the number
     - coverage bars grow to the measured share, so a gap is visibly a shorter bar
     - provenance fades in last, deliberately: evidence is the final beat
     - anything not measured never animates — stillness means "no data"
     - all of it is switched off under prefers-reduced-motion */
:root{--vt-good:#10b981;--vt-warn:#f59e0b;--vt-bad:#ef4444;--vt-ink:#e2e8f0;--vt-soft:#cbd5e1;
  --vt-mute:#94a3b8;--vt-dim:#64748b;--vt-line:#1e293b;--vt-panel:#121826;--vt-well:#0d1220;
  --vt-primary:#06b6d4;--vt-primary-ink:#22d3ee;--vt-violet:#8b5cf6;--vt-violet-ink:#c4b5fd;
  --vt-ease:cubic-bezier(.22,.8,.3,1)}
@keyframes vt-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes vt-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes vt-ring{from{stroke-dashoffset:596.9}}
@keyframes vt-fill{from{fill-opacity:0}}
.vt-reveal{animation:vt-rise .42s ease-out both}
.vt-stagger>*{animation:vt-rise .42s ease-out both;animation-delay:calc(var(--i,0)*90ms + 200ms)}
.vt-prov{animation:vt-rise .42s ease-out both;animation-delay:1.3s}
.vt-ring{flex:none;display:block}
.vt-ring text{font-family:inherit}
.vt-ring__fg{stroke-dasharray:596.9;stroke-dashoffset:calc(596.9*(1 - var(--p,0)));animation:vt-ring 1.2s var(--vt-ease) both}
.vt-bar{height:6px;border-radius:999px;background:var(--vt-line);overflow:hidden;flex:none;width:100%}
.vt-bar--lg{height:8px;width:auto;flex:1}
.vt-bar>i{display:block;height:100%;border-radius:999px;transform-origin:left center;animation:vt-grow .7s var(--vt-ease) both;animation-delay:var(--vt-delay,240ms)}
/* type scale */
.vt-kicker{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--vt-dim)}
.vt-lead{font-size:15px;line-height:1.35;color:var(--vt-ink)}
.vt-strong{font-size:13px;font-weight:600;color:var(--vt-ink);white-space:nowrap}
.vt-muted{font-size:12px;line-height:1.45;color:var(--vt-mute)}
.vt-note{font-size:12px;line-height:1.45;color:var(--vt-dim)}
.vt-dim{color:var(--vt-mute)}
.vt-foot{font-size:12px;line-height:1.5;color:var(--vt-dim);margin:0 0 20px}
/* stacks & rows */
.vt-stack{display:flex;flex-direction:column;gap:8px;min-width:0}
.vt-stack-tight{display:flex;flex-direction:column;gap:3px;min-width:0}
.vt-row{display:flex;align-items:center;gap:10px}
/* page-action chips */
.vt-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;align-items:center}
.vt-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:8px;background:#1b2536;color:#aeb9c9;font-size:13px;line-height:1;text-decoration:none;border:1px solid transparent;transition:background .14s ease,color .14s ease,transform .14s ease}
a.vt-chip:hover{background:#243044;color:#fff;transform:translateY(-1px)}
.vt-chip svg{flex:none}
.vt-chip--primary{background:var(--vt-primary);color:#06223a;font-weight:600}
a.vt-chip--primary:hover{background:#22d3ee;color:#06223a}
.vt-chip--proof{background:rgba(6,182,212,.14);border-color:rgba(6,182,212,.35);color:var(--vt-primary-ink);font-weight:600;margin-left:auto}
a.vt-chip--proof:hover{background:rgba(6,182,212,.22);color:#fff}
.vt-chip--static{cursor:default;color:var(--vt-mute)}
/* hero */
.vt-hero{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr) 200px;gap:24px;align-items:center;padding:28px 32px;margin-bottom:20px}
.vt-hero__score{display:flex;align-items:center;gap:22px;min-width:0}
.vt-hero__delta{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding-left:20px;border-left:1px solid var(--vt-line);text-align:center;min-height:100px}
.vt-delta{font-size:28px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.vt-warnbox{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:8px;background:rgba(245,158,11,.09);border:1px solid rgba(245,158,11,.28);color:#fbbf24;font-size:13px;line-height:1.4}
.vt-warnbox svg{flex:none;margin-top:1px}
.vt-warnbox b{color:#fde68a}
.vt-infobar{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;background:var(--vt-panel);border:1px solid var(--vt-line);border-radius:12px;margin-bottom:20px;font-size:14px;line-height:1.45;color:var(--vt-soft)}
.vt-infobar svg{flex:none;margin-top:1px}
.vt-empty{display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:24px 28px;margin-bottom:20px}
/* organ tiles */
.vt-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:16px;margin-bottom:12px}
.vt-tile{display:flex;flex-direction:column;gap:10px;padding:16px 18px;background:var(--vt-panel);border:1px solid var(--vt-line);border-radius:12px;min-width:0;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.vt-tile:hover{transform:translateY(-2px);border-color:#2a3a52;box-shadow:0 14px 30px -18px var(--vt-accent,#06b6d4)}
.vt-tile--nodata{background:var(--vt-well);border-style:dashed;border-color:#334155}
.vt-tile--nodata:hover{transform:none;box-shadow:none;border-color:#334155}
.vt-tile__head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.vt-tile__name{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--vt-ink)}
.vt-tile__pts{font-size:26px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.vt-nodata{font-size:13px;font-weight:600;color:var(--vt-dim)}
.vt-pills{display:flex;flex-wrap:wrap;gap:6px;min-height:20px;align-items:center}
.vt-pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:3px 8px;border-radius:999px;background:rgba(148,163,184,.12);color:var(--vt-mute);white-space:nowrap}
.vt-pill--warn{background:rgba(245,158,11,.14);color:#fbbf24}
.vt-pill--bad{background:rgba(239,68,68,.16);color:#fca5a5}
.vt-pill--good{background:rgba(16,185,129,.14);color:#34d399}
.vt-pill--cyan{background:rgba(6,182,212,.14);color:var(--vt-primary-ink)}
.vt-pill--violet{background:rgba(139,92,246,.16);color:var(--vt-violet-ink)}
.vt-pill--mute{background:var(--vt-line);color:var(--vt-mute)}
.vt-src{display:inline-flex;align-items:flex-start;gap:5px;font-size:11px;color:var(--vt-dim);line-height:1.3}
.vt-src svg{flex:none;margin-top:1px}
.vt-link{color:var(--vt-primary-ink);font-size:11px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.vt-link:hover{text-decoration:underline}
/* body view */
.vt-body{display:grid;grid-template-columns:minmax(300px,480px) minmax(0,1fr);gap:28px;align-items:start;margin-bottom:20px}
.vt-figure{display:flex;align-items:center;justify-content:center;padding:16px}
.vt-figure svg{width:100%;max-width:440px;height:auto;font-family:inherit}
.vt-organ{cursor:pointer;transition:filter .16s ease}
.vt-organ--live{animation:vt-fill .9s ease-out both;animation-delay:var(--vt-delay,300ms)}
.vt-organ.is-hot{filter:brightness(1.3) drop-shadow(0 0 6px rgba(255,255,255,.35))}
.vt-organ-label{cursor:pointer}
.vt-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--vt-mute);padding:0 2px}
.vt-legend span{display:inline-flex;align-items:center;gap:6px}
.vt-legend i{width:10px;height:10px;border-radius:999px;display:inline-block;flex:none}
.vt-callouts{display:flex;flex-direction:column;gap:12px}
.vt-callout{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 18px;background:var(--vt-panel);border:1px solid var(--vt-line);border-left:3px solid var(--vt-accent,#334155);border-radius:12px;transition:background .14s ease,border-color .14s ease}
.vt-callout.is-hot{background:#141c2e;border-color:#2a3a52;border-left-color:var(--vt-accent,#334155)}
.vt-callout--nodata{background:var(--vt-well);border-style:dashed;border-left-style:solid}
.vt-callout__name{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--vt-ink)}
.vt-callout__vals{font-size:13px;color:var(--vt-soft);line-height:1.55}
.vt-callout__pts{font-size:30px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:var(--vt-accent,#64748b)}
.vt-flag{font-size:11px;font-weight:700}
.vt-na{display:flex;flex-direction:column;gap:8px;padding:16px 18px;background:var(--vt-well);border:1px dashed #334155;border-radius:12px}
.vt-na ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.vt-na li{font-size:12px;color:var(--vt-dim);line-height:1.45}
.vt-na li b{color:var(--vt-mute);font-weight:600}
/* shortfall */
.vt-complete{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:center;padding:24px 32px;margin-bottom:20px}
.vt-cols2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;margin-bottom:24px}
.vt-list{display:flex;flex-direction:column;gap:12px;padding:20px 22px}
.vt-list__head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.vt-list__head>span:first-child{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--vt-ink)}
.vt-list .vt-stagger{display:flex;flex-direction:column;gap:10px}
.vt-req{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;background:var(--vt-well);border:1px solid var(--vt-line);border-radius:10px}
.vt-req__name{font-size:14px;font-weight:600;color:var(--vt-ink)}
.vt-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--vt-dim);font-weight:400}
.vt-callbox{margin-top:auto;padding:12px 14px;border-radius:10px;background:rgba(6,182,212,.06);border:1px solid rgba(6,182,212,.2);font-size:12px;color:var(--vt-mute);line-height:1.5}
.vt-callbox b{color:var(--vt-primary-ink)}
.vt-section{font-weight:600;margin:0 0 6px;font-size:15px;color:var(--vt-ink)}
@media (max-width:980px){.vt-hero{grid-template-columns:1fr}.vt-hero__delta{border-left:0;border-top:1px solid var(--vt-line);padding:14px 0 0;min-height:0}.vt-body{grid-template-columns:1fr}.vt-callout{grid-template-columns:104px minmax(0,1fr) auto}.vt-complete{grid-template-columns:1fr}.vt-chip--proof{margin-left:0}}
@media (prefers-reduced-motion:reduce){.vt-reveal,.vt-stagger>*,.vt-prov,.vt-ring__fg,.vt-bar>i,.vt-organ--live{animation:none!important}.vt-tile,.vt-chip,.vt-callout,.vt-organ{transition:none}}
