/* SafeCart Autopilot (cc): dark cloudy graphite, Geist type, Lucide icons. Configurator panel + sensor stage + 3D trust web.
   Open fonts only: Figtree (display), Inter (text), JetBrains Mono (telemetry). */
:root {
  --bg: #0c0e12; --bg-2: #12151a;
  --ink: #eef1f5; --ink-2: #c2c8d0; --muted: #8a929d; --faint: #59616c;
  --s1: rgba(255, 255, 255, .035); --s2: rgba(255, 255, 255, .055); --s3: rgba(255, 255, 255, .085); --s4: rgba(255, 255, 255, .12);
  --glass: rgba(20, 23, 29, .72); --glass-hi: rgba(26, 30, 37, .82);
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --row: rgba(255, 255, 255, .09);
  --steel: #8db4e2; --steel-soft: rgba(141, 180, 226, .14); --glow: rgba(141, 180, 226, .35);
  --ok: #4fd39c; --ok-soft: rgba(79, 211, 156, .14); --bad: #ff6262; --bad-soft: rgba(255, 98, 98, .13); --warn: #f2b552; --warn-soft: rgba(242, 181, 82, .14);
  --cta: #eef1f5; --cta-ink: #0c0e12;
  --display: 'Geist', -apple-system, system-ui, sans-serif; --text: 'Geist', -apple-system, system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --accent: #6ea8ff; --accent-soft: rgba(110, 168, 255, .14); --accent-line: rgba(110, 168, 255, .38);
  --t: .2s cubic-bezier(.2, .7, .2, 1); --blur: blur(22px) saturate(1.25);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 50px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font: 15px/1.55 var(--text); color: var(--ink); -webkit-font-smoothing: antialiased; overflow: hidden;
  background:
    radial-gradient(1200px 620px at 12% -12%, rgba(120, 146, 182, .20), transparent 60%),
    radial-gradient(900px 700px at 108% 28%, rgba(96, 116, 148, .16), transparent 62%),
    radial-gradient(800px 520px at 42% 118%, rgba(84, 96, 118, .26), transparent 66%),
    linear-gradient(180deg, #0f1216 0%, #0c0e12 55%, #0a0c0f 100%);
}
::selection { background: var(--steel-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:active { transform: scale(.98); }
a { color: inherit; }

/* ---------- header + page nav ---------- */
.top { height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(12, 14, 18, .6); backdrop-filter: var(--blur); position: relative; z-index: 5; }
.brand { font: 700 15px var(--display); letter-spacing: 6px; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--muted); font: 500 11.5px var(--mono); letter-spacing: .4px; margin-left: 14px; }
.pages { justify-self: center; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.pages button { height: 36px; padding: 0 15px; border-radius: 9px; font-weight: 500; font-size: 13.5px; color: var(--muted); transition: var(--t); position: relative; }
.pages button:hover { color: var(--ink); background: var(--s2); }
.pages button.on { background: var(--s4); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 18px rgba(0, 0, 0, .3); }
.pages button .ct { margin-left: 7px; font: 600 10.5px var(--mono); color: #fff; background: var(--bad); border-radius: 8px; padding: 1px 6px; box-shadow: 0 0 12px rgba(255, 98, 98, .5); }
.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border-radius: 20px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 600 11px var(--mono); letter-spacing: 1.2px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.on .dot { background: var(--ok); animation: pulseGreen 1.8s infinite; }
.status.busy .dot { background: var(--steel); animation: pulseSteel 1s infinite; }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(79, 211, 156, .55); } 70% { box-shadow: 0 0 0 9px rgba(79, 211, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 211, 156, 0); } }
@keyframes pulseSteel { 0% { box-shadow: 0 0 0 0 rgba(141, 180, 226, .55); } 70% { box-shadow: 0 0 0 9px rgba(141, 180, 226, 0); } 100% { box-shadow: 0 0 0 0 rgba(141, 180, 226, 0); } }
.sponsors { font: 500 11px var(--mono); color: var(--faint); letter-spacing: .3px; max-width: 240px; line-height: 1.35; }

/* ---------- split studio ---------- */
.studio { display: flex; height: calc(100vh - 64px); }
.stage { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.view { position: absolute; inset: 0; }
.view:not([hidden]) { animation: viewIn .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel { width: 460px; min-width: 420px; overflow-y: auto; border-left: 1px solid var(--line); padding: 30px 30px 0; display: flex; flex-direction: column; gap: 24px; background: var(--glass); backdrop-filter: var(--blur); }

/* ---------- sensor view: grid, nothing overlaps ---------- */
.view.sensor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; padding: 30px 30px 28px;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 26px 26px; }
.s-left { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; padding-right: 4px; position: relative; z-index: 1; }
.s-right { min-height: 0; position: relative; z-index: 1; }
.s-bottom { grid-column: 1 / -1; display: grid; gap: 18px; position: relative; z-index: 1; padding-right: 62px; }
.radar { position: absolute; left: 42%; top: 46%; width: 620px; height: 620px; transform: translate(-50%, -50%); pointer-events: none; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(141, 180, 226, .10); }
.radar .ring:nth-child(2) { inset: 90px; } .radar .ring:nth-child(3) { inset: 180px; border-color: rgba(141, 180, 226, .16); }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(141, 180, 226, .28), transparent 24%); animation: spin 4s linear infinite; opacity: 0; transition: opacity .5s; }
.stage.armed .radar .sweep { opacity: .5; animation-duration: 10s; }
.stage.scanning .radar .sweep { opacity: 1; animation-duration: 3.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.overlay { max-width: 560px; padding: 26px 28px; background: var(--glass-hi); backdrop-filter: var(--blur); border-radius: 16px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line), inset 3px 0 0 var(--steel); transition: box-shadow .4s; }
.overlay.bad { box-shadow: var(--shadow), 0 0 60px rgba(255, 98, 98, .12), inset 0 0 0 1px rgba(255, 98, 98, .25), inset 3px 0 0 var(--bad); }
.overlay.ok { box-shadow: var(--shadow), 0 0 60px rgba(79, 211, 156, .10), inset 0 0 0 1px rgba(79, 211, 156, .22), inset 3px 0 0 var(--ok); }
.overlay .eyebrow { font: 600 11px var(--mono); letter-spacing: 1.6px; color: var(--steel); text-transform: uppercase; }
.overlay.bad .eyebrow { color: var(--bad); } .overlay.ok .eyebrow { color: var(--ok); }
.overlay h2 { font: 500 30px/1.18 var(--display); margin: 10px 0 14px; color: var(--ink); letter-spacing: -.4px; }
.overlay ul { list-style: none; display: grid; gap: 9px; }
.overlay li { font-size: 15px; color: var(--ink-2); padding-left: 16px; position: relative; }
.overlay li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.overlay li b { color: var(--ink); font-weight: 600; }
.overlay li em { font-style: normal; font: 12px var(--mono); color: var(--muted); margin-left: 4px; }
.overlay li .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.overlay li a { color: var(--steel) !important; text-underline-offset: 3px; }
.overlay li.audit button { margin-top: 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--steel); }
.tts { display: flex; align-items: baseline; gap: 16px; margin: 0 0 14px; }
.tts .n { font: 500 62px/1 var(--display); color: var(--ok); letter-spacing: -1.5px; text-shadow: 0 0 30px rgba(79, 211, 156, .35); }
.tts .n small { font-size: 24px; margin-left: 2px; }
.tts .l { font-size: 13px; color: var(--muted); max-width: 230px; }
.ping { position: absolute; left: 56px; top: 56px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bad); animation: ping 1.6s ease-out forwards; pointer-events: none; z-index: 3; }
@keyframes ping { to { transform: scale(60); opacity: 0; } }
.target { position: relative; max-width: 360px; padding: 20px 22px; border: 1px dashed rgba(141, 180, 226, .45); border-radius: 14px; background: var(--glass-hi); backdrop-filter: var(--blur); margin-top: 8px; }
.target .tag { position: absolute; top: -10px; left: 14px; padding: 1px 8px; border-radius: 5px; background: #1a1e25; font: 600 10.5px var(--mono); letter-spacing: 1px; color: var(--steel); }
.target .name { font: 500 17px/1.35 var(--display); }
.target .meta { margin-top: 12px; display: grid; gap: 6px; font: 12.5px var(--mono); color: var(--muted); }
.target .meta b { color: var(--ink); font-weight: 500; }
.target.bad { border-color: rgba(255, 98, 98, .6); box-shadow: 0 0 40px rgba(255, 98, 98, .08); } .target.bad .tag { color: var(--bad); }
.target.ok { border-color: rgba(79, 211, 156, .6); box-shadow: 0 0 40px rgba(79, 211, 156, .08); } .target.ok .tag { color: var(--ok); }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stagebox { padding: 14px 16px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 2px 0 var(--line-2), inset 0 0 0 1px var(--line); color: var(--muted); transition: var(--t); }
.stagebox .k { font: 600 11px var(--mono); letter-spacing: 1.5px; }
.stagebox .v { margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.stagebox.active { color: var(--steel); background: var(--steel-soft); box-shadow: inset 0 2px 0 var(--steel), inset 0 0 0 1px rgba(141, 180, 226, .25), 0 0 30px rgba(141, 180, 226, .12); }
.stagebox.active .v { color: var(--ink-2); }
.stagebox.done { color: var(--ink-2); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px var(--line); }
.stagebox.bad { color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 2px 0 var(--bad), inset 0 0 0 1px rgba(255, 98, 98, .25); }
.feed { height: 100%; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 8px; font: 12.5px/1.5 var(--mono); color: var(--muted); padding: 16px 18px; border-radius: 16px; background: var(--glass); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line); }
.feed::before { content: 'TELEMETRY'; font: 600 10.5px var(--mono); letter-spacing: 1.8px; color: var(--faint); margin-bottom: 4px; }
.feed div { display: flex; gap: 10px; animation: feedIn .35s ease-out; } .feed time { color: var(--muted); opacity: .7; flex: none; width: 44px; }
@keyframes feedIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.feed span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .ok { color: var(--ink-2); } .feed .warn { color: var(--warn); } .feed .bad, .feed .blocked { color: var(--bad); } .feed .running { color: var(--steel); }
.feed div:nth-child(n+14) { opacity: .4; }
.carousel { justify-self: center; display: flex; align-items: center; gap: 10px; }
.carousel .arrow { width: 42px; height: 42px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 18px; transition: var(--t); }
.carousel .arrow:hover { background: var(--s3); }
.dots { display: flex; gap: 10px; height: 42px; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); transition: var(--t); }
.dots button.on { background: var(--ink); transform: scale(1.3); box-shadow: 0 0 10px rgba(255, 255, 255, .4); } .dots button.bad { background: var(--bad); }
.chatbtn { position: absolute; right: 30px; bottom: 28px; width: 44px; height: 44px; border-radius: 12px; background: var(--cta); color: var(--cta-ink); display: grid; place-items: center; z-index: 6; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: var(--t); }
.chatbtn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 4px var(--steel-soft); }

/* ---------- graph view (3D web) ---------- */
.view.graph { background: radial-gradient(900px 600px at 50% 45%, rgba(110, 136, 172, .16), transparent 70%); }
#graph { position: absolute; inset: 0; }
#graph canvas { outline: none; }
.glabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glabels span { position: absolute; transform: translate(-50%, 0); white-space: nowrap; font: 500 12px var(--text); color: var(--ink-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); transition: opacity .2s; }
.glabels span.k-user { font: 700 14px var(--display); color: #fff; letter-spacing: .3px; }
.glabels span.k-recall { color: #ff8f8f; font-weight: 600; } .glabels span.k-src { color: var(--steel); font: 600 11px var(--mono); letter-spacing: .4px; }
.glabels span.k-buy { color: #7fe3b9; } .glabels span.k-claim { color: #a9c7ec; }
.legend { position: absolute; left: 28px; top: 28px; width: 270px; padding: 18px 20px; border-radius: 16px; background: var(--glass); backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: grid; gap: 10px; z-index: 2; }
.legend h3 { font: 500 20px var(--display); } .legend p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.legend .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.legend .keys button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 3px 6px; margin: -3px -6px; border-radius: 6px; transition: var(--t); }
.legend .keys button:hover { background: var(--s2); }
.legend .keys button.off { opacity: .35; text-decoration: line-through; }
.legend .keys i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.gstats { position: absolute; right: 28px; top: 28px; display: flex; gap: 10px; z-index: 2; }
.gstats div { padding: 12px 16px; border-radius: 14px; background: var(--glass); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; color: var(--muted); min-width: 86px; }
.gstats b { display: block; font: 500 24px/1.15 var(--display); color: var(--ink); }
.gcard { position: absolute; right: 28px; bottom: 96px; width: 340px; padding: 20px 22px; border-radius: 16px; background: var(--glass-hi); backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); display: grid; gap: 8px; z-index: 2; animation: viewIn .3s ease-out; }
.gcard .k { font: 600 10.5px var(--mono); letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.gcard h4 { font: 500 19px/1.3 var(--display); } .gcard p { font-size: 13px; color: var(--ink-2); }
.gcard .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gtools { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); z-index: 2; }
.gtools button { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: var(--t); white-space: nowrap; }
.gtools button:hover { background: var(--s3); color: var(--ink); }
.gtools button.on { background: var(--s4); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.gtools .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.gtools label { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 12px; color: var(--muted); }
.gtools input[type=range] { -webkit-appearance: none; appearance: none; width: 120px; height: 4px; border-radius: 4px; background: var(--s4); outline: none; }
.gtools input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--steel-soft), 0 0 14px var(--glow); cursor: grab; }


/* ---------- content pages ---------- */
.view.page { overflow-y: auto; padding: 36px 44px 60px; }
.pg { max-width: 1000px; display: grid; gap: 20px; }
.pg-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 4px; }
.pg-head h2 { font: 500 36px/1.1 var(--display); letter-spacing: -.6px; } .pg-head p { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 640px; }
.pg-card { padding: 22px 24px; border-radius: 16px; background: var(--glass); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line), 0 14px 40px rgba(0, 0, 0, .22); display: grid; gap: 12px; transition: transform var(--t), box-shadow var(--t), background var(--t); }
button.pg-card:hover, .pg-grid .pg-card:hover { transform: translateY(-2px); background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 50px rgba(0, 0, 0, .35); }
.pg-card.bad { box-shadow: inset 0 0 0 1px rgba(255, 98, 98, .28), inset 3px 0 0 var(--bad), 0 14px 40px rgba(0, 0, 0, .22); }
.pg-card.ok { box-shadow: inset 0 0 0 1px rgba(79, 211, 156, .24), inset 3px 0 0 var(--ok), 0 14px 40px rgba(0, 0, 0, .22); }
.pg-card h3 { font: 500 19px/1.35 var(--display); } .pg-card .meta { font: 12.5px var(--mono); color: var(--muted); letter-spacing: .3px; }
.pg-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.pg-card p b { color: var(--ink); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 15px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; color: var(--ink-2); text-decoration: none; transition: var(--t); }
a.chip:hover { background: var(--s3); color: var(--ink); }
.chip.mem { box-shadow: inset 0 0 0 1px rgba(141, 180, 226, .45); color: var(--steel); background: var(--steel-soft); }
.btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; background: var(--cta); color: var(--cta-ink); transition: var(--t); text-decoration: none; }
.btn:hover { box-shadow: 0 0 0 4px var(--steel-soft); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--s2); box-shadow: inset 0 0 0 1px var(--s4); }
.tl { display: grid; border-left: 1px solid var(--line-2); margin-left: 6px; }
.tl .it { position: relative; padding: 0 0 16px 22px; font-size: 14px; color: var(--ink); }
.tl .it::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--bg-2), 0 0 10px rgba(79, 211, 156, .5); }
.tl .it.warn::before { background: var(--warn); } .tl .it.bad::before, .tl .it.fail::before, .tl .it.blocked::before { background: var(--bad); box-shadow: 0 0 0 4px var(--bg-2), 0 0 10px rgba(255, 98, 98, .5); } .tl .it.running::before { background: var(--steel); }
.tl .it .m { font: 11.5px var(--mono); color: var(--muted); margin-top: 2px; }
.form { display: flex; gap: 10px; }
.form input { height: 40px; flex: 1; padding: 0 14px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--s1); color: var(--ink); font: inherit; outline: none; transition: var(--t); }
.form input::placeholder { color: var(--faint); }
.form input:focus { box-shadow: inset 0 0 0 1px var(--steel), 0 0 0 4px var(--steel-soft); }

/* ---------- panel: configurator ---------- */
.title h1 { font: 500 42px/1.08 var(--display); letter-spacing: -.8px; }
.title p { margin-top: 8px; color: var(--ink-2); }
.title p u { text-decoration-color: var(--faint); text-underline-offset: 4px; }
.tabs { display: flex; border-bottom: 1px solid var(--line-2); }
.tabs button { flex: 1; padding: 12px 0; font-weight: 500; color: var(--muted); position: relative; transition: var(--t); }
.tabs button:hover { color: var(--ink-2); }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 12px rgba(255, 255, 255, .5); }
.card { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 20px 18px; display: grid; gap: 16px; }
.trio { display: flex; justify-content: space-between; padding: 0 6px 6px; }
.trio .n { font: 400 34px/1.1 var(--display); letter-spacing: -.6px; }
.trio .l { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.rows { display: grid; gap: 10px; }
.row { min-height: 60px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--row); text-align: left; transition: var(--t); }
.row:hover { background: var(--s2); transform: translateX(2px); }
.row.sel { background: var(--s3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.row.recalled { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(255, 98, 98, .4), inset 3px 0 0 var(--bad); }
.row .txt { min-width: 0; } .row .name { font-weight: 500; color: var(--ink); line-height: 1.35; }
.row:not(.sel):not(.recalled) .name { color: var(--ink-2); }
.row .sub { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .price { font-weight: 500; white-space: nowrap; } .row .price s { color: var(--faint); font-weight: 400; margin-right: 8px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font: 600 11px var(--mono); letter-spacing: .7px; text-transform: uppercase; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.ok { color: var(--ok); } .badge.bad { color: var(--bad); } .badge.warn { color: var(--warn); } .badge.idle { color: var(--muted); } .badge.steel { color: var(--steel); }
.linkrow { min-height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; width: 100%; transition: var(--t); }
.linkrow:hover { background: var(--s2); }
.linkrow .sub { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.policy .item { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.policy .item:last-child { border-bottom: 0; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--s4); transition: var(--t); flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d5dae1; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: var(--t); }
.switch.on { background: var(--ok); box-shadow: 0 0 16px rgba(79, 211, 156, .35); } .switch.on::after { left: 23px; background: #fff; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.65; } .fine b { color: var(--ink-2); font-weight: 500; }
.empty { padding: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.section-label { font-size: 12.5px; color: var(--muted); }
.dock { position: sticky; bottom: 0; margin: auto -30px 0; padding: 16px 30px 20px; background: rgba(14, 16, 20, .92); backdrop-filter: var(--blur); border-top: 1px solid var(--line); display: grid; gap: 12px; z-index: 2; }
.cta { height: 52px; width: 100%; border-radius: 14px; background: var(--cta); color: var(--cta-ink); font-weight: 600; font-size: 15.5px; letter-spacing: .2px; transition: var(--t); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.cta:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 5px var(--steel-soft); }
.cta.on { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok), 0 0 30px rgba(79, 211, 156, .2); }
.demo-head { display: flex; justify-content: space-between; align-items: center; }
.demo-head a { font-size: 12.5px; color: var(--ink-2); text-underline-offset: 3px; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo button { height: 40px; padding: 0 12px; border-radius: 10px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: var(--t); }
.demo button:hover { background: var(--s3); color: var(--ink); }

/* ---------- audit sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(4, 5, 7, .55); backdrop-filter: blur(3px); display: none; z-index: 10; }
.sheet-bg.open { display: block; animation: viewIn .25s ease-out; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: #11141a; box-shadow: -30px 0 80px rgba(0, 0, 0, .55), inset 1px 0 0 var(--line-2); z-index: 11; transform: translateX(100%); transition: transform .36s cubic-bezier(.2, .7, .2, 1); overflow-y: auto; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.sheet.open { transform: none; }
.sheet > * { flex-shrink: 0; }
.sheet header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.sheet h3 { font: 500 26px/1.2 var(--display); } .sheet .x { font-size: 24px; color: var(--muted); width: 36px; height: 36px; border-radius: 10px; } .sheet .x:hover { background: var(--s2); color: var(--ink); }
.sheet h4 { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.sheet .card { background: var(--s1); }
.steps { display: grid; border-left: 1px solid var(--line-2); margin-left: 6px; }
.step { position: relative; padding: 0 0 16px 22px; }
.step::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #11141a; }
.step.warn::before { background: var(--warn); } .step.blocked::before, .step.error::before { background: var(--bad); }
.step .t { font-weight: 500; } .step .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; word-break: break-word; }
.step .m { font: 11.5px var(--mono); color: var(--muted); margin-top: 4px; }
.claim { padding: 14px 16px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.claim .src { font-size: 12.5px; color: var(--muted); } .claim .src a { color: var(--steel); }

/* ---------- chat drawer ---------- */
.chat { position: absolute; right: 30px; bottom: 84px; width: 390px; max-height: 480px; background: #14171d; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px rgba(0, 0, 0, .55); display: none; flex-direction: column; z-index: 7; }
.chat.open { display: flex; animation: viewIn .25s ease-out; }
.chat .log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; font-size: 14px; }
.chat .me { justify-self: end; background: var(--cta); color: var(--cta-ink); padding: 9px 13px; border-radius: 14px 14px 3px 14px; max-width: 85%; }
.chat .ai { white-space: pre-wrap; max-width: 92%; background: var(--s2); padding: 9px 13px; border-radius: 14px 14px 14px 3px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.chat .quick { display: flex; gap: 6px; padding: 0 16px 12px; flex-wrap: wrap; }
.chat .quick button { height: 28px; padding: 0 11px; border-radius: 14px; font-size: 12.5px; background: var(--s2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: var(--t); }
.chat .quick button:hover { background: var(--s3); color: var(--ink); }
.chat form { display: flex; border-top: 1px solid var(--line); }
.chat input { flex: 1; border: 0; padding: 14px 16px; font: inherit; outline: none; background: transparent; color: var(--ink); }
.chat input::placeholder { color: var(--faint); }
.chat form button { padding: 0 16px; font-weight: 600; color: var(--steel); }

/* ---------- refunds ---------- */
.pg-card.flush { padding: 0; display: block; overflow: hidden; }
.rf-list { list-style: none; }
.rf-list li + li { border-top: 1px solid var(--line); }
.rf-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; text-align: left; transition: background .18s; }
.rf-row:hover, .rf-row:focus-visible { background: var(--s2); outline: none; }
.rf-main { display: flex; gap: 14px; min-width: 0; align-items: flex-start; }
.rf-ic { flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.rf-txt { min-width: 0; }
.rf-txt b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-txt small { display: block; margin-top: 3px; font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-tags { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.rf-empty { padding: 20px 24px; color: var(--muted); }
.tag { font: 600 10.5px var(--mono); letter-spacing: .7px; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; background: var(--s3); color: var(--ink-2); white-space: nowrap; }
.tag.live { background: var(--steel-soft); color: var(--steel); }
.fine-note { font-size: 12.5px; color: var(--muted); }
.email { border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.email dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; padding: 12px 16px; font-size: 12.5px; background: var(--s2); border-bottom: 1px solid var(--line); }
.email dt { color: var(--muted); }
.email .body { padding: 16px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 1440px) {
  .panel { width: 410px; min-width: 380px; padding: 24px 24px 0; gap: 20px; }
  .dock { margin: auto -24px 0; padding: 14px 24px 18px; }
  .view.sensor { grid-template-columns: minmax(0, 1fr) 290px; padding: 24px; gap: 18px; }
  .title h1 { font-size: 36px; }
  .pages button { padding: 0 11px; font-size: 13px; }
  .sponsors { display: none; }
  .view.page { padding: 30px 32px 50px; }
}

/* ================= v2 polish: hierarchy, icons, highlight ================= */
.ic { flex: none; display: inline-block; vertical-align: -3px; }
body { letter-spacing: -.005em; }
.brand { font-weight: 600; letter-spacing: 7px; }
.pages button { display: inline-flex; align-items: center; gap: 7px; }
.pages button .ic { opacity: .75; }
.pages button.on { color: #fff; background: linear-gradient(180deg, rgba(110, 168, 255, .24), rgba(110, 168, 255, .10)); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 26px rgba(110, 168, 255, .18); }
.pages button.on .ic { color: var(--accent); opacity: 1; }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tabs button.on::after { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.tabs button.on .ic { color: var(--accent); }
/* badges become readable pills instead of tiny uppercase mono */
.badge { font: 600 12px/1 var(--text); letter-spacing: .1px; text-transform: none; padding: 5px 10px 5px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); white-space: nowrap; }
.badge::before { width: 6px; height: 6px; }
.row .sub .badge, .row .badge { padding: 3px 8px 3px 7px; font-size: 11px; }
.tag { font: 600 11px/1 var(--text); letter-spacing: .1px; text-transform: none; padding: 5px 9px; border-radius: 999px; }
.overlay .eyebrow { font: 600 12.5px var(--text); letter-spacing: .3px; text-transform: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.overlay.bad .eyebrow { background: var(--bad-soft); } .overlay.ok .eyebrow { background: var(--ok-soft); }
.overlay h2 { font: 600 32px/1.15 var(--display); letter-spacing: -.8px; margin: 14px 0 16px; }
.overlay { box-shadow: var(--shadow), inset 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); }
.feed::before { content: 'Live telemetry'; font: 600 12px var(--text); letter-spacing: .2px; color: var(--ink-2); text-transform: none; }
.feed { font-size: 12px; }
.target .tag { background: #161a20; font: 600 11px var(--text); letter-spacing: .3px; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.stagebox .k { display: flex; align-items: center; gap: 8px; font: 600 14px var(--text); letter-spacing: 0; color: var(--ink-2); }
.stagebox .k b { font: 500 11px var(--mono); color: var(--faint); }
.stagebox .v { font-size: 12.5px; }
.stagebox.active .k, .stagebox.active .k .ic { color: var(--accent); }
.stagebox.active { background: var(--accent-soft); box-shadow: inset 0 2px 0 var(--accent), inset 0 0 0 1px var(--accent-line), 0 0 34px rgba(110, 168, 255, .16); }
.stagebox.done .k .ic { color: var(--ok); }
.stagebox.bad .k, .stagebox.bad .k .ic { color: var(--bad); }
.title h1 { font: 600 40px/1.05 var(--display); letter-spacing: -1.2px; }
.trio .n { font: 500 34px/1.1 var(--display); letter-spacing: -1px; }
.card { gap: 18px; }
.row { gap: 16px; }
.row .name { font-weight: 550; }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 15.5px var(--text); }
.cta::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v10'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.77.04'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v10'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.77.04'/%3E%3C/svg%3E") center / contain no-repeat; }
.demo button { display: flex; align-items: center; gap: 9px; text-align: left; padding: 0 10px 0 12px; }
.demo button span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo button .ic { color: var(--muted); } .demo button:hover .ic { color: var(--accent); }
.demo button kbd { font: 500 11px var(--mono); color: var(--faint); padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); }
.demo button:last-child { grid-column: 1 / -1; }
.demo-head .section-label { font-weight: 500; color: var(--ink-2); }
/* pages: icon tile headers, more air, hover highlight */
.pg { gap: 22px; }
.pg-head { align-items: center; }
.pg-head > div { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.pg-head > div > p { grid-column: 2; margin-top: 4px; }
.pg-ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: linear-gradient(160deg, rgba(110, 168, 255, .22), rgba(110, 168, 255, .06)); box-shadow: inset 0 0 0 1px var(--accent-line), 0 10px 30px rgba(110, 168, 255, .12); }
.pg-head h2 { font: 600 34px/1.1 var(--display); letter-spacing: -1px; }
.pg-card { padding: 24px 26px; gap: 14px; }
.pg-card h3 { font: 600 18.5px/1.35 var(--display); letter-spacing: -.3px; }
.pg-card .meta { font: 12.5px var(--mono); }
button.pg-card:hover, .pg-grid .pg-card:hover, .rf-row:hover { box-shadow: inset 0 0 0 1px var(--accent-line), 0 22px 50px rgba(0, 0, 0, .35), 0 0 30px rgba(110, 168, 255, .08); }
.sec { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 600 13px var(--text); color: var(--ink-2); letter-spacing: .2px; }
.sec::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.btn { gap: 8px; } .btn:hover { box-shadow: 0 0 0 4px var(--accent-soft); }
.form input:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
/* graph: readable label pills, search, icon toolbar */
.glabels span { padding: 4px 9px; border-radius: 8px; font: 500 12.5px var(--text); color: var(--ink); background: rgba(12, 14, 18, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); text-shadow: none; transform: translate(-50%, 0); }
.glabels span.k-user { font: 700 14px var(--display); color: #fff; background: rgba(110, 168, 255, .22); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 22px rgba(110, 168, 255, .25); }
.glabels span.k-recall { color: #ffb3b3; box-shadow: inset 0 0 0 1px rgba(255, 98, 98, .45); font-weight: 600; }
.glabels span.k-src { color: #ffd38f; font: 600 11.5px var(--text); box-shadow: inset 0 0 0 1px rgba(242, 181, 82, .35); }
.glabels span.k-buy { color: #8ef0c4; box-shadow: inset 0 0 0 1px rgba(79, 211, 156, .4); }
.glabels span.k-claim { color: #bcd6f5; }
.glabels span.sel { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 20px rgba(110, 168, 255, .35); z-index: 2; }
.legend { width: 300px; gap: 12px; }
.legend h3 { display: flex; align-items: center; gap: 9px; font: 600 19px var(--display); letter-spacing: -.3px; } .legend h3 .ic { color: var(--accent); }
.gsearch { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-radius: 11px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); transition: var(--t); }
.gsearch:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); color: var(--accent); }
.gsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 13px var(--text); }
.gsearch input::placeholder { color: var(--faint); }
.gtools button { display: inline-flex; align-items: center; gap: 7px; }
.gtools button.on { background: var(--accent-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--accent-line); }
.gtools button.on .ic { color: var(--accent); }
.gstats b { font: 600 24px/1.15 var(--display); letter-spacing: -.5px; }
.gcard h4 { font: 600 19px/1.3 var(--display); letter-spacing: -.3px; }
.chatbtn { background: var(--accent); color: #0b1220; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 26px rgba(110, 168, 255, .35); }
@media (max-width: 1440px) {
  .brand span { display: none; }
  .pages button { padding: 0 10px; gap: 6px; font-size: 13px; }
  .top { padding: 0 20px; gap: 16px; }
}
@media (max-width: 1280px) { .pages button .ic { display: none; } }

/* ================= compact: window under half the screen → chat only ================= */
body.compact .pages, body.compact .sponsors, body.compact .panel, body.compact .stage > .view, body.compact .chatbtn { display: none !important; }
body.compact .top { grid-template-columns: 1fr auto; padding: 0 16px; height: 56px; }
body.compact .brand span { display: none; }
body.compact .studio { height: calc(100vh - 56px); }
body.compact .stage { background: radial-gradient(600px 400px at 50% 0%, rgba(110, 168, 255, .12), transparent 70%); }
body.compact .chat { display: flex !important; position: absolute; inset: 12px; width: auto; max-height: none; border-radius: 18px; animation: none; }
body.compact .chat .log { padding: 18px; font-size: 14.5px; }
body.compact .chat .quick { padding: 0 18px 12px; }
body.compact .chat input { padding: 16px 18px; font-size: 15px; }
.gtools { left: 30px; transform: none; }

/* ================= v3: calm landing (pipeline map), sliding chat, toggle, ripples ================= */
/* header: no overlap, labels collapse to icons when tight */
.top { grid-template-columns: auto minmax(0, 1fr) auto; }
.pages { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .pages::-webkit-scrollbar { display: none; }
.status { cursor: pointer; gap: 10px; transition: var(--t); }
.status:hover { box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 4px var(--accent-soft); }
.mini-sw { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--s4); transition: var(--t); flex: none; }
.mini-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #cfd5dd; transition: var(--t); }
.status[data-auto="true"] .mini-sw { background: var(--ok); box-shadow: 0 0 12px rgba(79, 211, 156, .45); }
.status[data-auto="true"] .mini-sw::after { left: 15px; background: #fff; }
@media (max-width: 1700px) { .brand span { display: none; } }
@media (max-width: 1500px) { .pages button:not(.on) { font-size: 0; gap: 0; padding: 0 12px; } }

/* landing: hero line + pipeline map + drawer */
.view.home { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 7vh 48px 26px; overflow-y: auto;
  background: radial-gradient(900px 480px at 50% 30%, rgba(110, 168, 255, .09), transparent 70%), radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: auto, 28px 28px; }
.hero { width: min(820px, 100%); text-align: center; }
.hero .overlay { background: none; box-shadow: none; backdrop-filter: none; padding: 0; max-width: none; }
.hero .overlay .eyebrow { margin: 0 auto; }
.hero .overlay h2 { font: 600 36px/1.15 var(--display); letter-spacing: -1px; margin: 16px 0 12px; animation: viewIn .45s ease-out; }
.hero .overlay ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.hero .overlay li { padding-left: 0; font-size: 14.5px; color: var(--muted); }
.hero .overlay li::before { display: none; }
.hero .overlay li .clamp { -webkit-line-clamp: 1; max-width: 520px; }
.hero .overlay li.audit button { border-bottom-color: var(--accent); }
.hero .tts { justify-content: center; }
.flowmap { width: min(1120px, 100%); display: flex; align-items: center; margin-top: 2vh; }
.fnode { flex: none; width: 138px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 10px 16px; border-radius: 20px; text-align: center;
  background: var(--glass); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, .25); transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s, background .28s; }
.fnode:hover { transform: translateY(-4px); background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--accent-line), 0 22px 46px rgba(0, 0, 0, .4); }
.fnode .fic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); transition: all .35s; }
.fnode.ends .fic { border-radius: 17px; }
.fnode b { font: 600 15px var(--display); letter-spacing: -.2px; color: var(--ink); }
.fnode small { font-size: 12px; line-height: 1.35; color: var(--muted); min-height: 32px; }
.fnode small.tick { animation: tick .5s ease-out; }
@keyframes tick { 0% { color: var(--accent); transform: translateY(-2px); } 100% { color: var(--muted); transform: none; } }
.fnode.stagebox { padding: 20px 10px 16px; color: inherit; }
.fnode.active { background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 44px rgba(110, 168, 255, .18); transform: translateY(-4px) scale(1.03); }
.fnode.active .fic { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 30px rgba(110, 168, 255, .5); animation: nodePulse 1.1s ease-in-out infinite; }
.fnode.done { background: var(--glass); box-shadow: inset 0 0 0 1px rgba(79, 211, 156, .25), 0 14px 34px rgba(0, 0, 0, .25); }
.fnode.done .fic { color: var(--ok); background: var(--ok-soft); box-shadow: inset 0 0 0 1.5px rgba(79, 211, 156, .6); }
.fnode.bad { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(255, 98, 98, .45), 0 0 44px rgba(255, 98, 98, .15); animation: shake .45s; }
.fnode.bad .fic { color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 0 0 1.5px var(--bad), 0 0 30px rgba(255, 98, 98, .45); }
.fnode.sel { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 40px rgba(110, 168, 255, .22); background: var(--glass-hi); }
.fline { flex: 1; min-width: 16px; height: 2px; position: relative; overflow: hidden; border-radius: 2px; background: var(--line-2); transition: background .4s; }
.fline::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: translateX(-110%); animation: streak 2.6s linear infinite; opacity: .35; }
.stage.armed .fline::after { opacity: .75; } .stage.scanning .fline::after { opacity: 1; animation-duration: .85s; }
.fnode.done + .fline { background: rgba(79, 211, 156, .45); } .fnode.bad + .fline { background: rgba(255, 98, 98, .55); }
@keyframes streak { to { transform: translateX(330%); } }
@keyframes nodePulse { 50% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 10px rgba(110, 168, 255, 0), 0 0 46px rgba(110, 168, 255, .7); } }
@keyframes shake { 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.fhint { font-size: 13px; color: var(--faint); margin-top: -4px; }
.fdetail { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; padding: 24px; border-radius: 20px;
  background: var(--glass); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.fdetail.in { animation: drawerIn .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-12px) scale(.985); } to { opacity: 1; transform: none; } }
.fd-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
#fdBody { display: grid; gap: 14px; }
#fdBody h3 { display: flex; align-items: center; gap: 10px; font: 600 21px var(--display); letter-spacing: -.4px; } #fdBody h3 .ic { color: var(--accent); }
#fdBody p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
#fdBody blockquote { padding: 12px 16px; border-radius: 12px; background: var(--s1); box-shadow: inset 3px 0 0 var(--accent); color: var(--ink-2); font-size: 14px; }
.fd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.fd-stats div { padding: 12px 14px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.fd-stats b { font: 600 24px var(--display); letter-spacing: -.5px; } .fd-stats b.ok { color: var(--ok); } .fd-stats b.bad { color: var(--bad); } .fd-stats b.warn { color: var(--warn); }
.fd-stats span { font-size: 12px; color: var(--muted); }
.fd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fd-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.fd-row span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-act { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-log .feed { height: auto; max-height: 320px; background: var(--s1); backdrop-filter: none; }
.fdetail:not([data-f="perceive"]):not([data-f="act"]) .target { display: none !important; }
.fdetail .target { max-width: none; margin-top: 4px; }
.view.home .carousel { margin-top: -6px; }
.powered { margin-top: auto; font-size: 12px; color: var(--faint); text-align: center; max-width: 900px; }

/* panel: calmer, demo controls fold away */
.panel { transition: width .45s cubic-bezier(.2, .7, .2, 1), min-width .45s cubic-bezier(.2, .7, .2, 1), padding .45s, opacity .3s; }
.demo-box { border-radius: 12px; }
.demo-box summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px; cursor: pointer; list-style: none; color: var(--ink-2); font-weight: 500; font-size: 13.5px; border-radius: 10px; }
.demo-box summary::-webkit-details-marker { display: none; }
.demo-box summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; } .demo-box summary .ic { color: var(--accent); }
.demo-box summary .keys { font: 11px var(--mono); color: var(--faint); }
.demo-box summary:hover { color: var(--ink); background: var(--s1); }
.demo-in { display: grid; gap: 12px; padding-top: 4px; animation: drawerIn .3s ease-out; }
.demo-in .demo-head { display: flex; justify-content: space-between; align-items: center; } .demo-in .fine { font-size: 11.5px; }

/* chat: a column that slides in; the panel steps aside so nothing overlaps */
.chat { position: relative; left: auto; right: auto; bottom: auto; inset: auto; flex: none; width: 0; max-height: none; display: block; overflow: hidden; border-radius: 0;
  background: rgba(15, 17, 22, .94); box-shadow: inset 1px 0 0 var(--line-2); z-index: 3; transition: width .45s cubic-bezier(.2, .7, .2, 1); animation: none; }
.chat.open { display: block; width: 420px; animation: none; }
.chat-in { width: 420px; height: 100%; display: flex; flex-direction: column; }
.chat-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); font: 600 15px var(--display); }
.chat-h span { display: inline-flex; align-items: center; gap: 9px; } .chat-h .ic { color: var(--accent); }
.chat-h button { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); } .chat-h button:hover { background: var(--s2); color: var(--ink); }
.chat .log { flex: 1; min-height: 0; align-content: start; }
.chat .me, .chat .ai { animation: msgIn .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.studio.chat-open .panel { width: 0; min-width: 0; padding-left: 0; padding-right: 0; opacity: 0; overflow: hidden; border-left: 0; }
.studio.chat-open .chatbtn { background: var(--s4); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* compact (window under half the screen): chat only, autopilot toggle stays in the header */
body.compact .stage { display: none !important; }
body.compact .chat, body.compact .chat.open { position: relative; inset: auto; flex: 1; width: auto !important; border-radius: 0; box-shadow: none; }
body.compact .chat-in { width: 100%; }
body.compact #chatClose { display: none; }
body.compact .chat-h { padding: 14px 18px 12px; }
body.compact .status { height: 34px; }

/* click ripple */
.rippling { overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .26) 0%, rgba(110, 168, 255, .12) 40%, rgba(255, 255, 255, 0) 65%); transform: scale(0); animation: rip .65s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.demo-box summary > span { white-space: nowrap; }
.fnode { width: 146px; }

/* ================= v4 de-slop: flat surfaces, hairline borders, no glow/glass/gradients, quiet status ================= */
:root {
  --bg: #0b0c0e; --bg-2: #0b0c0e;
  --s1: #121417; --s2: #16181c; --s3: #1b1e22; --s4: #24272c;
  --glass: #121417; --glass-hi: #15171b;
  --line: #1f2226; --line-2: #2a2d33; --row: #23262b;
  --shadow: none; --blur: none;
}
body { background: var(--bg); }
*, *::before, *::after { backdrop-filter: none !important; text-shadow: none !important; }
.top { background: var(--bg); border-bottom-color: var(--line); }
.pages { background: transparent; box-shadow: none; padding: 0; }
.pages button { border-radius: 6px; }
.pages button.on { background: var(--s3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pages button.on .ic { color: var(--ink); }
.pages button .ct { box-shadow: none; }
.status { background: transparent; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.status:hover { box-shadow: inset 0 0 0 1px #3a3e45; }
.status[data-auto="true"] .mini-sw { box-shadow: none; }
.panel { background: var(--bg); border-left-color: var(--line); }
.dock { background: var(--bg); }
/* radii + borders instead of shadows */
.card, .row, .linkrow, .pg-card, .fnode, .fdetail, .fd-stats div, .legend, .gstats div, .gcard, .gtools, .email, .claim, .feed, .target, .demo button, .btn, .cta, .chatbtn, .form input, .gsearch, .chat .ai, .chat .me, .dots, .carousel .arrow, #fdBody blockquote, .fd-log .feed { border-radius: 8px; }
.card, .pg-card, .fnode, .fdetail, .legend, .gstats div, .gcard, .gtools, .feed, .fd-stats div { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.row, .linkrow { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.row:hover, .linkrow:hover { background: var(--s2); transform: none; }
.row.sel { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.row.recalled { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2), inset 2px 0 0 var(--bad); }
button.pg-card:hover, .pg-grid .pg-card:hover, .rf-row:hover { transform: none; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pg-card.bad { box-shadow: inset 0 0 0 1px var(--line), inset 2px 0 0 var(--bad); }
.pg-card.ok { box-shadow: inset 0 0 0 1px var(--line), inset 2px 0 0 var(--ok); }
/* status: quiet coloured text + small dot, no pills */
.badge { background: none; box-shadow: none; padding: 0; font: 500 12.5px/1.2 var(--text); letter-spacing: 0; }
.badge::before { width: 6px; height: 6px; box-shadow: none; }
.row .sub .badge, .row .badge { padding: 0; font-size: 12px; }
.tag { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 4px; color: var(--muted); font: 500 11.5px/1 var(--text); padding: 4px 6px; }
.tag.live { background: transparent; color: var(--ink-2); }
.chip, .chip.mem { border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
/* headings: no icon tiles, no eyebrow pills */
.pg-ic { display: none; }
.pg-head > div { display: block; }
.pg-head h2 { font-size: 28px; letter-spacing: -.6px; }
.overlay .eyebrow, .overlay.bad .eyebrow, .overlay.ok .eyebrow { background: none; padding: 0; border-radius: 0; font: 500 13px var(--text); color: var(--muted); }
.overlay.bad .eyebrow { color: var(--bad); } .overlay.ok .eyebrow { color: var(--ok); }
.overlay, .overlay.bad, .overlay.ok { box-shadow: none; }
.tts .n { text-shadow: none; }
/* landing: left-aligned, flat, a real stepper instead of icon-circle cards */
.view.home { background: var(--bg); align-items: stretch; padding: 48px 56px 28px; gap: 28px; }
.hero { width: 100%; max-width: 1120px; text-align: left; }
.hero .overlay .eyebrow { margin: 0; }
.hero .overlay h2 { font: 600 30px/1.2 var(--display); letter-spacing: -.7px; margin: 8px 0 10px; animation: none; }
.hero .overlay ul { justify-content: flex-start; }
.hero .tts { justify-content: flex-start; }
.flowmap { max-width: 1120px; margin-top: 8px; gap: 0; }
.fnode { flex: 1 1 0; width: auto; min-width: 0; align-items: flex-start; text-align: left; gap: 6px; padding: 14px 16px; transform: none !important; animation: none !important; }
.fnode:hover { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.fnode .fic, .fnode.active .fic, .fnode.done .fic, .fnode.bad .fic, .fnode.ends .fic { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; animation: none; color: var(--muted); }
.fnode b { font: 600 14px var(--display); }
.fnode small { min-height: 0; font-size: 12.5px; }
.fnode.active { background: var(--s2); box-shadow: inset 0 0 0 1px var(--accent); }
.fnode.active .fic, .fnode.active b { color: var(--accent); }
.fnode.done { box-shadow: inset 0 0 0 1px var(--line); } .fnode.done .fic { color: var(--ok); }
.fnode.bad { background: var(--s1); box-shadow: inset 0 0 0 1px var(--bad); } .fnode.bad .fic, .fnode.bad b { color: var(--bad); }
.fnode.sel { background: var(--s2); box-shadow: inset 0 0 0 1px #4a4f57; }
.fline { flex: 0 0 18px; min-width: 18px; height: 1px; background: var(--line-2); }
.fline::after { opacity: 0; } .stage.armed .fline::after { opacity: .5; } .stage.scanning .fline::after { opacity: .9; }
.fhint { text-align: left; max-width: 1120px; margin-top: -10px; }
.fdetail { max-width: 1120px; }
.powered { text-align: left; max-width: 1120px; }
/* buttons + controls: no glow */
.cta { box-shadow: none; } .cta:hover { box-shadow: none; background: #fff; }
.cta.on { box-shadow: inset 0 0 0 1px var(--ok); }
.btn:hover { box-shadow: none; background: #fff; } .btn.ghost:hover { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.chatbtn { background: var(--s3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chatbtn:hover { transform: none; box-shadow: inset 0 0 0 1px #3a3e45; }
.switch.on { box-shadow: none; }
.tabs button.on::after { background: var(--ink); box-shadow: none; left: 0; right: 0; }
.tabs button.on .ic { color: var(--ink); }
.gtools { box-shadow: inset 0 0 0 1px var(--line); }
.gtools button.on { background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); }
.gtools button.on .ic { color: var(--ink); }
.gtools input[type=range]::-webkit-slider-thumb { box-shadow: none; }
.legend .keys i { box-shadow: none; }
.gsearch:focus-within, .form input:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.glabels span { border-radius: 4px; background: rgba(11, 12, 14, .88); box-shadow: inset 0 0 0 1px var(--line-2); }
.glabels span.k-user { background: rgba(11, 12, 14, .9); box-shadow: inset 0 0 0 1px #4a4f57; }
.glabels span.sel { box-shadow: inset 0 0 0 1px var(--accent); }
.stagebox.active { box-shadow: inset 0 0 0 1px var(--accent); }
.dots button.on { box-shadow: none; }
.ripple { background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 60%); }
.chat { background: var(--bg); box-shadow: inset 1px 0 0 var(--line); }
.sheet { background: #0f1013; }
/* graph zones: flat hairline sections */
.gz { border-radius: 8px !important; background: color-mix(in srgb, var(--c) 4%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent) !important; }
.gzh b { border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.view.graph { background: var(--bg); }

/* ================= v5 impeccable pass: system type, no eyebrow/side-stripe/hero-metric/nested cards ================= */
:root {
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1); --t: .18s cubic-bezier(.16, 1, .3, 1);
  --panel-bg: #0e1013;
}
body { font: 14.5px/1.55 var(--text); letter-spacing: 0; font-feature-settings: "tnum" 1; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.02em; } p, li { text-wrap: pretty; }
.brand { font: 600 14px var(--text); letter-spacing: .32em; }
/* status pill: sentence case, not tracked mono caps */
.status { font: 500 13px var(--text); letter-spacing: 0; }
#statusText { display: inline-block; text-transform: lowercase; } #statusText::first-letter { text-transform: uppercase; }
/* second neutral layer for the side panel */
.panel, .dock { background: var(--panel-bg); }
/* no eyebrow above the heading: the state label sits under the headline as plain meta */
.overlay { display: flex; flex-direction: column; }
.overlay h2 { order: 1; margin: 0 0 6px !important; } .overlay .eyebrow { order: 2; margin: 0 0 10px !important; font: 500 14px var(--text) !important; }
#ovExtra { order: 3; } #ovList { order: 4; }
.hero .overlay h2 { font: 600 28px/1.25 var(--display); letter-spacing: -.02em; }
/* no side stripes: state = full hairline border in the state colour + faint tint */
.row.recalled { background: color-mix(in srgb, var(--bad) 6%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
.pg-card.bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.pg-card.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
.overlay li.audit button { border-bottom: 1px solid var(--line-2); }
#fdBody blockquote { box-shadow: inset 0 0 0 1px var(--line); }
/* no hero-metric tiles: figures read inline, tabular */
.trio { justify-content: flex-start; gap: 18px; padding: 0; flex-wrap: wrap; }
.trio > div { display: flex; align-items: baseline; gap: 6px; }
.trio .n { font: 600 15px var(--text); letter-spacing: 0; }
.trio .l { margin: 0; font-size: 13px; }
.fd-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fd-stats div { background: none; box-shadow: none; padding: 0; display: flex; align-items: baseline; gap: 6px; }
.fd-stats b { font: 600 15px var(--text); letter-spacing: 0; } .fd-stats span { font-size: 13px; }
/* no nested cards */
.card { background: none; box-shadow: none; padding: 0; gap: 14px; }
.fd-log { border-left: 1px solid var(--line); padding-left: 22px; }
.fd-log .feed { background: none; box-shadow: none; padding: 0; max-height: 300px; }
/* radii: cards 12, controls 8 */
.pg-card, .fnode, .fdetail, .legend, .gcard, .gtools, .email, .claim, .gz { border-radius: 12px !important; }
.row, .linkrow, .demo button, .btn, .cta, .chatbtn, .form input, .gsearch, .carousel .arrow, .dots, .status { border-radius: 8px; }
/* mono only for data: meta lines go back to the text face */
.pg-card .meta, .target .meta, .gcard .k, .fd-row, .rf-txt small { font-family: var(--text); letter-spacing: 0; }
.gcard .k { text-transform: none; font: 500 12.5px var(--text); }
.feed, .feed::before { font-family: var(--mono); } .feed::before { font-family: var(--text); }
/* motion: short, state-only, one easing; ripple is quick feedback */
.view:not([hidden]) { animation: viewIn .2s var(--ease); }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
.ripple { animation-duration: .35s; }
.fdetail.in { animation: drawerIn .24s var(--ease); }
.chat { transition: width .26s var(--ease); } .panel { transition: width .26s var(--ease), min-width .26s var(--ease), padding .26s var(--ease), opacity .18s; }
@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]), .fdetail.in, .chat .me, .chat .ai, .feed div { animation: none; }
  .chat, .panel { transition-duration: .01s; }
  .fline::after, .status.on .dot, .ripple { animation: none !important; display: none; }
}
/* themed browser surfaces */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input { caret-color: var(--accent); }

/* ================= v6 research pass: charcoal ladder, accent = action/focus/current only, stepper, lists not cards ================= */
:root {
  --bg: #161618; --panel-bg: #1a1a1d; --s1: #1d1d20; --s2: #222226; --s3: #26262a; --s4: #2f2f34;
  --glass: #1d1d20; --glass-hi: #222226;
  --line: #2a2a2f; --line-2: #2f2f34; --row: #2f2f34;
  --ink: #ededef; --ink-2: #a1a1aa; --muted: #71717a; --faint: #5a5a62;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --cta: #6ea8ff; --cta-ink: #0b1220;
}
body, .view.home, .view.graph, .top, .chat { background: var(--bg); }
/* radii: panels 8, controls 6, tags 4 */
.pg-card, .fdetail, .legend, .gcard, .gtools, .email, .claim, .gz { border-radius: 8px !important; }
.row, .linkrow, .demo button, .btn, .cta, .chatbtn, .form input, .gsearch, .carousel .arrow, .dots, .status, .pages button, .gtools button { border-radius: 6px; }
.tag, .chip, .chip.mem, .glabels span, .gzh b { border-radius: 4px; }
/* primary action carries the accent; everything else neutral */
.cta { background: var(--cta); color: var(--cta-ink); font-weight: 600; } .cta:hover { background: #82b4ff; }
.cta.on { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent); }
.btn { background: var(--ink); color: #111; } .btn:hover { background: #fff; }
/* hero = a tool header, not a landing page */
.view.home { padding: 36px 48px 24px; gap: 24px; }
.hero .overlay h2 { font: 500 22px/1.3 var(--display); letter-spacing: -.01em; }
.hero .overlay li { font-size: 13.5px; }
/* pipeline = numbered stepper with state rules (real sequence), no boxes, no icon circles */
.flowmap { counter-reset: step; gap: 4px; align-items: stretch; }
.fline { display: none; }
.fnode, .fnode:hover, .fnode.active, .fnode.done, .fnode.bad, .fnode.sel { background: none !important; box-shadow: none !important; border-radius: 0 !important; border-top: 2px solid var(--line-2); padding: 12px 12px 6px 0 !important; counter-increment: step; }
.fnode .fic { display: none; }
.fnode b { font: 500 14px var(--text); color: var(--ink); }
.fnode b::before { content: counter(step) "  "; color: var(--faint); font-variant-numeric: tabular-nums; }
.fnode small { color: var(--muted); }
.fnode:hover b { color: #fff; } .fnode:hover { border-top-color: var(--s4); }
.fnode.done { border-top-color: color-mix(in srgb, var(--ok) 70%, transparent); }
.fnode.active { border-top-color: var(--accent); } .fnode.active b, .fnode.active b::before { color: var(--accent); }
.fnode.bad { border-top-color: var(--bad); } .fnode.bad b { color: var(--bad); }
.fnode.sel b { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.fhint { margin-top: -8px; }
.fdetail { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
/* status = coloured words, no dots/pills */
.badge { padding: 0; } .badge::before { display: none; }
/* panel lists: one divided list instead of a stack of cards */
.rows { gap: 0; border-top: 1px solid var(--line); }
.row, .row:hover, .row.sel, .row.recalled { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); min-height: 56px; padding: 12px 4px; }
.row:hover { background: var(--s1); }
.row.recalled { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.panel { gap: 20px; }
/* icons only on nav and actions */
.tabs .ic, .sec .ic, .chat-h span .ic, .legend h3 .ic, .demo-box summary .ic, .rf-ic, #fdBody h3 .ic { display: none; }
.ic { stroke-width: 1.6; }
/* graph zones: flat neutral sections, colour only in the header word */
.gz { background: var(--s1) !important; box-shadow: inset 0 0 0 1px var(--line) !important; }
.gzh { color: var(--ink-2); } .gzh .ic { color: var(--c); }
/* last tells: dashed target card + tracked uppercase tag */
.target, .target.ok, .target.bad { border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--s1); }
.target.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent); } .target.bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
.target .tag { position: static; display: inline-block; margin-bottom: 8px; background: none; box-shadow: none; padding: 0; text-transform: lowercase; font: 500 12.5px var(--text); color: var(--muted); }
.target.ok .tag { color: var(--ok); } .target.bad .tag { color: var(--bad); }
.target .tag::first-letter { text-transform: uppercase; }

/* ================= v7: glanceable rows, price bars, landing numbers, drawer fix ================= */
.mlist { border-radius: 8px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mhead { display: flex; justify-content: space-between; padding: 12px 18px; font: 500 12.5px var(--text); color: var(--muted); border-bottom: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: 10px minmax(0, 1.5fr) minmax(140px, 1fr) 120px; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.mrow:last-child { border-bottom: 0; } .mrow:hover { background: var(--s2); }
.mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.mdot.ok { background: var(--ok); } .mdot.bad { background: var(--bad); } .mdot.warn { background: var(--warn); }
.mt { min-width: 0; } .mt b { display: block; font: 500 14.5px var(--text); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); } .mt small.ok { color: var(--ok); } .mt small.bad { color: var(--bad); } .mt small.warn { color: var(--warn); }
.mp { text-align: right; font-variant-numeric: tabular-nums; } .mp b { display: block; font: 600 15px var(--text); } .mp small { font-size: 12px; color: var(--muted); }
.mmeta { font-size: 12.5px; color: var(--muted); }
.pbar { position: relative; height: 6px; border-radius: 3px; background: var(--s3); }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #5b5b63; transition: width .4s var(--ease); }
.pbar.hit i { background: var(--ok); }
.pbar b { position: absolute; top: -4px; width: 2px; height: 14px; border-radius: 1px; background: var(--ink); transform: translateX(-1px); }
.madd { padding: 12px 18px; border-top: 1px solid var(--line); }
.fnode small { display: grid; gap: 0; }
.fnode small em { font: 600 22px/1.2 var(--text); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fnode small span { font-size: 12.5px; color: var(--muted); }
.fnode.bad small em { color: var(--bad); } .fnode.active small em { color: var(--accent); }
.fnode, .fnode:hover, .fnode.active, .fnode.done, .fnode.bad, .fnode.sel { border-top-width: 4px !important; }
.fnode { padding-top: 14px !important; }
.fnode.active { border-top-color: transparent !important; border-image: linear-gradient(90deg, var(--accent) 0%, #a9cbff 50%, var(--accent) 100%) 1; animation: none; }
.hero .overlay h2 { margin-bottom: 4px !important; }
.hero #ovList:empty { display: none; }
.fd-cols > div { min-width: 0; }
.fd-row span:last-child { flex: none; }
.fd-k { font: 500 12.5px var(--text); color: var(--muted); margin-bottom: 2px; }
.fdetail.nolog { grid-template-columns: minmax(0, 1fr); } .fdetail.nolog .fd-log { display: none; }
@media (max-width: 1280px) { .mrow { grid-template-columns: 10px minmax(0, 1fr) 120px; } .mmid { display: none; } }
#pgRecalls .pg-card p, #pgRuns .pg-card p, #pgApprovals .pg-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#pgRecalls .pg-card:hover p { -webkit-line-clamp: unset; }
.pg-card { padding: 18px 20px; gap: 10px; }
.pg { gap: 18px; }

/* ================= v8 home (Flighty card · tracker bar · price rows · one explanation) ================= */
.view.home { padding: 32px 40px 24px; gap: 16px; }
.view.home .hero, .view.home .fhint, .view.home .powered { display: none !important; }
.home2 { width: 100%; max-width: 980px; display: grid; gap: 14px; }
.h-sum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.h-sum b { font: 600 40px/1 var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h-sum span { font-size: 14px; color: var(--muted); } .h-sum span .ok { color: var(--ok); } .h-sum span .bad { color: var(--bad); }
.h-check { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.h-check:hover { background: var(--s2); }
.h-card { --k: var(--ok); border-radius: 12px; padding: 22px 24px 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; position: relative; }
.h-card.run { --k: var(--accent); } .h-card.warn { --k: var(--warn); } .h-card.bad { --k: var(--bad); } .h-card.handled { --k: #2dd4bf; }
.h-card.bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); }
.h-item { font-size: 13.5px; color: var(--muted); }
.h-head { font: 600 28px/1.2 var(--text); letter-spacing: -.02em; color: var(--k); font-variant-numeric: tabular-nums; }
.h-card.run .h-head::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--accent); vertical-align: middle; animation: hpulse 1s ease-in-out infinite; }
@keyframes hpulse { 50% { opacity: .25; } }
.h-why { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.h-why .tick { color: var(--ok); }
.h-act { margin-top: 10px; }
/* tracker bar (pizza tracker): one word per step, done = solid, current = shimmer */
.view.home .flowmap { max-width: 980px; margin: -4px 0 4px; gap: 4px; }
.view.home .fnode, .view.home .fnode:hover, .view.home .fnode.active, .view.home .fnode.done, .view.home .fnode.bad, .view.home .fnode.sel { border-top-width: 6px !important; border-radius: 0 !important; padding: 8px 0 0 !important; }
.view.home .fnode b { font: 500 12.5px var(--text); color: var(--muted); } .view.home .fnode b::before { content: none; }
.view.home .fnode.done b { color: var(--ink-2); } .view.home .fnode.active b { color: var(--accent); font-weight: 600; } .view.home .fnode.bad b { color: var(--bad); font-weight: 600; }
.view.home .fnode small { display: none; }
.view.home .fnode.done { border-top-color: var(--ok) !important; }
.view.home .fnode.active { border-image: linear-gradient(90deg, var(--accent), #b9d6ff, var(--accent)) 1; }
.h-sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font: 500 13.5px var(--text); color: var(--ink-2); }
.h-link { font-size: 13px; color: var(--accent); }
.h-rows { border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.h-row { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); transition: background .15s; }
.h-row:last-child { border-bottom: 0; } .h-row:hover { background: var(--s2); }
.h-glyph { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); font: 600 16px var(--text); color: var(--ink-2); }
.h-rt { min-width: 0; display: grid; gap: 4px; } .h-rt b { font: 500 14.5px var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-rt small { font-size: 12.5px; color: var(--muted); } .h-rt small.ok { color: var(--ok); } .h-rt small.bad { color: var(--bad); } .h-rt small.warn { color: var(--warn); }
.h-rt .pbar { margin-top: 2px; max-width: 360px; }
.h-pr { text-align: right; font-variant-numeric: tabular-nums; } .h-pr b { display: block; font: 600 16px var(--text); } .h-pr small { font-size: 12px; color: var(--muted); }
.h-say { border-radius: 12px; padding: 16px 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.h-say-h { display: flex; gap: 10px; align-items: baseline; } .h-say-h b { font-size: 13.5px; } .h-say-h span { font-size: 12px; color: var(--muted); }
.h-say p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.h-say .h-link { justify-self: start; }
.view.home .fdetail { max-width: 980px; }
@media (prefers-reduced-motion: reduce) { .h-card.run .h-head::after { animation: none; } }
/* panel rows: keep the price inside the panel */
.panel .row { width: 100%; } .panel .row .txt { flex: 1; min-width: 0; } .panel .row .price { flex: none; padding-right: 2px; }
.panel { overflow-x: hidden; }

/* ================= v9 colour: every category has its own hue, nothing blends ================= */
:root { --c-wish: #60a5fa; --c-owned: #c4b5fd; --c-recall: #f87171; --c-refund: #22d3ee; --c-buy: #4ade80; --c-src: #fbbf24; --c-inj: #fb923c; --teal: #2dd4bf; }
/* summary: big number + coloured stat pills */
.h-sum { align-items: center; gap: 14px; }
.h-sum b { color: #fff; }
#hSub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.h-lbl { font-size: 14px; color: var(--muted); margin-right: 6px; }
.pill { --p: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; font: 500 13px var(--text); color: var(--p); background: color-mix(in srgb, var(--p) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 32%, transparent); }
.pill.blue { --p: var(--c-wish); } .pill.green { --p: var(--c-buy); } .pill.red { --p: var(--c-recall); } .pill.cyan { --p: var(--c-refund); }
.h-ago { font-size: 12.5px; color: var(--faint); margin-left: 4px; }
/* status card: tinted by state, big coloured icon */
.h-card { grid-template-columns: 56px minmax(0, 1fr); align-items: start; column-gap: 18px; background: color-mix(in srgb, var(--k) 9%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 35%, transparent); }
.h-card.handled { --k: var(--teal); }
.h-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 18%, transparent); }
.h-body { display: grid; gap: 6px; min-width: 0; }
.h-head { font-size: 30px; }
.h-card .btn { background: var(--k); color: #0b0d10; } .h-card .btn.ghost { background: transparent; color: var(--k); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 50%, transparent); }
/* tracker bar: each step its own colour; faint when idle, solid when done, shimmering when running */
.view.home .fnode[data-f="watch"] { --sc: var(--c-wish); } .view.home .fnode[data-f="perceive"] { --sc: var(--c-owned); }
.view.home .fnode[data-f="verify"] { --sc: var(--c-src); } .view.home .fnode[data-f="decide"] { --sc: var(--c-refund); }
.view.home .fnode[data-f="act"] { --sc: var(--c-buy); } .view.home .fnode[data-f="safe"] { --sc: var(--teal); }
.view.home .fnode, .view.home .fnode:hover, .view.home .fnode.sel { border-top-color: color-mix(in srgb, var(--sc) 28%, transparent) !important; border-radius: 3px 3px 0 0 !important; }
.view.home .fnode b { color: color-mix(in srgb, var(--sc) 70%, var(--muted)); }
.view.home .fnode.done { border-top-color: var(--sc) !important; } .view.home .fnode.done b { color: var(--sc); font-weight: 600; }
.view.home .fnode.active { border-top-color: transparent !important; border-image: linear-gradient(90deg, var(--sc), #fff, var(--sc)) 1; } .view.home .fnode.active b { color: #fff; font-weight: 600; }
.view.home .fnode.bad { border-top-color: var(--c-recall) !important; } .view.home .fnode.bad b { color: var(--c-recall); }
.view.home .fnode:hover b { color: #fff; }
/* rows: coloured item tiles + smooth, rounded price meters */
.h-glyph { background: color-mix(in srgb, var(--g, #60a5fa) 18%, transparent); color: var(--g, #60a5fa); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g, #60a5fa) 35%, transparent); }
.h-row:hover { background: color-mix(in srgb, var(--g, #60a5fa) 6%, var(--s1)); }
.pbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: visible; }
.pbar i { border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--m, #60a5fa) 45%, transparent), var(--m, #60a5fa)); transition: width .9s cubic-bezier(.16, 1, .3, 1); }
.pbar.hit i { background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 45%, transparent), var(--ok)); }
.pbar b { top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--bg), 0 1px 4px rgba(0, 0, 0, .5); transform: translateX(-8px); }
.grow .pbar i { animation: meterIn 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes meterIn { from { width: 0 !important; } }
.mrow .pbar i { background: linear-gradient(90deg, rgba(96, 165, 250, .45), #60a5fa); }
.mdot.idle { background: var(--c-wish); }
/* explanation card + side panel accents */
.h-say { background: color-mix(in srgb, var(--accent) 7%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.h-say-h b { color: var(--accent); }
.tabs button.on { color: #fff; } .tabs button.on::after { background: var(--accent); }
.row .sub .badge.idle, .row .badge.idle { color: var(--c-wish); }
.pages button.on { background: color-mix(in srgb, var(--accent) 16%, var(--s2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.pages button.on .ic { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .grow .pbar i { animation: none; } .pbar i { transition: none; } }

/* ================= SafeShop link: header button + live feed ================= */
.shoplink { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; font: 500 13px var(--text); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); margin-right: 10px; }
.shoplink:hover { background: var(--s2); }
.top-right { gap: 0; }
.h-thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.h-thumb img { width: 100%; height: 100%; object-fit: contain; }
.h-shop.bad { box-shadow: inset 3px 0 0 transparent; } .h-shop .h-rt small.bad { color: var(--bad); } .h-shop .h-rt small.ok { color: var(--ok); }
.h-sec small { font-size: 12px; color: var(--muted); font-weight: 400; }
.h-act { display: flex; gap: 8px; flex-wrap: wrap; }
