/* ============================================================
   LineSight Ops — interactive demo kit (shared by every demo)
   Brand: tokens.css (NEXUS dark glass, cyan → violet).
   Layout contract for a demo page:
     body.demo
       header.demo-top
       main.demo-wrap
         section.demo-hero
         section.demo-stage  (.pane.pane-customer + .pane.pane-owner)
         section.demo-log    (what happened behind the scenes)
         section.demo-how    (how it's wired)
         section.demo-cta
   ============================================================ */
@import url('../tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.demo {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- top bar ---------- */
.demo-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100vw - 1240px) / 2));
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.demo-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); font-weight: 700; letter-spacing: -0.01em; }
.demo-brand .mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); }
.demo-brand .accent { color: var(--cyan); }
.demo-top nav { display: flex; align-items: center; gap: 8px; }
.demo-top nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-soft); background: rgba(255,255,255,.03); white-space: nowrap; }
.demo-top nav a:hover { color: var(--text); border-color: var(--border); }
@media (max-width: 560px) { .demo-top nav a.hide-sm { display: none; } }

/* ---------- wrap ---------- */
.demo-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 16px 64px; }
@media (min-width: 720px) { .demo-wrap { padding: 40px 24px 80px; } }

/* ---------- label chips ---------- */
.example-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 5px 10px; border-radius: 999px;
}
.example-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.eyebrow-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 5px 10px; border-radius: 999px;
}
.tag.violet { color: var(--magenta); background: rgba(168, 85, 247, 0.10); border-color: rgba(168, 85, 247, 0.28); }

/* ---------- hero ---------- */
.demo-hero { display: grid; gap: 28px; align-items: end; margin-bottom: 28px; }
@media (min-width: 980px) { .demo-hero { grid-template-columns: 1.35fr 1fr; } }
.demo-hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 14px; color: var(--text-strong); font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-hero p.lede { color: var(--muted); font-size: 17px; margin: 0; max-width: 60ch; }
.biz-card {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border-soft); box-shadow: var(--shadow);
}
.biz-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #04121a; }
.biz-card strong { display: block; color: var(--text-strong); }
.biz-card span { color: var(--muted); font-size: 14px; }
.hero-side { display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  padding: 14px 16px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--border-soft);
}
.stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.stat .v { font-size: 22px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; margin-top: 2px; }
.stat.before .v { color: var(--rose); }
.stat.after .v { color: var(--emerald); }
.stat .s { font-size: 13px; color: var(--muted); }

/* ---------- controls ---------- */
.stage-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.stage-bar .hint { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.btn.primary { border: 0; color: #04121a; background: linear-gradient(90deg, var(--cyan), #7dd3fc); box-shadow: var(--glow); }
.btn.primary:hover { box-shadow: 0 10px 44px -8px rgba(34,211,238,.5); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- stage: customer + owner ---------- */
.demo-stage { display: grid; gap: 18px; align-items: start; }
@media (min-width: 980px) { .demo-stage { grid-template-columns: 400px 1fr; } }
.pane-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
}
.pane-label b { color: var(--text); font-weight: 600; }
.stage-tabs { display: none; }
@media (max-width: 979px) {
  .stage-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-soft); margin-bottom: 14px; position: sticky; top: 62px; z-index: 20; backdrop-filter: blur(10px); }
  .stage-tabs button { flex: 1; border: 0; border-radius: 999px; padding: 9px 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; position: relative; }
  .stage-tabs button.active { background: rgba(34,211,238,.14); color: var(--text-strong); }
  .stage-tabs button .badge-dot { position: absolute; top: 6px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); display: none; }
  .stage-tabs button.has-news .badge-dot { display: block; }
  .demo-stage[data-show="customer"] .pane-owner { display: none; }
  .demo-stage[data-show="owner"] .pane-customer { display: none; }
}

/* ---------- phone ---------- */
.phone {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 380 / 760; max-height: 760px;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1b1e2a, #0b0d14);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-pop), inset 0 0 0 2px rgba(255,255,255,.03);
}
@media (max-width: 420px) { .phone { aspect-ratio: auto; height: 640px; } }
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: #0d0f16; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #000; z-index: 5; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 13px; font-weight: 600; color: #fff; }
.phone-status .icons { display: flex; gap: 5px; align-items: center; opacity: .9; }
.thread-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.thread-head .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #04121a; }
.thread-head .name { font-size: 13px; color: #fff; font-weight: 600; }
.thread-head .sub { font-size: 11px; color: var(--muted-2); }
.thread { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.thread::-webkit-scrollbar { width: 0; }
.bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 19px; font-size: 14.5px; line-height: 1.38;
  animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
  white-space: pre-line;
}
.bubble.in { align-self: flex-start; background: #262a36; color: #f2f4fa; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: linear-gradient(180deg, #22d3ee, #0ea5c6); color: #03121a; border-bottom-right-radius: 6px; }
.bubble.system { align-self: center; background: transparent; color: var(--muted-2); font-size: 11.5px; padding: 4px 8px; text-align: center; }
.bubble .meta { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.typing { align-self: flex-start; background: #262a36; border-radius: 19px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa1b5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 4px; justify-content: flex-end; min-height: 10px; }
.chip {
  border: 1px solid rgba(34,211,238,.45); background: rgba(34,211,238,.08); color: #bff4fb;
  border-radius: 999px; padding: 8px 12px; font-size: 13.5px; font-weight: 500;
  animation: pop .25s ease;
}
.chip:hover { background: rgba(34,211,238,.18); }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 12px 18px; }
.composer .field { flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); padding: 9px 14px; font-size: 13px; color: var(--muted-2); background: rgba(255,255,255,.03); }
.composer .send { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--muted-2); }

/* phone overlays (call screen, lock-screen notification) */
.phone-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.notif {
  position: absolute; left: 10px; right: 10px; top: 48px; z-index: 6;
  padding: 11px 13px; border-radius: 18px; background: rgba(38,42,54,.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #fff;
  animation: drop .4s cubic-bezier(.2,.9,.3,1.2);
}
.notif .ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #04121a; font-weight: 800; }
.notif small { display: block; color: var(--muted); font-size: 11.5px; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

/* ---------- owner app window ---------- */
.app-window {
  border-radius: var(--radius-lg); overflow: hidden; background: #0a0c13;
  border: 1px solid var(--border); box-shadow: var(--shadow-pop);
}
.app-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border-soft); }
.app-chrome .dots { display: flex; gap: 6px; }
.app-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.app-chrome .title { font-size: 13px; color: var(--muted); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-chrome .live { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.app-body { padding: 16px; display: grid; gap: 14px; }
@media (min-width: 720px) { .app-body { padding: 20px; } }
.app-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.app-tabs button { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.app-tabs button.active { background: var(--panel-2); border-color: var(--border-soft); color: var(--text-strong); }

.card { padding: 14px; border-radius: var(--radius-md); background: var(--panel-2); border: 1px solid var(--border-soft); }
.card h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 12px 14px; border-radius: var(--radius-md); background: var(--panel-2); border: 1px solid var(--border-soft); }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 24px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.kpi .d { font-size: 12px; color: var(--emerald); font-family: var(--font-mono); }
.kpi.flash .v { color: var(--cyan); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill.cyan { color: var(--cyan); background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.25); }
.pill.violet { color: var(--magenta); background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.3); }
.pill.green { color: var(--emerald); background: var(--success-soft); border-color: rgba(52,211,153,.28); }
.pill.amber { color: var(--amber); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.28); }
.pill.rose { color: var(--rose); background: var(--danger-soft); border-color: rgba(251,113,133,.3); }
.pill.dim { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--border-soft); }

.list { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border-soft);
  transition: border-color .3s, background .3s;
}
.row.new { animation: slidein .45s cubic-bezier(.2,.9,.3,1.1); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.06); }
@keyframes slidein { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.row .ttl { font-weight: 600; color: var(--text-strong); font-size: 14px; }
.row .sub { color: var(--muted); font-size: 12.5px; }
.ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #04121a; }

/* progress tracker (stages) */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.track .st { position: relative; padding-top: 14px; font-size: 11.5px; color: var(--muted-2); text-align: center; }
.track .st::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 4px; background: rgba(255,255,255,.08); transition: background .4s; }
.track .st.done { color: var(--text); }
.track .st.done::before { background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.track .st.now { color: var(--cyan); }
.track .st.now::before { background: rgba(34,211,238,.5); animation: shimmer 1.2s infinite alternate; }
@keyframes shimmer { from { opacity: .5; } to { opacity: 1; } }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted-2); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.empty { color: var(--muted-2); font-size: 13.5px; padding: 16px; text-align: center; border: 1px dashed var(--border-soft); border-radius: 12px; }

/* ---------- behind-the-scenes log ---------- */
.demo-log { margin-top: 26px; }
.log-box {
  border-radius: var(--radius-lg); background: #07080d; border: 1px solid var(--border-soft);
  padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; max-height: 260px; overflow-y: auto;
}
.log-line { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 4px 0; color: var(--muted); animation: fade .3s ease; }
.log-line time { color: var(--muted-2); }
.log-line b { color: var(--cyan); font-weight: 500; }
.log-line.ok b { color: var(--emerald); }
.log-line.warn b { color: var(--amber); }
.log-line.you b { color: var(--magenta); }
.log-empty { color: var(--muted-2); }
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.log-head h2 { margin: 0; }

/* ---------- sections below stage ---------- */
.demo-section-title { font-size: 22px; letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 6px; }
.demo-section-sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.demo-how { margin-top: 40px; }
.how-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how { padding: 16px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--border-soft); }
.how .n { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: .12em; }
.how strong { display: block; color: var(--text-strong); margin: 6px 0 4px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }

.demo-cta {
  margin-top: 40px; padding: 26px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(168,85,247,.10));
  border: 1px solid rgba(34,211,238,.22);
  display: grid; gap: 18px; align-items: center;
}
@media (min-width: 860px) { .demo-cta { grid-template-columns: 1fr auto; padding: 32px; } }
.demo-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; color: var(--text-strong); }
.demo-cta p { margin: 0; color: var(--muted); }
.demo-cta .price { font-family: var(--font-mono); font-size: 13px; color: var(--text); margin-top: 10px; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.demo-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border-soft); color: var(--muted-2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.demo-foot a { color: var(--muted); }

/* ---------- utilities ---------- */
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- personalise bar ---------- */
.biz-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: var(--radius-md); background: var(--panel); border: 1px dashed rgba(34,211,238,.3); }
.biz-form label { font-size: 13px; color: var(--muted); flex: 1 1 100%; }
.biz-form input { flex: 1 1 160px; min-width: 0; border-radius: 999px; border: 1px solid var(--border); background: rgba(0,0,0,.3); color: var(--text-strong); padding: 9px 14px; font: inherit; font-size: 14px; }
.biz-form input::placeholder { color: var(--muted-2); }
.biz-form.saved button[type=submit] { background: var(--emerald); }
.biz-form .linkish { background: none; border: 0; color: var(--muted-2); font-size: 12.5px; text-decoration: underline; padding: 4px; }

/* ---------- reply race (time to first reply) ---------- */
.race { display: grid; gap: 10px; }
.race-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.race-row .lbl { color: var(--muted); }
.race-row .val { font-family: var(--font-mono); color: var(--text-strong); }
.race-bar { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.race-bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.race-bar.fast i { background: linear-gradient(90deg, var(--emerald), var(--cyan)); }
.race-bar.slow i { background: linear-gradient(90deg, var(--amber), var(--rose)); }

/* ---------- your-numbers calculator ---------- */
.calc { display: grid; gap: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border-soft); }
@media (min-width: 860px) { .calc { grid-template-columns: 1.2fr 1fr; padding: 22px; } }
.calc-inputs { display: grid; gap: 14px; }
.calc-field label { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.calc-field label output { font-family: var(--font-mono); color: var(--cyan); }
.calc-field input[type=range] { width: 100%; accent-color: var(--cyan); }
.calc-out { display: grid; gap: 10px; align-content: center; padding: 16px; border-radius: var(--radius-md); background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.22); }
.calc-out .big { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--emerald); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-out small { color: var(--muted); font-size: 13px; }
.calc-note { grid-column: 1 / -1; color: var(--muted-2); font-size: 12.5px; margin: 0; }

/* inside the owner window, only split into two columns when there's room */
@media (min-width: 860px) and (max-width: 1199px) { .app-body .grid-2 { grid-template-columns: 1fr; } }

/* grid items default to min-width:auto, which lets one wide child stretch a pane past the screen */
.demo-stage > .pane, .app-body > *, .grid-2 > * { min-width: 0; }
