:root {
  --ink: #0E1726; --ink-2: #3A4556; --ink-3: #5B6576; --line: #E3E7EC; --line-2: #EEF1F4; --bg: #F5F7F9; --card: #fff;
  --acc: #087559; --acc-2: #0FA37F; --acc-soft: #E6F5F0; --nav: #0F1B2D; --ctx: #EAF2FB; --ctx-ink: #1D4F91;
  --amber: #B45309; --red: #B91C1C;
  --ease: cubic-bezier(.22, 1, .36, 1); --r: 14px;
  --shadow: 0 1px 2px rgba(14,23,38,.05), 0 8px 24px -12px rgba(14,23,38,.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.i { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 720px; margin: 14px 0 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .15s; }
.btn:hover { box-shadow: inset 0 0 0 1px #C9D0D8; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--acc); color: #fff; box-shadow: none; }
.btn.primary:hover { background: #097A5E; }
.btn.ghost { box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn .i { width: 16px; height: 16px; }

/* ---------- Story bar ---------- */
.story-bar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.sb-in { max-width: 1360px; margin: 0 auto; height: 60px; padding: 0 28px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--acc-2), #0B6E8A); color: #fff; }
.brand .mark .i { width: 16px; height: 16px; }
.brand b { font-size: 16px; letter-spacing: -.02em; }
.brand .sub { font-size: 13px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .2s, background .2s; }
.tabs a .i { width: 16px; height: 16px; }
.tabs a:hover { color: var(--ink); background: var(--line-2); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--acc-soft); }
.tabs a[aria-current="page"] .i { color: var(--acc); }
.why-toggle { display: inline-flex; align-items: center; gap: 10px; flex: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.why-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.why-toggle .sw { width: 38px; height: 22px; border-radius: 11px; background: #CBD2DA; position: relative; transition: background .25s; }
.why-toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.why-toggle input:checked + .sw { background: var(--acc); }
.why-toggle input:checked + .sw::after { transform: translateX(16px); }
.why-toggle input:focus-visible + .sw { outline: 2px solid var(--acc); outline-offset: 2px; }

#app.enter main { animation: enter .5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
main { max-width: 1360px; margin: 0 auto; padding: 0 28px 80px; }

/* ---------- Pins (the why) ---------- */
.pin { display: none; align-items: center; justify-content: center; height: 22px; min-width: 30px; padding: 0 7px; border-radius: 11px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 3px rgba(11,138,107,.18); flex: none; transition: transform .2s var(--ease); }
.pin:hover { transform: scale(1.08); }
.why-on .pin { display: inline-flex; animation: pinIn .5s var(--ease) both; }
@keyframes pinIn { from { opacity: 0; transform: scale(.6); } }
.pop { position: fixed; z-index: 60; padding: 18px 40px 18px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px -12px rgba(14,23,38,.45); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); }
.pop.in { opacity: 1; transform: none; }
.pop-k { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5FE0BC; }
.pop h3 { font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
.pop p { margin: 0; font-size: 14px; line-height: 1.5; color: #C9D2DD; }
.pop .x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #9AA6B5; }
.pop .x:hover { background: rgba(255,255,255,.08); color: #fff; }
.pop .x .i { width: 16px; height: 16px; }

/* ---------- Brief ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.035em; max-width: 760px; }
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-k { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.k { padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); animation: rise .7s var(--ease) both; }
.k:nth-child(2) { animation-delay: .08s; } .k:nth-child(3) { animation-delay: .16s; } .k:nth-child(4) { animation-delay: .24s; }
.k b { display: block; font-size: 44px; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--acc-2), #0B6E8A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.k span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.insight { padding: 44px; border-radius: 22px; background: var(--nav); color: #fff; position: relative; overflow: hidden; }
.insight::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,163,127,.35), transparent); }
.insight .eyebrow { color: #5FE0BC; }
.insight blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.02em; max-width: 900px; font-weight: 500; }
.insight em { font-style: normal; color: #5FE0BC; }
.vs { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.vs small { display: block; font-size: 12px; color: #8D9AAD; margin-bottom: 10px; }
.vs p { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.vs span { padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 14px; color: #C9D2DD; }
.vs .obj span { background: rgba(15,163,127,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(95,224,188,.4); }
.vs-arrow { color: #5FE0BC; }
.how, .qs, .next, .orca { padding-top: 72px; }
.how h2, .qs h2, .next h2, .orca h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; max-width: 720px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: linear-gradient(90deg, var(--acc), #0B6E8A); transform-origin: left; animation: grow 1.2s .2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.steps li { position: relative; padding-right: 20px; animation: rise .6s calc(.25s + var(--i) * .12s) var(--ease) both; }
.si { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc); margin-bottom: 14px; }
.steps b { display: block; font-size: 16px; }
.steps p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.qsec { display: flex; flex-direction: column; gap: 10px; }
.qs-h { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.qs-h span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; }
.qcard { text-align: left; padding: 16px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.qcard:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(14,23,38,.05), 0 16px 32px -14px rgba(14,23,38,.2); }
.qn { display: inline-block; font-size: 11px; font-weight: 700; color: var(--acc); background: var(--acc-soft); padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; }
.qcard b { display: block; font-size: 15px; line-height: 1.35; }
.qcard p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.seq { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.seq li { padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); animation: rise .6s calc(var(--i) * .08s) var(--ease) both; border-top: 3px solid var(--acc); }
.seq .when { display: block; font-size: 12px; font-weight: 700; color: var(--acc); margin-bottom: 8px; }
.seq b { display: block; font-size: 15px; line-height: 1.3; }
.seq p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Object model ---------- */
.page-h { padding: 56px 0 28px; }
.page-h h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; max-width: 880px; }
.omap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.graph { border-radius: 22px; background: var(--card); box-shadow: var(--shadow); padding: 20px; }
.graph svg { display: block; width: 100%; height: auto; }
.edge line { stroke: #D3D9E0; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .3s; }
.edge.on line { stroke: var(--acc); stroke-width: 2.5; animation: draw .6s var(--ease) both; stroke-dashoffset: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.edge text { font-size: 11px; fill: var(--acc); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.node { cursor: pointer; animation: nodeIn .6s calc(var(--i) * .05s) var(--ease) both; }
@keyframes nodeIn { from { opacity: 0; } }
.node circle { fill: #F2F4F7; stroke: #D3D9E0; stroke-width: 1.5; transition: fill .3s, stroke .3s, r .3s var(--ease); }
.node text { font-size: 13px; font-weight: 600; fill: var(--ink-2); pointer-events: none; }
.node.core circle { fill: #fff; stroke: #9FB0C2; stroke-width: 2; }
.node.near circle { fill: var(--acc-soft); stroke: var(--acc); }
.node.sel circle { fill: var(--acc); stroke: var(--acc); }
.node.sel text { fill: #fff; }
.node:hover circle { stroke: var(--acc); }
.node:focus { outline: none; } .node:focus-visible circle { stroke: var(--ink); stroke-width: 3; }
.ocard { position: sticky; top: 80px; padding: 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.ocard.pulse { animation: pulse .45s var(--ease); }
@keyframes pulse { from { opacity: .4; transform: translateY(6px); } }
.ocard h2 { font-size: 28px; }
.ow { margin: 6px 0 18px; color: var(--ink-2); }
.ow small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.ocols { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
.ocols h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ocols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ocols li { padding: 4px 10px; border-radius: 7px; background: var(--line-2); font-size: 13px; }
.ocols .cta li { display: inline-flex; align-items: center; gap: 5px; background: var(--acc-soft); color: #075E49; }
.ocols .cta .i { width: 13px; height: 13px; }
.ocols .rel li { display: inline-flex; align-items: center; gap: 6px; background: none; padding: 0; }
.ocols .rel span { color: var(--ink-3); font-size: 13px; }
.ocols .rel button { padding: 4px 10px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.ocols .rel button:hover { box-shadow: inset 0 0 0 1px var(--acc); color: var(--acc); }
.orca ol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.orca li { padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); animation: rise .6s calc(var(--i) * .08s) var(--ease) both; }
.orca li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.orca b { display: block; }
.orca p { margin: 4px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.orca small { font-size: 12px; color: var(--acc); font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 16px 18px; border-radius: var(--r); background: var(--acc-soft); color: #075E49; font-size: 14.5px; line-height: 1.5; }
.note .i { color: var(--acc); margin-top: 2px; }

/* ---------- Product sketch ---------- */
.r-issues, .r-rules { max-width: none; padding: 0; }
.product { min-height: calc(100vh - 61px); display: flex; flex-direction: column; }
.pbar { height: 50px; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: var(--nav); color: #fff; }
.plogo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.plogo .i { width: 16px; height: 16px; color: #5FE0BC; }
.pbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.pbar nav a { height: 50px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; color: #A9B4C3; white-space: nowrap; position: relative; }
.pbar nav a.on { color: #fff; font-weight: 600; }
.pbar nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #5FE0BC; }
.pbar nav a[aria-disabled] { pointer-events: none; }
.pav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #24344B; font-size: 12px; font-weight: 700; }
.ctx { position: relative; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 8px 24px; background: var(--ctx); border-bottom: 1px solid #D3E2F4; transition: background .4s; }
.ctx.flash { background: #D3E6FB; }
.ctx-pick { position: relative; }
.ctx-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #C3D5EC, 0 1px 2px rgba(29,79,145,.08); text-align: left; transition: box-shadow .2s; }
.ctx-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ctx-ink); }
.ctx-btn > .i:first-child { color: var(--ctx-ink); }
.ctx-btn span { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.2; min-width: 170px; }
.ctx-btn small { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.ctx-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.ctx-meta .i { width: 15px; height: 15px; color: var(--ink-3); }
.ctx-meta i { width: 4px; height: 4px; border-radius: 50%; background: #9FB0C2; }
.ctx-state { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: #fff; color: var(--ink-3); box-shadow: inset 0 0 0 1px #D3E2F4; }
.ctx-state.site, .ctx-state.customer { color: var(--ctx-ink); background: #DCEAFB; box-shadow: none; }
.ctx-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 330px; max-height: 70vh; overflow: auto; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14,23,38,.06), 0 24px 60px -12px rgba(14,23,38,.3); animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.cm-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 6px; }
.cm-search input { flex: 1; border: 0; outline: 0; min-width: 0; font-size: 14px; }
.cm-search .i { color: var(--ink-3); width: 16px; height: 16px; }
.cm-h { margin: 10px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ctx-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; text-align: left; font-size: 14px; }
.ctx-menu button:hover { background: var(--line-2); }
.ctx-menu button.on { background: var(--ctx); }
.ctx-menu button > .i:first-child { color: var(--ctx-ink); width: 16px; height: 16px; }
.ctx-menu button span { flex: 1; display: flex; flex-direction: column; }
.ctx-menu button small { font-size: 12px; color: var(--ink-3); }
.ctx-menu .ok { color: var(--acc); }
.ctx-menu [hidden] { display: none; }

.pbody { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg); }
.pbody.has-panel { grid-template-columns: minmax(0, 1fr) 420px; }
.pmain { padding: 24px; min-width: 0; }
.ph { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.ph > div { flex: 1; }
.ph h1 { font-size: 26px; }
.ph p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 2.1fr; gap: 12px; margin-bottom: 20px; }
.kpi { padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kpi > b { font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
.kpi b em { font-style: normal; font-size: 15px; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.kpi > span { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.kpi > span .i { width: 14px; height: 14px; color: var(--acc); }
.kpi.warn > b { color: var(--amber); }
.kpi.risk > b { color: var(--ink); }
.kpi.chart { padding: 14px 16px 8px; }
.ch-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.key { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.key i { width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.key .ko { background: #F59E0B; } .key .kr { background: var(--acc); } .key .kb { height: 2px; border-radius: 1px; background: var(--ink); width: 12px; }
.flow { width: 100%; height: auto; display: block; }
.flow .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.flow .bo { fill: #F59E0B; transform-box: fill-box; transform-origin: bottom; animation: bar .6s calc(.1s + var(--i) * .03s) var(--ease) both; }
.flow .br { fill: var(--acc); transform-box: fill-box; transform-origin: bottom; animation: bar .6s calc(.14s + var(--i) * .03s) var(--ease) both; }
.flow g { --i: 0; }
@keyframes bar { from { transform: scaleY(0); } }
.flow .bl { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .5s var(--ease) forwards; }
.flow .bld { fill: var(--ink); stroke: #fff; stroke-width: 2; animation: rise .4s 1.5s both; }
.flow text { font-size: 10px; fill: var(--ink-3); }

.views { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.views [role="tab"] { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.views [role="tab"]:hover { color: var(--ink); }
.views [aria-selected="true"] { color: var(--ink); font-weight: 600; }
.views [aria-selected="true"]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.cnt { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--line-2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
[aria-selected="true"] .cnt { background: var(--ink); color: #fff; }
.add-view { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--acc); margin-left: 6px; }
.add-view:hover { background: var(--acc-soft); }
.add-view .i { width: 15px; height: 15px; }
.views .pin { margin-left: auto; }
.fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fsearch { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: 0 1 320px; min-width: 180px; color: var(--ink-3); font-size: 14px; }
.fsearch input { border: 0; outline: 0; flex: 1; min-width: 0; background: none; color: var(--ink); font-size: 14px; }
.fsearch .i { width: 16px; height: 16px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.dd-btn .i { width: 15px; height: 15px; color: var(--ink-3); }
.dd-btn .n, .fdemo .n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 5px; }
.dd-menu { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; min-width: 190px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 20px 50px -12px rgba(14,23,38,.3), 0 0 0 1px var(--line); animation: drop .2s var(--ease); }
.dd-menu label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.dd-menu label:hover { background: var(--line-2); }
.dd-menu label span { margin-left: auto; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.dd-menu input { accent-color: var(--acc); }
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.chip button, .chip > .i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.chip button:hover { background: rgba(255,255,255,.15); }
.chip .i { width: 13px; height: 13px; }
.clear { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; }
.clear:hover { background: var(--line-2); }

.tbl-wrap { position: relative; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: auto; }
.tbl-wrap > .pin { position: absolute; top: 12px; right: 12px; }
.itbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.itbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFCFD; }
.itbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.itbl tbody tr { animation: rowIn .45s calc(var(--i) * .03s) var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
.itbl tr[data-act] { cursor: pointer; transition: background .15s; }
.itbl tr[data-act]:hover { background: #F7F9FB; }
.itbl tr.sel { background: var(--ctx) !important; box-shadow: inset 3px 0 0 var(--ctx-ink); }
.itbl td b { display: block; font-weight: 600; }
.itbl td small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.itbl tr.empty td { text-align: center; color: var(--ink-3); padding: 40px; }
.itbl tr.empty .i { display: block; margin: 0 auto 6px; color: var(--acc); width: 24px; height: 24px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.src .i { width: 15px; height: 15px; color: var(--ink-3); }
.oc { display: inline-flex; align-items: center; gap: 8px; }
.oc b { font-variant-numeric: tabular-nums; }
.oc small { font-size: 11.5px; color: var(--ink-3); }
.spark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .2s var(--ease) forwards; }

/* Badges: one system, everywhere (Q9) */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge .i { width: 13px; height: 13px; }
.st-unv { background: #FFF3CD; color: #7A5A03; }
.st-open { background: #E8F5E9; color: #2E7D32; }
.st-res { background: #E3F2FD; color: #1565C0; }
.st-ign { background: #F3F4F6; color: #5B6472; }
.st-vio { background: #FFF3E0; color: #B54100; }
.pr-high { background: #FEE2E2; color: #B91C1C; border-radius: 12px; }
.pr-medium { background: #FEF3C7; color: #92400E; border-radius: 12px; }
.pr-low { background: #F0F9FF; color: #0369A1; border-radius: 12px; }

/* Detail panel (Q2–4) */
.ipanel { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); overflow: auto; background: #fff; border-left: 1px solid var(--line); animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
.ip-h { display: flex; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line-2); }
.ip-h > div { flex: 1; }
.ip-h small { font-size: 12px; color: var(--ink-3); }
.ip-h h2 { font-size: 19px; line-height: 1.3; margin: 4px 0 10px; }
.ip-h p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.x { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.x:hover { background: var(--line-2); color: var(--ink); }
.ip-sec { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.ip-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ip-sh b { font-size: 14px; }
.ip-sh small { font-size: 12px; color: var(--ink-3); }
.ip-sh .pin { margin-left: auto; }
.occ { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.occ i { flex: 1; height: max(3px, var(--h)); border-radius: 3px; background: linear-gradient(#F59E0B, #F7B955); transform-origin: bottom; animation: bar .5s calc(var(--i) * .03s) var(--ease) both; }
.ip-act { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: #FBFCFD; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.ip-act .pin { margin-left: auto; }
.ip-form { padding: 14px 20px; background: var(--acc-soft); border-bottom: 1px solid var(--line-2); animation: drop .25s var(--ease); }
.ip-form label { display: block; font-size: 13px; font-weight: 600; }
.ip-form textarea { width: 100%; margin-top: 6px; padding: 10px; border-radius: 9px; border: 1px solid #B8DDD0; resize: vertical; background: #fff; }
.ip-form div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.tip { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.tip .i { width: 15px; height: 15px; color: var(--acc); margin-top: 1px; }
.links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.links > * { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: 14px; font-weight: 500; transition: box-shadow .2s; }
.links > *:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.links .i { color: var(--acc); width: 16px; height: 16px; }
.links span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.links small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.mini { padding: 12px; border-radius: 12px; background: #F7F9FB; }
.eff { width: 100%; height: auto; display: block; }
.eff .band { fill: rgba(11,138,107,.12); }
.eff .over { fill: rgba(185,28,28,.07); }
.eff .el { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .2s var(--ease) forwards; }
.eff text { font-size: 9.5px; fill: var(--ink-3); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding-bottom: 14px; animation: rowIn .4s var(--ease) both; }
.tl .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-3); position: relative; }
.tl .dot .i { width: 14px; height: 14px; }
.tl .ev-state .dot { color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.tl .ev-comment .dot { color: var(--ctx-ink); box-shadow: inset 0 0 0 1.5px #9DBCE6; }
.tl p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; }
.tl small { grid-column: 2; font-size: 12px; color: var(--ink-3); }

/* Rules */
.rmode { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.rm-on { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--ctx); color: var(--ctx-ink); font-size: 13.5px; font-weight: 600; }
.rm-on .i, .rmode button .i { width: 15px; height: 15px; }
.rmode button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.rmode button:hover { background: var(--line-2); }
.sch { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.sch em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.sch .inh { color: var(--ink-3); background: var(--line-2); }
.sch.custom { color: #6D28D9; font-weight: 600; }
.sch.custom em { background: #EDE9FE; color: #6D28D9; }
.sch.custom .i { width: 14px; height: 14px; }
.sch.none { color: var(--amber); font-weight: 500; }
.sch.none .i { width: 15px; height: 15px; }
.sch.none button { font-size: 12.5px; font-weight: 600; color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.ov { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 600; color: #6D28D9; background: #EDE9FE; padding: 1px 7px; border-radius: 5px; }
.assign { font-size: 13.5px; font-weight: 600; color: var(--ctx-ink); text-decoration: underline; text-decoration-color: #9DBCE6; text-underline-offset: 3px; }
.tg { position: relative; display: inline-block; width: 36px; height: 20px; }
.tg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.tg span { position: absolute; inset: 0; border-radius: 10px; background: var(--acc); pointer-events: none; }
.tg span::after { content: ''; position: absolute; top: 2px; left: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.avail { margin-top: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.av-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; font-size: 14px; }
.av-h .i { transition: transform .25s var(--ease); width: 16px; height: 16px; }
.av-h[aria-expanded="true"] .i { transform: rotate(90deg); }
.avail ul { list-style: none; margin: 0; padding: 0 8px 8px; }
.avail li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--line-2); animation: rowIn .35s var(--ease) both; }
.avail li span { flex: 1; }
.avail li b { display: block; font-size: 14px; }
.avail li small { font-size: 12px; color: var(--ink-3); }
.hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.hint .i { color: var(--ctx-ink); width: 16px; height: 16px; }

/* Wizard (Q6) */
.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(14,23,38,.4); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.wz { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 40px 100px -20px rgba(14,23,38,.5); animation: rise .4s var(--ease) both; }
.wz-h { display: flex; gap: 12px; padding: 20px 22px 10px; }
.wz-h > div { flex: 1; }
.wz-h small { font-size: 12.5px; color: var(--ink-3); }
.wz-h h2 { font-size: 22px; margin-top: 2px; }
.wz-steps { list-style: none; margin: 0; padding: 6px 22px 14px; display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); }
.wz-steps li { flex: 1; }
.wz-steps button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: left; }
.wz-steps button:disabled { cursor: default; }
.wz-steps span { width: 100%; height: 4px; border-radius: 2px; background: var(--line); font-size: 0; position: relative; }
.wz-steps span .i { display: none; }
.wz-steps .done span, .wz-steps .on span { background: var(--acc); }
.wz-steps .on button { color: var(--ink); }
.wz-b { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.wz-b label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.wz-b input:not([type]), .wz-b textarea { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); font-weight: 400; font-size: 14px; }
.wz-b textarea { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.wz-b .rad, .wz-b .chk { flex-direction: row; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.wz-b .rad small { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.wz-b input[type="radio"], .wz-b input[type="checkbox"] { accent-color: var(--acc); }
.sev { display: flex; height: 54px; border-radius: 10px; overflow: hidden; }
.sev span { width: var(--w); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; animation: bar .6s var(--ease) both; transform-origin: left; }
.sev .g { background: #E8F5E9; color: #2E7D32; } .sev .y { background: #FFF3CD; color: #7A5A03; } .sev .r { background: #FEE2E2; color: #B91C1C; }
.rev { margin: 0; display: flex; flex-direction: column; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.rev div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-size: 14px; }
.rev div:first-child { border-top: 0; }
.rev dt { color: var(--ink-3); } .rev dd { margin: 0; font-weight: 500; }
.wz-f { display: flex; align-items: center; gap: 8px; padding: 14px 22px 20px; }
.wz-f span { flex: 1; }

/* Before & after */
.figs { display: flex; flex-direction: column; gap: 16px; }
.fig-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.fig-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.fig-tabs button span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--line-2); font-size: 12px; }
.fig-tabs [aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.fig-tabs [aria-selected="true"] span { background: rgba(255,255,255,.15); }
.wire { margin: 0; padding: 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); animation: pulse .45s var(--ease); }
.wire svg { display: block; width: 100%; height: auto; max-height: 64vh; }
.wire figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); text-align: center; }
.fig-cta { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--acc-soft); flex-wrap: wrap; }
.fig-cta p { margin: 0; flex: 1; display: flex; align-items: center; gap: 10px; color: #075E49; font-weight: 500; }
.fig-cta p .i { color: var(--acc); }

/* Design rules */
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rcard { padding: 24px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); animation: rise .6s var(--ease) both; }
.rcard.wide { grid-column: 1 / -1; }
.rcard h2 { font-size: 20px; }
.rcard > p { margin: 6px 0 16px; color: var(--ink-2); max-width: 760px; }
.bl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bl li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.bl .badge { justify-self: start; }
.tvp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tvp > div { padding: 18px; border-radius: 14px; background: #F7F9FB; }
.tvp h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; }
.tvp h3 .i { color: var(--acc); }
.tvp ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tvp li { padding: 5px 10px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.fdemo { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fdemo .fsearch { flex: 0 0 220px; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.phases li { padding: 16px 18px 16px 0; border-top: 3px solid var(--acc); position: relative; animation: rise .6s calc(var(--i) * .1s) var(--ease) both; }
.phases li:nth-child(2) { border-color: #0FA37F; } .phases li:nth-child(3) { border-color: #6BD3B4; }
.phases span { font-size: 12px; font-weight: 700; color: var(--acc); }
.phases b { display: block; margin: 6px 0 4px; font-size: 15px; line-height: 1.35; }
.phases small { font-size: 13px; color: var(--ink-3); }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi.chart { grid-column: 1 / -1; }
  .pbody.has-panel { grid-template-columns: minmax(0, 1fr) 380px; }
  .steps, .seq, .orca ol { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .sb-in { padding: 0 16px; gap: 12px; }
  .brand .sub, .tabs a span, .why-toggle .lbl { display: none; }
  .tabs a { padding: 0 10px; }
  main { padding: 0 16px 64px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 36px; }
  .insight { padding: 28px; border-radius: 18px; }
  .qgrid, .omap, .rules-grid, .tvp { grid-template-columns: 1fr; }
  .steps, .seq, .orca ol, .phases { grid-template-columns: 1fr; }
  .ocard { position: static; }
  .pbody.has-panel { grid-template-columns: 1fr; }
  .ipanel { position: fixed; z-index: 40; inset: auto 0 0 0; top: auto; height: 82vh; border-left: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px -10px rgba(14,23,38,.35); animation: sheetUp .4s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
  .kpis { grid-template-columns: 1fr 1fr; }
  .pmain { padding: 16px; }
  .pbar { gap: 12px; padding: 0 16px; }
  .ctx { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .ctx-meta { display: none; }
  .ctx-btn span { min-width: 0; }
  .ctx-menu { width: min(330px, calc(100vw - 32px)); }
  .fsearch { flex: 1 1 100%; }
  .itbl th:nth-child(3), .itbl td:nth-child(3), .itbl th:nth-child(7), .itbl td:nth-child(7) { display: none; }
  .rtbl th:nth-child(2), .rtbl td:nth-child(2) { display: none; }
  .bl li { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* The deliverable: a report cover with the client name withheld */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.deliv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 8px 0 72px; }
.doc { position: relative; aspect-ratio: 8.5 / 11; max-height: 560px; justify-self: center; width: min(100%, 430px); transform: rotate(-2deg); animation: docIn .9s var(--ease) both; }
@keyframes docIn { from { opacity: 0; transform: rotate(-6deg) translateY(20px); } }
.doc::before { content: ''; position: absolute; inset: 0; border-radius: 6px; background: #fff; transform: rotate(4deg) translate(10px, 6px); box-shadow: var(--shadow); }
.doc-p { position: relative; height: 100%; padding: 36px 34px; border-radius: 6px; background: #fff; box-shadow: 0 2px 4px rgba(14,23,38,.06), 0 30px 60px -20px rgba(14,23,38,.3); overflow: hidden; display: flex; flex-direction: column; }
.doc-p::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--acc-2), #0B6E8A); }
.doc-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #087559; padding: 4px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(8,117,89,.35); }
.doc-tag .i { width: 12px; height: 12px; }
.doc-k { margin: 28px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.doc-p h2 { font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.doc-for { margin: 18px 0 4px; font-size: 13px; color: var(--ink-2); }
.blur { filter: blur(5px); font-weight: 700; color: var(--ink); user-select: none; }
.doc-by { margin: 0; font-size: 11px; color: var(--ink-3); }
.doc-toc { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; counter-reset: c; }
.doc-toc li { display: flex; gap: 10px; font-size: 11.5px; color: var(--ink-2); }
.doc-toc li::after { content: ''; flex: 1; border-bottom: 1px dotted #C9D0D8; transform: translateY(-4px); order: 1; }
.doc-toc li::before { counter-increment: c; content: counter(c); order: 2; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 14px; text-align: right; }
.doc-seal { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%) rotate(2deg); width: 82%; padding: 14px 16px; border-radius: 12px; background: rgba(14,23,38,.9); color: #fff; text-align: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 20px 40px -12px rgba(14,23,38,.5); animation: rise .6s .5s var(--ease) both; }
.doc-seal b { display: block; font-size: 14px; letter-spacing: .02em; }
.doc-seal span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: #C9D2DD; }
.deliv-t h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.deliv-t > p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 12px 0 18px; }
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 14.5px; font-weight: 500; }
.dl .i { color: var(--acc); }
@media (max-width: 900px) { .deliv { grid-template-columns: 1fr; gap: 36px; } .doc { width: min(100%, 340px); } }

/* Pins keep their look wherever they sit */
button.pin { height: 22px; min-width: 30px; padding: 0 7px; border-radius: 11px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; }
.itbl th .pin { margin-left: 8px; vertical-align: middle; }

.has-panel .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.has-panel .kpi.chart { grid-column: 1 / -1; }
.has-panel .kpi > b { font-size: 28px; }

@media (max-width: 560px) {
  .brand b { display: none; }
  .pbar nav a[aria-disabled] { display: none; }
  .rtbl th:nth-child(4), .rtbl td:nth-child(4) { display: none; }
}

.vt { display: flex; gap: 4px; flex-wrap: wrap; }

/* Embedded on the case page: no story bar, the sketch fills the frame */
.embed .product { min-height: 100vh; }
.embed .ipanel { top: 0; height: 100vh; }
.embed body { background: var(--bg); }
