/* EscapePlan AI — one stylesheet for the public site, the client dashboard and the admin console.
   Palette: marigold signal on deep green-black ink, cool paper. Type: Anek Latin (display) + Mukta (text, Devanagari). */

:root {
  --ink: #15211f;
  --ink-2: #2b3b37;
  --paper: #f3f5f1;
  --card: #ffffff;
  --sunk: #e8ece6;
  --line: #d3dad1;
  --muted: #5a6a65;
  --signal: #f2b705;
  --signal-soft: #fdf1c7;
  --signal-ink: #3b2d00;
  --teal: #0f5d57;
  --teal-soft: #dcebe8;
  --danger: #b42318;
  --danger-soft: #fbe4e1;
  --ok: #1e7a4c;
  --ok-soft: #dff2e7;
  --focus: #1f6feb;
  --display: "Anek Latin", "Mukta", system-ui, sans-serif;
  --text: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 0 rgba(21, 33, 31, .06), 0 8px 24px -12px rgba(21, 33, 31, .18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eeea; --ink-2: #c6d3ce; --paper: #0e1614; --card: #15201d; --sunk: #1b2824; --line: #2a3934;
    --muted: #9aaca6; --signal-soft: #3a2f0a; --signal-ink: #fbe7a6; --teal: #63c3b7; --teal-soft: #173430;
    --danger: #ff8a7a; --danger-soft: #3a1714; --ok: #6fd6a0; --ok-soft: #12301f; --focus: #79a8ff;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e7eeea; --ink-2: #c6d3ce; --paper: #0e1614; --card: #15201d; --sunk: #1b2824; --line: #2a3934;
  --muted: #9aaca6; --signal-soft: #3a2f0a; --signal-ink: #fbe7a6; --teal: #63c3b7; --teal-soft: #173430;
  --danger: #ff8a7a; --danger-soft: #3a1714; --ok: #6fd6a0; --ok-soft: #12301f; --focus: #79a8ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-stretch: 112%; font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-variation-settings: "wdth" 108; }
h3 { font-size: 1.25rem; font-variation-settings: "wdth" 100; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: 600 1rem/1 var(--text); padding: .78em 1.15em; border-radius: var(--r);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #1d1600; }
.btn.signal:hover { background: #ffc61a; border-color: #ffc61a; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { font-size: .875rem; padding: .55em .8em; border-radius: var(--r-sm); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }

label { display: block; font-weight: 600; font-size: .94rem; margin: 0 0 .3em; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .25em; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=time], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .62em .75em;
}
textarea { min-height: 7em; resize: vertical; }
textarea.code, .code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid color-mix(in srgb, var(--teal) 30%, transparent); outline-offset: 0; }
input[type=checkbox], input[type=radio] { width: 1.1em; height: 1.1em; accent-color: var(--teal); vertical-align: -2px; }
.field { margin-bottom: 1.1rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; margin: .35em 0; }
.check b { font-weight: 600; }
.errors { color: var(--danger); }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.4rem; }

.notice { border-radius: var(--r); padding: .8em 1em; margin: 0 0 1.2rem; border: 1px solid var(--line); background: var(--card); }
.notice.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.notice.err { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.notice.warn { background: var(--signal-soft); border-color: transparent; color: var(--signal-ink); }

/* ---------------------------------------------------------------- site header / footer */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 750; font-size: 1.28rem; font-variation-settings: "wdth" 118; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 1.3rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.site-nav .btn { color: #1d1600; }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: .2rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .55rem 0; }
  .site-nav .btn { margin-top: .4rem; }
}

.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 36px; font-size: .95rem; }
.site-foot .cols { display: grid; gap: 2rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
.site-foot h4 { font-size: 1rem; margin-bottom: .6em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: .3em 0; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { margin-top: 2.5rem; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 1.2rem; max-width: 34em; color: var(--ink-2); }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.hero .proof { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .95rem; margin: 0; padding: 0; list-style: none; }
.hero .proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: .5em; vertical-align: 2px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* the call sheet: a live transcript in the hero */
.callsheet { background: var(--ink); color: #eef3f0; border-radius: var(--r-lg); padding: 18px 18px 14px; box-shadow: var(--shadow);
  font-family: var(--text); position: relative; overflow: hidden; }
:root[data-theme="dark"] .callsheet, :root:not([data-theme="light"]) .callsheet { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callsheet { background: #0a100f; border: 1px solid var(--line); } }
.callsheet .bar { display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: #a9bbb5; border-bottom: 1px solid #2c3d39; padding-bottom: 10px; margin-bottom: 12px; }
.callsheet .bar b { color: #fff; font-weight: 600; }
.callsheet .live { display: inline-flex; align-items: center; gap: .35rem; color: var(--signal); font-weight: 600; }
.callsheet .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.callsheet .timer { margin-left: auto; font-variant-numeric: tabular-nums; }
.callsheet .lines { display: flex; flex-direction: column; gap: 9px; min-height: 318px; }
.line { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: .97rem; line-height: 1.42; }
.line .who { display: block; font-size: .74rem; color: #93a8a1; margin-bottom: 1px; }
.line.agent { background: #23332f; align-self: flex-start; border-bottom-left-radius: 4px; }
.line.caller { background: #f4f6f1; color: #15211f; align-self: flex-end; border-bottom-right-radius: 4px; }
.line.caller .who { color: #5a6a65; }
.callsheet .result { margin-top: 12px; border-top: 1px dashed #3a4c47; padding-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .88rem; }
.callsheet .result div span { display: block; color: #93a8a1; font-size: .76rem; }
.callsheet .result .hot { color: var(--signal); font-weight: 600; }
.wave { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.wave i { width: 3px; background: var(--signal); border-radius: 2px; height: 40%; }
.is-playing .wave i { animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.8s } .wave i:nth-child(3) { animation-delay: -.6s } .wave i:nth-child(4) { animation-delay: -.4s } .wave i:nth-child(5) { animation-delay: -.2s }
@keyframes wv { 0%, 100% { height: 25% } 50% { height: 100% } }
.reveal-hidden { opacity: 0; transform: translateY(4px); }
.reveal-shown { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .is-playing .wave i { animation: none; height: 60%; } .reveal-shown { transition: none; } }

/* ---------------------------------------------------------------- sections */
section.band { padding: clamp(56px, 8vw, 96px) 0; }
section.band.tint { background: var(--sunk); }
section.band.ink { background: var(--ink); color: var(--paper); }
section.band.ink a { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) section.band.ink { background: #0a100f; color: var(--ink); } }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
section.band.ink .section-head p { color: #b9c8c3; }

/* the call timeline (real sequence) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.timeline li { padding: 18px 18px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink); }
.timeline .t { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--teal); }
.timeline h3 { margin: .2em 0 .35em; }
.timeline p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); }
  .timeline li { padding: 0 0 22px 22px; } .timeline li::before { top: 4px; left: -7px; } }

/* two jobs */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.job { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.job.alt { background: var(--signal-soft); border-color: transparent; color: var(--signal-ink); }
.job.alt .muted { color: color-mix(in srgb, var(--signal-ink) 75%, transparent); }
.job ul { margin: 1rem 0 0; padding-left: 1.1em; }
.job li { margin: .35em 0; }
.job .sets { display: flex; gap: .45rem; flex-wrap: wrap; margin: .8rem 0 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.job.alt .tag { background: rgba(255,255,255,.55); color: var(--signal-ink); }
@media (max-width: 820px) { .jobs { grid-template-columns: 1fr; } }

/* "what you control" — a drawn agent editor */
.builder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.builder dl { margin: 0; }
.builder dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-top: 1.1rem; }
.builder dd { margin: .2rem 0 0; color: var(--muted); }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mock .mtop { display: flex; gap: .5rem; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.mock .mtop b { color: var(--ink); }
.mock .mbody { padding: 16px; display: grid; gap: 12px; font-size: .9rem; }
.mock .mrow { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.mock .mrow > span:first-child { color: var(--muted); }
.mock .prompt { background: var(--sunk); border-radius: var(--r-sm); padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; line-height: 1.5; white-space: pre-wrap; }
.mock .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: .3em; border: 1px solid var(--line); border-radius: 999px; padding: .15em .65em; font-size: .82rem; background: var(--card); }
.chip.on { background: var(--teal-soft); border-color: transparent; color: var(--teal); font-weight: 600; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }

/* stack list */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stack > div { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); }
.stack h3 { font-size: 1.08rem; margin-bottom: .3em; }
.stack p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 820px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.facts h3 { color: var(--signal); }
section.band.ink .facts p { color: #c4d2cd; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

.langs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.langs span { border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; background: var(--card); }

.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }

.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin: .3em 0; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-head p { font-size: 1.18rem; color: var(--muted); max-width: 40rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: var(--card); display: flex; flex-direction: column; }
.plan.mid { border: 2px solid var(--ink); }
.plan ul { padding-left: 1.1em; margin: 1rem 0 1.5rem; flex: 1; }
.plan li { margin: .35em 0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin: .6em 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth .box { width: min(420px, 100%); }
.auth .box .brand { margin-bottom: 1.6rem; }
.auth h1 { font-size: 2rem; }

/* ================================================================ APP (dashboard + admin), v2
   One rhythm everywhere: 8px grid, 12px radius, one heading scale, panels with a head and a body.
   Every page = topbar (title + one-line purpose + actions) -> content (panels / grids). */

.app-body { font-size: 16px; background: var(--paper); }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

/* ---------------------------------------------------------------- sidebar */
.side { background: var(--ink); color: #dfe7e3; padding: 14px 12px 12px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #2e403b transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side { background: #0a100f; border-right: 1px solid var(--line); } }
:root[data-theme="dark"] .side { background: #0a100f; border-right: 1px solid var(--line); }
.side .brand { color: #fff; font-size: 1.08rem; margin: 2px 8px 14px; }
.side .brand svg { width: 26px; height: 26px; }
.wsname { display: flex; align-items: center; gap: .6rem; margin: 0 0 12px; padding: 9px 10px; border-radius: 10px; background: #22312d;
  color: #fff; text-decoration: none; font-weight: 600; line-height: 1.2; font-size: .95rem; cursor: pointer; }
.wsname .ws-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--signal);
  color: #1d1600; font-family: var(--display); font-weight: 750; }
.wsname > span:last-child { min-width: 0; }
.wsname b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsname small { display: block; color: #9fb3ac; font-weight: 400; font-size: .78rem; }
.wspick { margin: 0 0 12px; }
.wspick > summary { list-style: none; } .wspick > summary::-webkit-details-marker { display: none; }
.wspick > summary.wsname { margin: 0; }
.wslist { display: flex; flex-direction: column; margin-top: 6px; background: #22312d; border-radius: 10px; padding: 6px; max-height: 260px; overflow-y: auto; }
.wslist a { color: #dfe7e3; text-decoration: none; padding: 6px 8px; border-radius: 6px; font-size: .92rem; }
.wslist a:hover, .wslist a[aria-current] { background: #2e403b; color: #fff; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: .65rem; color: #cfdad6; text-decoration: none; padding: 7px 10px; border-radius: 8px;
  font-weight: 500; font-size: .93rem; line-height: 1.25; }
.side nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.side nav a:hover { background: #22312d; color: #fff; }
.side nav a[aria-current=page] { background: var(--signal); color: #1d1600; }
.side nav a[aria-current=page] svg { opacity: 1; }
.side nav .sep { margin: 12px 10px 3px; font-size: .7rem; color: #8ea39c; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nav-badge { margin-left: auto; font-size: .72rem; font-weight: 700; background: #33463f; color: #fff; border-radius: 99px; padding: .05em .55em; }
.side nav a[aria-current=page] .nav-badge { background: rgba(0,0,0,.15); color: #1d1600; }
.side-foot { margin-top: auto; padding: 12px 8px 2px; font-size: .8rem; color: #8ea39c; }
.side-foot a { color: #cfdad6; }

/* ---------------------------------------------------------------- topbar */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 32px);
  min-height: 72px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); }
.topbar .title { min-width: 0; flex: 1; }
.topbar h1 { font-size: 1.45rem; margin: 0; line-height: 1.2; font-variation-settings: "wdth" 104; overflow-wrap: anywhere; }
.topbar .lede { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; max-width: 70ch; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1px; display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs a::after { content: "›"; margin-left: .35rem; color: var(--line); }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.top-tools { display: flex; gap: 6px; align-items: center; padding-left: 8px; border-left: 1px solid var(--line); }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.ask-btn { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent;
  background: var(--teal-soft); color: var(--teal); font: 600 .9rem/1 var(--text); cursor: pointer; white-space: nowrap; }
.ask-btn:hover { border-color: var(--teal); }
.ask-btn svg { width: 17px; height: 17px; }
.usermenu { position: relative; }
.usermenu > summary { list-style: none; cursor: pointer; } .usermenu > summary::-webkit-details-marker { display: none; }
.usermenu .avatar { width: 38px; height: 38px; font-size: 1rem; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.menu-pop .who-line { padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.menu-pop .who-line b { display: block; color: var(--ink); font-size: .95rem; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: 8px 10px; border-radius: 8px; border: 0;
  background: none; color: var(--ink); font: 500 .93rem/1.3 var(--text); text-decoration: none; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--sunk); }
.menu-pop svg { width: 16px; height: 16px; color: var(--muted); }
.app-menu { display: none; }

.content { padding: 24px clamp(16px, 3vw, 32px) 72px; width: 100%; max-width: 1240px; }
.content.narrow-page { max-width: 880px; }
.banner { display: flex; gap: .7rem; align-items: center; padding: 10px 14px; border-radius: 12px; margin: 0 0 20px; font-size: .92rem;
  background: var(--signal-soft); color: var(--signal-ink); line-height: 1.4; }
.banner svg { width: 18px; height: 18px; flex: none; }
.banner a { color: inherit; font-weight: 600; }
.banner .grow { flex: 1; min-width: 0; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 60; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .side.open { transform: none; }
  .app-menu { display: inline-grid; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 16, 15, .45); z-index: 55; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; min-height: 0; position: static; }
  .topbar .title { order: 2; flex-basis: 100%; }
  .topbar h1 { font-size: 1.25rem; }
  .topbar .lede { font-size: .86rem; }
  .topbar .actions { order: 3; width: 100%; justify-content: flex-start; }
  .top-tools { margin-left: auto; border: 0; padding: 0; }
  .ask-btn span { display: none; } .ask-btn { width: 38px; padding: 0; justify-content: center; }
  .content { padding: 16px 14px 64px; }
  .banner { align-items: flex-start; }
}

/* ---------------------------------------------------------------- headings inside the app: one scale */
.main h2 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .25rem; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.main h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 .25rem; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.main h4 { font-size: .92rem; margin: 0 0 .3rem; }
.main p { margin: 0 0 .8rem; }
.main .sub, .main .desc { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0 0 1rem; }

/* ---------------------------------------------------------------- panels */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 0 0 20px; min-width: 0; }
.box > h2:first-child, .box > .box-head:first-child { margin-top: 0; }
.box-head, .boxhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.box-head > div:first-child, .boxhead > div:first-child { min-width: 0; flex: 1 1 auto; }
.box-head h2, .boxhead h2 { margin: 0; }
.box-head p, .boxhead p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.box-head .actions, .boxhead .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.box.flush { padding: 0; overflow: hidden; }
.box.flush > .box-head { padding: 18px 22px 0; }
.box.flush > .tablewrap { border: 0; border-radius: 0; border-top: 1px solid var(--line); margin-top: 14px; }
.box.flush > .empty { border-top: 1px solid var(--line); }
.box.flush > .box-foot { padding: 12px 22px; border-top: 1px solid var(--line); }
.box-foot { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.box.soft { background: var(--sunk); border-color: transparent; }
.box.accent { border-color: var(--signal); box-shadow: inset 4px 0 0 var(--signal); }
.box.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.box.danger-zone h2 { color: var(--danger); }
.box > :last-child, .card > :last-child { margin-bottom: 0; }
details.box > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex: none; margin-right: 4px; transition: transform .15s; }
details.box[open] > summary::after { transform: rotate(-135deg); }
details.box[open] > summary { margin-bottom: 14px; }
details.box > summary h2 { margin: 0; }
details.box > summary p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.section-title:first-child { margin-top: 0; }
.section-title h2 { margin: 0; }
.section-title p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- layout helpers */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .box { margin: 0; }
@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.split > * { min-width: 0; }
.split > aside > .box:last-child, .split > div > .box:last-child { margin-bottom: 0; }
@media (max-width: 1120px) { .split { grid-template-columns: 1fr; } .split > aside { order: 2; } }
.sticky { position: sticky; top: 92px; }
@media (max-width: 1120px) { .sticky { position: static; } }
.vstack { display: grid; gap: 12px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt0 { margin-top: 0 !important; } .mb0 { margin-bottom: 0 !important; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- forms: labels, inputs and hints line up across columns */
.main label { font-size: .9rem; }
.main input:not([type]), .main input[type=text], .main input[type=email], .main input[type=password], .main input[type=tel], .main input[type=url],
.main input[type=number], .main input[type=time], .main input[type=date], .main input[type=search], .main select, .main textarea {
  font-size: .97rem; border-radius: 8px; min-height: 42px; padding: .55em .75em; }
.main select { padding-right: 2rem; }
.main textarea { min-height: 6.5em; line-height: 1.5; }
.main input[readonly] { background: var(--sunk); }
.field { margin: 0 0 16px; min-width: 0; display: flex; flex-direction: column; }
.field > label { margin-bottom: 6px; }
.field > .hint, .field > .check + .hint { margin-top: 6px; }
.row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-auto-rows: auto; }
@supports (grid-template-rows: subgrid) {
  .row > .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .row > .field > label { align-self: end; margin-bottom: 6px; }
  .row > .field > .hint { margin-top: 6px; }
  .row > .field > :nth-child(3):not(.hint) { margin-top: 6px; }
}
.row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .row.c3, .row.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .row, .row.c2, .row.c3, .row.c4 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; margin: .3em 0; line-height: 1.45; cursor: pointer; }
.check input { margin-top: .22em; flex: none; }
.check .hint { margin-top: .1em; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px;
  margin: 8px 0 0; background: color-mix(in srgb, var(--card) 96%, transparent); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.savebar .hint { margin: 0 0 0 auto; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.plain > legend { font-weight: 600; font-size: .9rem; padding: 0; margin: 0 0 8px; }
.daypick { display: flex; flex-wrap: wrap; gap: 6px; }
.daypick label { display: inline-flex; align-items: center; gap: .35em; border: 1px solid var(--line); border-radius: 99px; padding: .25em .75em;
  font-weight: 500; font-size: .88rem; cursor: pointer; margin: 0; background: var(--card); }
.daypick label:has(input:checked) { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
.daypick input { margin: 0; }

/* choice cards: radios / checkboxes shown as big tappable cards */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 16px; }
.choice { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--card); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .12s, background .12s; }
.choice:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice input { margin-top: .2em; flex: none; }
.choice b { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.choice span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 2px; }
.choice .emoji { font-size: 1.35rem; line-height: 1; flex: none; }
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choices.compact .choice { padding: 9px 12px; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: stretch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card .card-foot { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card.link { text-decoration: none; color: inherit; }
.card.link:hover { border-color: var(--ink); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card-top > div { min-width: 0; flex: 1; }
.card-top h3 { overflow-wrap: anywhere; }
.card.add { border-style: dashed; align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 180px; text-decoration: none; }
.card.add:hover { border-color: var(--ink); color: var(--ink); }
.card.add b { color: var(--ink); font-size: 1.02rem; }
.card.add .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #1d1600; font-size: 1.4rem; font-weight: 700; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  font-size: 1.15rem; background: var(--signal-soft); color: var(--signal-ink); }
.usermenu .avatar { border-radius: 50%; }
.agent-card h3 a { color: var(--ink); text-decoration: none; } .agent-card h3 a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 2px; }
.stat small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.stat.hl { background: var(--signal-soft); border-color: transparent; }

/* ---------------------------------------------------------------- tables (cards on phones) */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: color-mix(in srgb, var(--sunk) 45%, var(--card)); }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: color-mix(in srgb, var(--sunk) 50%, transparent); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t td a { font-weight: 500; text-decoration: none; } table.t td a:hover { text-decoration: underline; }
table.t td .sub2 { display: block; color: var(--muted); font-size: .82rem; }
table.t tr.rowlink { cursor: pointer; }
@media (max-width: 720px) {
  .tablewrap:has(table.t:not(.keep)) { border: 0; background: none; overflow: visible; }
  table.t:not(.keep), table.t:not(.keep) tbody, table.t:not(.keep) tr, table.t:not(.keep) td { display: block; width: 100%; }
  table.t:not(.keep) thead { display: none; }
  table.t:not(.keep) tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 0 0 10px; }
  table.t:not(.keep) td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.t:not(.keep) td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  table.t:not(.keep) td[data-label=""]::before { display: none; }
  table.t:not(.keep) td:first-child { font-weight: 600; text-align: left; justify-content: flex-start; }
  table.t:not(.keep) td:first-child::before { display: none; }
  table.t:not(.keep) td.num { justify-content: space-between; }
  table.t:not(.keep) tbody tr:hover td { background: none; }
  .box.flush > .tablewrap:has(table.t:not(.keep)) { padding: 10px 14px 4px; }
}

.pill { display: inline-flex; align-items: center; gap: .3em; font-size: .76rem; font-weight: 600; border-radius: 999px; padding: .2em .65em;
  background: var(--sunk); color: var(--ink-2); white-space: nowrap; line-height: 1.3; }
.pill.good { background: var(--ok-soft); color: var(--ok); } .pill.hot { background: var(--signal-soft); color: var(--signal-ink); }
.pill.bad { background: var(--danger-soft); color: var(--danger); } .pill.info { background: var(--teal-soft); color: var(--teal); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 16px; padding: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; }
.filters .field { margin: 0; min-width: 140px; flex: 1 1 140px; }
.filters .field.wide { flex: 2 1 220px; }
.filters .btn { min-height: 42px; }
.filters label { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .empty-ic { width: 52px; height: 52px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--sunk); color: var(--ink-2); margin-bottom: 10px; }
.empty .empty-ic svg { width: 24px; height: 24px; }
.empty h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .3rem; }
.empty p { max-width: 46ch; margin: 0 auto 14px; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 14px; text-decoration: none; color: var(--muted); font: 600 .93rem/1.2 var(--text); border: 0; background: none;
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a[aria-selected=true], .tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--signal); }
.tabpanel[hidden] { display: none; }

/* ---------------------------------------------------------------- notices, toasts, dialogs */
.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--line); background: var(--card); font-size: .94rem; }
.notice.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.notice.err { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.notice.warn { background: var(--signal-soft); border-color: transparent; color: var(--signal-ink); }
.notice.info { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
.notice > :last-child { margin-bottom: 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: 10px; box-shadow: var(--shadow); z-index: 90; font-weight: 500; }
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); background: var(--card);
  color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog.modal::backdrop { background: rgba(10, 16, 15, .5); backdrop-filter: blur(2px); }
dialog.modal .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 0; }
dialog.modal .modal-head h2 { margin: 0; }
dialog.modal .modal-body { padding: 14px 22px; overflow-y: auto; }
dialog.modal .modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------------------------------------------------------------- misc small pieces */
.kbd { font-family: ui-monospace, Menlo, monospace; font-size: .84em; background: var(--sunk); padding: .1em .4em; border-radius: 5px; overflow-wrap: anywhere; }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy input { font-family: ui-monospace, Menlo, monospace; font-size: .84rem; min-width: 0; }
.copy .btn { flex: none; }
.inline-form { display: inline; }
details.more > summary { cursor: pointer; color: var(--teal); font-weight: 600; margin: .4rem 0; font-size: .93rem; }
dl.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; margin: 0; font-size: .93rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row > div { min-width: 0; }
.list-row small { display: block; color: var(--muted); }
.codeblock { background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto;
  font: 400 .82rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; margin: 0 0 12px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
fieldset[disabled] .btn { display: none; }
[hidden] { display: none !important; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.main .btn { font-size: .93rem; padding: .62em 1em; border-radius: 9px; min-height: 40px; }
.main .btn.sm { font-size: .84rem; padding: .42em .75em; border-radius: 8px; min-height: 32px; }
.main .btn.lg { font-size: 1rem; padding: .78em 1.3em; min-height: 46px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: .3em; border: 1px solid var(--line); border-radius: 999px; padding: .2em .7em; font-size: .82rem; background: var(--card); }
.chip.on { background: var(--teal-soft); border-color: transparent; color: var(--teal); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
label.chip { font-weight: 500; cursor: pointer; margin: 0; } label.chip input { margin: 0 .2em 0 0; }
label.chip:has(input:checked) { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
a.chip { text-decoration: none; color: var(--ink); }
button.chip { cursor: pointer; font: inherit; font-size: .84rem; color: var(--ink); }
.filter-chips { margin: 0 0 16px; }

/* progress meter */
.meter { height: 8px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--signal); border-radius: 99px; }
.meter.big { height: 12px; margin: .4rem 0 .6rem; }
.meter.ok span { background: var(--ok); }

/* charts */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 8px 0 0; margin: .4rem 0 .4rem; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.chart .bar { width: 100%; max-width: 30px; min-height: 2px; background: var(--sunk); border-radius: 5px 5px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.chart .fill { width: 100%; background: var(--teal); }
.chart .n { font-size: .7rem; color: var(--muted); line-height: 1; }
.chart .lbl { font-size: .7rem; color: var(--muted); line-height: 1; padding: 4px 0 2px; }
@media (max-width: 640px) { .chart { gap: 3px; height: 140px; } .chart .n { display: none; } .chart .col:nth-child(odd) .lbl { visibility: hidden; } }
.legend { color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; font-size: .82rem; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .5rem; }
.legend .sw.a { background: var(--teal); } .legend .sw.b { background: var(--sunk); border: 1px solid var(--line); }
.share li { margin-bottom: .8rem; } .share .row2 { display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .3rem; font-size: .92rem; }

/* transcripts & test calls */
.transcript { display: flex; flex-direction: column; gap: 8px; }
.transcript .line { max-width: 84%; padding: 8px 12px; border-radius: 14px; font-size: .94rem; line-height: 1.45; }
.transcript .line .who { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 1px; }
.transcript .line.agent { background: var(--teal-soft); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.transcript .line.caller { background: var(--sunk); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.transcript .tool { font-size: .78rem; color: var(--muted); align-self: center; background: var(--card); border: 1px dashed var(--line); border-radius: 99px; padding: .1em .7em; }
audio { width: 100%; }
.talk { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .talk { grid-template-columns: 1fr; } }
.orb { width: 150px; height: 150px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--signal) 0 34%, transparent 35%), var(--sunk); position: relative; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--signal); transform: scale(var(--lvl, 1)); opacity: .55; transition: transform .08s linear; }
.talk-status { text-align: center; font-weight: 600; min-height: 1.6em; }
.talk .transcript { min-height: 340px; max-height: 60vh; overflow-y: auto; padding: 4px; }

/* voices & templates */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.voice { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); cursor: pointer; margin: 0; font-weight: 500; }
.voice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.voice input { margin: 0; } .voice span { flex: 1; font-weight: 600; text-transform: capitalize; }
.voice button { border: 0; background: none; cursor: pointer; color: var(--teal); padding: 2px; } .voice button svg { width: 18px; height: 18px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tpl { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); cursor: pointer; margin: 0; font-weight: 400; }
.tpl:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.tpl:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.tpl input { position: absolute; opacity: 0; }
.tpl b { display: block; font-family: var(--display); font-size: 1.02rem; font-weight: 650; }
.tpl span { color: var(--muted); font-size: .88rem; font-weight: 400; line-height: 1.4; }
.tpl small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }

/* repeating rows */
.repeat-row { display: grid; gap: 8px; grid-template-columns: 1fr 1.6fr auto; margin-bottom: 8px; align-items: center; }
.repeat-row.team { grid-template-columns: 1fr 1fr 1.2fr 1.2fr auto auto; }
.repeat-row.param { grid-template-columns: 1fr 1.6fr auto auto; }
@media (max-width: 760px) { .repeat-row, .repeat-row.team, .repeat-row.param { grid-template-columns: 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 10px; } }
.tool-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--paper); }
.vars li { border: 0; padding: .35rem 0; } .vars code { cursor: pointer; } .vars code:hover { background: var(--signal-soft); }
.writer > summary { cursor: pointer; list-style: none; } .writer > summary::-webkit-details-marker { display: none; }
.hist { display: inline-flex; gap: .4rem; align-items: center; } .hist select { width: auto; min-height: 34px; padding: .3rem .5rem; font-size: .85rem; }
.alert-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.alert-list li:last-child { border-bottom: 0; }
.fb { display: flex; gap: .5rem; flex-wrap: wrap; }

/* numbered steps / checklists */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.steps li a { text-decoration: none; font-weight: 600; } .steps li a:hover { text-decoration: underline; }
.steps li.done { color: var(--muted); background: transparent; } .steps li.done a { color: var(--muted); font-weight: 500; }
.steps .tick { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--sunk); }
.steps li.done .tick { background: var(--ok-soft); color: var(--ok); }
.steps li:not(.done) .tick { background: var(--signal); color: #1d1600; }
.steps li .grow { flex: 1; min-width: 0; }
.steps li small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.howto-steps { counter-reset: hs; list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.howto-steps > li { counter-increment: hs; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.howto-steps > li::before { content: counter(hs); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft);
  color: var(--teal); font-weight: 700; font-size: .85rem; }
.howto-steps > li > div { min-width: 0; padding-top: 3px; }
.howto-steps b { display: block; } .howto-steps p b { display: inline; color: var(--ink, inherit); } .howto-steps p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.stepno { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--signal); color: #1d1600; font-size: .85rem; margin-right: .4rem; vertical-align: 1px; }
.interview { display: grid; gap: 8px; }
.qa { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .85rem; background: var(--card); }
.qa summary { cursor: pointer; font-weight: 600; } .qa textarea { margin-top: .5rem; }
.flow { counter-reset: f; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 2rem 1fr; column-gap: .6rem; align-items: start; }
.flow li::before { content: counter(f); grid-row: span 2; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.flow li span { color: var(--muted); font-size: .92rem; }
.qcard { border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; background: var(--sunk); display: grid; gap: .3rem; align-content: start; }
.qcard span { font-size: .92rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- connection tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 0 0 8px; }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  text-decoration: none; color: inherit; min-width: 0; transition: border-color .12s, transform .12s; }
.tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile .tile-top { display: flex; gap: 12px; align-items: center; }
.tile .logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 750; font-family: var(--display); font-size: 1.05rem; color: #fff; }
.tile .logo svg { width: 22px; height: 22px; }
.tile h3 { margin: 0; font-size: 1rem; }
.tile p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.45; flex: 1; }
.tile .tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.tile .go { font-weight: 600; font-size: .88rem; color: var(--teal); }
.logo.wa { background: #1fa855; } .logo.mail { background: #4b5d58; } .logo.gcal { background: #1a73e8; } .logo.cly { background: #006bff; }
.logo.sheet { background: #188038; } .logo.lsq { background: #e4572e; } .logo.hook { background: #6b4fbb; } .logo.api { background: #15211f; } .logo.rzp { background: #0c2451; } .logo.hs { background: #ff7a59; } .logo.shop { background: #5e8e3e; } .logo.woo { background: #7f54b3; } .logo.pd { background: #1a1a1a; } .logo.fs { background: #f26722; } .logo.slack { background: #4a154b; } .logo.zoho { background: #e42527; }
.logo.sf { background: #00a1e0; } .logo.tw { background: #f22f46; } .logo.ex { background: #1a73e8; }
.logo.im { background: #2e3192; } .logo.jd { background: #ff6c00; } .logo.prop { background: #7a2e8e; } .logo.ship { background: #6c3cf0; } .logo.tally { background: #1f5c99; }
.qr-box { display: inline-block; padding: 10px; background: #fff; border-radius: 10px; border: 1px solid var(--line, #ddd); }
.logo.mcp { background: #c96442; } .logo.zap { background: #ff4f00; } .logo.cal { background: #111; }
.conn-head { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; }
.conn-head .logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 750; font-family: var(--display); font-size: 1.2rem; flex: none; }

/* ---------------------------------------------------------------- setup journey */
.journey { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.journey > * { min-width: 0; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; gap: 14px; } }
.jsteps { list-style: none; margin: 0; padding: 14px; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; position: sticky; top: 92px; }
.jsteps li a, .jsteps li span.lk { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.jsteps li a:hover { background: var(--sunk); }
.jsteps li[aria-current] a { background: var(--signal-soft); font-weight: 650; }
.jsteps .n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--sunk); color: var(--muted); }
.jsteps li.done .n { background: var(--ok-soft); color: var(--ok); }
.jsteps li[aria-current] .n { background: var(--signal); color: #1d1600; }
.jsteps .opt { margin-left: auto; font-size: .72rem; color: var(--muted); }
@media (max-width: 960px) {
  .jsteps { position: static; display: flex; overflow-x: auto; padding: 8px; gap: 4px; scrollbar-width: none; }
  .jsteps li a, .jsteps li span.lk { white-space: nowrap; }
  .jsteps li:not([aria-current]) .lbl { display: none; }
  .jsteps .opt { display: none; }
}
.jcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 30px); }
.jcard .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; margin: 0 0 4px; }
.jcard > h2 { font-size: 1.45rem; margin: 0 0 .35rem; font-variation-settings: "wdth" 104; }
.jcard > .desc { font-size: .98rem; margin-bottom: 20px; }
.jnav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.jnav .skip-link { margin-left: auto; color: var(--muted); font-size: .9rem; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); color: var(--ink); margin: 0 0 18px; font-size: .93rem; }
.ai-note svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 1px; }
.ai-note b { color: var(--teal); }
.progress-line { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.progress-line .meter { flex: 1; }
.preview-phone { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 14px; }
.working { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--teal); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.setup-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
@media (max-width: 640px) { .setup-card { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- AI assistant drawer */
.assist { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--card); border-left: 1px solid var(--line); z-index: 80;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .2s ease; }
.assist.open { transform: none; }
.assist-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.assist-head svg { width: 20px; height: 20px; flex: none; color: var(--teal); }
.assist svg { max-width: 24px; max-height: 24px; }
.assist-head b { flex: 1; font-family: var(--display); font-size: 1.05rem; }
.assist-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.assist-log .msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.assist-log .msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.assist-log .msg.ai { align-self: flex-start; background: var(--sunk); border-bottom-left-radius: 4px; }
.assist-log .msg.ai a { font-weight: 600; }
.assist-act { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); white-space: normal; }
.assist-act p { margin: 0 0 6px; }
.assist-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.assist-sugg button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: .3em .8em; font: 500 .84rem/1.3 var(--text); color: var(--ink); cursor: pointer; text-align: left; }
.assist-sugg button:hover { border-color: var(--teal); color: var(--teal); }
.assist-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.assist-form textarea { min-height: 44px; height: 44px; max-height: 140px; resize: none; }
.assist-form .btn { flex: none; }

/* ---------------------------------------------------------------- site bits used by public pages */
.auth .box.wide { width: min(620px, 100%); }
.auth .box.demo { width: min(980px, 100%); }
.auth .box .box { width: auto; }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.howto li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; counter-increment: s; }
.howto li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--signal); color: #1d1600; font-weight: 700; margin-bottom: .4rem; }
.howto b { display: block; margin-bottom: .2rem; } .howto span { color: var(--muted); font-size: .9rem; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ind { display: grid; gap: .35rem; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; align-content: start; }
.ind:hover { border-color: var(--signal); transform: translateY(-2px); }
.ind b { font-family: var(--display); font-size: 1.12rem; } .ind span { color: var(--muted); font-size: .95rem; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.sizes h3 { font-size: 1.1rem; margin-bottom: .3em; } .sizes p { color: var(--muted); margin: 0; }
.qcard.site { background: var(--card); }
@media (max-width: 560px) { .mock .mrow { grid-template-columns: 1fr; gap: 2px; } .mock .prompt { overflow-wrap: anywhere; } }
.mock .chips { min-width: 0; } .mock .mrow > * { min-width: 0; }
/* main + side column that line up top and bottom */
.duo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin: 0 0 20px; }
.duo > * { min-width: 0; }
.duo > .box, .duo > section { margin: 0; }
.duo > .col { display: flex; flex-direction: column; gap: 20px; }
.duo > .col > .box { margin: 0; }
.duo > .col > .box:last-child { flex: 1; }
@media (max-width: 1020px) { .duo { grid-template-columns: 1fr; } }
.setup-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.setup-hero .meter { margin: 10px 0 6px; max-width: 420px; }
@media (max-width: 640px) { .setup-hero { grid-template-columns: 1fr; } }
.who-cell b { display: block; font-weight: 600; } .who-cell small { color: var(--muted); }
@media (max-width: 760px) { .repeat-row[aria-hidden="true"] { display: none; } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars div:hover { background: var(--signal); }
.bars-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; margin-top: 4px; }

.danger-text{color:var(--danger)}
.good-text{color:var(--teal)}
.break{overflow-wrap:anywhere;word-break:break-word}
.pre{white-space:pre-wrap}
.nowrap{white-space:nowrap}
.narrow{max-width:860px}
.btn.block{width:100%;justify-content:center}
.span2{grid-column:span 2}
.tablewrap.scroll{max-height:420px;overflow:auto}
.danger-text{font-weight:600}

/* insights */
.barlist li, .funnel li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: .6rem; align-items: center; padding: .3rem 0; }
.funnel li { grid-template-columns: minmax(110px, 26%) 1fr auto auto; }
.funnel small { min-width: 9ch; text-align: right; }
.bl-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.sim { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.sim > summary { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; cursor: pointer; list-style: none; }
@media (max-width: 640px) { .funnel li { grid-template-columns: 1fr auto; } .funnel li .meter { grid-column: 1 / -1; order: 3; } .funnel small { display: none; } }

/* conversation steps */
.flow { counter-reset: step; }
.flow-row, .flow-head { display: grid; grid-template-columns: 2rem 2fr 1fr 2fr auto; gap: .5rem; align-items: center; }
.flow-head { margin-bottom: .25rem; }
.flow-row .flow-n::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--line, #e5e7eb); font-weight: 600; font-size: .8rem; }
@media (max-width: 720px) { .flow-head { display: none; } .flow-row { grid-template-columns: 2rem 1fr auto; } .flow-row input { grid-column: 2; } .flow-row button { grid-column: 3; grid-row: 1; } }

.brand .brand-img { height: 28px; width: auto; max-width: 120px; object-fit: contain; }
#flow:not(:has(.flow .flow-row)) .flow-head { display: none; }

.pill.prem { background: #2b1d4a; color: #f2d27a; font-size: .7rem; padding: 1px 7px; vertical-align: middle; }
.choice.disabled { opacity: .55; }

/* ---------- no-code builder: readiness, connections, automations, canvas */
.meter { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.plug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.plug { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card); }
.plug.off { opacity: .7; } .plug b { display: block; } .plug small { color: var(--muted); display: block; font-size: .82rem; }
.plug input { margin-top: 4px; }
.rule-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.3fr .6fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rule-row:last-child { border-bottom: 0; }
@media (max-width: 900px) { .rule-row { grid-template-columns: 1fr 1fr; } }
.auto-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); margin-bottom: 12px; }
.auto-card ol { margin: .5rem 0 0; padding-left: 1.2rem; } .auto-card ol li { margin: .15rem 0; }
.auto-card.off { opacity: .75; }
.step-edit { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 8px 0; background: var(--sunk); display: grid; gap: 8px; }
.step-edit .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .step-edit .row > * { flex: 1 1 160px; }
.canvas-wrap { position: relative; height: 70vh; min-height: 480px; border: 1px solid var(--line); border-radius: 12px; overflow: auto; background:
  radial-gradient(circle, var(--line) 1px, transparent 1px) 0 0 / 22px 22px, var(--card); }
.canvas { position: relative; width: 2400px; height: 1800px; }
.canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.canvas svg path { fill: none; stroke: var(--muted); stroke-width: 2; }
.canvas svg path.hot { stroke: var(--signal); stroke-width: 3; }
.canvas svg text { font-size: 12px; fill: var(--ink, currentColor); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.node { position: absolute; width: 220px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.08);
  cursor: grab; user-select: none; font-size: .88rem; }
.node.sel { border-color: var(--signal); } .node.changed { box-shadow: 0 0 0 4px var(--signal-soft); }
.node.start::before { content: "Start"; position: absolute; top: -20px; left: 6px; font-size: .72rem; font-weight: 700; color: var(--ok); }
.node header { padding: 6px 10px; border-radius: 10px 10px 0 0; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; }
.node .body { padding: 8px 10px 10px; min-height: 28px; word-break: break-word; }
.node .port { position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--signal); border: 2px solid var(--card); cursor: crosshair; }
.node[data-type=say] header { background: var(--teal-soft); color: var(--teal); }
.node[data-type=ask] header { background: var(--signal-soft); color: var(--signal-ink); }
.node[data-type=ai] header { background: #ece6ff; color: #4b3a8f; }
.node[data-type=branch] header { background: #fff1d6; color: #8a5a00; }
.node[data-type=action] header { background: var(--ok-soft); color: var(--ok); }
.node[data-type=end] header { background: var(--danger-soft); color: var(--danger); }
.palette { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.palette button { border: 1px dashed var(--line); background: var(--card); border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; }
.inspector .field { margin-bottom: 10px; }
h1 svg, h2 svg, h3 svg, summary h2 svg { width: 1.05em; height: 1.05em; vertical-align: -0.15em; flex: none; }

/* ---------------------------------------------------------------- unified inbox */
.inbox-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .inbox-grid { grid-template-columns: 1fr; } }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thread .ev.call { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--sunk); }
.thread .ev-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.thread .ev.wa { display: flex; }
.thread .ev.wa.out { justify-content: flex-end; }
.thread .bubble { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; }
.thread .ev.wa.out .bubble { background: var(--teal-soft); border-color: transparent; }
.thread .bubble .who { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); }
.thread .bubble .t { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; text-align: right; }

/* ---------------------------------------------------------------- hours escaped + call add-ons */
.escaped { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.esc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; flex: none; }
.esc-ic svg { width: 22px; height: 22px; color: var(--teal); }
.esc-num { font-family: var(--display); font-size: 1.25rem; }
.moments { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.moments a { border: 1px solid var(--line); border-radius: 99px; padding: .2em .7em; font-size: .84rem; text-decoration: none; color: var(--ink); }
.moments a:hover { border-color: var(--teal); color: var(--teal); }
.transcript .line.mark { box-shadow: inset 3px 0 0 var(--signal); }
.transcript .line .tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--teal); margin-left: 6px; }
@media print {
  .side, .topbar .actions, .top-tools, .split > aside, .banner, .no-print, .assist { display: none !important; }
  .app, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
  .split { display: block !important; } .box { break-inside: avoid; border: none; box-shadow: none; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- system setup checklist */
.sys-hero { display: grid; gap: 12px; }
.sys-hero h2 { margin: 0; }
.sys-meter { height: 10px; }
.sys-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sys-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .86rem; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.sys-chip.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.sys-chip.todo { background: var(--signal-soft); border-color: transparent; color: var(--signal-ink); }
.sys-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.sys-step > details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.sys-step.ok > details { border-color: color-mix(in srgb, var(--ok) 25%, var(--line)); }
.sys-step > details[open] { box-shadow: 0 6px 24px -14px rgba(0,0,0,.25); }
.sys-step summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; }
.sys-step summary::-webkit-details-marker { display: none; }
.sys-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--sunk); color: var(--ink); }
.sys-step.ok .sys-num { background: var(--ok); color: #fff; }
.sys-head { display: grid; gap: 2px; min-width: 0; }
.sys-head .sub { margin: 0; color: var(--muted); }
.sys-body { padding: 0 18px 18px 66px; display: grid; gap: 14px; }
.sys-keys { display: grid; gap: 12px; }
.sys-key { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg, transparent); }
.sys-key-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.sys-key-row { display: flex; gap: 10px; align-items: center; }
.sys-key-row input[type=password], .sys-key-row input[type=text] { flex: 1 1 auto; min-width: 0; }
.sys-note { border-left: 3px solid var(--teal); padding: 6px 0 6px 14px; }
@media (max-width: 640px) { .sys-body { padding: 0 14px 14px; } .sys-step summary { grid-template-columns: auto 1fr; } .sys-step summary .pill { grid-column: 2; justify-self: start; } }

/* ---------------------------------------------------------------- KYC & wallet */
.kyc-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kyc-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.kyc-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font-weight: 700; font-size: .8rem; color: var(--ink); flex: none; }
.kyc-steps li.done { color: var(--ok); border-color: transparent; background: var(--ok-soft); }
.kyc-steps li.done span { background: var(--ok); color: #fff; }
.kyc-steps li.cur { color: var(--ink); border-color: var(--teal); }
@media (max-width: 640px) { .kyc-steps { grid-template-columns: 1fr 1fr; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.doc-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--sunk); font-weight: 700; }
.doc-ic.ok { background: var(--ok-soft); color: var(--ok); }
.doc-main { display: grid; gap: 2px; min-width: 0; }
.doc-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.file-btn { position: relative; cursor: pointer; }
@media (max-width: 640px) { .doc-row { grid-template-columns: auto 1fr; } .doc-act { grid-column: 1 / -1; justify-content: flex-start; } }
.pay-methods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 14px; }
.inline-pop { display: inline-block; margin-left: 6px; }
.inline-pop > summary { list-style: none; cursor: pointer; display: inline; }
.inline-pop > summary::-webkit-details-marker { display: none; }
.inline-pop[open] > form { min-width: 240px; }
.paybox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.payto { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--sunk); }
.payto .kv { margin-bottom: 0; }
@media (max-width: 760px) { .paybox { grid-template-columns: 1fr; } }
.costbars li { display: grid; gap: 4px; padding: 6px 0; }
/* demo slot picker (website) */
.demo-slots { border: 0; padding: 0; margin: 0 0 1rem; }
.demo-slots legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.slot-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.slot-days button, .slot-times button { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--card); color: inherit;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.slot-days button[aria-selected="true"] { border-color: currentColor; font-weight: 650; }
.slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 8px; }
.slot-times button[aria-pressed="true"] { background: var(--signal, #f5b301); border-color: transparent; color: #111; font-weight: 650; }

/* Shopify Autopilot */
.row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .row.c3 { grid-template-columns: 1fr; } }
.linkish { cursor: pointer; color: var(--teal); font-weight: 600; }
.shop-connect .copy input { min-width: 0; }
.shop-connected { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 14px; }
.shop-status { display: flex; align-items: center; gap: 10px; }
.shop-actions { display: flex; gap: 8px; }
.dot:not(.pill) { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.dot.ok { background: #1f9d6b; box-shadow: 0 0 0 4px color-mix(in srgb, #1f9d6b 18%, transparent); }
.ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ap-stage { border-left: 2px solid var(--line); margin: 18px 0 0 6px; padding-left: 18px; position: relative; }
.ap-stage::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-2); }
.ap-stage-t { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.ap-m { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.ap-m.on { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.ap-m[open] { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.ap-m > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.ap-m > summary::-webkit-details-marker { display: none; }
.ap-m > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
.ap-m[open] > summary::after { transform: rotate(-135deg); }
.ap-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-body { padding: 0 16px 16px 66px; }
@media (max-width: 680px) { .ap-body { padding-left: 16px; } }
.ap-why { color: var(--ink-2); margin: 0 0 12px; }
.ap-results { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.ap-try { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; }
.ap-try input { max-width: 200px; }
.ap-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 8px; }
.ap-save .btn { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ap-switch { position: relative; width: 38px; height: 22px; flex: none; }
.ap-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ap-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.ap-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ap-switch input:checked + span { background: var(--teal); }
.ap-switch input:checked + span::after { transform: translateX(16px); }
.ap-switch input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--sunk); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .92rem; }
.seg input:checked + span { background: var(--card); font-weight: 650; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); }
label.inline { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }
@media (max-width: 680px) {
  .ap-stage { margin-left: 0; padding-left: 0; border-left: 0; }
  .ap-stage::before { display: none; }
  .ap-m > summary { padding: 12px; gap: 10px; }
  .ap-body { padding: 0 12px 12px; }
  .ap-save { justify-content: stretch; } .ap-save .btn { width: 100%; }
}
/* Shopify orders */
.so-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.so-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.so-tile:hover { border-color: var(--ink-3, #9aa); }
.so-tile b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.so-tile span { font-weight: 600; }
.so-tile small { color: var(--muted, #667); font-size: .8rem; }
.so-tile.on { border-color: var(--ink, #111); box-shadow: inset 0 0 0 1px var(--ink, #111); }
.so-list { padding: 0; overflow: hidden; }
.so-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.so-search { display: flex; gap: 6px; }
.so-search input { width: 230px; max-width: 100%; }
.so-rows { list-style: none; margin: 0; padding: 0; }
.so-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line); }
.so-row:last-child { border-bottom: 0; }
.so-row:hover { background: var(--sunk); }
.so-row.is-cancelled { opacity: .55; }
.so-top { display: flex; gap: 10px; align-items: baseline; }
.so-num { font-size: 1.02rem; }
.so-what { margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-who { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: .9rem; }
.so-who a { text-decoration: none; }
.so-warn { color: #b45309; }
.so-facts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.so-amt { font-weight: 650; font-variant-numeric: tabular-nums; }
.so-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--sunk);
  color: var(--ink-2, #445); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.chip-paid, .chip-good { background: #e8f5ee; color: #15603b; border-color: #cbe8d6; }
.chip-cod, .chip-hot { background: #fff4e0; color: #8a4b00; border-color: #f6dfb3; }
.chip-bad { background: #fdeceb; color: #a12a20; border-color: #f5cfcb; }
.chip-muted { color: var(--muted, #667); }
.so-ai { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.so-ai-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #667); }
.so-act .btn { min-width: 84px; }
.so-none { padding: 40px 20px; text-align: center; }
.so-foot { padding: 12px 20px 16px; margin: 0; }
.so-empty { text-align: center; padding: 40px 20px; }
.so-who-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.so-who-pick legend { font-weight: 600; margin-bottom: 8px; }
.so-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.so-opt:has(input:checked) { border-color: var(--ink, #111); box-shadow: inset 0 0 0 1px var(--ink, #111); }
.so-opt input { margin-top: 4px; }
.so-opt > span { display: flex; flex-direction: column; gap: 2px; }
.so-opt small { color: var(--muted, #667); }
@media (max-width: 960px) {
  .so-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .so-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .so-facts { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .so-ai { grid-column: 1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .so-act { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
}
@media (max-width: 560px) {
  .so-tiles { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
  .so-tile { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; }
  .so-tile b { font-size: 1rem; } .so-tile small { display: none; }
  .so-head { padding: 14px 16px; } .so-row { padding: 14px 16px; }
  .so-search, .so-search input { width: 100%; }
}
.so-agentbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.so-agentbar > div:first-child { display: flex; flex-direction: column; gap: 2px; }

.so-banner{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}

/* Shopify orders — phase 2 */
.so-tile-alert b { color: var(--danger); }
.so-row.is-needs { box-shadow: inset 3px 0 0 var(--danger); }
.so-main { position: relative; }
.so-pick { position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; }
.so-rows { padding-left: 26px; }
.so-ask { color: var(--danger); max-width: 28ch; }
.so-more { grid-column: 1 / -1; margin-top: -4px; }
.so-more > summary { cursor: pointer; font-size: .82rem; color: var(--muted, #667); width: max-content; }
.so-hist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.so-hist > li { background: var(--sunk); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.so-hist-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.so-explain { margin: 0; padding: 12px 20px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.so-bulk { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px;
  background: var(--card, #fff); border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.so-bulk select { max-width: 260px; }
.so-home .box-head h2 { display: flex; gap: 8px; align-items: center; }
.so-home-stats { margin: 12px 0 8px; }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { background: var(--sunk); }

/* Result toast — always visible, wherever the form was on the page */
.ftoast { position: fixed; z-index: 1000; right: 20px; bottom: 20px; max-width: min(440px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px 14px 16px; border-radius: 12px; background: var(--card, #fff); color: var(--ink, #15211f); opacity: 1; border: 1px solid var(--line, #ddd);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: .94rem; line-height: 1.4; animation: ftoast-in .25s ease-out; }
.ftoast-ok { border-left: 5px solid var(--ok); }
.ftoast-err { border-left: 5px solid var(--danger); }
.ftoast-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.ftoast-ok .ftoast-ico { background: var(--ok); }
.ftoast-err .ftoast-ico { background: var(--danger); }
.ftoast-msg b { display: block; margin-bottom: 2px; }
.ftoast-x { flex: none; border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted, #667); padding: 0 2px; }
.ftoast-out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes ftoast-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 640px) { .ftoast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* Connect Google */
.gs-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; margin-top: 16px; }
.gs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gs-head .pill { margin-left: auto; }
.gs-steps { margin: 10px 0 14px; padding-left: 1.2em; display: grid; gap: 6px; font-size: .93rem; }
.gs-foot { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gs-pop .gs-list { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.gs-setup { display: block; margin-top: 18px; text-decoration: none; color: inherit; border: 2px solid var(--signal, #f2b705); }
.gs-setup:hover { background: var(--sunk); }
.gs-head .pill { white-space: nowrap; }
.gs-head .logo { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.gs-setup { margin-bottom: 18px; }

/* ---------------------------------------------------------------- layout safety net (text wrap & alignment) */
main, .box, .card, dialog { overflow-wrap: break-word; }
main p, main li, main td, main dd, main label, main small, main .muted { overflow-wrap: anywhere; }
/* grid & flex children may shrink instead of pushing past their box */
.duo > *, .split > *, .vstack > *, .grid > *, .cols > *, .row > *, .box-head > *, .boxhead > * { min-width: 0; }
.sys-step summary { grid-template-columns: auto minmax(0, 1fr) auto; }
/* buttons: wrap long labels instead of spilling out of cards */
.btn { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }
.btn.nowrap, table .btn, .topbar .btn, .page-head .btn { white-space: nowrap; }
.vstack > .btn, aside .btn { width: 100%; }
/* chips: wrap to the card width */
.chip { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
/* status pills never squash or wrap */
.pill { flex: none; white-space: nowrap; }
/* any table outside a .tablewrap scrolls sideways inside its card, not the page */
:where(.box, section, main > div, form):has(> table.t) { overflow-x: auto; }
table.t td { overflow-wrap: normal; }
input, select, textarea { max-width: 100%; }
.pill.dot { width: auto; height: auto; border-radius: 999px; }
.tabs, [role=tablist] { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.tabs > *, [role=tablist] > * { flex: none; }
.steps li .n, .steps li .tick { flex: none; }
.copy .btn, aside .copy .btn, .actions .btn, aside .actions .btn { width: auto; white-space: nowrap; }
.copy input { flex: 1 1 auto; }
.chip { border-radius: 14px; padding: .3em .75em; }

/* ---------------------------------------------------------------- Escape chat */
.esc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; min-height: calc(100vh - 230px); }
.esc-side { border-right: 1px solid var(--line, #e5e7e2); padding-right: 12px; display: flex; flex-direction: column; gap: 10px; }
.esc-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; max-height: 70vh; }
.esc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.esc-item a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; font-size: .9rem; }
.esc-item.on, .esc-item:hover { background: var(--soft, #eef1ec); }
.esc-del { border: 0; background: none; color: #999; cursor: pointer; visibility: hidden; }
.esc-item:hover .esc-del { visibility: visible; }
.esc-main { display: flex; flex-direction: column; min-width: 0; }
.esc-log { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 4px 4px 16px; max-height: calc(100vh - 290px); }
.esc-hello { text-align: center; margin: auto 0; padding: 30px 0; }
.esc-hello h2 { font-size: 1.8rem; margin-bottom: 4px; }
.esc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 22px; text-align: left; }
.esc-card { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line, #e5e7e2); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.esc-card:hover { border-color: var(--brand, #0f6b5c); }
.esc-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.esc-msg p { margin: 0 0 6px; } .esc-msg p:last-child { margin-bottom: 0; } .esc-msg ul { margin: 4px 0 6px 18px; padding: 0; }
.esc-msg.me { align-self: flex-end; background: var(--brand, #0f6b5c); color: #fff; white-space: pre-wrap; }
.esc-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #e5e7e2); }
.esc-msg.card { align-self: flex-start; background: #fff8e6; border: 1px solid #f1d58a; }
.esc-msg.thinking { color: #777; }
.esc-msg .dots i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #aaa; animation: escdot 1s infinite; }
.esc-msg .dots i:nth-child(2) { animation-delay: .2s; } .esc-msg .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes escdot { 50% { opacity: .2; } }
.esc-form { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line, #e5e7e2); border-radius: 14px; padding: 8px; background: #fff; }
.esc-form textarea { flex: 1; border: 0; resize: none; outline: none; font: inherit; padding: 6px; min-height: 36px; }
@media (max-width: 760px) {
  .esc { grid-template-columns: 1fr; }
  .esc-side { border-right: 0; border-bottom: 1px solid var(--line, #e5e7e2); padding: 0 0 8px; }
  .esc-list { flex-direction: row; overflow-x: auto; max-height: none; }
  .esc-item { min-width: 160px; }
  .esc-msg { max-width: 95%; }
}
.esc-card { text-align: left; } .esc-card span { display: inline-flex; color: var(--brand, #0f6b5c); flex: none; } .esc-card span svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Assistants */
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.as-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line, #e5e7e2); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.as-card:hover { border-color: var(--brand, #0f6b5c); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.as-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.as-top small { display: block; color: #6b6f68; }
.as-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand, #0f6b5c); color: #fff; font-weight: 700; }
.as-add { border-style: dashed; justify-content: center; text-align: center; color: #555; }
.as-add span { font-size: 1.8rem; line-height: 1; color: var(--brand, #0f6b5c); }
.as-trig { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.as-add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: "▾"; font-size: .75rem; opacity: .7; }
.nav-more:not([open]) > summary::after { content: "▸"; }
.nav-mode button { background: none; border: 0; color: inherit; opacity: .6; font: inherit; font-size: .8rem; padding: 6px 12px; cursor: pointer; text-align: left; }
.nav-mode button:hover { opacity: 1; text-decoration: underline; }
.needs { display: flex; flex-direction: column; gap: 8px; }
.needs li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f1d58a; list-style: none; }
.needs ul { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.as-pass { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.as-pass select { max-width: 100%; }
.idea-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.6rem}
.idea{display:flex;flex-direction:column;gap:.25rem;text-align:left;padding:.8rem .9rem;border:1px solid var(--line,#ddd);border-radius:10px;background:var(--card,#fff);cursor:pointer;font:inherit;color:inherit}
.idea:hover,.idea:focus-visible{border-color:var(--accent,#0b5);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#0b5) 20%,transparent)}
.warn-t{color:#9a5b00}
.dry{list-style:none;padding:0;margin:.8rem 0 0;display:grid;gap:.35rem}
.dry li{padding:.5rem .7rem;border-radius:8px;background:var(--card);border:1px solid var(--line)}
.dry li b{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.dry li.on{border-left:3px solid var(--teal)}.dry li.off{opacity:.75}
.tasks{list-style:none;margin:0;padding:0}
.task{display:flex;gap:1rem;justify-content:space-between;align-items:flex-start;padding:.9rem 1.2rem;border-top:1px solid var(--line);flex-wrap:wrap}
.task.late{background:var(--signal-soft)}.task.claimed{border-left:3px solid var(--teal)}
.task-main{flex:1 1 320px;min-width:0}.task-act{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}
.task-act input{max-width:200px}
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem}
.funnel{list-style:none;padding:0;margin:.6rem 0;display:flex;flex-wrap:wrap;gap:.5rem}
.funnel li{flex:1 1 80px;background:var(--teal-soft);border-radius:8px;padding:.5rem .6rem}
.funnel li b{display:block;font-size:1.3rem}.funnel li span{font-size:.75rem;color:var(--muted)}
.res-money{display:grid;grid-template-columns:1fr 1fr;gap:.3rem .8rem;margin:0}.res-money dt{font-size:.75rem;color:var(--muted)}.res-money dd{margin:0}
.learn{list-style:none;padding:0;margin:.6rem 0 0;display:grid;gap:.6rem}.learn li{border:1px solid var(--line);border-radius:8px;padding:.6rem .8rem}.learn form{margin-top:.4rem}

/* ================================================================ Studio theme
   Calm, premium, monochrome — in the spirit of Apple and ElevenLabs. Lots of white, fine hairlines, black/white
   primary buttons, one quiet blue for links and focus, colour only where it carries meaning (good / attention / problem). */
:root {
  --paper: #FFFFFF; --card: #FFFFFF; --sunk: #F5F5F7; --line: #E8E8ED; --line-2: #D2D2D7;
  --ink: #1D1D1F; --ink-2: #424245; --muted: #6E6E73;
  --signal: #1D1D1F; --signal-soft: #FFF6E5; --signal-ink: #8A4B00;
  --teal: #0066CC; --teal-soft: #F0F6FF; --brand: #1D1D1F; --focus: #0071E3;
  --ok: #1D7A45; --ok-soft: #EBF7EF; --danger: #C9101E; --danger-soft: #FFF0F1;
  --live: #30C15A; --idle: #AEAEB2;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Mukta", system-ui, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Mukta", system-ui, sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px -12px rgba(0,0,0,.08);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.04), 0 24px 60px -24px rgba(0,0,0,.18);
  --side: #FBFBFD; --side-ink: #424245; --side-hover: #F0F0F3; --side-on: #FFFFFF;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0A0A0B; --card: #141416; --sunk: #1C1C1F; --line: #26262A; --line-2: #3A3A3F;
  --ink: #F5F5F7; --ink-2: #D1D1D6; --muted: #98989D;
  --signal: #F5F5F7; --signal-soft: #2B2112; --signal-ink: #FFC069;
  --teal: #4DA3FF; --teal-soft: #0F1E33; --brand: #F5F5F7; --focus: #4DA3FF;
  --ok: #4CD27A; --ok-soft: #10251A; --danger: #FF6B6B; --danger-soft: #2E1215;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 30px -14px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.8);
  --side: #0E0E10; --side-ink: #C7C7CC; --side-hover: #1A1A1D; --side-on: #222226;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0A0A0B; --card: #141416; --sunk: #1C1C1F; --line: #26262A; --line-2: #3A3A3F;
  --ink: #F5F5F7; --ink-2: #D1D1D6; --muted: #98989D;
  --signal: #F5F5F7; --signal-soft: #2B2112; --signal-ink: #FFC069;
  --teal: #4DA3FF; --teal-soft: #0F1E33; --brand: #F5F5F7; --focus: #4DA3FF;
  --ok: #4CD27A; --ok-soft: #10251A; --danger: #FF6B6B; --danger-soft: #2E1215;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 30px -14px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.8);
  --side: #0E0E10; --side-ink: #C7C7CC; --side-hover: #1A1A1D; --side-on: #222226; color-scheme: dark; } }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { background: var(--paper); color: var(--ink); font-family: var(--text); font-feature-settings: "cv11", "ss01"; letter-spacing: -.006em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.022em; font-stretch: 100%; font-variation-settings: normal; color: var(--ink); }
h1 { letter-spacing: -.035em; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- sidebar: quiet, light, like a macOS source list */
.side, :root[data-theme="dark"] .side { background: var(--side); color: var(--side-ink); border-right: 1px solid var(--line); padding: 18px 12px 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side { background: var(--side); border-right: 1px solid var(--line); } }
.side .brand { color: var(--ink); }
.wsname, .wslist { background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.wsname small { color: var(--muted); } .wslist a { color: var(--ink-2); } .wslist a:hover, .wslist a[aria-current] { background: var(--side-hover); color: var(--ink); }
.wsname .ws-ic { background: var(--ink); color: var(--paper); border-radius: 9px; }
.side nav { gap: 2px; }
.side nav a, .nav-cat > summary { color: var(--side-ink); border-radius: 9px; padding: 7px 10px; font-weight: 450; font-size: .93rem; }
.side nav a svg, .nav-cat > summary svg { opacity: .7; }
.side nav a:hover, .nav-cat > summary:hover { background: var(--side-hover); color: var(--ink); }
.side nav a[aria-current=page] { background: var(--side-on); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04); }
.side nav a[aria-current=page] svg { opacity: 1; }
.side nav .sep { color: var(--muted); font-weight: 500; letter-spacing: .04em; font-size: .7rem; margin: 18px 10px 6px; }
.nav-badge { background: var(--sunk); color: var(--ink-2); font-weight: 600; border: 1px solid var(--line); }
.side nav a[aria-current=page] .nav-badge { background: var(--ink); color: var(--paper); border-color: transparent; }
.side nav a[href$="/escape"] .nav-badge { background: var(--ink); color: var(--paper); border: 0; }
.nav-cat > summary { list-style: none; display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.nav-cat > summary::-webkit-details-marker { display: none; }
.nav-cat > summary svg { width: 17px; height: 17px; }
.nav-cat > summary::after { content: "›"; margin-left: auto; transition: transform .2s ease; opacity: .5; }
.nav-cat[open] > summary::after { transform: rotate(90deg); }
.nav-cat > a { padding-left: 37px !important; font-size: .9rem; }
.nav-mode button { color: var(--muted); }
.ai-team { display: flex; align-items: center; gap: 8px; margin: 14px 2px 6px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; text-decoration: none; }
.ai-team b { color: var(--ink); font-weight: 600; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent); }
.ai-dot.off { background: var(--idle); box-shadow: none; }
.side-foot { color: var(--muted); } .side-foot a { color: var(--ink-2); }

/* ---------- top bar */
.topbar { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); min-height: 76px; padding-top: 18px; padding-bottom: 18px; }
.topbar::after { display: none; }
.topbar h1 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.03em; }
.topbar .lede { color: var(--muted); font-size: .92rem; }
.ask-btn { display: inline-flex; align-items: center; gap: .45rem; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2);
  font-weight: 500; font-size: .9rem; text-decoration: none; box-shadow: none; }
.ask-btn:hover { background: var(--sunk); }
.ask-btn svg { width: 16px; height: 16px; }
.avatar { background: var(--sunk) !important; color: var(--ink) !important; border: 1px solid var(--line); }
.theme-tog { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.theme-tog:hover { background: var(--sunk); }
.theme-tog .moon { display: none; }
:root[data-theme="dark"] .theme-tog .sun { display: none; } :root[data-theme="dark"] .theme-tog .moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-tog .sun { display: none; } :root:not([data-theme="light"]) .theme-tog .moon { display: inline; } }
.menu-pop { border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--card); }
.theme-pick { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.theme-pick span { font-size: .8rem; color: var(--muted); margin-right: auto; }
.theme-pick button { border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: .8rem; cursor: pointer; }
.theme-pick button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: transparent; }

/* ---------- content rhythm: more air */
.content { padding-top: 28px; }
.box, .stat, .card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
.box { padding: 26px 28px; margin-bottom: 24px; }
.box.flush { padding: 0; } .box.flush .box-head { padding: 22px 26px 12px; }
.box h2 { font-size: 1.12rem; font-weight: 600; } .box .sub, .box > p.sub { color: var(--muted); }
.box.soft { background: var(--sunk); border-color: transparent; }
.box.accent { background: var(--card); border: 1px solid var(--line-2); }
.box.accent h2 svg { color: var(--ink); }
.stat { padding: 18px 20px; } .stat b { font-weight: 650; letter-spacing: -.03em; color: var(--ink); } .stat span, .stat small { color: var(--muted); }
.stat.hl { background: var(--sunk); border-color: transparent; }

/* ---------- buttons: black pill primary, hairline secondary */
.btn, .btn.signal { background: var(--ink); border: 1px solid var(--ink); color: var(--paper); border-radius: 999px; font-weight: 500; letter-spacing: -.005em;
  padding: .62em 1.15em; box-shadow: none; background-image: none; transition: background .15s, transform .1s, opacity .15s; }
.btn:hover, .btn.signal:hover { background: color-mix(in srgb, var(--ink) 82%, var(--paper)); border-color: transparent; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--sunk); border-color: var(--line-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: .42em .9em; font-size: .85rem; border-radius: 999px; }

/* ---------- forms */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
label { color: var(--ink); font-weight: 500; } .hint { color: var(--muted); }

/* ---------- status: one quiet line with coloured dots */
.statusbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.statusbar .st { display: inline-flex; align-items: center; gap: .55rem; padding: 6px 14px 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 450;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.statusbar .st svg { width: 15px; height: 15px; opacity: .65; }
.statusbar .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF9F0A; order: -1; }
.statusbar .bad::before { background: #FF453A; }
.statusbar .st a { color: var(--ink); font-weight: 600; text-decoration: none; }
.notice { border-radius: 14px; } .notice.ok { background: var(--ok-soft); color: var(--ok); } .notice.warn { background: var(--signal-soft); color: var(--signal-ink); }
.banner { background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- tables, pills, tabs, chips */
table.t th { background: transparent; color: var(--muted); font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
table.t td { border-bottom: 1px solid var(--line); padding: 14px; }
table.t tbody tr:hover td { background: var(--sunk); }
.pill { font-weight: 500; border-radius: 999px; padding: .22em .7em; font-size: .76rem; background: var(--sunk); color: var(--ink-2); }
.pill.good { background: var(--ok-soft); color: var(--ok); } .pill.hot { background: var(--signal-soft); color: var(--signal-ink); }
.pill.bad { background: var(--danger-soft); color: var(--danger); } .pill.info { background: var(--teal-soft); color: var(--teal); }
.tabs { border-bottom: 1px solid var(--line); gap: 6px; }
.tabs a, .tabs button { font-weight: 500; color: var(--muted); }
.tabs a[aria-selected=true], .tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.chip { border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 999px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: transparent; }
.chip svg { width: 13px; height: 13px; }

/* ---------- assistants: clean profile cards */
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.as-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: inherit; text-decoration: none;
  box-shadow: none; transition: box-shadow .25s ease, transform .25s ease, border-color .25s; }
.as-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.as-top { display: flex; align-items: center; gap: 14px; } .as-id { flex: 1; min-width: 0; }
.as-id b { display: block; font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; } .as-id small { color: var(--muted); }
.as-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(180deg, var(--sunk), color-mix(in srgb, var(--sunk) 60%, var(--line-2))); color: var(--ink); border: 1px solid var(--line); }
.as-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--live); border: 2px solid var(--card); }
.as-av.idle::after { background: var(--idle); }
.as-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 16px 0 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.as-stats div { padding: 10px 12px; border-right: 1px solid var(--line); } .as-stats div:last-child { border-right: 0; }
.as-stats b { display: block; font-size: 1.3rem; font-weight: 650; letter-spacing: -.03em; } .as-stats span { font-size: .74rem; color: var(--muted); }
.as-why { margin: 14px 0 4px; font-size: .88rem; color: var(--ink-2); background: var(--sunk); padding: 10px 12px; border-radius: 12px; }
.as-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.as-add { border: 1px dashed var(--line-2) !important; background: transparent !important; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.as-add > span { font-size: 1.6rem; color: var(--ink); font-weight: 300; }

/* ---------- home: your AI team */
.team-strip { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin: 0 0 24px; padding: 22px 24px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.team-strip .ts-head { flex: 1 1 220px; min-width: 0; }
.team-strip .ts-head b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; display: block; color: var(--ink); }
.team-strip .ts-head span { font-size: .88rem; color: var(--muted); }
.team-strip a.ts-mate { display: flex; align-items: center; gap: .6rem; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .88rem; }
.team-strip a.ts-mate:hover { background: var(--card); box-shadow: var(--shadow); }
.team-strip .as-av { width: 32px; height: 32px; font-size: .82rem; }
.team-strip .as-av::after { width: 9px; height: 9px; border-color: var(--sunk); }
.team-strip small { display: block; color: var(--muted); font-size: .74rem; }
.needs li, .esc-msg.card { background: var(--signal-soft); border: 1px solid color-mix(in srgb, #FF9F0A 30%, transparent); color: var(--signal-ink); }
.esc-card, .esc-msg.bot, .esc-form { background: var(--card); color: var(--ink); border-color: var(--line); }
.esc-card { border-radius: 16px; } .esc-card:hover { box-shadow: var(--shadow); }

/* ---------- results, tasks, ideas, dry run, learn, tickets */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.res h2 a { color: var(--ink); text-decoration: none; }
.res .funnel { list-style: none; padding: 0; margin: .8rem 0; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.res .funnel li { display: block !important; margin: 0; padding: 10px 12px; background: var(--card); border-right: 1px solid var(--line); }
.res .funnel li:last-child { border-right: 0; }
.res .funnel li b { display: block; font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; } .res .funnel li span { font-size: .74rem; color: var(--muted); }
.res-money { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; margin: 0; } .res-money dt { font-size: .76rem; color: var(--muted); } .res-money dd { margin: 0; font-weight: 500; }
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 16px 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.task.late { background: var(--signal-soft); } .task.claimed { box-shadow: inset 3px 0 0 var(--ink); }
.task-main { flex: 1 1 320px; min-width: 0; } .task-act { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; } .task-act input { max-width: 210px; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.idea { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; font: inherit; color: inherit; transition: box-shadow .2s, border-color .2s; }
.idea:hover, .idea:focus-visible { border-color: var(--line-2); box-shadow: var(--shadow); }
.warn-t { color: var(--signal-ink); }
.dry { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 8px; }
.dry li { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.dry li b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.dry li.on { box-shadow: inset 3px 0 0 var(--live); } .dry li.off { color: var(--muted); }
.learn { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: 10px; } .learn li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); } .learn form { margin-top: .5rem; }
.tk-list { list-style: none; margin: 0; padding: 0; } .tk-list li a { display: grid; gap: 3px; padding: 14px 24px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tk-list li a:hover { background: var(--sunk); } .tk-list .pill { justify-self: start; margin-top: 4px; }
.thread { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; max-width: 90%; }
.msg.sup { background: var(--sunk); border-color: transparent; justify-self: end; }
.msg.note { background: var(--signal-soft); border: 1px dashed color-mix(in srgb, #FF9F0A 50%, transparent); justify-self: stretch; max-width: 100%; }
.msg-h { margin-bottom: 4px; } .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.funnel li, .res::before { background-image: none; }

@media (prefers-reduced-motion: reduce) { .as-card:hover { transform: none; } }

/* ---------- website: same Studio language, more air */
.site-head { background: color-mix(in srgb, var(--paper) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.site-nav a { font-weight: 450; color: var(--ink-2); font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--ink); text-decoration: none; }
.site-nav .btn { color: var(--paper); }
.hero { padding: clamp(64px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
.hero .lede { font-size: 1.18rem; line-height: 1.6; color: var(--muted); }
.hero .lede b { color: var(--ink); font-weight: 600; }
.hero .proof li::before { background: var(--live); }
section.band { padding: clamp(72px, 10vw, 128px) 0; }
section.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.035em; font-weight: 650; }
section.band.tint { background: var(--sunk); }
section.band.ink { background: #0A0A0B; color: #F5F5F7; } section.band.ink a { color: #F5F5F7; }
section.band.ink h2, section.band.ink h3 { color: #F5F5F7; }
.callsheet { background: #111113; color: #F5F5F7; border: 1px solid #26262A; border-radius: 24px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.45); }
.callsheet .bar { color: #98989D; border-bottom-color: #26262A; } .callsheet .bar b { color: #fff; }
.callsheet .live, .callsheet .live i { color: var(--live); } .callsheet .live i { background: var(--live); }
.callsheet .result { border-top-color: #2C2C30; } .callsheet .result div span { color: #8E8E93; }
.callsheet .hot { color: #FFD60A; }
.line.agent { background: #1F1F23; color: #F5F5F7; } .line .who { color: #8E8E93; }
.line.caller { background: #F5F5F7; color: #1D1D1F; } .line.caller .who { color: #6E6E73; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); } .site-foot a { color: var(--ink-2); } .site-foot h4 { color: var(--ink); font-weight: 600; }
.price, .plan, .tier { border-radius: 22px; }
.box.accent, .setup-hero { box-shadow: none; }

/* ---------- accents: a touch of sunshine yellow and fresh green on white */
:root { --sun: #FFC72C; --sun-soft: #FFF7DB; --sun-ink: #7A5200; --leaf: #22B35E; --leaf-soft: #E8F8EE; --leaf-ink: #146B39; }
:root[data-theme="dark"] { --sun: #FFD54A; --sun-soft: #2A2410; --sun-ink: #FFD54A; --leaf: #34D27A; --leaf-soft: #0F2418; --leaf-ink: #5BE394; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sun: #FFD54A; --sun-soft: #2A2410; --sun-ink: #FFD54A; --leaf: #34D27A; --leaf-soft: #0F2418; --leaf-ink: #5BE394; } }
/* yellow = "here / AI", green = "alive / good" */
.side nav a[aria-current=page] { position: relative; }
.side nav a[aria-current=page]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sun); }
.side nav a[aria-current=page] svg { color: var(--ink); }
.side nav a[href$="/escape"] .nav-badge, .side nav a[aria-current=page] .nav-badge { background: var(--sun); color: #1D1D1F; }
.wsname .ws-ic { background: var(--sun); color: #1D1D1F; }
.ask-btn svg, .box.accent h2 svg, .esc-card svg { color: #E0A800; }
:root[data-theme="dark"] .ask-btn svg { color: var(--sun); }
.as-av::after, .team-strip .as-av::after { background: var(--leaf); }
.ai-dot { background: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 20%, transparent); }
.pill.good, .notice.ok { background: var(--leaf-soft); color: var(--leaf-ink); }
.pill.good.dot::before { background: var(--leaf); }
.meter, .meter > i, .meter span, progress { accent-color: var(--leaf); }
.box.accent { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); background: linear-gradient(180deg, var(--sun-soft), var(--card) 70%); }
.stat.hl { background: var(--sun-soft); } .stat.hl b { color: var(--sun-ink); }
.team-strip { background: linear-gradient(180deg, var(--card), var(--card)) padding-box; border-color: var(--line); }
.team-strip .ts-head b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 18%, transparent); }
.chip.on, .theme-pick button[aria-pressed=true] { background: var(--ink); color: var(--paper); box-shadow: inset 0 -2px 0 var(--sun); }
.tabs a[aria-selected=true], .tabs button[aria-selected=true] { border-bottom-color: var(--sun); border-bottom-width: 2px; }
.res .funnel li:nth-child(n+3) b { color: var(--leaf-ink); }
.dry li.on { box-shadow: inset 3px 0 0 var(--leaf); }
.task.claimed { box-shadow: inset 3px 0 0 var(--leaf); }
.task.late { background: var(--sun-soft); }
.statusbar .st::before { background: var(--sun); }
.idea:hover { border-color: color-mix(in srgb, var(--sun) 60%, var(--line)); }
/* website */
.hero h1 .hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 70%, transparent) 62%, color-mix(in srgb, var(--sun) 70%, transparent) 90%, transparent 90%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .proof li::before { background: var(--leaf); }
.site-nav .btn, .hero .cta .btn:not(.ghost) { box-shadow: inset 0 -2px 0 var(--sun); }
.callsheet .live, .callsheet .live i { color: var(--leaf); } .callsheet .live i { background: var(--leaf); }
.callsheet .hot { color: var(--sun); }
section.band.tint { background: linear-gradient(180deg, var(--sunk), var(--paper)); }
.site-nav a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--sun); }
.meter span, .meter.ok span { background: var(--leaf); }
.setup-hero .meter span, .box.accent .meter span { background: var(--leaf); }

/* ================================================================ Palette: Apple-style system colours, used softly
   Each colour has a job: blue = information & links, green = alive / good, yellow = you are here / AI,
   orange = attention, purple = AI team, pink = people, teal = money. Pastel washes, saturated icons. */
:root {
  --c-blue: #0A84FF; --c-blue-s: #EAF3FF; --c-green: #22B35E; --c-green-s: #E8F8EE; --c-yellow: #FFC72C; --c-yellow-s: #FFF7DB;
  --c-orange: #FF8A00; --c-orange-s: #FFF1E0; --c-purple: #8E5CF7; --c-purple-s: #F3EEFF; --c-pink: #FF4F8B; --c-pink-s: #FFEEF4;
  --c-teal: #14B8A6; --c-teal-s: #E6F8F5;
}
:root[data-theme="dark"] { --c-blue-s: #0E2238; --c-green-s: #0F2418; --c-yellow-s: #2A2410; --c-orange-s: #2D1D0A; --c-purple-s: #1F1736; --c-pink-s: #331421; --c-teal-s: #0B2623; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-blue-s: #0E2238; --c-green-s: #0F2418; --c-yellow-s: #2A2410; --c-orange-s: #2D1D0A; --c-purple-s: #1F1736; --c-pink-s: #331421; --c-teal-s: #0B2623; } }

/* sidebar: every section keeps its own colour on its icon */
.side nav svg { opacity: 1 !important; }
.side nav a[href$="/escape"] svg { color: var(--c-purple); }
.side nav a[href$="/setup"] svg { color: var(--c-orange); }
.side nav a[href$="/assistants"] svg, .nav-cat:nth-of-type(1) > summary svg { color: var(--c-purple); }
.side nav a[href$="/needs-you"] svg { color: var(--c-pink); }
.side nav a[href$="/inbox"] svg { color: var(--c-blue); }
.side nav a[href$="/results"] svg, .nav-cat:nth-of-type(2) > summary svg { color: var(--c-green); }
.side nav a[href$="/store"] svg, .side nav a[href$="/orders"] svg { color: var(--c-orange); }
.side nav a[href*="/app/"]:not([href*="/", 8]) svg { }
.nav-cat:nth-of-type(3) > summary svg { color: var(--c-blue); }
.nav-cat:nth-of-type(4) > summary svg { color: var(--c-orange); }
.nav-cat:nth-of-type(5) > summary svg { color: var(--c-teal); }
.nav-cat:nth-of-type(6) > summary svg { color: var(--muted); }
.side nav > a:first-of-type svg { color: var(--c-blue); }

/* numbers: soft tinted tiles in a calm rotation */
.stats .stat:nth-child(5n+1), .stat-row .stat:nth-child(5n+1) { background: var(--c-blue-s); border-color: transparent; }
.stats .stat:nth-child(5n+2), .stat-row .stat:nth-child(5n+2) { background: var(--c-purple-s); border-color: transparent; }
.stats .stat:nth-child(5n+3), .stat-row .stat:nth-child(5n+3) { background: var(--c-green-s); border-color: transparent; }
.stats .stat:nth-child(5n+4), .stat-row .stat:nth-child(5n+4) { background: var(--c-yellow-s); border-color: transparent; }
.stats .stat:nth-child(5n+5), .stat-row .stat:nth-child(5n+5) { background: var(--c-pink-s); border-color: transparent; }
.stats .stat:nth-child(5n+1) b { color: var(--c-blue); } .stats .stat:nth-child(5n+2) b { color: var(--c-purple); }
.stats .stat:nth-child(5n+3) b { color: var(--c-green); } .stats .stat:nth-child(5n+4) b { color: #B07A00; } .stats .stat:nth-child(5n+5) b { color: var(--c-pink); }
:root[data-theme="dark"] .stats .stat:nth-child(5n+4) b { color: var(--c-yellow); }

/* assistants get their own colour — like contacts on an iPhone */
.as-av.hue0 { background: linear-gradient(180deg, #A78BFA, #7C3AED); } .as-av.hue1 { background: linear-gradient(180deg, #60A5FA, #2563EB); }
.as-av.hue2 { background: linear-gradient(180deg, #34D399, #059669); } .as-av.hue3 { background: linear-gradient(180deg, #FBBF24, #F59E0B); }
.as-av.hue4 { background: linear-gradient(180deg, #F472B6, #DB2777); } .as-av.hue5 { background: linear-gradient(180deg, #2DD4BF, #0D9488); }
.as-av.hue6 { background: linear-gradient(180deg, #FB923C, #EA580C); }
.as-av[class*="hue"] { color: #fff; border: 0; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.as-av.idle { filter: saturate(.25) brightness(1.05); }
.as-card:hover .as-av { filter: none; }
.as-stats div:nth-child(1) b { color: var(--c-blue); } .as-stats div:nth-child(2) b { color: var(--c-purple); } .as-stats div:nth-child(3) b { color: var(--c-green); }

/* AI team banner: a soft aurora wash */
.team-strip { background: radial-gradient(60% 140% at 0% 0%, var(--c-purple-s), transparent 60%), radial-gradient(50% 140% at 100% 100%, var(--c-blue-s), transparent 60%),
  radial-gradient(40% 120% at 60% 0%, var(--c-yellow-s), transparent 60%), var(--card); }
.team-strip a.ts-mate { background: color-mix(in srgb, var(--card) 80%, transparent); }

/* statuses & pills in their colours */
.pill.info { background: var(--c-blue-s); color: var(--c-blue); } .pill.hot { background: var(--c-orange-s); color: #B45309; }
:root[data-theme="dark"] .pill.hot { color: #FFB860; }
.statusbar .st { background: var(--c-orange-s); border-color: transparent; color: var(--ink); } .statusbar .st::before { background: var(--c-orange); }
.statusbar .bad { background: var(--danger-soft); } .statusbar .bad::before { background: #FF3B30; }
.needs li { background: var(--c-orange-s); border-color: transparent; color: var(--ink); }
.box.accent { background: radial-gradient(70% 140% at 100% 0%, var(--c-yellow-s), transparent 65%), radial-gradient(60% 140% at 0% 100%, var(--c-green-s), transparent 60%), var(--card); border-color: var(--line); }
a { color: var(--c-blue); }
input:focus, select:focus, textarea:focus { border-color: var(--c-blue) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-blue) 18%, transparent); }
.idea { border-left: 3px solid var(--c-purple); }
.res .funnel li:nth-child(1) b { color: var(--c-blue); } .res .funnel li:nth-child(2) b { color: var(--c-purple); }
.tasks .task .pill { background: var(--c-pink-s); color: var(--c-pink); }

/* website: soft colour light behind the hero, tinted bands and cards */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -10% 0 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 30%, color-mix(in srgb, var(--c-purple) 30%, transparent), transparent 70%),
              radial-gradient(35% 45% at 92% 75%, color-mix(in srgb, var(--c-blue) 26%, transparent), transparent 70%),
              radial-gradient(30% 40% at 60% 85%, color-mix(in srgb, var(--c-yellow) 34%, transparent), transparent 70%),
              radial-gradient(30% 40% at 10% 90%, color-mix(in srgb, var(--c-green) 18%, transparent), transparent 70%); filter: blur(10px); }
section.band.tint { background: linear-gradient(180deg, var(--c-blue-s), var(--paper)); }
.ind { border: 1px solid var(--line); }
.ind:nth-child(6n+1) { background: var(--c-blue-s); } .ind:nth-child(6n+2) { background: var(--c-green-s); } .ind:nth-child(6n+3) { background: var(--c-purple-s); }
.ind:nth-child(6n+4) { background: var(--c-yellow-s); } .ind:nth-child(6n+5) { background: var(--c-pink-s); } .ind:nth-child(6n+6) { background: var(--c-teal-s); }
.ind { border-color: transparent; } .ind:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.howto-steps > li::before, .howto li::before { background: var(--c-purple); color: #fff; }

/* ================================================================ UI upgrades */
/* call page */
.wplayer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--c-purple-s); margin: 10px 0 4px; }
.wp-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: .95rem; cursor: pointer; flex: none; display: grid; place-items: center; }
.wp-play .i-pause, .wplayer.playing .wp-play .i-play { display: none; } .wplayer.playing .wp-play .i-pause { display: inline; }
.wp-wave { flex: 1; min-width: 0; height: 56px; cursor: pointer; }
.wp-time { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.wp-speed { border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 9px; font: inherit; font-size: .8rem; cursor: pointer; }
.wp-dl { color: var(--ink-2); display: grid; place-items: center; } .wp-dl svg { width: 18px; height: 18px; transform: rotate(180deg); }
.transcript { gap: 10px; }
.transcript .line { border-radius: 18px; padding: 10px 14px; font-size: .95rem; }
.transcript .line.agent { background: var(--c-purple-s); border-bottom-left-radius: 6px; }
.transcript .line.caller { background: var(--c-blue-s); border-bottom-right-radius: 6px; }
.transcript .line.agent .who { color: var(--c-purple); font-weight: 600; } .transcript .line.caller .who { color: var(--c-blue); font-weight: 600; }
.transcript .line.mark { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c-yellow) 70%, transparent); }
.transcript .line .tag { color: #B07A00; background: var(--c-yellow-s); border-radius: 999px; padding: 0 .5em; }
.moments a { background: var(--c-yellow-s); color: var(--ink); border-radius: 999px; padding: .2em .7em; text-decoration: none; font-size: .82rem; }
.dchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.dchip { border-radius: 14px; padding: 10px 12px; min-width: 0; } .dchip span { display: block; font-size: .72rem; color: var(--muted); }
.dchip b { display: block; font-weight: 600; overflow-wrap: anywhere; font-size: .92rem; }
.dchip.c0 { background: var(--c-blue-s); } .dchip.c1 { background: var(--c-green-s); } .dchip.c2 { background: var(--c-purple-s); }
.dchip.c3 { background: var(--c-yellow-s); } .dchip.c4 { background: var(--c-pink-s); } .dchip.c5 { background: var(--c-teal-s); }
/* assistant hero */
.h-crumb { font-size: .95rem; font-weight: 500; color: var(--muted); text-decoration: none; letter-spacing: 0; } .h-crumb:hover { color: var(--ink); }
.as-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 26px 28px; margin: 0 0 22px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(60% 160% at 0% 0%, var(--c-purple-s), transparent 60%), radial-gradient(50% 160% at 100% 100%, var(--c-blue-s), transparent 60%), var(--card); }
.as-av.big { width: 76px; height: 76px; font-size: 1.9rem; } .as-av.big::after { width: 16px; height: 16px; border-width: 3px; }
.as-hero-id { flex: 1 1 260px; min-width: 0; } .as-hero-id h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 2px; }
.as-hero-id p { color: var(--muted); margin: 0 0 10px; } .as-hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
/* sparklines in tiles */
.stat { position: relative; overflow: hidden; } .stat .spark { display: block; width: 100%; height: 28px; margin-top: 8px; }
.stats .stat:nth-child(5n+1) .spark { color: var(--c-blue); } .stats .stat:nth-child(5n+2) .spark { color: var(--c-purple); }
.stats .stat:nth-child(5n+3) .spark { color: var(--c-green); } .stats .stat:nth-child(5n+4) .spark { color: #E0A800; } .stats .stat:nth-child(5n+5) .spark { color: var(--c-pink); }
/* coloured page tiles */
.ptile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.ptile svg { width: 22px; height: 22px; }
.t-blue { background: var(--c-blue-s); color: var(--c-blue); } .t-purple { background: var(--c-purple-s); color: var(--c-purple); }
.t-green { background: var(--c-green-s); color: var(--c-green); } .t-orange { background: var(--c-orange-s); color: var(--c-orange); }
.t-pink { background: var(--c-pink-s); color: var(--c-pink); } .t-teal { background: var(--c-teal-s); color: var(--c-teal); }
.t-gray { background: var(--sunk); color: var(--ink-2); }
@media (max-width: 640px) { .ptile { display: none; } }
/* jump menu + save bar */
.jumpnav { position: sticky; top: 88px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 20px; padding: 6px;
  background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; }
.jumpnav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .86rem; font-weight: 500; }
.jumpnav a:hover { background: var(--sunk); } .jumpnav a.on { background: var(--ink); color: var(--paper); }
section.box[id] { scroll-margin-top: 150px; }
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 20px 50px -14px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); font-size: .9rem; }
.savebar.on { transform: translate(-50%, 0); }
.savebar span { display: flex; align-items: center; gap: 8px; margin-right: 6px; } .savebar i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-yellow); }
.savebar .btn { background: var(--paper); color: var(--ink); border-color: transparent; } .savebar .btn.ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
/* empty states: a small two-tone drawing — tilted cards behind a coloured icon, with sparkle dots */
.empty { padding: 56px 24px 48px; }
.empty .empty-ic { position: relative; width: 84px; height: 84px; border-radius: 24px; margin: 6px auto 22px; display: grid; place-items: center;
  background: var(--card); color: var(--c-purple); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); z-index: 0; }
.empty .empty-ic svg { width: 34px; height: 34px; }
.empty .empty-ic::before, .empty .empty-ic::after { content: ""; position: absolute; inset: 0; border-radius: 24px; z-index: -1; }
.empty .empty-ic::before { background: var(--c-purple-s); transform: rotate(-12deg) translate(-14px, 6px); }
.empty .empty-ic::after { background: var(--c-yellow-s); transform: rotate(10deg) translate(14px, 4px); }
.empty::before { content: "✦"; position: relative; display: block; height: 0; top: 8px; left: 58px; color: var(--c-yellow); font-size: 18px; }
.empty h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.empty p { color: var(--muted); line-height: 1.55; }
.empty .btn { margin: 4px; }
.tpl-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 640px; margin: 18px auto 0; text-align: left; }
.tpl { display: grid; gap: 2px; padding: 16px; border-radius: 18px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tpl svg { width: 22px; height: 22px; margin-bottom: 8px; } .tpl b { color: var(--ink); } .tpl span { color: var(--muted); font-size: .84rem; }
.tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
/* mobile: bottom tab bar like an iPhone app, readable tables */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .68rem; text-decoration: none; border-radius: 12px; }
  .tabbar svg { width: 22px; height: 22px; } .tabbar [aria-current=page] { color: var(--ink); } .tabbar [aria-current=page] svg { color: var(--c-purple); }
  .tabbar em { position: absolute; top: 2px; left: calc(50% + 6px); font-style: normal; font-size: .62rem; font-weight: 700; background: var(--c-pink); color: #fff; border-radius: 999px; padding: 0 5px; }
  .content { padding-bottom: 96px; }
  .topbar { min-height: 60px; padding-top: 12px; padding-bottom: 12px; } .topbar h1 { font-size: 1.3rem; } .topbar .lede { display: none; }
  .box { padding: 20px 18px; border-radius: 16px; } .stats { grid-template-columns: 1fr 1fr !important; }
  .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
  table.t td, table.t th { padding: 10px 10px; white-space: nowrap; }
  .savebar { left: 12px; right: 12px; transform: translateY(140%); bottom: 84px; } .savebar.on { transform: translateY(0); }
  .as-hero { padding: 20px; } .ask-btn span { display: none; }
}
/* smooth feel */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.content { animation: page-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.navline { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--c-purple), var(--c-blue), var(--c-green)); opacity: 0; }
.navline.go { opacity: 1; animation: navline 8s cubic-bezier(.1,.7,.1,1) forwards; }
.navline.done { opacity: 0; width: 100%; transition: opacity .3s; }
@keyframes navline { from { width: 0; } to { width: 92%; } }
.skeleton, .skel { position: relative; overflow: hidden; background: var(--sunk); border-radius: 10px; color: transparent !important; }
.skeleton::after, .skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 70%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.ftoast { border-radius: 16px !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--line) !important; background: var(--card) !important; color: var(--ink) !important;
  animation: toast-in .45s cubic-bezier(.2,.9,.3,1.25) both; }
.ftoast-ok .ftoast-ico { background: var(--c-green) !important; color: #fff !important; } .ftoast-err .ftoast-ico { background: #FF3B30 !important; color: #fff !important; }
.ftoast.ftoast-out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.notice:has(+ .ftoast) { display: none; } /* the toast says it; no duplicate box */
@media (prefers-reduced-motion: reduce) { .content, .ftoast { animation: none; } .navline.go { animation: none; width: 60%; } .skeleton::after, .skel::after { animation: none; } }
@media (max-width: 760px) { .ftoast { bottom: 88px !important; right: 12px !important; left: 12px; } }
/* website polish */
.logos { padding: 28px 0 8px; } .logos p { text-align: center; color: var(--muted); font-size: .85rem; letter-spacing: .02em; margin: 0 0 14px; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.logos li { font-weight: 650; font-size: 1.02rem; letter-spacing: -.02em; color: color-mix(in srgb, var(--ink) 45%, transparent); transition: color .2s; } .logos li:hover { color: var(--ink); }
.appwin { border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 40px 100px -40px rgba(30,20,80,.35); overflow: hidden; max-width: 1040px; margin: 34px auto 0; }
.appwin-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.appwin-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .appwin-bar i:nth-child(2) { background: #FEBC2E; } .appwin-bar i:nth-child(3) { background: #28C840; }
.appwin-bar span { margin: 0 auto; font-size: .78rem; color: var(--muted); background: var(--card); border-radius: 999px; padding: 2px 14px; }
.appwin-body { display: grid; grid-template-columns: 190px 1fr; min-height: 340px; }
.aw-side { display: grid; align-content: start; gap: 4px; padding: 18px 12px; background: var(--side); border-right: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.aw-side b { margin: 0 8px 10px; } .aw-side span { padding: 6px 10px; border-radius: 9px; } .aw-side span.on { background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.aw-main { padding: 22px; background: radial-gradient(50% 80% at 100% 0%, var(--c-purple-s), transparent 60%), var(--paper); }
.aw-h { font-size: 1.3rem; font-weight: 650; letter-spacing: -.03em; margin-bottom: 14px; }
.aw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.aw-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.aw-top { display: flex; align-items: center; gap: 10px; } .aw-top > div { flex: 1; min-width: 0; } .aw-top b { display: block; } .aw-top small { color: var(--muted); font-size: .78rem; }
.aw-card .as-av { width: 40px; height: 40px; }
@media (max-width: 760px) { .appwin-body { grid-template-columns: 1fr; } .aw-side { display: none; } }
/* pricing cards */
.plans { gap: 18px; } .plan { border-radius: 24px !important; padding: 28px !important; border: 1px solid var(--line) !important; background: var(--card); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan.mid { border: 1.5px solid var(--ink) !important; position: relative; background: radial-gradient(70% 60% at 100% 0%, var(--c-yellow-s), transparent 60%), var(--card); }
.plan.mid::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--ink); color: var(--paper); font-size: .74rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan li::marker { color: var(--c-green); }
/* dark footer */
.site-foot { background: #0A0A0B; color: #A1A1A6; border-top: 0; margin-top: 0; padding: 64px 0 40px; }
.site-foot h4 { color: #F5F5F7; } .site-foot a { color: #D1D1D6; } .site-foot a:hover { color: #fff; }
.site-foot .legal { color: #8E8E93; border-top: 1px solid #222; padding-top: 22px; }
.site-foot .brand { color: #F5F5F7; }
/* demo request: balanced two columns, tidy slot picker */
.cta-band { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cta-band > * { min-width: 0; }
.cta-intro { position: sticky; top: 100px; }
.cta-intro h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; max-width: 14ch; }
.cta-intro p { font-size: 1.05rem !important; line-height: 1.6; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--c-green-s); color: var(--c-green); margin-bottom: 14px; }
.cta-steps { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.cta-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.cta-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; flex: none; }
.cta-steps li:nth-child(1) b { background: var(--c-blue-s); color: var(--c-blue); } .cta-steps li:nth-child(2) b { background: var(--c-purple-s); color: var(--c-purple); }
.cta-steps li:nth-child(3) b { background: var(--c-yellow-s); color: #B07A00; }
.langs { gap: 6px; } .langs span { font-size: .82rem; padding: .25em .75em; background: var(--sunk); border-color: transparent; color: var(--ink-2); }
.panel { border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .panel .field { min-width: 0; margin-bottom: 14px; }
.demo-slots { margin: 6px 0 18px; padding: 18px; border-radius: 18px; background: var(--sunk); }
.demo-slots legend { float: left; width: 100%; margin-bottom: 12px; font-size: 1rem; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; clear: both; }
.slot-days::-webkit-scrollbar { display: none; }
.slot-days button { flex: none; scroll-snap-align: start; border-radius: 14px !important; padding: 8px 14px !important; background: var(--card) !important; border: 1px solid var(--line) !important; white-space: nowrap; }
.slot-days button[aria-selected="true"] { background: var(--ink) !important; color: var(--paper) !important; border-color: transparent !important; }
.slot-times { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; margin-top: 10px; }
.slot-group > span { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.slot-group > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.slot-times button { border-radius: 10px !important; padding: 7px 0 !important; background: var(--card) !important; border: 1px solid var(--line) !important; font-size: .86rem !important; }
.slot-times button:hover { border-color: var(--ink) !important; }
.slot-times button[aria-pressed="true"] { background: var(--c-green) !important; color: #fff !important; border-color: transparent !important; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } .cta-intro { position: static; } }
@media (max-width: 560px) { .panel .row { grid-template-columns: 1fr; } }
/* use cases: one business at a time */
.uc-tabs { position: sticky; top: 70px; z-index: 10; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 10px 0; margin-top: 1.2rem; scrollbar-width: none;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scroll-margin-top: 70px; }
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tabs .chip { flex: none; padding: .45em 1em; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
.uc-tabs .chip.on { background: var(--ink); color: var(--paper); border-color: transparent; }
.uc-js .uc-panel { display: none; } .uc-js .uc-panel.on { display: block; animation: page-in .3s ease both; }
.uc-panel { padding: 28px 0 72px !important; background: none !important; }
.uc-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.uc-lede { max-width: 46rem; font-size: 1.08rem; line-height: 1.6; }
.uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 26px; }
.uc-card { border-radius: 20px; padding: 22px; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; }
.uc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.uc-card h3 { font-size: 1.08rem; margin: 0 0 8px; } .uc-card p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.uc-gets { margin: 0 !important; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink) !important; }
.uc-gets span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.uc-card.c0 { background: var(--c-blue-s); } .uc-card.c1 { background: var(--c-green-s); } .uc-card.c2 { background: var(--c-purple-s); }
.uc-card.c3 { background: var(--c-yellow-s); } .uc-card.c4 { background: var(--c-pink-s); } .uc-card.c5 { background: var(--c-teal-s); }
.contact-band { padding-top: clamp(48px, 7vw, 96px) !important; }
.cta-intro h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 14px; }
.cta-intro .muted { font-size: 1.05rem; line-height: 1.6; }
.cta-sub { margin: 28px 0 0; font-size: 1rem; }
.cta-client { margin-top: 26px; padding: 14px 16px; border-radius: 16px; background: var(--sunk); font-size: .92rem; color: var(--ink-2); }
.uc-panel { scroll-margin-top: 150px; }
section.band.ink .btn:not(.ghost) { background: #F5F5F7; color: #0A0A0B; border-color: transparent; }
section.band.ink .btn.ghost { background: transparent; color: #F5F5F7; border-color: #3A3A3F; }
section.band.ink .muted, section.band.ink p { color: #A1A1A6; }
/* layout audit fixes */
.main, .content { min-width: 0; }
@media (max-width: 760px) {
  .tablewrap { margin: 0 !important; padding: 0 !important; max-width: 100%; overflow-x: auto; }
  .box.flush .tablewrap { border-radius: 0 0 16px 16px; }
  .main { overflow-x: clip; }
  table.t select, table.t input { max-width: 150px; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; }
  dl.kv { grid-template-columns: 1fr !important; } dl.kv dt { margin-top: 8px; } dl.kv dd { margin-left: 0; }
  .split, .row.c2, .grid.c2, .duo { grid-template-columns: 1fr !important; }
  .cluster { flex-wrap: wrap; }
}
.choices.compact { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }
.res .funnel { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important; }
.shop-req { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: var(--sunk); margin: 12px 0; }
.shop-req > div { display: grid; gap: 2px; min-width: 0; } .shop-req.ready { background: var(--c-green-s); } .shop-req.ask { display: block; background: var(--c-purple-s); }
.svc td { vertical-align: top; } .nowrap { white-space: nowrap; } .svc details form { min-width: 220px; }
