/* Shared component styles for case file artifacts.
   Loaded before a page's own <style> for any project whose meta.json sets "kit": true.
   Every rule below was an identical single-occurrence top-level rule in all six pages built
   on this template. Rules whose declarations varied between pages stayed in the pages, as did
   :root, html, body and anything inside a media query. theme/artifact.css still loads last
   and still wins, exactly as before. */

.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 20px 64px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.back { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.eyebrow { font-size: 12.5px; color: var(--muted); margin-top: 16px; letter-spacing: .02em; }
h1 { font-size: 32px; line-height: 1.15; margin: 4px 0 10px; letter-spacing: -0.015em; }
h2 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0 0 4px; }
.note { background: var(--note-bg); color: var(--note-ink); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin: 34px 0 30px; }
section { margin: 0 0 52px; }
.lede { color: var(--ink-2); max-width: 800px; margin: 0 0 16px; }
.num { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.hint { font-size: 13px; color: var(--muted); }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
footer { color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 30px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--page); }
.box { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.box p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.box p:last-child { margin: 0; }
.scroll { overflow-x: auto; }
.tip { position: fixed; pointer-events: none; background: var(--paper); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 50; opacity: 0; transition: opacity .12s; max-width: 280px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(11,11,11,.06); color: var(--ink-2); }
/* ---------- browser-style tabs ---------- */
  .tabs { display: flex; gap: 4px; padding: 0 14px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 2; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 1 0; min-width: 170px; max-width: 270px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
    padding: 11px 16px 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(11,11,11,.045); position: relative; }
.tab:hover { background: rgba(11,11,11,.075); }
.tab .dot { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.tab .tt { display: block; font-weight: 650; font-size: 14px; line-height: 1.2; }
.tab .ts { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.tab.on { background: var(--paper); border-color: var(--border); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--paper); }
.win { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--border); border-radius: 18px; padding: 0 0 8px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 24px 60px -40px rgba(0,0,0,.35); }
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px; border-bottom: 1px solid var(--grid); font-size: 12.5px; color: var(--ink-2); }
.bar .addr { flex: 1; min-width: 220px; background: rgba(11,11,11,.04); border-radius: 999px; padding: 6px 14px; font-variant-numeric: tabular-nums; }
.bar button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 12.5px; }
.drawer { display: none; padding: 18px 22px 4px; border-bottom: 1px solid var(--grid); }
.drawer.open { display: block; }
.dtables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dt { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); }
.dt h3 { font-family: ui-monospace, Menlo, monospace; font-size: 13px; margin: 0 0 2px; }
.dt .n { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dt .f { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.dt .smp { margin-top: 8px; overflow-x: auto; }
.dt .smp table { border-collapse: collapse; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; }
.dt .smp td { padding: 2px 6px 2px 0; white-space: nowrap; color: var(--ink-2); border-top: 1px solid var(--grid); }
.pane { display: none; padding: 26px 22px 8px; }
.pane.on { display: block; }
.hs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sev { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sev.c { background: rgba(178,58,31,.14); color: #9a2f17; }
.sev.h { background: rgba(194,65,12,.12); color: #a3400c; }
.sev.m { background: rgba(201,154,6,.18); color: #7d5c00; }
.sev.l { background: rgba(11,11,11,.07); color: var(--ink-2); }
.out { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.out.p { background: var(--good-wash); color: var(--good); }
.out.f { background: rgba(31,95,174,.12); color: #1F5FAE; }
.out.e { background: var(--risk-wash); color: var(--risk); }
h1 { font-size: 36px; max-width: 760px; }
.lede { font-size: 17px; }
.note { margin: 22px 0 8px; }
.tabs { margin-top: 30px; }
.tab .dot { font-size: 12px; }
.pane { padding: 26px 26px 18px; }
.hl { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hl .big { font-size: 46px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c1); }
.hl .small { font-size: 17px; color: var(--ink-2); max-width: 560px; line-height: 1.4; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: stretch; }
.grid2 > * { min-width: 0; }
.run { display: flex; flex-direction: column; min-height: 470px; }
.runh { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.runh { flex-wrap: wrap; }
.runh b { font-size: 14px; flex: 1; }
.runh button { white-space: nowrap; }
.runh .ctr { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.runh button { border: 1px solid var(--border); background: var(--paper); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 12.5px; }
.runh button.nx { background: var(--ink); color: var(--page); border-color: var(--ink); }
.rail { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.rail span { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: rgba(11,11,11,.05); color: var(--muted); transition: background .3s, color .3s; }
.rail span.on { background: var(--ink); color: var(--page); }
.st { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.st.show { opacity: 1; transform: none; }
.rv { opacity: 0; transition: opacity .35s; margin: 3px 0 0 !important; }
.rv.show { opacity: 1; }
.who { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 3px; }
.ag { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.ag .what { font-weight: 650; font-size: 14.5px; }
.ag .say { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.ck { margin: 10px 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--sc); border-radius: 0 10px 10px 0; background: var(--sw); font-size: 13.5px; }
.ck b { margin-left: 6px; }
.ck .tr, .ck .fx { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.ck .tr::before { content: "↳ "; color: var(--muted); }
.ck.c { --sc: #b23a1f; --sw: rgba(178,58,31,.07); }
.ck.h { --sc: #C2410C; --sw: rgba(194,65,12,.06); }
.ck.m { --sc: #C99A06; --sw: rgba(201,154,6,.08); }
.ck.l { --sc: #a8a59e; --sw: rgba(11,11,11,.035); }
.fin { margin-top: 12px; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.fin.ok { background: var(--good-wash); }
.fin.ok .who { color: var(--good); }
.fin.esc { background: rgba(124,58,237,.10); }
.fin.esc .who { color: #6b2fd6; }
.hero { display: flex; flex-direction: column; }
.hero .ht { font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; align-items: center; }
.chips .lab { font-size: 12px; color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; background: var(--paper); transition: box-shadow .25s, border-color .25s, transform .25s; cursor: default; }
.chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 650; }
.chip.hit { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,11,.08); transform: translateY(-1px); }
details.how { margin-top: 16px; border-top: 1px solid var(--grid); padding-top: 12px; }
details.how summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
details.how .hw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
details.how .hw p { margin: 0; }
details.how .hw b { color: var(--ink); }
