/* Cairn Console — the client workspace behind the Cairn landing page.
   Same visual language: hairline grid, dotted panes, mono labels, engraved imagery. */
:root {
  --ink: #111111; --ink-2: #2b2b2b; --muted: #5f5f5f; --muted-2: #8a8a8a; --faint: #b4b4b4;
  --line: #e9e9e9; --line-2: #dedede; --hover: #f7f7f7; --pane: #f6f6f6; --dot: #d6d6d6; --cream: #f6f1e6;
  --green: #1f9d63; --green-2: #22c55e; --green-bg: #ecf8f1; --blue: #2f7de1; --blue-bg: #eef4fd;
  --red: #e5484d; --red-bg: #fdeeee; --amber: #d98a07; --amber-bg: #fdf4e3; --purple: #8b5cf6; --engrave: #2e4a72;
  --display: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --side: 252px; --top: 64px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 12px 30px -12px rgb(0 0 0 / .16);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: #d9e6fb; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.i { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- primitives ---------- */
.label { font: 400 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; font: 500 13.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .15s, border-color .15s; }
.btn-dark { color: #fff; background: linear-gradient(#2e2e2e, #161616); border: 1px solid #000; box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 1px 2px rgb(0 0 0 / .2), 0 8px 20px -10px rgb(0 0 0 / .45); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 4px rgb(0 0 0 / .2), 0 14px 28px -12px rgb(0 0 0 / .5); }
.btn-dark:active, .btn-line:active { transform: scale(.98); }
.btn-line { color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.btn-line:hover { border-color: #cfcfcf; background: #fcfcfc; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--hover); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 6px; }
.btn-ok { color: #fff; background: linear-gradient(#26b06f, #1b8b57); border: 1px solid #157347; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 18px -10px rgb(31 157 99 / .7); }
.btn-ok:hover { transform: translateY(-1px); }
.btn .i { width: 15px; height: 15px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); transition: background-color .15s, color .15s; flex-shrink: 0; position: relative; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.ibox { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid #e8e8e8; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06); color: var(--ink-2); flex-shrink: 0; }
.ibox .i { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; font: 400 13.5px/1 var(--display); color: var(--ink-2); background: #fff; white-space: nowrap; }
.switch { position: relative; display: inline-block; width: 24px; height: 14px; border-radius: 8px; background: #ececec; box-shadow: inset 0 1px 2px rgb(0 0 0 / .08); flex-shrink: 0; }
.switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .22); transition: transform .45s var(--ease); }
.switch.on { background: #c9eedb; }
.switch.on i { transform: translateX(6px); }
button.switch { cursor: pointer; }
.toggle { position: relative; width: 36px; height: 20px; border-radius: 12px; background: #e6e6e6; box-shadow: inset 0 1px 2px rgb(0 0 0 / .1); transition: background-color .25s; flex-shrink: 0; }
.toggle i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .35s var(--ease); }
.toggle[aria-checked="true"] { background: var(--green); }
.toggle[aria-checked="true"] i { transform: translateX(16px); }
.meter { display: inline-flex; gap: 3px; }
.meter b { width: 4px; height: 14px; border-radius: 1px; background: #d7d7d7; }
.meter b.on { background: var(--green-2); }
.meter.live b:not(.on) { animation: level 1.6s steps(1) infinite; }
.meter.live b:nth-child(2) { animation-delay: .2s; } .meter.live b:nth-child(3) { animation-delay: .4s; }
@keyframes level { 0% { background: #d7d7d7; } 33% { background: var(--green-2); } 100% { background: #d7d7d7; } }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--faint)); flex-shrink: 0; }
.pulse { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, var(--green)) 50%, transparent); animation: ping 2s ease-out infinite; }
@keyframes ping { 80%, 100% { box-shadow: 0 0 0 6px transparent; } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11.5px/1 var(--sans); white-space: nowrap; color: var(--muted); background: #f3f3f3; border: 1px solid #ebebeb; }
.chip.ok { color: #157347; background: var(--green-bg); border-color: #d3efdf; }
.chip.warn { color: #9a6205; background: var(--amber-bg); border-color: #f6e3bd; }
.chip.bad { color: #b42328; background: var(--red-bg); border-color: #f7d6d7; }
.chip.info { color: #1f5fb8; background: var(--blue-bg); border-color: #d6e4f8; }
.chip.dark { color: #fff; background: #1b1b1b; border-color: #000; }
.chip .dot { width: 6px; height: 6px; }
.av { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--cream); box-shadow: 0 0 0 1px #e3dccd; flex-shrink: 0; }
.av.lg { width: 44px; height: 44px; }
.avs { display: flex; } .avs .av + .av { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); background: #fafafa; font: 500 11px/1 var(--mono); color: var(--muted); box-shadow: 0 1px 0 #e5e5e5; }
.empty { display: grid; place-items: center; gap: 10px; padding: 36px 16px 40px; text-align: center; color: var(--muted); }
.empty img { width: 180px; mix-blend-mode: multiply; }
.empty b { font: 500 17px/1.3 var(--display); color: var(--ink); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fff; z-index: 40; }
.side-top { display: flex; align-items: stretch; height: var(--top); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.logo-cell { display: grid; place-items: center; width: 64px; border-right: 1px solid var(--line); flex-shrink: 0; }
.ws { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; padding: 0 12px 0 14px; text-align: left; transition: background-color .15s; }
.ws:hover { background: var(--hover); }
.ws b { display: block; font: 500 14.5px/1.2 var(--display); color: var(--ink); }
.ws small { display: flex; align-items: center; gap: 6px; font: 400 11.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.ws .i { color: var(--muted-2); }
.side-close { display: none; align-self: center; margin-right: 8px; }
.nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; scrollbar-width: thin; scrollbar-color: #e5e5e5 transparent; }
.nav-g { padding: 16px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--hover); }
.nav a .i { color: var(--muted); }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .06), 0 6px 14px -10px rgb(0 0 0 / .25); }
.nav a[aria-current="page"] .i { color: var(--ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--ink); }
.nav .count { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--muted-2); }
.nav .count.hot { display: grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; color: #fff; background: var(--red); }
.side-foot { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }
.live-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--pane); background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px); background-size: 14px 14px; }
.live-box .row { display: flex; align-items: center; justify-content: space-between; }
.live-box b { font: 500 22px/1 var(--display); letter-spacing: -.02em; }
.live-box p { font-size: 12px; color: var(--muted); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 8px; text-align: left; width: 100%; }
.me:hover { background: var(--hover); }
.me b { display: block; font-size: 13.5px; font-weight: 500; }
.me span { display: block; font-size: 12px; color: var(--muted-2); }

.main { display: flex; flex-direction: column; min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: var(--top); padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 14px/1 var(--display); color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--ink); }
.top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-pill { display: flex; align-items: center; gap: 8px; height: 34px; width: 260px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-2); font-size: 13px; background: #fcfcfc; transition: border-color .15s; }
.search-pill:hover { border-color: #d5d5d5; }
.search-pill .kbd { margin-left: auto; }
.clock { font: 400 12px/1 var(--mono); color: var(--muted-2); padding: 0 6px; white-space: nowrap; }
.bell .badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgb(17 17 17 / .32); }

.view { min-width: 0; outline: none; padding-bottom: 72px; }
.view-in { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- page header with engraving ---------- */
.banner { position: relative; height: 200px; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--cream); isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(255 255 255 / .96) 0%, rgb(255 255 255 / .86) 30%, rgb(255 255 255 / .2) 62%, rgb(255 255 255 / 0) 80%); }
.banner-in { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 32px; max-width: 640px; }
.banner h1, .ph h1 { font: 500 32px/1.08 var(--display); letter-spacing: -.025em; }
.banner p, .ph p { color: var(--ink-2); font-size: 14.5px; max-width: 520px; }
.banner .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 32px 22px; border-bottom: 1px solid var(--line); }
.ph .t { display: grid; gap: 8px; }
.ph .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ph h1 { font-size: 28px; }

/* ---------- grid of hairline cells ---------- */
.cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cell { min-width: 0; border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 20px 24px 24px; }
.cells > .cell:last-child, .cell.end { border-right: 0; }
.cells.first > .cell { border-top: 0; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; border-right: 0; }
.cell-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 22px; }
.cell-h h2 { font: 500 17px/1.25 var(--display); letter-spacing: -.012em; }
.cell-h .r { display: flex; align-items: center; gap: 8px; }
.cell.flush { padding: 0; }
.cell.flush .cell-h { padding: 20px 24px 0; }

/* dotted pane: the landing's feature canvas */
.pane { position: relative; background-color: var(--pane); background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px); background-size: 18px 18px; background-position: 9px 9px; }
.card { background: #fff; border-radius: 10px; border: 1px solid #ededed; box-shadow: 0 1px 2px rgb(0 0 0 / .04); min-width: 0; }
.card.lift { box-shadow: var(--shadow); }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.kpi { position: relative; padding: 20px 24px 22px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi .v { display: block; margin-top: 12px; font: 500 34px/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi .s { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.kpi .meter { position: absolute; top: 20px; right: 24px; }
.delta { font: 500 12px/1 var(--sans); }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }

/* ---------- overview hero ---------- */
.stage { position: relative; height: 470px; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--cream); isolation: isolate; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; transform: scale(1.03); transition: transform 2.4s var(--ease); }
.stage.in > img { transform: none; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(255 255 255 / .94) 0%, rgb(255 255 255 / .78) 28%, rgb(255 255 255 / 0) 52%); }
.stage-copy { position: absolute; left: 32px; top: 38px; width: min(440px, 40%); display: grid; gap: 14px; }
.stage-copy h1 { font: 500 40px/1.04 var(--display); letter-spacing: -.03em; }
.stage-copy p { font-size: 15px; color: var(--ink-2); }
.stage-copy .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.glass { position: absolute; right: 32px; top: 34px; width: min(560px, 50%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; padding: 8px; border-radius: 16px; background: rgb(255 255 255 / .36); border: 1px solid rgb(255 255 255 / .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgb(30 50 80 / .45); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.card-h b { display: block; font: 500 13.5px/1.25 var(--sans); }
.card-h small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #a1a1a1; }
.micro { padding: 2px 14px 6px; font: 400 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a8a8a8; }

.steps { position: relative; padding: 4px 14px 2px 34px; }
.steps::before { content: ""; position: absolute; left: 18px; top: 12px; bottom: 20px; width: 1px; background: #e7e7e7; }
.steps::after { content: ""; position: absolute; left: 18px; top: 12px; width: 1px; height: calc((100% - 32px) * var(--prog, 1)); background: linear-gradient(#e5484d, #6f9fd8, #1f9d63, #f59e0b, #8b5cf6); transition: height .6s var(--ease); }
.steps li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 0 0 12px; transition: opacity .4s var(--ease); }
.steps li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; transition: background-color .3s, transform .4s var(--ease); z-index: 1; }
.steps b { font: 500 12.5px/1.3 var(--sans); }
.steps small { grid-column: 1; font-size: 10.5px; line-height: 1.35; color: #9d9d9d; }
.steps time { grid-row: 1; grid-column: 2; font: 400 10px/1.3 var(--mono); color: #b0b0b0; padding-top: 2px; }
.steps.run li:not(.on) { opacity: .35; }
.steps.run li:not(.on)::before { background: #d4d4d4; transform: scale(.8); }
.resolved { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 9px 12px; border: 1px solid #e3e3e3; border-radius: 8px; color: var(--blue); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.resolved b { display: block; font: 500 12.5px/1.25 var(--sans); }
.resolved small { display: block; font-size: 10.5px; color: #a3a3a3; }
.resolved:not(.on) { opacity: 0; transform: translateY(6px); }
.needs { display: flex; flex-direction: column; }
.needs .card-h { border-bottom: 1px solid #efefef; }
.needs ul { display: grid; padding: 6px; }
.needs li button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border-radius: 8px; text-align: left; transition: background-color .15s; }
.needs li button:hover { background: var(--hover); }
.needs li b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.needs li small { display: block; font-size: 11px; color: var(--muted-2); }
.needs .more { margin: auto 12px 12px; }

/* agent mark: a small lettered tile used where the isometric art would be too small */
.amark { display: grid; place-items: center; width: var(--s); height: var(--s); flex-shrink: 0; border-radius: calc(var(--s) * .3); font: 600 calc(var(--s) * .44)/1 var(--display); color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 70%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .14); }
.byagent { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.byagent .stack { display: flex; gap: 3px; height: 10px; }
.byagent .stack i { border-radius: 3px; background: var(--c); min-width: 6px; }
.byagent ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 14px; }
.byagent li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.byagent li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex-shrink: 0; }
.byagent li b { margin-left: auto; font-weight: 500; color: var(--ink); }
.ghost-cell { background-color: var(--pane); background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px); background-size: 14px 14px; }
@media (max-width: 760px) { .byagent ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* feed */
.feed { display: grid; }
.feed li { display: grid; grid-template-columns: 72px 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f1f1f1; transition: background-color .6s; }
.feed li:first-child { border-top: 0; }
.feed li.new { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: #eef8f2; opacity: 0; transform: translateY(-6px); } 30% { opacity: 1; transform: none; } 100% { background: transparent; } }
.feed time { font: 400 11.5px/1 var(--mono); color: var(--muted-2); }
.feed .what { min-width: 0; }
.feed .what b { display: block; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what small { display: block; font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* agent list rows */
.agents-list { display: grid; }
.agents-list li a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f1f1; }
.agents-list li:first-child a { border-top: 0; }
.agents-list .thumb { width: 44px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }
.agents-list b { display: block; font-size: 13.5px; font-weight: 500; }
.agents-list small { display: block; font-size: 12px; color: var(--muted-2); }
.agents-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font: 400 10.5px var(--mono); fill: var(--muted-2); }
.chart .tip { position: absolute; z-index: 5; pointer-events: none; min-width: 140px; padding: 8px 10px; border-radius: 8px; background: #111; color: #fff; font-size: 12px; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .4); transform: translate(-50%, -100%); white-space: nowrap; }
.chart .tip b { display: block; font: 400 10.5px/1.4 var(--mono); color: #b9b9b9; text-transform: uppercase; letter-spacing: .05em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; background: var(--c); }

/* ---------- toolbar, filters, tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted-2); background: #fff; min-width: 220px; }
.search:focus-within { border-color: #bdbdbd; box-shadow: 0 0 0 3px #f1f1f1; }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 13.5px; color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: #f2f2f2; border: 1px solid #ebebeb; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 0 0 1px #e6e6e6; }
.seg em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--muted-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: var(--top); z-index: 2; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th button { display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:hover { color: var(--ink); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 12px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; }
.tbl tbody tr { transition: background-color .12s; cursor: pointer; }
.tbl tbody tr:hover { background: #fafafa; }
.tbl tbody tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tbl tbody tr.sel { background: #f6f9fe; }
.tbl th:first-child, .tbl td:first-child { padding-left: 32px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 32px; }
.tbl .sub { display: block; font-size: 12px; color: var(--muted-2); }
.show-sm { display: none; }
.tbl .subj { display: block; font-weight: 500; max-width: 420px; }
.canvas-hint { display: none; position: sticky; left: 18px; top: 14px; z-index: 3; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .thumb { width: 34px; height: 26px; object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; font-size: 12.5px; color: var(--muted); }
.pager .r { display: flex; gap: 6px; }

/* ---------- side sheet ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgb(17 17 17 / .18); transition: opacity .25s; }
.sheet { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line); box-shadow: -30px 0 60px -30px rgb(0 0 0 / .35); transition: transform .35s var(--ease); outline: none; }
.sheet.starting, .sheet.closing { transform: translateX(100%); }
.sheet-back.starting, .sheet-back.closing { opacity: 0; }
.sheet-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.sheet-h .t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sheet-h h2 { font: 500 20px/1.2 var(--display); letter-spacing: -.015em; }
.sheet-b { flex: 1; overflow-y: auto; }
.sheet-sec { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.sheet-sec > .label { display: block; margin-bottom: 12px; }
.sheet-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfcfc; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.code { padding: 12px 14px; border-radius: 8px; background: #fafafa; border: 1px solid #efefef; font: 400 12px/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.code .k { color: #7a5cff; } .code .s { color: #157347; } .code .n { color: #1f5fb8; }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); min-height: calc(100dvh - var(--top) - 200px); border-bottom: 1px solid var(--line); }
.ilist { border-right: 1px solid var(--line); }
.ilist-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ilist ul { display: grid; }
.iitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; width: 100%; padding: 14px 16px; border-bottom: 1px solid #f1f1f1; text-align: left; transition: background-color .15s, opacity .3s, transform .3s var(--ease); }
.iitem:hover { background: #fafafa; }
.iitem[aria-current="true"] { background: #f6f9fe; box-shadow: inset 2px 0 0 var(--ink); }
.iitem b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.iitem small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted-2); }
.iitem .when { font: 400 11px/1.4 var(--mono); color: var(--muted-2); text-align: right; }
.iitem.leaving { opacity: 0; transform: translateX(-12px); }
.idetail { min-width: 0; display: flex; flex-direction: column; }
.idetail-h { padding: 22px 28px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.idetail-h h2 { font: 500 24px/1.2 var(--display); letter-spacing: -.02em; }
.idetail-h .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.idetail-b { display: grid; grid-template-columns: minmax(0, 1fr) 300px; flex: 1; }
.idetail-main { padding: 22px 28px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.idetail-side { border-left: 1px solid var(--line); padding: 22px 22px; display: grid; gap: 18px; align-content: start; }
.why { display: grid; gap: 10px; }
.why li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.why li .i { margin-top: 2px; color: var(--green); }
.why li.warn .i { color: var(--amber); }
.proposal { padding: 16px; display: grid; gap: 12px; }
.proposal .label { display: flex; align-items: center; justify-content: space-between; }
.draft { width: 100%; min-height: 150px; resize: vertical; padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; font: 400 13.5px/1.6 var(--sans); color: var(--ink); outline: none; }
.draft:focus { border-color: #bdbdbd; box-shadow: 0 0 0 3px #f1f1f1; }
.diff { display: grid; gap: 6px; font: 400 12.5px/1.5 var(--mono); }
.diff div { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 7px 10px; border-radius: 6px; background: #fafafa; }
.diff s { color: var(--red); text-decoration-color: rgb(229 72 77 / .5); }
.diff ins { text-decoration: none; color: var(--green); }
.conf { display: grid; gap: 6px; }
.conf .bar { position: relative; height: 8px; border-radius: 4px; background: #efefef; }
.conf .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--c, var(--amber)); }
.conf .bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.conf p { font-size: 12px; color: var(--muted); }
.decide { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 28px; border-top: 1px solid var(--line); background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); margin-top: auto; }
.decide .hint { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }

/* ---------- agents ---------- */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.acard { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-top: 1px solid var(--line); min-width: 0; }
.agrid .acard:nth-child(-n+3) { border-top: 0; }
.agrid .acard:nth-child(3n) { border-right: 0; }
.acard .pane { height: 200px; display: grid; place-items: center; overflow: hidden; }
.acard .pane img { width: 74%; height: 92%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.acard:hover .pane img { transform: translateY(-4px) scale(1.03); }
.acard .pane .label { position: absolute; left: 16px; top: 14px; }
.acard .pane .meter { position: absolute; right: 16px; top: 12px; }
.acard-b { padding: 18px 22px 20px; display: grid; gap: 10px; flex: 1; }
.acard-b h3 { font: 500 18px/1.2 var(--display); letter-spacing: -.012em; }
.acard-b > p { font-size: 13.5px; color: var(--muted); }
.acard-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.stats3 b { display: block; font: 500 17px/1.2 var(--display); letter-spacing: -.02em; }
.stats3 span { font-size: 11.5px; color: var(--muted-2); }
.modes { display: inline-flex; padding: 2px; border-radius: 8px; background: #f2f2f2; border: 1px solid #ebebeb; }
.modes button { height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.modes button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 0 0 1px #e6e6e6; }
.modes button[aria-pressed="true"][data-mode="live"] { color: var(--green); }
.modes button[aria-pressed="true"][data-mode="shadow"] { color: var(--amber); }
.ahero { display: grid; grid-template-columns: 340px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.ahero .pane { display: grid; place-items: center; border-right: 1px solid var(--line); min-height: 280px; }
.ahero .pane img { width: 82%; mix-blend-mode: multiply; }
.ahero-b { padding: 28px 32px; display: grid; gap: 14px; align-content: center; }
.ahero-b h1 { font: 500 34px/1.05 var(--display); letter-spacing: -.03em; }
.ahero-b > p { color: var(--ink-2); max-width: 560px; }
.range { width: 100%; accent-color: var(--ink); height: 24px; }
.thresh { display: grid; gap: 10px; }
.thresh .row { display: flex; align-items: baseline; justify-content: space-between; }
.thresh .row b { font: 500 28px/1 var(--display); letter-spacing: -.03em; }
.thresh .split { display: grid; grid-template-columns: var(--a, 70%) 1fr; height: 10px; border-radius: 5px; overflow: hidden; background: #f0f0f0; transition: grid-template-columns .3s var(--ease); }
.thresh .split i:first-child { background: var(--green); }
.thresh .split i:last-child { background: repeating-linear-gradient(135deg, #f3d9a6 0 4px, #fbecd0 4px 8px); }
.tools { display: grid; gap: 8px; }
.tools li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.tools li b { display: block; font-size: 13.5px; font-weight: 500; }
.tools li small { display: block; font-size: 12px; color: var(--muted-2); }
.tools li .toggle { margin-left: auto; }
.mono-tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; font: 600 13px/1 var(--display); flex-shrink: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); }
.prompt { width: 100%; min-height: 160px; resize: vertical; padding: 14px; border-radius: 10px; border: 1px solid #e6e6e6; background: #fcfcfc; font: 400 12.5px/1.65 var(--mono); color: var(--ink-2); outline: none; }
.prompt:focus { border-color: #bdbdbd; background: #fff; }

/* ---------- workflows canvas ---------- */
.wlist { display: grid; }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 24px; padding: 18px 32px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.wrow:hover { background: #fafafa; }
.wrow h3 { font: 500 16px/1.25 var(--display); }
.wrow p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.wrow .chain { display: flex; align-items: center; gap: 4px; }
.wrow .chain i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wrow .chain em { width: 10px; height: 1px; background: #d8d8d8; }
.canvas { position: relative; min-height: 520px; overflow: auto; border-bottom: 1px solid var(--line); }
.canvas-in { position: relative; width: 1100px; height: 520px; }
.canvas svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.canvas svg.edges path { fill: none; stroke: #c9c9c9; stroke-width: 1.3; }
.canvas svg.edges path.hot { stroke: var(--green); stroke-width: 1.8; }
.canvas svg.edges circle { fill: var(--green); }
.wnode { position: absolute; width: 196px; transform: translate(-50%, -50%); text-align: left; cursor: pointer; transition: box-shadow .2s, border-color .2s, transform .25s var(--ease); }
.wnode:hover { box-shadow: var(--shadow); }
.wnode[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.wnode.done { border-color: #bfe8d1; }
.wnode.active { border-color: var(--green); box-shadow: 0 0 0 3px #d6f3e3, var(--shadow); }
.wnode .card-h { padding: 12px 12px 4px; }
.wnode p { padding: 0 12px 12px 52px; font-size: 11.5px; color: var(--muted-2); line-height: 1.4; }
.wnode .kind { position: absolute; top: -9px; left: 12px; padding: 1px 7px; border-radius: 4px; background: #fff; border: 1px solid var(--line); font: 400 9.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.canvas-tools { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; gap: 8px; }

/* ---------- documents ---------- */
.doc-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); border-bottom: 1px solid var(--line); }
.doc-stage { display: grid; place-items: start center; padding: 32px; border-right: 1px solid var(--line); overflow: auto; }
.paper { position: relative; width: min(560px, 100%); padding: 36px 40px 40px; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -24px rgb(30 40 60 / .35); font-size: 12px; color: #2a2a2a; }
.paper::before { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(0 0 0 / .012) 0 1px, transparent 1px 3px); }
.paper .ph-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.paper .brand { font: 600 18px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.paper .meta { text-align: right; font-size: 11px; line-height: 1.6; color: #555; }
.paper h4 { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #777; margin-bottom: 6px; }
.paper table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.paper th, .paper td { padding: 7px 6px; border-bottom: 1px solid #eee; text-align: left; font-size: 11.5px; }
.paper th { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #888; font-weight: 600; }
.paper td.r, .paper th.r { text-align: right; }
.paper .tot { display: flex; justify-content: flex-end; gap: 30px; margin-top: 14px; font-size: 13px; }
.paper .tot b { font-size: 15px; }
.paper .stamp { position: absolute; right: 46px; bottom: 54px; padding: 6px 12px; border: 2px solid rgb(46 74 114 / .55); border-radius: 6px; color: rgb(46 74 114 / .7); font: 700 13px/1 var(--mono); letter-spacing: .12em; transform: rotate(-8deg); }
.fld { position: relative; border-radius: 3px; transition: background-color .2s, box-shadow .2s; }
.fld.hl { background: rgb(47 125 225 / .12); box-shadow: 0 0 0 2px rgb(47 125 225 / .55); }
.fld.low { background: rgb(217 138 7 / .12); box-shadow: 0 0 0 1px rgb(217 138 7 / .5); }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(rgb(31 157 99 / 0), rgb(31 157 99 / .14), rgb(31 157 99 / 0)); border-bottom: 1px solid rgb(31 157 99 / .5); pointer-events: none; animation: scan 2.6s var(--ease) 1; opacity: 0; }
@keyframes scan { 0% { transform: translateY(0); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(560px); opacity: 0; } }
.fields { display: grid; }
.fields li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid #f1f1f1; transition: background-color .15s; }
.fields li:hover, .fields li.hl { background: #f6f9fe; }
.fields dt { font-size: 12.5px; color: var(--muted); }
.fields input { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 5px 7px; margin: -5px -7px; background: none; font: 500 13.5px/1.3 var(--sans); outline: none; }
.fields input:hover { border-color: #e6e6e6; }
.fields input:focus { border-color: #bdbdbd; background: #fff; }
.cbar { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); color: var(--muted-2); }
.cbar i { display: block; width: 34px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c) var(--p), #eee var(--p)); }

/* ---------- finance ---------- */
.close-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.close-steps li { position: relative; padding: 18px 20px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.close-steps li:last-child { border-right: 0; }
.close-steps li b { font: 500 14.5px/1.25 var(--display); }
.close-steps li small { font-size: 12px; color: var(--muted); }
.close-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c, transparent); }
.close-steps li.done { --c: var(--green); }
.close-steps li.now { --c: var(--ink); background: #fcfcfc; }
.scrub { position: relative; height: 34px; border-radius: 17px; background: linear-gradient(90deg, #0d0d0d, #2a2a2a 50%, #0d0d0d); overflow: hidden; }
.scrub-track { position: absolute; top: 3px; left: 50%; display: flex; transition: transform .5s var(--ease); }
.scrub button { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 14px; font: 500 12.5px/1 var(--sans); color: #bdbdbd; transition: background-color .3s, color .3s; flex-shrink: 0; }
.scrub button.on { background: #fff; color: #111; }
.scrub::before, .scrub::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50px; z-index: 2; pointer-events: none; }
.scrub::before { left: 0; background: linear-gradient(90deg, #0d0d0d, transparent); }
.scrub::after { right: 0; background: linear-gradient(-90deg, #0d0d0d, transparent); }

/* ---------- calls ---------- */
.wave { display: flex; align-items: center; gap: 2px; height: 64px; cursor: pointer; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #d9d9d9; transition: background-color .2s; }
.wave i.played { background: var(--ink); }
.wave i.spk { background: #c8dcf7; } .wave i.spk.played { background: var(--blue); }
.player { display: flex; align-items: center; gap: 14px; }
.play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(#2e2e2e, #161616); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 6px 14px -6px rgb(0 0 0 / .5); flex-shrink: 0; }
.transcript { display: grid; gap: 14px; }
.transcript li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; transition: opacity .3s; }
.transcript li time { font: 400 11.5px/1.6 var(--mono); color: var(--muted-2); }
.transcript li b { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.transcript li.agent b { color: var(--blue); }
.transcript li p { font-size: 14px; color: var(--ink-2); }
.transcript li.now p { color: var(--ink); }
.transcript li.now { position: relative; }
.transcript li.now::before { content: ""; position: absolute; left: -16px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--blue); }

/* ---------- ask ---------- */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: calc(100dvh - var(--top) - 200px); border-bottom: 1px solid var(--line); }
.thread { display: flex; flex-direction: column; gap: 18px; padding: 28px 32px 140px; max-width: 820px; width: 100%; margin: 0 auto; }
.msg { display: flex; gap: 12px; align-items: flex-start; animation: rise .4s var(--ease); }
.msg .bubble { max-width: 640px; font-size: 14.5px; line-height: 1.6; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { padding: 10px 14px; border-radius: 12px 12px 4px 12px; color: #fff; background: var(--blue); }
.msg.bot .bubble { color: var(--ink-2); }
.msg.bot .bubble p + p, .msg.bot .bubble p + ul, .msg.bot .bubble ul + p { margin-top: 10px; }
.msg.bot .bubble ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.spark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e9e9e9; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06); color: var(--blue); flex-shrink: 0; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cites a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); font: 400 11.5px/1 var(--mono); color: var(--muted); background: #fff; }
.cites a:hover { border-color: #cfcfcf; color: var(--ink); }
.typing { display: inline-flex; gap: 4px; padding: 10px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #b5b5b5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.composer { position: sticky; bottom: 16px; margin: auto auto 0; width: min(780px, calc(100% - 64px)); display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid #e3e3e3; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.composer textarea { flex: 1; min-height: 24px; max-height: 160px; resize: none; border: 0; outline: 0; background: none; font: 400 14.5px/1.5 var(--sans); padding: 6px 0; }
.suggest { display: grid; gap: 8px; }
.suggest button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; text-align: left; font-size: 13px; transition: border-color .15s, background-color .15s; }
.suggest button:hover { border-color: #cfcfcf; background: #fafafa; }
.ask-side { border-left: 1px solid var(--line); padding: 24px 22px; display: grid; gap: 18px; align-content: start; }

/* ---------- settings ---------- */
.stabs { display: flex; gap: 2px; padding: 0 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.stabs a { position: relative; padding: 14px 12px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.stabs a:hover { color: var(--ink); }
.stabs a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.stabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.igrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.igrid > div { display: grid; gap: 12px; padding: 22px 24px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.igrid > div:nth-child(-n+3) { border-top: 0; }
.igrid > div:nth-child(3n) { border-right: 0; }
.igrid .hd { display: flex; align-items: center; gap: 12px; }
.igrid .hd b { display: block; font: 500 15px/1.2 var(--display); }
.igrid .hd small { display: block; font-size: 12px; color: var(--muted-2); }
.igrid p { font-size: 13px; color: var(--muted); }
.igrid .ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.rules { display: grid; }
.rules li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 32px; border-bottom: 1px solid var(--line); }
.rules b { display: block; font-size: 14px; font-weight: 500; }
.rules p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.rules .ctl { display: flex; align-items: center; gap: 10px; }
.num-in { width: 84px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; font: 500 13px/1 var(--mono); text-align: right; outline: none; }
.num-in:focus { border-color: #bdbdbd; }
.usage { display: grid; gap: 8px; }
.usage .bar { height: 10px; border-radius: 5px; background: #efefef; overflow: hidden; }
.usage .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #8fd3b0, var(--green)); }

/* ---------- overlays ---------- */
.pop { position: fixed; z-index: 70; min-width: 220px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #e6e6e6; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 24px 48px -16px rgb(0 0 0 / .25); transform-origin: top; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.pop.starting, .pop.closing { opacity: 0; transform: translateY(-4px) scale(.98); }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; text-align: left; color: var(--ink-2); }
.pop .mi:hover, .pop .mi:focus-visible { background: var(--hover); outline: 0; }
.pop .mi small { margin-left: auto; font: 400 11px/1 var(--mono); color: var(--muted-2); }
.pop .sep { height: 1px; margin: 6px 4px; background: var(--line); }
.pop .lbl { padding: 8px 10px 4px; }
.notifs { width: 380px; padding: 0; overflow: hidden; }
.notifs-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.notifs-h b { font: 500 16px/1 var(--display); }
.notifs ul { max-height: 380px; overflow-y: auto; }
.notifs li a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 8px; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f3f3; }
.notifs li a:hover { background: #fafafa; }
.notifs li b { display: block; font-size: 13px; font-weight: 500; line-height: 1.4; }
.notifs li small { display: block; margin-top: 2px; font: 400 11px/1.4 var(--mono); color: var(--muted-2); }
.notifs li .ud { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--blue); }
.notifs li.read .ud { visibility: hidden; }
.notifs li.read b { font-weight: 400; color: var(--muted); }
.cmdk-back { position: fixed; inset: 0; z-index: 80; background: rgb(17 17 17 / .22); transition: opacity .2s; }
.cmdk { position: fixed; z-index: 81; left: 50%; top: 12vh; width: min(620px, calc(100vw - 24px)); transform: translateX(-50%); border-radius: 14px; background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45); overflow: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.cmdk.starting, .cmdk.closing { opacity: 0; transform: translateX(-50%) scale(.98); }
.cmdk-back.starting, .cmdk-back.closing { opacity: 0; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
.cmdk-in input { flex: 1; border: 0; outline: 0; font-size: 15px; color: var(--ink); background: none; }
.cmdk-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.cmdk-g { padding: 10px 10px 4px; }
.cmdk-it { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.cmdk-it.on { background: #f3f3f3; color: var(--ink); }
.cmdk-it small { margin-left: auto; font: 400 11.5px/1 var(--mono); color: var(--muted-2); }
.cmdk-it .thumb { width: 26px; height: 20px; object-fit: contain; mix-blend-mode: multiply; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 11px 14px; border-radius: 10px; background: #111; color: #fff; font-size: 13.5px; box-shadow: 0 16px 32px -12px rgb(0 0 0 / .5); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast .i { color: #6ee7a8; }
.toast button { margin-left: 6px; color: #9fc3ff; font-weight: 500; }
.toast.starting, .toast.closing { opacity: 0; transform: translateY(8px); }
body.has-toast .ariadne { opacity: 0; pointer-events: none; }
.ariadne.in-side { position: static; display: table; margin: 2px auto 0; opacity: 1; }
@media (min-width: 1081px) { .ariadne:not(.in-side) { display: none; } body.has-toast .ariadne.in-side { opacity: 1; pointer-events: auto; } }
@media (max-width: 1080px) { .ariadne.in-side { display: none; } }

.ariadne { position: fixed; right: 16px; bottom: 16px; z-index: 50; font: 500 12.5px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88); color: #fff; letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: .92; transition: opacity .2s; }
.ariadne b { font-weight: 600; color: #ff8a3d; }

@media (min-width: 1081px) { .back-btn { display: none !important; } }

/* ---------- shared bits for the newer views ---------- */
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.capbar { display: block; height: 6px; border-radius: 3px; background: #eee; overflow: hidden; }
.capbar.lg { height: 10px; border-radius: 5px; }
.capbar i { display: block; height: 100%; border-radius: inherit; }
.exl { display: grid; padding: 8px 10px 10px; }
.exl.flat { padding: 0; }
.exl li button { display: grid; grid-template-columns: 10px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 8px; text-align: left; transition: background-color .15s; }
.exl.flat li button { padding: 9px 0; border-radius: 0; border-top: 1px solid #f1f1f1; }
.exl.flat li:first-child button { border-top: 0; }
.exl li button:hover { background: var(--hover); }
.exl b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; }
.exl b .mono { font-size: 11.5px; color: var(--muted-2); font-weight: 400; }
.exl small { display: block; font-size: 12px; color: var(--muted-2); }
.exl .needs-you { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: #9a6205; font-weight: 500; }
.exl .needs-you .i { width: 12px; height: 12px; }
.exl li button > .i { color: var(--faint); }

/* ---------- network ---------- */
.net { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-bottom: 1px solid var(--line); min-height: 600px; }
.net-map { position: relative; overflow: hidden; background: #fbfaf6; isolation: isolate; border-right: 1px solid var(--line); }
.net-map::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/topo.webp") center / 420px; opacity: .16; filter: grayscale(1) contrast(.9); }
.net-map::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, #d9d6cc 1px, transparent 1.4px); background-size: 18px 18px; opacity: .6; }
.net-h { position: absolute; left: 32px; top: 28px; z-index: 2; display: grid; gap: 10px; max-width: 380px; pointer-events: none; }
.net-h > * { pointer-events: auto; }
.net-h h1 { font: 500 34px/1.05 var(--display); letter-spacing: -.03em; }
.net-h p { font-size: 14px; color: var(--ink-2); }
.netsvg { display: block; width: 100%; height: 100%; min-height: 600px; padding: 110px 12px 40px; }
.lane { fill: none; stroke: #c9c4b6; stroke-linecap: round; opacity: .8; }
.lane.hot { stroke: #f0a8aa; }
.hub { cursor: pointer; }
.hub-hit { fill: transparent; }
.hub-track { fill: #fff; stroke: #e7e3d8; stroke-width: 5; }
.hub-cap { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.hub-core { fill: #111; }
.hub-code { fill: #fff; font: 600 10.5px var(--mono); text-anchor: middle; letter-spacing: .04em; }
.hub-name { font: 500 13.5px var(--display); text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: #fbfaf6; stroke-width: 4px; }
.hub-cap-t { font: 400 10.5px var(--mono); text-anchor: middle; fill: var(--muted-2); paint-order: stroke; stroke: #fbfaf6; stroke-width: 4px; }
.hub-warn text { fill: #fff; font: 700 11px var(--sans); text-anchor: middle; }
.hub:hover .hub-core, .hub:focus-visible .hub-core { fill: #2f7de1; }
.hub:focus-visible { outline: none; }
.ship { cursor: pointer; }
.ship circle:last-child { stroke: #fff; stroke-width: 1.5; }
.ship .halo { opacity: .18; transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-out infinite; }
.ship.st-late .halo { animation-duration: 1.4s; }
@keyframes halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.8); opacity: 0; } }
.ship:hover circle:last-child, .ship:focus-visible circle:last-child { stroke: #111; stroke-width: 2; }
.ship:focus-visible { outline: none; }
.net-legend { position: absolute; left: 32px; bottom: 18px; z-index: 2; padding: 8px 12px; border-radius: 10px; background: rgb(255 255 255 / .82); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.net-legend-cap { color: var(--muted-2); }
.net-side { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.net-side .exl { flex: 1; overflow-y: auto; max-height: 470px; }
.net-note { display: flex; gap: 12px; align-items: flex-start; margin: auto 16px 16px; padding: 12px 14px; border-radius: 10px; background-color: var(--pane); background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px); background-size: 14px 14px; border: 1px solid var(--line); }
.net-note p { font-size: 12.5px; color: var(--muted); }
.net-note b { color: var(--ink); font-weight: 500; }
.lane-t { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.lane-t i { width: 18px; height: 1px; background: #bdbdbd; position: relative; }
.lane-t i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid #bdbdbd; border-right: 0; }
#net-tbl .tbl tbody tr { cursor: pointer; }
.hubgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hubcard { display: grid; gap: 8px; align-content: start; padding: 16px 16px 18px; border-right: 1px solid var(--line); text-align: left; transition: background-color .15s; min-width: 0; }
.hubcard:last-child { border-right: 0; }
.hubcard:hover { background: #fafafa; }
.hubcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.hubcard-h b { font: 500 15px/1.2 var(--display); }
.hubcard-h .mono { font-size: 10.5px; color: var(--muted-2); }
.hubcard-s { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.hubcard small { display: flex; gap: 5px; align-items: flex-start; font-size: 11.5px; line-height: 1.35; color: #9a6205; }
.hubcard small.ok { color: var(--muted-2); }
.hubcard small .i { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }
.route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.route b { display: block; font: 500 16px/1.2 var(--display); }
.route small { display: block; font: 400 11px/1.3 var(--mono); color: var(--muted-2); }
.route-bar { position: relative; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #ddd 0 6px, transparent 6px 10px); }
.route-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.route-bar b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgb(0 0 0 / .25); }
.hub-hero { height: 150px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--cream); }
.hub-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hub-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); color: #7a4d05; font-size: 13px; }
.hub-note .i { color: var(--amber); margin-top: 2px; }

/* ---------- customers ---------- */
.mini-spark { display: block; }
.cust-h .t { gap: 6px; }
.cust-id { display: flex; gap: 18px; align-items: center; min-width: 0; }
.ctl { display: grid; }
.ctl li { display: grid; grid-template-columns: 74px 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f1f1; }
.ctl li:first-child { border-top: 0; }
.ctl time { font: 400 11.5px/1 var(--mono); color: var(--muted-2); }
.ctl .what { min-width: 0; }
.ctl .what b { display: block; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl .what small { display: block; font-size: 12px; color: var(--muted-2); }
.ctl .what:hover b { text-decoration: underline; text-underline-offset: 3px; }
.prefs { display: grid; gap: 8px; }
.prefs li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; align-items: center; padding: 8px 6px 8px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.prefs .icon-btn { width: 28px; height: 28px; opacity: 0; transition: opacity .15s; }
.prefs li:hover .icon-btn, .prefs .icon-btn:focus-visible { opacity: 1; }
.pref-add { display: flex; gap: 8px; margin-top: 10px; padding: 6px 6px 6px 12px; border: 1px dashed var(--line-2); border-radius: 10px; }
.pref-add input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 13.5px; background: none; }

/* ---------- evals ---------- */
.ecard-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.ecard-top:hover { background: #fafafa; }
.ecard-top b { display: block; font: 500 16px/1.2 var(--display); }
.ecard-top small { display: block; font-size: 12px; color: var(--muted-2); }
.ecard-n { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: end; }
.ecard-n b { font: 500 34px/1 var(--display); letter-spacing: -.035em; }
.ecard-n > span:not(.ebars) { grid-column: 1; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ebars { grid-column: 2; grid-row: 1 / span 2; justify-self: end; display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.ebars i { width: 10px; border-radius: 3px 3px 1px 1px; }
.gate-line, .ecard-f { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.gate-line .i { color: var(--blue); width: 14px; height: 14px; margin-top: 1px; }
.ecard-f .i { width: 14px; height: 14px; margin-top: 1px; color: var(--red); }
.ecard-f .i:only-child, .ecard-f svg + :not(svg) { }
.ecard .acard-b { gap: 12px; }
.gate { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; padding: 20px 32px; border-bottom: 1px solid var(--line); background: #f6f9fe; }
.gate.open { background: var(--green-bg); }
.gate b { display: block; font: 500 18px/1.25 var(--display); margin: 4px 0 2px; }
.gate p { font-size: 13px; color: var(--muted); max-width: 560px; }
.gate-steps { display: flex; gap: 8px; }
.gate-steps li { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed #b9c9e2; font: 500 12px/1 var(--mono); color: var(--muted-2); background: #fff; }
.gate-steps li.on { border: 0; color: #fff; background: linear-gradient(180deg, #2bb673, #1b8b57); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); }
.gate-steps .i { width: 15px; height: 15px; stroke-width: 2.4; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, 14px); gap: 4px; }
.cgrid i { width: 14px; height: 14px; border-radius: 3px; background: #8fd3b0; transition: background-color .25s, transform .25s var(--ease); }
.cgrid i.f { background: var(--red); }
.cgrid i.pending { background: #ececec; transform: scale(.7); }
.fails { display: grid; gap: 12px; }
.fails li { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.fails li.ok { opacity: .7; }
.fails-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fails-h .mono { font-size: 11px; color: var(--muted-2); }
.fails-h b { font-size: 13.5px; font-weight: 500; }
.fails .diff div { grid-template-columns: 70px minmax(0, 1fr); }
.fails .diff .label { font-size: 10px; }

/* ---------- knowledge ---------- */
.krow { color: inherit; }
.krow h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.krow .avs .amark + .amark { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.paper.policy { font-size: 13px; }
.rules-doc { display: grid; gap: 4px; margin: 10px 0 12px; padding-left: 0; counter-reset: r; }
.rules-doc li { position: relative; padding: 8px 10px 8px 34px; border-radius: 6px; counter-increment: r; font-size: 13.5px; line-height: 1.5; outline: none; transition: background-color .15s, box-shadow .15s; }
.rules-doc li::before { content: counter(r); position: absolute; left: 8px; top: 9px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #111; color: #fff; font: 600 10px/1 var(--mono); }
.rules-doc li:hover { background: #fafafa; }
.rules-doc li:focus { background: #f6f9fe; box-shadow: 0 0 0 1px #c8dcf7; }
.policy-f { margin-top: 18px; padding-top: 12px; border-top: 1px solid #eee; font-size: 11px; color: #888; }

/* ---------- weekly report ---------- */
.rp-bar { position: sticky; top: var(--top); z-index: 5; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); }
.rp-stage { display: grid; place-items: start center; padding: 36px 24px 56px; border-bottom: 1px solid var(--line); }
.rp-paper { width: min(780px, 100%); padding: 48px 56px 40px; background: #fffefa; border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 30px 60px -30px rgb(30 40 60 / .4); color: #222; }
.rp-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #111; }
.rp-h .brand { font: 600 22px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.01em; margin-bottom: 6px; }
.rp-logo { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--display); color: #111; }
.rp-fig { margin: 24px 0 22px; height: 220px; overflow: hidden; border-radius: 3px; background: var(--cream); }
.rp-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.rp-paper h1 { font: 500 34px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.015em; margin-bottom: 14px; }
.rp-paper h2 { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #777; margin: 28px 0 12px; }
.rp-lede { font: 400 16px/1.65 Georgia, "Times New Roman", serif; color: #333; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid #e5e2d8; border-bottom: 1px solid #e5e2d8; }
.rp-kpis div { padding: 14px 16px; border-right: 1px solid #e5e2d8; display: grid; gap: 8px; }
.rp-kpis div:first-child { padding-left: 0; }
.rp-kpis div:last-child { border-right: 0; }
.rp-kpis b { font: 500 28px/1 var(--display); letter-spacing: -.03em; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rp-cols ul { display: grid; }
.rp-cols li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #eee; font-size: 13px; }
.rp-cols li:first-child { border-top: 0; }
.rp-cols li .rp-l { min-width: 0; }
.rp-cols li .rp-r { color: #888; white-space: nowrap; font-size: 12px; }
.rp-cols b { font-weight: 600; }
.rp-small { margin-top: 10px; font-size: 12px; color: #888; }
.rp-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #e5e2d8; font-size: 12px; color: #777; }
@media print {
  .side, .top, .rp-bar, .toasts, #layer, .scrim { display: none !important; }
  .app { display: block; }
  .view { padding: 0; }
  .rp-stage { padding: 0; background: none; border: 0; }
  .rp-paper { box-shadow: none; width: 100%; padding: 0; }
  body { background: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .search-pill { width: 200px; }
  .glass { grid-template-columns: 1fr; width: min(340px, 44%); }
  .glass .needs { display: none; }
  .idetail-b { grid-template-columns: minmax(0, 1fr); }
  .idetail-side { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agrid .acard:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .agrid .acard:nth-child(-n+2) { border-top: 0; }
  .agrid .acard:nth-child(3n) { border-right: 1px solid var(--line); }
  .agrid .acard:nth-child(2n) { border-right: 0; }
  .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .igrid > div:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .igrid > div:nth-child(-n+2) { border-top: 0; }
  .igrid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .igrid > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 1080px) {
  .net { grid-template-columns: minmax(0, 1fr); }
  .net-map { border-right: 0; border-bottom: 1px solid var(--line); }
  .net-side .exl { max-height: none; }
  .hubgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hubcard:nth-child(4n) { border-right: 0; }
  .hubcard:nth-child(n+5) { border-top: 1px solid var(--line); }
  .gate { grid-template-columns: minmax(0, 1fr) auto; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: 30px 0 60px -30px rgb(0 0 0 / .35); }
  .side.open { transform: none; }
  .side-close { display: grid; }
  .menu-btn { display: grid; margin-left: -6px; }
  .cells > .cell { grid-column: span 12; border-right: 0; }
  .cells.first > .cell + .cell { border-top: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .ilist { border-right: 0; }
  .inbox.has-sel .ilist { display: none; }
  .inbox:not(.has-sel) .idetail { display: none; }
  .doc-split, .ask, .ahero { grid-template-columns: minmax(0, 1fr); }
  .doc-stage, .ahero .pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .ask-side { border-left: 0; border-top: 1px solid var(--line); }
  .close-steps { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .wrow { grid-template-columns: minmax(0, 1fr) auto; }
  .wrow .chain, .wrow .hide-md { display: none; }
}
@media (max-width: 760px) {
  .net-h { position: relative; left: auto; top: auto; padding: 22px 18px 0; max-width: none; }
  .net-h h1 { font-size: 28px; }
  .net-map { overflow-x: auto; scrollbar-width: thin; }
  .netsvg { width: 780px; max-width: none; min-height: 0; height: auto; padding: 4px 0 8px; }
  .net-legend { position: static; margin: 0 12px 14px; width: max-content; }
  .hubgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hubcard { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important; padding: 14px 16px; }
  .hubcard:nth-child(2n) { border-right: 0 !important; }
  .hubcard:nth-child(-n+2) { border-top: 0 !important; }
  .cust-id { gap: 12px; }
  .ctl li { grid-template-columns: 26px minmax(0, 1fr); }
  .ctl li time { display: none; }
  .ctl li > .chip { grid-column: 2; justify-self: start; }
  .gate { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 14px; }
  .rp-stage { padding: 0; }
  .rp-paper { padding: 28px 20px 28px; border-radius: 0; }
  .rp-paper h1 { font-size: 26px; }
  .rp-fig { height: 150px; }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-kpis div { padding-left: 0; }
  .rp-kpis div:nth-child(2n) { border-right: 0; padding-left: 14px; }
  .rp-kpis div:nth-child(n+3) { border-top: 1px solid #e5e2d8; }
  .rp-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rp-bar { top: var(--top); }
  :root { --top: 56px; }
  .top { padding: 0 10px 0 14px; gap: 6px; }
  .search-pill { width: 34px; padding: 0; justify-content: center; border: 0; background: none; }
  .search-pill span, .search-pill .kbd, .clock { display: none; }
  .ask-btn span { display: none; }
  .ask-btn { width: 34px; padding: 0; }
  .crumbs .hide-sm, .crumbs .sep { display: none; }
  .banner { height: auto; min-height: 168px; }
  .banner::after { background: linear-gradient(180deg, rgb(255 255 255 / .9) 0%, rgb(255 255 255 / .82) 60%, rgb(255 255 255 / .45) 100%); }
  .banner-in { padding: 24px 18px; }
  .banner h1, .ph h1 { font-size: 26px; }
  .ph, .toolbar { padding-left: 18px; padding-right: 18px; }
  .stage { height: auto; }
  .stage::after { background: linear-gradient(180deg, rgb(255 255 255 / .94) 0%, rgb(255 255 255 / .8) 34%, rgb(255 255 255 / 0) 60%); }
  .stage-copy { position: relative; left: auto; top: auto; width: auto; padding: 26px 18px 0; }
  .stage-copy h1 { font-size: 32px; }
  .glass { position: relative; right: auto; top: auto; width: auto; margin: 140px 12px 16px; }
  .cell { padding: 18px; }
  .cell.flush .cell-h { padding: 18px 18px 0; }
  .kpi { padding: 16px 18px 18px; }
  .kpi .v { font-size: 28px; }
  .kpi .meter { right: 18px; top: 16px; }
  .feed li { grid-template-columns: 54px 14px minmax(0, 1fr); }
  .feed li > :last-child { display: none; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
  .tbl .hide-sm, .tbl .btn .hide-sm { display: none; }
  .tbl .subj { max-width: calc(100vw - 190px); }
  .tbl .show-sm[style] { display: block !important; }
  .tbl td, .tbl th { padding-left: 8px; padding-right: 8px; }
  .toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .wave { gap: 1px; }
  .wave i { min-width: 1px; }
  .show-sm { display: inline; }
  .canvas-hint { display: inline-block; margin: 14px 0 0 18px; }
  .pager { padding: 14px 18px; }
  .agrid, .igrid { grid-template-columns: minmax(0, 1fr); }
  .agrid .acard, .igrid > div { border-right: 0 !important; border-top: 1px solid var(--line) !important; }
  .agrid .acard:first-child, .igrid > div:first-child { border-top: 0 !important; }
  .ahero-b { padding: 22px 18px; }
  .ahero-b h1 { font-size: 28px; }
  .idetail-h, .idetail-main { padding-left: 18px; padding-right: 18px; }
  .idetail-side { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .decide { padding: 12px 18px; }
  .decide .hint { display: none; }
  .diff div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-stage { padding: 18px 10px; }
  .paper { padding: 22px 18px 26px; }
  .fields li { grid-template-columns: 100px minmax(0, 1fr); padding: 10px 18px; }
  .fields li .cbar { grid-column: 2; }
  .wrow { padding: 16px 18px; }
  .rules li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 18px; }
  .stabs { padding: 0 10px; }
  .thread { padding: 22px 18px 130px; }
  .composer { width: calc(100% - 24px); }
  .notifs { width: calc(100vw - 24px); }
  .kv { grid-template-columns: 100px minmax(0, 1fr); }
  .sheet-sec { padding: 16px 18px; }
  .ariadne { position: static; display: table; margin: 12px auto 24px; }
  .view { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
