/* ================= operations room: the agent team around the plan ================= */
.stage-wrap {
  position: relative; margin-top: 16px; border-radius: 22px; padding: 16px 16px 12px; overflow: hidden; color: #e6edf7;
  background:
    radial-gradient(rgb(148 163 184 / .10) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 95% at 50% 48%, #15294a 0%, #0b1528 55%, #060b16 100%);
  box-shadow: 0 10px 40px rgb(2 6 23 / .35), inset 0 0 0 1px rgb(148 163 184 / .12);
}
.hud { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hud .eyebrow { font-size: 12px; color: #5eead4; font-weight: 600; }
.hud h1 { margin: 2px 0 0; font-size: 21px; line-height: 1.35; color: #f1f5f9; }
.hud .sub { font-size: 13px; color: #94a3b8; }
.btn.glow { background: linear-gradient(135deg, #14b8a6, #0ea5e9); color: #04121f; border: 0; box-shadow: 0 0 0 1px rgb(94 234 212 / .4), 0 6px 22px rgb(20 184 166 / .35); display: inline-flex; align-items: center; gap: 8px; }
.btn.glow:disabled { opacity: .85; }
.stage-svg { width: 100%; height: auto; display: block; margin-top: 4px; font-family: inherit; }
.stage-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; }
.stage-foot .lg { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.stage-foot i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 5px; vertical-align: middle; }
.stage-foot .lnk { background: none; border: 0; color: #5eead4; cursor: pointer; font-weight: 600; font-size: 13px; padding: 0; }
.usage { font-variant-numeric: tabular-nums; }

.orbit { fill: none; stroke: rgb(148 163 184 / .16); stroke-dasharray: 2 7; }
.orbit.o2 { stroke: rgb(148 163 184 / .08); }
.link { stroke: var(--c); stroke-opacity: .26; stroke-width: 1.4; fill: none; }
.link.hot { stroke-opacity: .95; stroke-width: 2; stroke-dasharray: 6 8; animation: flow .7s linear infinite; }
.link.dim { stroke-opacity: .06; }
@keyframes flow { to { stroke-dashoffset: -14; } }

.ag { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: opacity .25s; }
.ag .disc { fill: color-mix(in srgb, var(--c) 18%, #0b1528); stroke: var(--c); stroke-width: 2; transition: stroke-width .15s; }
.ag:hover .disc, .ag:focus-visible .disc { stroke-width: 3.5; }
.ag.sel .disc { stroke-width: 4; filter: drop-shadow(0 0 12px var(--c)); }
.ag.dim { opacity: .32; }
.ag .ico { color: var(--c); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag .nm { fill: #f1f5f9; font-weight: 700; font-size: 15px; text-anchor: middle; }
.ag .md { fill: #8ea0bd; font-size: 11.5px; text-anchor: middle; }
.ag .md.err { fill: #f87171; }
.ag .spin { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 5 7; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ag.st-running .spin { opacity: .95; animation: spin 2.2s linear infinite; }
.ag.st-queued .spin { opacity: .4; animation: spin 7s linear infinite; }
.ag.st-error .disc { stroke: #f87171; stroke-dasharray: 4 3; }
.ag .halo { fill: var(--c); opacity: 0; transform-box: fill-box; transform-origin: center; }
.ag.st-running .halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { from { opacity: .4; transform: scale(.9); } to { opacity: 0; transform: scale(1.55); } }
@keyframes spin { to { transform: rotate(360deg); } }
.bdg { stroke: #0b1528; stroke-width: 2.5; }
.bdg.b-bad { fill: #ef4444; }
.bdg.b-warn { fill: #f59e0b; }
.bdg.b-info { fill: #3b82f6; }
.bdg.b-ok { fill: #10b981; }
.bdg-t { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; }

.core .track { fill: none; stroke: rgb(148 163 184 / .16); stroke-width: 3; }
.core .track2 { fill: none; stroke: rgb(148 163 184 / .08); stroke-width: 14; }
.core .elapsed { fill: none; stroke: #5eead4; stroke-width: 3; stroke-linecap: round; }
.seg { fill: none; stroke-width: 14; cursor: pointer; transition: stroke-width .15s, opacity .25s; }
.seg:hover { stroke-width: 19; }
.seg.dim, .flag.dim { opacity: .2; }
.flag { stroke: #0b1528; stroke-width: 1.5; }
.flag.f-bad { fill: #f87171; }
.flag.f-warn { fill: #fbbf24; }
.c1 { fill: #94a3b8; text-anchor: middle; }
.c2 { fill: #f8fafc; font-weight: 700; text-anchor: middle; font-variant-numeric: tabular-nums; }
.c2s { fill: #64748b; font-weight: 600; }
.c3 { fill: #5eead4; font-weight: 600; text-anchor: middle; }
.sweep { opacity: 0; pointer-events: none; }
.stage-wrap.scan .sweep, .stage-wrap.busy .sweep { opacity: 1; animation: spin 2.4s linear infinite; }
.stage-wrap.scan .link { stroke-opacity: .7; }

/* first open: agents fly in, the plan ring draws itself */
.stage-wrap.intro .ag { animation: pop .7s cubic-bezier(.2, 1.5, .4, 1) backwards; animation-delay: calc(var(--i) * 90ms + 250ms); }
.stage-wrap.intro .link { animation: fade 1s backwards; animation-delay: 1s; }
.stage-wrap.intro .core { animation: fade .8s backwards; }
.stage-wrap.intro .seg { stroke-dasharray: var(--L) var(--L); stroke-dashoffset: var(--L); animation: draw .45s ease-out forwards; animation-delay: calc(var(--i) * 45ms + 650ms); }
.stage-wrap.intro .hud { animation: fade .6s backwards; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; display: inline-block; animation: spin .8s linear infinite; }
.spinner.sm { width: 12px; height: 12px; color: var(--brand); }

/* plan timeline */
.tl-card { padding-bottom: 12px; }
.tl-wrap { overflow-x: auto; margin: 6px -16px 0; padding: 0 16px; }
.tl { min-width: 780px; width: 100%; height: auto; display: block; font-family: inherit; }
.tl .wk { fill: var(--surface-2); opacity: .55; }
.tl .wk.alt { opacity: .25; }
.tl .wkt { fill: var(--muted); font-size: 11px; text-anchor: middle; font-weight: 600; }
.tl-base { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.tl-done { stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.tl-now { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tl-nowt { fill: var(--brand); font-size: 11px; font-weight: 700; text-anchor: middle; }
.tl .dn { fill: var(--muted); font-size: 11px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.tp { cursor: pointer; transition: opacity .25s; }
.tp .tp-ring { fill: var(--surface); stroke: var(--surface); }
.tp.hl .tp-ring { stroke: var(--c); stroke-width: 3; }
.tp .tp-g { fill: #fff; font-size: 12px; text-anchor: middle; pointer-events: none; }
.tp.dim { opacity: .25; }

/* findings */
.fd { border: 1px solid var(--line); border-inline-start: 4px solid var(--c); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: var(--surface); }
.fd header { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.fd header b { color: var(--c); }
.fd .src { font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 0 7px; border-radius: 99px; }
.fd .src.ai { color: #7c3aed; background: color-mix(in srgb, #8b5cf6 14%, transparent); }
.fd .lv { margin-inline-start: auto; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 99px; }
.lv-bad .lv { background: var(--bad-bg); color: var(--bad); }
.lv-warn .lv { background: var(--warn-bg); color: var(--warn); }
.lv-info .lv { background: var(--info-bg); color: var(--info); }
.lv-ok .lv { background: var(--ok-bg); color: var(--ok); }
.fd .t { font-weight: 700; margin-top: 4px; }
.fd .d { font-size: 14px; color: var(--muted); margin-top: 2px; }
.fd .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 9px; }
.fx { margin-top: 6px; }
.fx summary { font-size: 13px; }
.cap { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 6px; line-height: 1.8; max-height: 320px; overflow: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font-size: 13px; background: color-mix(in srgb, var(--c) 12%, transparent); padding: 1px 9px; border-radius: 99px; }
.rep-in { min-height: 64px !important; margin-top: 8px; }
.drafts { padding-inline-start: 20px; font-size: 13px; margin: 6px 0 0; }
.drafts li { margin-bottom: 6px; }
.av { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 15%, transparent); color: var(--c, var(--brand)); flex: none; }
.av svg { width: 16px; height: 16px; }
.av.lg { width: 44px; height: 44px; border-radius: 12px; }
.av.lg svg { width: 26px; height: 26px; }

/* team list, agent card, live feed */
.mem { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 8px 6px; border-radius: 11px; cursor: pointer; text-align: start; }
.mem:hover { background: var(--surface-2); }
.mem.on { background: color-mix(in srgb, var(--c) 12%, transparent); }
.mem .grow { display: flex; flex-direction: column; align-items: flex-start; }
.mem .ell { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-m { font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.cnt { min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; padding: 0 6px; }
.cnt.bad { background: var(--bad); }
.cnt.warn { background: #d97706; }
.dotx { width: 10px; height: 10px; border-radius: 50%; }
.dotx.bad { background: var(--bad); }
.agent-card { border-top: 4px solid var(--c); }
.duties { margin: 10px 0 6px; padding-inline-start: 18px; font-size: 14px; }
.say { font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin-top: 6px; }
.say.ai { background: color-mix(in srgb, #8b5cf6 10%, var(--surface)); }
.say.err { background: var(--bad-bg); color: var(--bad); }
.ev { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ev:last-child { border-bottom: 0; }
.ev i { font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 12px; flex: none; }
.ed-team { margin-top: 16px; }
.ed-team h4 { margin: 0; font-size: 15px; }

/* settings: one model per agent */
.models { margin-top: 10px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mrow .sel { width: auto; min-width: 150px; margin-top: 0; padding: 6px 10px; }
.brand-in { min-height: 320px; font-size: 13px; }
.more-i { align-items: center; }
.more-i .av svg { width: 18px; height: 18px; }

.bottom { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 1000px) {
  .hq-grid { grid-template-columns: 1.5fr 1fr; }
  .hud h1 { font-size: 24px; }
}
@media (max-width: 699px) {
  .stage-wrap { margin-inline: -8px; border-radius: 18px; padding: 14px 12px 10px; }
  .ag .nm { font-size: 22px; }
  .ag .md { font-size: 16px; }
  .bdg-t { font-size: 15px; }
  .hud h1 { font-size: 18px; }
  .hud .btn.glow { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-wrap *, .spinner { animation: none !important; }
}

.legend { flex-wrap: wrap; }
.legend span { white-space: nowrap; }

.ag.st-batched .spin { opacity: .5; animation: spin 9s linear infinite; stroke-dasharray: 2 5; }
.usage.over { color: #f87171 !important; }
.budget-box { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.budget-box .bar { margin: 6px 0; }

.mrow .grow { flex: 1 1 220px; }
.mrow .sel { flex: 0 1 auto; }
@media (max-width: 699px) { .mrow .sel { flex: 1 1 100%; } }

/* ---------- v5: autopilot, schedules, the daily brief ---------- */
.apk { color: #14b8a6; font-weight: 700; }
.apb { fill: #0b1528; stroke: #5eead4; stroke-width: 1.5; }
.apb-t { fill: #5eead4; font-size: 11px; text-anchor: middle; font-weight: 700; }
.brief { margin-top: 14px; }
.brief-top { display: flex; gap: 16px; align-items: flex-start; }
.eyebrow2 { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.pulse { position: relative; width: 96px; height: 96px; flex: none; }
.pulse svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pulse .pt { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.pulse .pv { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.pulse .pn { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.pulse .pn b { font-size: 26px; font-variant-numeric: tabular-nums; }
.pulse .pn span { font-size: 11px; color: var(--muted); }
.story { display: grid; gap: 4px; }
.sl { display: flex; gap: 10px; align-items: flex-start; text-align: start; background: none; border: 0; padding: 6px 8px; border-radius: 10px; width: 100%; font-size: 14px; line-height: 1.6; }
button.sl { cursor: pointer; }
button.sl:hover, button.sl:focus-visible { background: var(--surface-2); }
.sl i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px; margin-top: 1px; background: var(--surface-2); }
.sl span { flex: 1; min-width: 0; }
.sl .go { color: var(--muted); font-weight: 400; }
.sl.t-ok i { background: var(--ok-bg); color: var(--ok); }
.sl.t-warn i { background: var(--warn-bg); color: var(--warn); }
.sl.t-bad i { background: var(--bad-bg); color: var(--bad); }
.sl.t-info i { background: var(--info-bg); color: var(--info); }
.wk-strip { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.wds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.wd { background: var(--surface-2); border-radius: 12px; padding: 8px 6px; text-align: center; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wd.now { box-shadow: inset 0 0 0 2px var(--brand); }
.wd b { font-size: 13px; }
.wd > span { font-size: 11px; color: var(--muted); }
.wd .who { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 4px; min-height: 22px; }
.wd em { font-style: normal; font-size: 11px; color: var(--muted); }
.av.xs { width: 22px; height: 22px; border-radius: 7px; }
.av.xs svg { width: 14px; height: 14px; }
.sched { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--c, var(--brand)); }
.switch.sm { margin-top: 0; font-size: 13px; font-weight: 600; }
.switch.sm input { width: 18px; height: 18px; }
.held { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; margin-top: 6px; }
.hist { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hist .av { flex: none; }
.hist.undone { opacity: .55; }
.hist.undone .grow > div:first-child { text-decoration: line-through; }
.sub-h { font-size: 14px; margin: 16px 0 4px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mrow { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.mrow .nmc { flex: 1 1 200px; min-width: 0; }
.mrow .fq { min-width: 110px; }
.mrow .fqx { min-width: 150px; }
.mrow .ap { margin-top: 0; min-width: 64px; }
.mrow .est { min-width: 86px; text-align: end; color: var(--muted); font-variant-numeric: tabular-nums; }
.rsched { display: grid; gap: 8px; }
.rs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.rs .switch { margin-top: 0; min-width: 96px; }
.rs .in { width: auto; margin-top: 0; }
.rs .grow { flex: 1 1 140px; }
@media (max-width: 699px) {
  .brief-top { flex-direction: column; align-items: center; }
  .brief-top > .grow { width: 100%; }
  .wds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .three { grid-template-columns: 1fr; }
  .mrow .fq, .mrow .sel { flex: 1 1 45%; }
  .mrow .est { flex: 1; }
}

/* ---------- v6: automations, accounts, WhatsApp ---------- */
.acc-bar { margin: 8px 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.accs { display: grid; gap: 8px; margin-bottom: 8px; }
.acc { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
.acc .av { display: grid; place-items: center; font-weight: 700; color: var(--brand); }
.rule.off { opacity: .6; }
.rule .tags { margin: 8px 0; }
.funnel { display: grid; gap: 6px; margin: 8px 0; }
.fu { display: grid; grid-template-columns: minmax(96px, 30%) 1fr 44px; gap: 8px; align-items: center; font-size: 13px; }
.fu .fb { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fu .fb i { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #0ea5e9); border-radius: 99px; }
.fu b { text-align: end; font-variant-numeric: tabular-nums; }
.checks { display: grid; gap: 8px; margin-bottom: 8px; }
.ck { display: flex; gap: 10px; align-items: flex-start; }
.ck i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; }
.ck.ok i { background: var(--ok-bg); color: var(--ok); }
.row.wrap { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.row.wrap .f { flex: 1 1 220px; min-width: 0; }
.kw { display: grid; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.wa-replies .in { width: 100%; }
.wa-replies textarea.in { margin-top: 6px; }
.sheet > form { display: contents; }
.sheet.wide { max-width: 1040px; }
.rule-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.prev-col { position: sticky; top: 0; }
.gate-box { border-inline-start: 3px solid var(--brand); padding-inline-start: 12px; margin: 6px 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; max-height: 300px; overflow: auto; }
.mtile { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; font-size: 11px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 2px transparent; }
.mtile.on { box-shadow: inset 0 0 0 3px var(--brand); }
.mtile input { position: absolute; top: 6px; inset-inline-start: 6px; width: 18px; height: 18px; accent-color: var(--brand); }
.mtile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.mtile span { padding: 4px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.phone { border-radius: 28px; background: #0b1120; padding: 10px; box-shadow: 0 10px 30px rgb(2 6 23 / .25); }
.ph-top { color: #e2e8f0; font-weight: 700; font-size: 13px; text-align: center; padding: 4px 0 8px; border-bottom: 1px solid #1e293b; }
.ph-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px; font-size: 13px; color: #e2e8f0; max-height: 560px; overflow: auto; }
.ph-body .cm { background: #111a2e; border-radius: 10px; padding: 6px 10px; }
.ph-body .cm.reply { margin-inline-start: 18px; }
.ph-body .sep { text-align: center; color: #64748b; font-size: 11px; margin: 4px 0; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; }
.bub.them { background: #1e293b; align-self: flex-start; border-end-start-radius: 4px; }
.bub.me { background: linear-gradient(135deg, #7c3aed, #db2777); align-self: flex-end; border-end-end-radius: 4px; color: #fff; }
.card-b { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.card-b small { color: #94a3b8; }
.card-b .btn-b { background: #334155; border-radius: 8px; text-align: center; padding: 6px; font-weight: 700; color: #5eead4; }
.card-b em { font-style: normal; font-size: 11px; color: #64748b; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr { align-self: flex-start; }
.qr span { display: inline-block; border: 1px solid #5eead4; color: #5eead4; border-radius: 99px; padding: 3px 12px; font-size: 12px; }
@media (max-width: 860px) {
  .rule-grid { grid-template-columns: 1fr; }
  .prev-col { position: static; }
}

.wa-num { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.seg button { white-space: nowrap; }
.sheet.wide textarea.in, .wa-replies textarea.in, .kw textarea.in { min-height: 0; }

.warn-card { border: 1px solid var(--warn); background: var(--warn-bg); }
.warn-card h2 { color: var(--warn); }

/* competitor radar */
.hit { border-top: 1px solid var(--line); padding: 12px 0; }
.hit:first-of-type { border-top: 0; padding-top: 0; }
.hit .row { gap: 8px; align-items: center; flex-wrap: wrap; }
.hit p { margin: 6px 0; }
.idea { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.idea p { margin: 6px 0; }
.rstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rstat { background: var(--surface-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.rstat b { font-size: 1.05rem; }
.rstat span { font-size: .8rem; color: var(--muted); }
.tbl-wrap { overflow-x: auto; margin: 10px 0; }
.rtbl { width: 100%; border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
.rtbl th, .rtbl td { padding: 6px 8px; text-align: start; border-bottom: 1px solid var(--line); }
.rtbl th { font-weight: 600; color: var(--muted); font-size: .78rem; }
.rtbl tr.own td { background: var(--surface-2); }

/* leads */
.rtbl td.wrap { white-space: normal; min-width: 160px; }

/* today */
.today-kpi .big { font-size: 3.4rem; font-weight: 800; line-height: 1.05; margin: 6px 0 2px; color: var(--brand); }
.today-kpi .up { color: var(--ok); }
.today-kpi .down { color: var(--bad); }
.today-row { width: 100%; text-align: start; margin-top: 8px; }
.warn-t { color: var(--warn); }
.today-step { padding: 6px 0; border-bottom: 1px solid var(--line); }
.today-step:last-child { border-bottom: 0; }
.nav-more > summary { list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { color: var(--text); }
.nav-more .nav-i { padding-inline-start: 22px; font-weight: 500; }
.nav-more > summary.nav-i { padding-inline-start: 12px; font-weight: 600; }
