/* Cadence Talk documentation: navy, same brand as the landing page. Written for reading: wide sidebar, narrow text, big pictures. */
:root {
  --ink: #000f26; --ink-2: #00193d; --ink-3: #012149; --ink-4: #02295a;
  --line: rgba(90,160,235,.14); --line-2: rgba(90,160,235,.24);
  --text: #eaf2fb; --text-2: #a9bcd3; --muted: #7f95b0; --muted-2: #627a98;
  --wave-soft-bg: #00193e;
  --red: #f7821f; --red-2: #fb903a; --green: #22c55e; --blue: #00cfff; --amber: #f59e0b; --violet: #a78bfa;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --side: 272px; --toc: 220px; --top: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; font-family: var(--font); background: var(--ink); color: var(--text-2); line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
::selection { background: rgba(0,207,255,.4); }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 60; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(0,20,47,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .brand img { height: 26px; width: auto; }
.top .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); padding: 4px 9px; border: 1px solid rgba(251,144,58,.35); border-radius: 999px; }
.top .grow { flex: 1; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.top nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .25s; }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff !important; box-shadow: 0 8px 24px -8px rgba(247,130,31,.65), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.searchbtn { display: flex; align-items: center; gap: 10px; min-width: 250px; padding: 8px 12px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.searchbtn:hover { border-color: var(--line-2); color: var(--text-2); }
.searchbtn kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted-2); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; font-size: 18px; }

/* ── layout ── */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); max-width: 1560px; margin: 0 auto; }
.shell.nopage { grid-template-columns: var(--side) minmax(0, 1fr); }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 26px 14px 40px 22px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.side h5 { margin: 22px 0 8px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.side h5:first-child { margin-top: 0; }
.side a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background .15s, color .15s; }
.side a:hover { background: var(--ink-3); color: #fff; }
.side a[aria-current='page'] { background: rgba(247,130,31,.14); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.side a .ic { width: 22px; text-align: center; font-size: 15px; opacity: .85; }
.main { min-width: 0; padding: 44px clamp(22px, 4vw, 64px) 100px; }
.toc { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 44px 22px 40px 6px; }
.toc h6 { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.toc a { display: block; padding: 5px 0 5px 14px; font-size: 13.5px; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); transition: color .15s, border-color .15s; line-height: 1.4; }
.toc a:hover { color: #fff; }
.toc a.on { color: #fff; border-left-color: var(--red); }

/* ── page header ── */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: #fff; }
.main h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; color: #fff; max-width: 880px; }
.main h1 em { font-style: normal; background: linear-gradient(100deg, #00cfff, #3fb6ff 35%, var(--red) 70%, #fb903a 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lead { margin-top: 20px; max-width: 760px; font-size: 19px; color: var(--text-2); }
.prose { max-width: 780px; }
.prose p + p { margin-top: 14px; }
.prose a, .link { color: var(--red-2); text-decoration: none; font-weight: 600; } .prose a:hover { text-decoration: underline; }
.prose strong, .prose b { color: #fff; font-weight: 600; }
.prose code, code { font-family: var(--mono); font-size: .88em; padding: 2px 7px; border-radius: 6px; background: var(--ink-4); border: 1px solid var(--line); color: #ffd7d8; }
.main h2 { margin-top: 84px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 14px; }
.main h2 .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(247,130,31,.16); color: var(--red-2); font-family: var(--mono); font-size: 14px; flex: none; }
.main h2 + .prose, .main h2 + .sub { margin-top: 16px; }
.main h3 { margin-top: 36px; font-size: 20px; letter-spacing: -.01em; font-weight: 650; color: #fff; }
.main h3 + .prose { margin-top: 10px; }
.sub { max-width: 780px; color: var(--muted); }

/* ── pictures ── */
.frame { position: relative; margin-top: 30px; border-radius: 14px; overflow: hidden; background: #0b2345; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03); }
.frame.glow { box-shadow: 0 0 0 1px rgba(247,130,31,.25), 0 40px 110px -24px rgba(247,130,31,.38); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0f161d; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; } .frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #7d8791; }
.shotwrap { position: relative; }
.frame img { width: 100%; cursor: zoom-in; }
.frame.zoom img { transition: transform .5s ease; } .frame.zoom:hover img { transform: scale(1.015); }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.pin { position: absolute; z-index: 3; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.5); cursor: help; animation: pinpulse 2.4s infinite; }
.pin::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: 250px; padding: 9px 12px; border-radius: 10px; background: #0b2345; border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.pin:hover::after, .pin:focus-visible::after { opacity: 1; transform: translateX(-50%); }
@keyframes pinpulse { 0% { box-shadow: 0 0 0 0 rgba(247,130,31,.6), 0 6px 18px rgba(0,0,0,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(247,130,31,0), 0 6px 18px rgba(0,0,0,.5); } }
.legend { display: grid; gap: 8px; margin-top: 18px; padding: 0; list-style: none; counter-reset: pin; max-width: 780px; }
.legend li { counter-increment: pin; display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.legend li::before { content: counter(pin); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; transform: translateY(-1px); }

/* ── blocks ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 26px; }
.card { position: relative; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .25s; overflow: hidden; }
a.card:hover { transform: translateY(-3px); border-color: rgba(247,130,31,.5); box-shadow: 0 18px 40px -18px rgba(247,130,31,.45); }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(247,130,31,.14), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(247,130,31,.14); color: var(--red-2); font-size: 19px; margin-bottom: 14px; }
.card h4 { margin: 0 0 6px; font-size: 16.5px; color: #fff; font-weight: 650; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.card .more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--red-2); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 40px; align-items: center; margin-top: 34px; }
.split.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); } .split.flip > :first-child { order: 2; }
.split .frame { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); }
.steps { list-style: none; padding: 0; margin-top: 22px; counter-reset: s; display: grid; gap: 0; max-width: 780px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); color: #fff; font-weight: 700; font-size: 15px; z-index: 1; transition: background .4s, border-color .4s, box-shadow .4s; }
.steps li::after { content: ''; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.seen::before { background: var(--red); border-color: var(--red-2); box-shadow: 0 0 0 6px rgba(247,130,31,.14); }
.steps li > b { display: block; color: #fff; font-size: 16.5px; margin-bottom: 2px; }
.steps li > span { color: var(--muted); font-size: 15px; display: block; }
.steps li span b { color: #fff; font-weight: 600; }
.note { display: flex; gap: 14px; margin-top: 26px; padding: 16px 18px; max-width: 780px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); font-size: 15px; }
.note::before { content: 'i'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,207,255,.18); color: var(--blue); font-weight: 700; font-family: var(--mono); font-size: 13px; }
.note.tip { border-color: rgba(34,197,94,.28); } .note.tip::before { content: '✦'; background: rgba(34,197,94,.16); color: var(--green); }
.note.warn { border-color: rgba(255,194,77,.3); } .note.warn::before { content: '!'; background: rgba(255,194,77,.16); color: var(--amber); }
.note b { color: #fff; }
table { width: 100%; max-width: 860px; margin-top: 22px; border-collapse: collapse; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink-3); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
td { background: var(--ink-2); } tr:last-child td { border-bottom: 0; }
kbd { font-family: var(--mono); font-size: .85em; padding: 2px 7px; border-radius: 6px; background: var(--ink-4); border: 1px solid var(--line-2); border-bottom-width: 2px; color: #fff; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.08); color: var(--text-2); }
.pill.red { background: rgba(247,130,31,.18); color: #ff8b8f; } .pill.green { background: rgba(34,197,94,.15); color: var(--green); } .pill.blue { background: rgba(0,207,255,.15); color: var(--blue); } .pill.amber { background: rgba(255,194,77,.15); color: var(--amber); }
.acc { margin-top: 20px; max-width: 780px; display: grid; gap: 10px; }
.acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.acc summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; } .acc summary::after { content: '+'; color: var(--red-2); font-size: 20px; line-height: 1; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > div { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }

/* prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 90px; max-width: 780px; }
.pager a { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); text-decoration: none; transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: rgba(247,130,31,.5); transform: translateY(-2px); }
.pager small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.pager b { color: #fff; font-size: 17px; } .pager .next { text-align: right; }
.footer { border-top: 1px solid var(--line); padding: 34px 22px; text-align: center; font-size: 13.5px; color: var(--muted-2); }
.footer a { color: var(--muted); text-decoration: none; margin: 0 10px; } .footer a:hover { color: #fff; }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ── docs home ── */
.hero { position: relative; overflow: hidden; margin-top: 28px; padding: 48px 44px 26%; border-radius: 22px; border: 1px solid var(--line-2); background: var(--wave-soft-bg); }
/* the wave artwork spans the card's full width along its bottom; its plain upper part is the card's own colour */
.hero .orb { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 3 / 1; pointer-events: none; background: image-set(url('/assets/wave-soft-dark@1x.webp') 1x, url('/assets/wave-soft-dark@2x.webp') 2x) center bottom / 100% auto no-repeat; }
@media (max-width: 720px) { .hero { padding: 32px 22px 34%; } }
@keyframes drift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, 50px) scale(1.12); } }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hsearch { display: flex; align-items: center; gap: 12px; margin-top: 30px; max-width: 560px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,22,52,.92); color: var(--muted); font-size: 16px; cursor: pointer; width: 100%; font-family: inherit; text-align: left; transition: border-color .2s, box-shadow .2s; }
.hsearch:hover { border-color: rgba(247,130,31,.5); box-shadow: 0 0 0 4px rgba(247,130,31,.1); }
.hsearch kbd { margin-left: auto; }
.group-title { margin: 64px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); }
.group-title + .cards { margin-top: 16px; }

/* ── search dialog ── */
.sdlg { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; background: rgba(2,4,6,.72); backdrop-filter: blur(6px); }
.sdlg.open { display: flex; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sbox { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0,0,0,.8); overflow: hidden; }
.sbox input { width: 100%; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #fff; font: inherit; font-size: 17px; outline: none; }
.sres { overflow-y: auto; padding: 8px; }
.sres a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; }
.sres a:hover, .sres a.sel { background: var(--ink-4); }
.sres b { display: block; color: #fff; font-size: 15px; } .sres small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sres .empty { padding: 26px; text-align: center; color: var(--muted); }
.sres mark { background: rgba(247,130,31,.35); color: #fff; border-radius: 3px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; background: rgba(2,4,6,.92); padding: 24px; cursor: zoom-out; }
.lb.open { display: grid; animation: fade .15s; } .lb img { max-height: 92vh; max-width: 96vw; width: auto; border-radius: 12px; box-shadow: 0 40px 140px rgba(0,0,0,.9); }

/* ══ animated demos ══ */
.demo { position: relative; margin-top: 30px; border-radius: 18px; border: 1px solid var(--line-2); background: radial-gradient(120% 120% at 0% 0%, #1a0b0e, var(--ink-2) 55%); padding: 28px; overflow: hidden; min-height: 280px; }
.demo::before { content: attr(data-label); position: absolute; top: 12px; left: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.demo .replay { position: absolute; top: 8px; right: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.demo .replay:hover { color: #fff; border-color: var(--red); }
.demo .stage { margin-top: 14px; }
.hide { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.hide.show { opacity: 1; transform: none; }
/* phone */
.d-call { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; align-items: center; }
.pcard { padding: 22px; border-radius: 22px; background: var(--ink-3); border: 1px solid var(--line-2); text-align: center; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); }
.avatar { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(135deg, #f7821f, #7a1216); position: relative; }
.avatar.ring::before, .avatar.ring::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(34,197,94,.7); animation: ripple 1.6s infinite; }
.avatar.ring::after { animation-delay: .8s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.pcard .who { color: #fff; font-weight: 650; font-size: 17px; } .pcard .sm { color: var(--muted); font-size: 13.5px; }
.pcard .timer { font-family: var(--mono); font-size: 22px; color: var(--green); margin-top: 8px; min-height: 30px; }
.pbtns { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.pbtn { padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 0; color: #fff; background: #1f9d63; transition: transform .2s, box-shadow .3s; }
.pbtn.end { background: #c4272b; } .pbtn.press { transform: scale(.93); box-shadow: 0 0 0 8px rgba(34,197,94,.25); }
.ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ctl span { padding: 9px 4px; border-radius: 12px; background: var(--ink-4); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); transition: background .25s, border-color .25s, color .25s, transform .25s; }
.ctl span.on { background: rgba(247,130,31,.22); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.sidebox { display: grid; gap: 10px; }
.msg { padding: 11px 14px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); font-size: 14.5px; }
.msg b { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; font-family: var(--mono); letter-spacing: .04em; font-weight: 500; }
.msg.ai { border-color: rgba(247,130,31,.4); background: rgba(247,130,31,.08); }
/* chat */
.d-chat { max-width: 560px; display: grid; gap: 10px; }
.bub { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; background: var(--ink-4); border: 1px solid var(--line); color: var(--text); }
.bub small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 2px; font-family: var(--mono); }
.bub.me { margin-left: auto; background: var(--red); border-color: var(--red-2); } .bub.me small { color: rgba(255,255,255,.75); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--ink-4); border: 1px solid var(--line); width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.react { display: inline-block; justify-self: start; margin-top: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.react.show { transform: scale(1); }
/* meeting */
.d-meet { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; aspect-ratio: 16/10; border-radius: 14px; background: linear-gradient(135deg, #1b2733, #0e151c); border: 2px solid transparent; display: grid; place-items: center; transition: border-color .3s, box-shadow .3s; }
.tile .avatar { width: 46px; height: 46px; font-size: 16px; margin: 0; }
.tile small { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: var(--text-2); }
.tile.talk { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.tile.aitile { background: linear-gradient(135deg, #2a0f12, #120709); } .tile.aitile .avatar { background: linear-gradient(135deg, #fb903a, #8a1519); }
.badge { position: absolute; top: 8px; right: 8px; padding: 2px 9px; font-size: 11px; font-weight: 600; border-radius: 999px; background: rgba(247,130,31,.2); border: 1px solid rgba(247,130,31,.5); color: #ffd2a8; }
.notes { display: grid; gap: 8px; align-content: start; }
/* flow */
.d-flow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: nowrap; padding: 18px 4px 8px; }
.fnode { flex: 1 1 0; min-width: 0; width: auto; padding: 12px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line-2); text-align: center; font-size: 13px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.fnode b { display: block; color: #fff; font-size: 13.5px; } .fnode small { color: var(--muted); font-size: 11.5px; }
.fnode.on { border-color: var(--red-2); box-shadow: 0 0 0 5px rgba(247,130,31,.18), 0 14px 30px -10px rgba(247,130,31,.5); transform: translateY(-4px); }
.fnode .fi { display: block; font-size: 20px; margin-bottom: 4px; }
.fedge { flex: 0 1 34px; min-width: 14px; height: 2px; background: var(--line-2); position: relative; overflow: visible; }
.fedge i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 14px var(--red-2); opacity: 0; }
.fedge.go i { animation: travel .9s linear forwards; }
@keyframes travel { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 10px); opacity: 1; } }
.fbranch { display: grid; gap: 10px; flex: none; }
/* agent */
.d-agent { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: start; }
.convo { display: grid; gap: 9px; min-height: 230px; align-content: start; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 70px; margin-bottom: 12px; }
.wave i { width: 4px; border-radius: 3px; background: var(--red-2); height: 10px; animation: wv 1s ease-in-out infinite; animation-play-state: paused; opacity: .5; }
.wave.live i { animation-play-state: running; opacity: 1; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-duration: 1.3s; }
@keyframes wv { 0%, 100% { height: 8px; } 50% { height: 56px; } }
.toolchip { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px; background: rgba(0,207,255,.1); border: 1px solid rgba(0,207,255,.3); color: var(--blue); font-family: var(--mono); font-size: 12.5px; }
.toolchip.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: var(--green); }
.cap { display: grid; gap: 8px; } .cap .toolchip { opacity: .35; transition: opacity .4s; } .cap .toolchip.on { opacity: 1; }
/* queue */
.d-queue { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 12px; }
.lane { display: grid; gap: 8px; min-height: 170px; align-content: center; }
.callerdot { padding: 8px 12px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); font-size: 13.5px; transition: transform .6s ease, opacity .6s, background .3s; display: flex; justify-content: space-between; }
.callerdot small { font-family: var(--mono); color: var(--amber); }
.callerdot.gone { transform: translateX(140%); opacity: 0; }
.agentbox { padding: 8px 12px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; transition: border-color .3s, background .3s; }
.agentbox .st { width: 9px; height: 9px; border-radius: 50%; background: var(--green); } .agentbox.busy .st { background: var(--red-2); } .agentbox.ringing { border-color: var(--amber); background: rgba(255,194,77,.08); } .agentbox.ringing .st { background: var(--amber); animation: blink 0.8s infinite; }
.qarrow { text-align: center; color: var(--red-2); font-size: 26px; animation: nudge 1.4s infinite; } @keyframes nudge { 50% { transform: translateX(6px); } }
/* voicemail */
.d-vm { display: grid; gap: 16px; max-width: 640px; }
.player { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line-2); }
.playbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; flex: none; }
.bars { flex: 1; display: flex; align-items: center; gap: 2px; height: 40px; }
.bars i { flex: 1; border-radius: 2px; background: #3a4652; height: 30%; transition: background .1s; } .bars i.p { background: var(--red-2); }
.tr { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); font-size: 15px; color: var(--text); min-height: 76px; }
.sum { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(247,130,31,.4); background: rgba(247,130,31,.07); font-size: 14.5px; }
.sum b { color: #ffd2a8; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; display: block; }
/* assistant */
.d-ask { max-width: 680px; display: grid; gap: 12px; }
.qbox { padding: 13px 16px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line-2); color: #fff; min-height: 50px; }
.qbox::after { content: '|'; color: var(--red-2); animation: blink 1s infinite; margin-left: 1px; }
.answer { padding: 16px 18px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.srcs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .src { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; border: 1px solid rgba(247,130,31,.45); color: #ffd2a8; background: rgba(247,130,31,.08); }
/* bell */
.d-bell { max-width: 420px; display: grid; gap: 10px; }
.bellrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.bellrow .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(247,130,31,.15); color: var(--red-2); flex: none; }
.bellrow b { display: block; color: #fff; font-size: 14px; } .bellrow small { color: var(--muted); font-size: 12.5px; }
.bellrow .dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--red-2); }
/* toggles + hours */
.d-set { display: grid; gap: 12px; max-width: 520px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.setrow b { color: #fff; font-size: 14.5px; display: block; } .setrow small { color: var(--muted); font-size: 12.5px; }
.sw { width: 44px; height: 26px; border-radius: 999px; background: #313c47; position: relative; transition: background .3s; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s; }
.sw.on { background: var(--red); } .sw.on::after { transform: translateX(18px); }
.week { display: grid; gap: 7px; }
.day { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.day .track { position: relative; height: 14px; border-radius: 7px; background: var(--ink-4); overflow: hidden; }
.day .track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, var(--red), var(--red-2)); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
/* stats */
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line); } .stat b { display: block; font-size: 32px; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .stat small { color: var(--muted); font-size: 13px; }
/* contacts search */
.d-find { max-width: 520px; display: grid; gap: 8px; } .person { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); transition: opacity .3s, transform .3s; } .person.off { display: none; } .person .avatar { width: 34px; height: 34px; font-size: 13px; margin: 0; } .person b { color: #fff; font-size: 14.5px; display: block; line-height: 1.2; } .person small { color: var(--muted); font-size: 12.5px; }

/* ── responsive ── */
@media (max-width: 1280px) { .shell { grid-template-columns: var(--side) minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 900px) {
  .shell, .shell.nopage { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 70; top: var(--top); left: 0; bottom: 0; width: min(310px, 86vw); height: auto; background: var(--ink); transform: translateX(-102%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 0 0 80px rgba(0,0,0,.8); }
  .burger { display: grid; place-items: center; } .top nav, .searchbtn span, .searchbtn kbd { display: none; } .searchbtn { min-width: 0; }
  .split, .split.flip, .d-call, .d-meet, .d-agent, .d-queue { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; }
  .qarrow { transform: rotate(90deg); } .main { padding-top: 30px; } .pager { grid-template-columns: 1fr; } .pin { display: none; }
}

@media (max-width: 700px) { .d-flow { flex-direction: column; align-items: stretch; } .fnode { flex: none; } .fedge { flex: none; width: 2px; height: 22px; margin: 0 auto; min-width: 0; } .fedge.go i { animation-name: travelv; } }
@keyframes travelv { 0% { top: 0; left: -4px; opacity: 1; } 100% { top: calc(100% - 10px); left: -4px; opacity: 1; } }
