/* ============================================================
   Pipeline Showcase - "Ledger" design system
   Shared across index.html, case-study.html, decisions.html
   ============================================================ */

/* ---------- TOKENS: DARK (default) ---------- */
:root {
  --bg:            #0B111C;
  --bg-2:          #0E1626;
  --surface:       #151E30;
  --surface-2:     #1C2740;
  --surface-3:     #24314F;
  --border:        #253150;
  --border-strong: #364667;
  --hairline:      rgba(255,255,255,.06);

  --text:   #F4F6FB;
  --text-2: #9AA6BC;
  --text-3: #6A778F;

  --accent:        #6E8BFF;
  --accent-2:      #8AA0FF;
  --accent-ink:    #0B111C;
  --accent-soft:   rgba(110,139,255,.15);
  --accent-line:   rgba(110,139,255,.38);

  --signal:        #F4A34A;
  --signal-2:      #FFC178;
  --signal-soft:   rgba(244,163,74,.15);
  --signal-line:   rgba(244,163,74,.40);

  --success:      #37C892;  --success-soft: rgba(55,200,146,.15);
  --warn:         #F0A93B;  --warn-soft:    rgba(240,169,59,.15);
  --danger:       #EA5B52;  --danger-soft:  rgba(234,91,82,.15);

  --stage-networking:#6A778F;
  --stage-applied:   #6E8BFF;
  --stage-interview: #F0A93B;
  --stage-offer:     #37C892;
  --stage-rejected:  #3A4763;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .15vw, 1.02rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.32rem + .6vw, 1.85rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.9rem);
  --step-4:  clamp(2.6rem, 2rem + 2.9vw, 4.6rem);
  --step-5:  clamp(3.3rem, 2.3rem + 4.6vw, 6.4rem);

  --sp-1: 2px;  --sp-2: 4px;  --sp-3: 8px;  --sp-4: 12px;
  --sp-5: 16px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px;
  --sp-9: 64px; --sp-10: 96px; --sp-11: 128px;

  --r-xs: 6px;  --r-sm: 10px; --r-md: 14px;
  --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 4px 14px rgba(0,0,0,.4);
  --sh-3: 0 14px 40px rgba(0,0,0,.5);
  --sh-glow: 0 0 0 1px var(--accent-line), 0 10px 30px rgba(110,139,255,.22);

  --maxw: 1120px;
  color-scheme: dark;
}

/* ---------- TOKENS: LIGHT ---------- */
[data-theme='light'] {
  --bg:            #F7F4EE;
  --bg-2:          #F1ECE2;
  --surface:       #FFFFFF;
  --surface-2:     #F5F1E9;
  --surface-3:     #ECE6DA;
  --border:        #E2DBCD;
  --border-strong: #CDC4B2;
  --hairline:      rgba(30,29,26,.07);

  --text:   #201E1A;
  --text-2: #6E6A60;
  --text-3: #9C9689;

  --accent:        #2B54D6;
  --accent-2:      #3D63E0;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(43,84,214,.10);
  --accent-line:   rgba(43,84,214,.30);

  --signal:        #C56A12;
  --signal-2:      #E08A2B;
  --signal-soft:   rgba(197,106,18,.12);
  --signal-line:   rgba(197,106,18,.34);

  --success:      #1B8A5E;  --success-soft: rgba(27,138,94,.12);
  --warn:         #B9740F;  --warn-soft:    rgba(185,116,15,.12);
  --danger:       #C0392B;  --danger-soft:  rgba(192,57,43,.10);

  --stage-networking:#9C9689;
  --stage-applied:   #2B54D6;
  --stage-interview: #B9740F;
  --stage-offer:     #1B8A5E;
  --stage-rejected:  #D8D1C4;

  --sh-1: 0 1px 2px rgba(30,29,26,.08);
  --sh-2: 0 4px 14px rgba(30,29,26,.10);
  --sh-3: 0 14px 40px rgba(30,29,26,.14);
  --sh-glow: 0 0 0 1px var(--accent-line), 0 10px 30px rgba(43,84,214,.16);

  color-scheme: light;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -5% 8%, var(--signal-soft), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  transition: background-color .4s ease, color .4s ease;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); }
::selection { background: var(--signal-soft); }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-6); position: relative; z-index: 2; }
main  { padding-bottom: var(--sp-11); }
.block { padding-block: var(--sp-9); border-top: 1px solid var(--hairline); }

.section-head { display: flex; align-items: baseline; gap: var(--sp-5); margin-bottom: var(--sp-7); flex-wrap: wrap; }
.section-index { font-family: var(--font-mono); font-size: var(--step--1); color: var(--signal); letter-spacing: .12em; text-transform: uppercase; padding-top: .35em; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--text-2); max-width: 52ch; margin-top: var(--sp-3); }
.section-head .head-copy { flex: 1 1 320px; }
.subhead { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: var(--sp-7) 0 var(--sp-4); }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 74%, transparent); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: var(--sp-5); height: 66px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.brand .glyph { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), var(--signal)); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: var(--sh-1); }
.nav-links { display: none; gap: var(--sp-6); margin-left: var(--sp-5); }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: var(--step--1); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-spacer { flex: 1; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Mobile nav: hamburger (injected by site.js) toggles a dropdown panel. */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--r-sm); cursor: pointer; }
.nav-toggle:hover { border-color: var(--accent-line); }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--hairline);
    padding: var(--sp-2) var(--sp-5) var(--sp-4); box-shadow: var(--sh-1);
  }
  .nav-open .nav-links a { padding: var(--sp-4) 0; font-size: var(--step-0); border-top: 1px solid var(--hairline); }
}

.toggle { display: inline-flex; align-items: center; gap: var(--sp-3); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); padding: 7px 14px; cursor: pointer; font: inherit; font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; transition: border-color .2s, color .2s, transform .1s; }
.toggle:hover { color: var(--text); border-color: var(--accent-line); }
.toggle:active { transform: scale(.97); }
.toggle .ico { width: 15px; height: 15px; display: inline-flex; }

/* ---------- ICONS ---------- */
.ic { width: 1em; height: 1em; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.brand .glyph .ic, .f-brand .glyph .ic { width: 60%; height: 60%; }
#rt-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--sp-3); justify-content: center; font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1; white-space: nowrap; transition: transform .12s ease, box-shadow .2s ease, background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--accent-2); box-shadow: var(--sh-glow); transform: translateY(-1px); }
.btn-signal { background: var(--signal); color: #1a1205; box-shadow: var(--sh-1); }
.btn-signal:hover { background: var(--signal-2); transform: translateY(-1px); box-shadow: 0 10px 30px var(--signal-soft); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent-line); background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-outline:hover { background: var(--accent-soft); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 7px 13px; font-size: var(--step--1); border-radius: var(--r-xs); }
.btn-lg { padding: 15px 28px; font-size: var(--step-1); border-radius: var(--r-md); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- LINKS ---------- */
.link { color: var(--accent); text-decoration: none; font-weight: 500; position: relative; }
.link::after { content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px; background: var(--accent); transition: right .28s ease; }
.link:hover::after { right: 0; }
.link-signal { color: var(--signal); text-decoration: none; font-weight: 600; }
.link-signal:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- BADGES ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); font-family: var(--font-body); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-accent  { background: var(--accent-soft); color: var(--accent); }
.badge-signal  { background: var(--signal-soft); color: var(--signal); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn    { background: var(--warn-soft); color: var(--warn); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- CARDS ---------- */
.card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-6); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--border-strong); }
.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.card p { color: var(--text-2); font-size: var(--step--1); }
.card .card-ico { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: var(--sp-5); font-size: 1.2rem; }
.card-feature::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background: linear-gradient(var(--accent), var(--signal)); }
.card-feature { padding-left: calc(var(--sp-6) + 3px); }
.card-glow:hover { box-shadow: var(--sh-glow); border-color: var(--accent-line); }

/* ---------- STAT TILES ---------- */
.stat { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: var(--sp-6); position: relative; overflow: hidden; }
.stat .stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.stat .stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; margin: var(--sp-4) 0 var(--sp-2); letter-spacing: -.03em; }
.stat .stat-num .unit { font-size: .4em; color: var(--text-2); font-weight: 600; margin-left: 4px; }
.stat .stat-foot { font-size: var(--step--1); color: var(--text-2); }
.stat-signal .stat-num { color: var(--signal); }
.stat-accent .stat-num { color: var(--accent); }
.stat-placeholder { border-style: dashed; }
.stat-placeholder .stat-num { color: var(--text-3); }

/* ---------- CALLOUT / QUOTE ---------- */
.callout { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: var(--sp-6); display: flex; gap: var(--sp-5); border-left: 3px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; }
.callout.signal { border-left-color: var(--signal); }
.callout .c-ico { flex: none; color: var(--accent); font-size: 1.1rem; }
.callout.signal .c-ico { color: var(--signal); }
.callout .c-title { font-weight: 600; margin-bottom: var(--sp-2); }
.callout .c-body { color: var(--text-2); font-size: var(--step--1); }

.quote { border-radius: var(--r-lg); padding: var(--sp-8) var(--sp-7); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.quote::before { content: "\201C"; position: absolute; top: -.15em; left: .1em; font-family: var(--font-display); font-size: 9rem; color: var(--signal-soft); line-height: 1; }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.25; letter-spacing: -.02em; margin: 0; position: relative; }
.quote figcaption { margin-top: var(--sp-5); font-size: var(--step--1); color: var(--text-2); display: flex; align-items: center; gap: var(--sp-3); }
.quote .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--signal)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }

/* ---------- DECISION BLOCK ---------- */
.decision { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: var(--sp-6); box-shadow: var(--sh-1); }
.decision .d-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.decision .d-t { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin: var(--sp-2) 0 var(--sp-4); }
.decision dl { margin: 0; display: grid; gap: var(--sp-3); }
.decision dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.decision dd { margin: 0 0 var(--sp-2); color: var(--text-2); font-size: var(--step--1); }

.inline-code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text); }

/* ---------- GRIDS ---------- */
.grid-2 { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-3 { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-4 { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: var(--sp-8) var(--sp-9); }
.footer-inner { display: grid; gap: var(--sp-7); grid-template-columns: 1.4fr 1fr 1fr; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: var(--sp-4); }
.footer .f-brand { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); display: flex; align-items: center; gap: var(--sp-3); }
.footer p { color: var(--text-2); font-size: var(--step--1); margin-top: var(--sp-4); max-width: 34ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer ul a { color: var(--text-2); text-decoration: none; font-size: var(--step--1); transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--hairline); font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }
@media (max-width: 720px){ .footer-inner { grid-template-columns: 1fr; } }

.muted { color: var(--text-2); }

/* ---------- SCROLL REVEAL ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
  }
  .reveal        { transform: translateY(26px); }
  .reveal-left   { transform: translateX(-34px); }
  .reveal-right  { transform: translateX(34px); }
  .reveal-scale  { transform: scale(.94); }
  .reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in { opacity: 1; transform: none; }
}
html:not(.js-reveal) .reveal,
html:not(.js-reveal) .reveal-left,
html:not(.js-reveal) .reveal-right,
html:not(.js-reveal) .reveal-scale { opacity: 1 !important; transform: none !important; }

/* ============================================================
   VIGNETTES - miniature UI impressions (pure CSS, theme-adaptive)
   Small abstracted pictures of the app used on capability cards
   and section asides. No data, no images - just tokens.
   ============================================================ */
.vig { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: var(--sp-4); margin-bottom: var(--sp-5); overflow: hidden; user-select: none; pointer-events: none; }
.vig-col-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: var(--text-3); margin-bottom: 6px; text-transform: uppercase; }
.vig-chipbar { height: 16px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 5px; }
.vig-chipbar.applied   { background: var(--accent-soft);  border-color: var(--accent-line); }
.vig-chipbar.interview { background: var(--signal-soft);  border-color: var(--signal-line); }
.vig-chipbar.offer     { background: var(--success-soft); border-color: var(--success); }

/* 1 · pipeline board */
.vig-board { display: flex; gap: 8px; }
.vig-board > div { flex: 1; min-width: 0; }

/* 2 · application outlook */
.vig-outlook { position: relative; height: 84px; }
.vig-gantt { position: absolute; height: 9px; border-radius: 5px; }
.vig-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--text-3); }
.vig-today-label { position: absolute; top: -3px; margin-left: 5px; font-family: var(--font-mono); font-size: 8.5px; color: var(--text-3); }
.vig-tick { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--signal); }

/* 3 · chat card */
.vig-chat { border: 1px solid var(--signal-line); border-radius: var(--r-xs); padding: 9px; }
.vig-chat-head { display: flex; gap: 6px; align-items: center; margin-bottom: 7px; }
.vig-skel { border-radius: 4px; background: var(--surface-3); }
.vig-pill { font-family: var(--font-mono); font-size: 8.5px; border-radius: var(--r-pill); padding: 1px 8px; white-space: nowrap; }
.vig-pill.warn   { background: var(--warn-soft);   color: var(--warn); }
.vig-pill.accent { background: var(--accent-soft); color: var(--accent); }
.vig-notes { border: 1px solid var(--border); border-radius: 5px; padding: 6px 8px; }
.vig-notes .vig-skel { height: 6px; margin-bottom: 4px; }
.vig-notes .vig-skel:last-child { margin-bottom: 0; }
.vig-chat-log { display: flex; gap: 5px; margin-top: 7px; }
.vig-chat-log .field { flex: 1; height: 13px; border: 1px solid var(--border); border-radius: 4px; }
.vig-chat-log .go { width: 42px; height: 13px; border-radius: 4px; background: var(--accent); opacity: .85; }

/* 4 · month calendar */
.vig-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vig-day { height: 19px; border: 1px solid var(--border); border-radius: 4px; position: relative; }
.vig-day.empty { border: 0; }
.vig-day.today { border-color: var(--accent-line); background: var(--accent-soft); }
.vig-day .d { position: absolute; bottom: 2px; left: 3px; width: 5px; height: 5px; border-radius: 50%; }
.vig-day .d.op   { background: var(--success); }
.vig-day .d.dl   { background: var(--accent); }
.vig-day .d.fu   { background: var(--warn); }
.vig-day .d.chat { background: #8b5cf6; }
.vig-day .d.iv   { background: #ec4899; }
.vig-day .d.resp { background: transparent; border: 1.5px solid var(--success); }

/* 5 · watcher tiles */
.vig-tiles { display: flex; gap: 7px; }
.vig-tile { flex: 1; border: 1px solid var(--border); border-radius: var(--r-xs); padding: 8px; }
.vig-tile .lbl { height: 6px; border-radius: 3px; background: var(--surface-3); width: 62%; margin-bottom: 8px; }
.vig-tile .num { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1; color: var(--text); }
.vig-tile.warn   { border-color: var(--signal-line); background: var(--signal-soft); }
.vig-tile.warn .num { color: var(--signal); }
.vig-tile.warn .lbl { background: var(--signal-line); }
.vig-tile.danger { border-color: var(--danger); background: var(--danger-soft); }
.vig-tile.danger .num { color: var(--danger); }
.vig-tile.danger .lbl { background: var(--danger-soft); }

/* 6 · ask pipeline */
.vig-ask-q { display: flex; justify-content: flex-end; margin-bottom: 7px; }
.vig-ask-q span { background: var(--accent); color: var(--accent-ink); border-radius: 10px 10px 3px 10px; padding: 4px 10px; font-size: 10px; font-weight: 600; }
.vig-ask-a { border: 1px solid var(--border); border-radius: 10px 10px 10px 3px; padding: 8px 10px; }
.vig-ask-a .vig-skel { height: 6px; width: 85%; margin-bottom: 6px; }
.vig-ask-rows { display: flex; gap: 5px; }
.vig-ask-rows i { display: block; height: 11px; border-radius: 4px; border: 1px solid var(--border); flex: 1; }
.vig-ask-rows i.hot { border-color: var(--signal-line); background: var(--signal-soft); flex: 1.2; }
.vig-ask-foot { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-3); margin-top: 7px; }

/* 7 · contacts & follow-ups */
.vig-people { display: grid; gap: 6px; }
.vig-person { display: flex; align-items: center; gap: 7px; }
.vig-person .av { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); flex: none; }
.vig-person .nm { height: 6px; border-radius: 3px; background: var(--surface-3); }
.vig-person .fu-chip { margin-left: auto; }

/* problem aside: scattered -> one */
.vig-converge { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.vig-converge .pile { display: grid; gap: 6px; flex: 1; }
.vig-frag { border: 1px dashed var(--border-strong); border-radius: var(--r-xs); padding: 6px 8px; font-family: var(--font-mono); font-size: 9px; color: var(--text-3); transform: rotate(-1.2deg); }
.vig-frag:nth-child(2) { transform: rotate(1.4deg); }
.vig-frag:nth-child(3) { transform: rotate(-0.6deg); }
.vig-converge .arr { color: var(--text-3); font-size: 18px; flex: none; }
.vig-converge .one { flex: 1.2; border: 1px solid var(--accent-line); border-radius: var(--r-sm); background: var(--bg-2); padding: 10px; }
.vig-converge .one .row { display: flex; gap: 5px; margin-bottom: 5px; }
.vig-converge .one .row:last-child { margin-bottom: 0; }
.vig-converge .one .cell { height: 10px; border-radius: 4px; flex: 1; background: var(--surface-2); border: 1px solid var(--border); }
.vig-converge .one .cell.a { background: var(--accent-soft); border-color: var(--accent-line); }
.vig-converge .one .cell.s { background: var(--signal-soft); border-color: var(--signal-line); }

/* case-study: layer diagram */
.vig-layers { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-6) 0 0; flex-wrap: wrap; }
.vig-layer { flex: 1; min-width: 130px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-2); padding: 10px 12px; text-align: center; }
.vig-layer .t { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text); }
.vig-layer .s { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); margin-top: 2px; }
.vig-layer.hot { border-color: var(--accent-line); }
.vig-layers .arr { color: var(--text-3); flex: none; }
