

:root {
  color-scheme: light dark;
  --bg: oklch(100% 0 0);
  --bg-side: oklch(98.2% 0 0);
  --bg-muted: oklch(97.6% 0 0);
  --bg-hover: oklch(94.5% 0 0);
  --line: oklch(92.5% 0 0);
  --line-strong: oklch(87% 0 0);
  --ink: oklch(18% 0 0);
  --ink-2: oklch(45% 0 0);
  --ink-3: oklch(62% 0 0);
  --primary: oklch(18% 0 0);
  --on-primary: oklch(100% 0 0);
  --ok: oklch(52% 0.13 155);
  --ok-bg: oklch(96% 0.035 155);
  --warn: oklch(58% 0.13 70);
  --warn-bg: oklch(96.5% 0.045 85);
  --bad: oklch(55% 0.19 25);
  --bad-bg: oklch(96% 0.03 25);
  --bar: oklch(91% 0 0);
  --bar-strong: oklch(18% 0 0);
  --female: oklch(66% 0.15 350);
  --male: oklch(60% 0.12 245);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.04), 0 8px 24px oklch(0% 0 0 / 0.06);
  --shadow-modal: 0 24px 64px oklch(0% 0 0 / 0.18);
  --r-outer: 28px;
  --inset: 12px;
  --r-inner: calc(var(--r-outer) - var(--inset));
  --r-small: 20px;
  --radius-sm: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --tint-chat: oklch(94% 0.03 260);
  --tint-edit: oklch(95% 0.05 75);
  --tint-btn: oklch(92% 0.04 260);
  --tint-btn-ink: oklch(45% 0.18 260);
  --accent: oklch(70% 0.16 55);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16% 0 0);
    --bg-side: oklch(13.5% 0 0);
    --bg-muted: oklch(21% 0 0);
    --bg-hover: oklch(24% 0 0);
    --line: oklch(25% 0 0);
    --line-strong: oklch(32% 0 0);
    --ink: oklch(95% 0 0);
    --ink-2: oklch(72% 0 0);
    --ink-3: oklch(55% 0 0);
    --primary: oklch(95% 0 0);
    --on-primary: oklch(16% 0 0);
    --ok-bg: oklch(26% 0.04 155);
    --warn-bg: oklch(27% 0.05 85);
    --bad-bg: oklch(26% 0.05 25);
    --bar: oklch(27% 0 0);
    --bar-strong: oklch(92% 0 0);
    --tint-chat: oklch(26% 0.03 260);
    --tint-edit: oklch(30% 0.05 75);
    --tint-btn: oklch(32% 0.05 260);
    --tint-btn-ink: oklch(80% 0.1 260);
  }
}

@supports (corner-shape: squircle) {
  :root { --r-outer: 36px; --r-small: 26px; }
  .card, dialog, .note, .warn, .tile, .stat, .menu, .slot { corner-shape: squircle; }
}


* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
code { font-size: 13px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, .venue, .rationale dt, .rationale dd, th, td, .tile dd, .hero-value, .campaign td, .meet-row .grow { overflow-wrap: anywhere; }

.num { font-variant-numeric: tabular-nums; text-align: right; }
.dim, .muted, .when, .venue { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small, .muted, .when, .venue { font-size: 13px; }
.sub { color: var(--ink-2); margin-top: 2px; }
.lede { color: var(--ink-2); margin: -8px 0 24px; max-width: 70ch; }


.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side {
  background: var(--bg-side); border-right: 1px solid var(--line);
  padding: 12px 8px; position: sticky; top: 0; height: 100dvh; overflow: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; font-weight: 600; font-size: 15px; }
.brand-logo { width: 24px; height: 24px; border-radius: 7px; display: block; }
.nav-label { font-size: 12px; color: var(--ink-3); padding: 14px 10px 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2);
}
.nav a:hover { background: var(--bg-hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--bg-hover); color: var(--ink); font-weight: 500; }
.nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.main { min-width: 0; }
.scrim { display: none; }
.topbar { display: none; }
.content { max-width: 1080px; margin: 0 auto; padding: 80px 32px 96px; }
.section { margin-top: 56px; }

.page-head {
  position: sticky; top: 0; z-index: 15;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin: -14px -32px 10px; padding: 14px 32px; border-bottom: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.page-head .grow { flex: 1; min-width: min-content; }
.page-head h1 { overflow-wrap: normal; word-break: keep-all; }
.page-head.stuck {
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

@media (width <= 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .app.open .side { display: flex; position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 30; box-shadow: var(--shadow-modal); animation: drawer-in .2s; }
  .app.open .scrim { display: block; position: fixed; inset: 0; background: oklch(0% 0 0 / 0.3); z-index: 20; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 25; }
  .content { padding: 48px 16px 64px; }
  .page-head { top: 52px; margin: -12px -16px 12px; padding: 12px 16px; }
}
@keyframes drawer-in { from { transform: translateX(-100%); } }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg); cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary); opacity: .88; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 30px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.seg { display: inline-flex; background: var(--bg-muted); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button, .seg a {
  display: inline-flex; align-items: center; border: 0; background: transparent; border-radius: 999px; padding: 0 14px; min-height: 30px;
  cursor: pointer; color: var(--ink-2); font-weight: 500; white-space: nowrap; text-decoration: none;
}
.seg { max-width: 100%; }
@media (max-width: 420px) {
  .seg { flex-wrap: wrap; border-radius: var(--r-small); }
  .seg button, .seg a { padding: 0 10px; }
}
.seg [aria-pressed="true"], .seg [aria-current="page"], .seg [aria-current="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px oklch(0% 0 0 / 0.1); }

.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; font: inherit; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; min-height: 36px; padding: 0 36px 0 14px; cursor: pointer; max-width: 70vw; }
.select select:hover { background: var(--bg-hover); }
.select svg { position: absolute; right: 12px; width: 14px; height: 14px; stroke: var(--ink-2); fill: none; stroke-width: 2; pointer-events: none; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; transition: .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(12px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--bg-muted); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.plain::before { display: none; }

.card:not(figure) { width: auto; flex: initial; font-size: inherit; line-height: inherit; border: 1px solid var(--line); border-radius: var(--r-outer); background: var(--bg); }
.card-pad { padding: 20px 24px; }
.card:not(figure) + .card:not(figure) { margin-top: 16px; }
.card:not(figure) + .note { margin-top: 12px; }

.note, .warn:not(.pill) { padding: 14px 18px; margin: 12px 0; border-radius: var(--r-small); background: var(--warn-bg); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .2s; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 10px 18px; font-weight: 500; z-index: 50; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

dialog { border: 0; padding: 0; border-radius: var(--r-outer); box-shadow: var(--shadow-modal); background: var(--bg); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); }
dialog::backdrop { background: oklch(0% 0 0 / 0.35); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; position: sticky; top: 0; background: var(--bg); }
.modal-head h2 { font-size: 17px; flex: 1; }
.modal-body { padding: 6px 20px 22px; }
.modal-body h3 { font-size: 12px; font-weight: 500; color: var(--ink-3); margin: 20px 0 8px; }

[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 4px); background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 5; pointer-events: none; }
td[data-tip]:hover { background: var(--bg-hover); cursor: default; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow-wrap: normal; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.member-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-name > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.avatar { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; overflow: hidden; background: var(--bg-muted); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.avatar img { position: absolute; inset: 0; width: 32px; height: 32px; object-fit: cover; }

.skel { display: inline-block; height: 1em; width: 5ch; border-radius: 6px; background: linear-gradient(90deg, var(--bg-muted), var(--bg-hover), var(--bg-muted)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; vertical-align: -0.1em; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.chip-building { border-color: var(--warn); color: var(--warn); }
.chip-shipped { border-color: var(--ok); color: var(--ok); }

@media (pointer: coarse) {
  .btn, .btn-sm, button.copy { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .nav a { min-height: 44px; }
  .seg button, .seg a { min-height: 44px; }
  .select select { min-height: 44px; }
  .switch { min-height: 44px; }
  .menu-item { min-height: 44px; }
}


body.bare { min-height: 100dvh; }
main.login { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }

main.problem { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.problem-card { width: min(560px, 100%); padding: 32px 36px; }
.problem h1 { margin: 0 0 8px; }
.problem p { max-width: 560px; }
.problem code { overflow-wrap: anywhere; font-size: 13px; background: var(--bg-muted); border-radius: 6px; padding: 1px 6px; }
.problem .btn { margin-top: 4px; }
@media (max-width: 520px) { .problem-card { padding: 24px 20px; } }


.meet-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.meet-row:last-child { border-bottom: 0; }
.meet-row:hover { background: var(--bg-side); }
.meet-date { width: 52px; text-align: center; flex: none; }
.meet-date b { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; }
.meet-date span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.meet-row .grow { flex: 1; min-width: 0; }
.chev { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 2; flex: none; }
.meetings { overflow: hidden; }


.group, .campaign { border: 1px solid var(--line); border-radius: var(--r-outer); background: var(--bg); padding: 20px 24px; margin: 0 0 16px; }

.status { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.s-cancelled { color: var(--bad); }

.flags { margin: 8px 0; padding-left: 18px; font-size: 14px; }
.f-red { color: var(--bad); }
.f-amber { color: var(--warn); }
.flags.event { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.flags.event li { font-size: 13px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--ink); }
.flags.event li.f-red { background: var(--bad-bg); }

.rationale { font-size: 14px; margin: 10px 0; }
.rationale dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; }
.rationale dt { color: var(--ink-2); }
.rationale dd { margin: 0; }

.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.tables > .card:not(figure), .tables > .card:not(figure) + .card:not(figure),
.chat-cols > .card:not(figure), .chat-cols > .card:not(figure) + .card:not(figure) { margin-top: 0; min-width: 0; }
.table-card .head, .chat-card .head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; }
.chat-card .head { flex-direction: column; gap: 0; }
.table-card .head .grow { flex: 1; min-width: 0; }
.head-pills { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.seats { display: flex; gap: 4px; margin-top: 8px; }
.seat { width: 18px; height: 6px; border-radius: 3px; background: var(--bar); }
.seat.f { background: var(--female); }
.seat.m { background: var(--male); }
.seat.u { background: var(--ink-3); }

.member { display: flex; align-items: center; gap: 12px; padding: 8px 20px; }
.member + .member, .flag + .member { border-top: 1px solid var(--line); }
.member .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member .meta { font-size: 13px; color: var(--ink-3); }
.member.m-cancelled, .member.m-no_show { opacity: .5; }
.flag { display: flex; gap: 8px; align-items: center; margin: 0 20px 12px; font-size: 13px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--ink); }
.flag.f-red { background: var(--bad-bg); }
.table-foot { display: flex; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }

.avatar-sm { width: 24px; height: 24px; flex: 0 0 24px; font-size: 10px; }
.avatar-sm img { width: 24px; height: 24px; }
.ring-f { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--female); }
.ring-m { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--male); }

dialog.how { width: min(640px, calc(100vw - 24px)); overflow-y: auto; }
.quote { background: var(--bg-muted); border-radius: var(--r-inner); padding: 12px 14px; font-size: 14px; overflow-wrap: anywhere; }
.how .modal-body h3.divider { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; color: var(--ink); font-size: 14px; font-weight: 600; }
.participants { margin-top: 0; }
.participants td:nth-child(3), .participants td:nth-child(6) { white-space: nowrap; }
.participants .member-name { gap: 10px; }
.participants th { padding: 8px 12px; }
.participants td { padding: 10px 12px; }
.participants .avatar-sm { width: 28px; height: 28px; flex: 0 0 28px; font-size: 12px; }
.participants .avatar-sm img { width: 28px; height: 28px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv ul { margin: 0; padding-left: 18px; }
.tier { font-family: ui-monospace, monospace; letter-spacing: .02em; }
.pill.warn.plain { margin-left: 4px; }
.dots5 { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots5 i { width: 6px; height: 6px; border-radius: 50%; background: var(--bar); }
.dots5 i.on { background: var(--bar-strong); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px; }
.stat { background: var(--bg-muted); border-radius: var(--r-inner); padding: 10px 12px; min-width: 0; }
.stat b { display: block; font-size: 17px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--ink-3); }
.gbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 6px; gap: 2px; }
.gbar i { flex: 1; background: var(--female); }
.gbar i.m { background: var(--male); }
.gbar i.u { background: var(--ink-3); }

.axis { position: relative; height: 56px; margin: 6px 14px 0; }
.axis::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line-strong); border-radius: 1px; }
.axis .pin { position: absolute; top: 4px; transform: translateX(-50%); }
.axis .tick { position: absolute; top: 40px; font-size: 11px; color: var(--ink-3); transform: translateX(-50%); }
.at-0 { left: 0%; } .at-1 { left: 1%; } .at-2 { left: 2%; } .at-3 { left: 3%; } .at-4 { left: 4%; } .at-5 { left: 5%; }
.at-6 { left: 6%; } .at-7 { left: 7%; } .at-8 { left: 8%; } .at-9 { left: 9%; } .at-10 { left: 10%; } .at-11 { left: 11%; }
.at-12 { left: 12%; } .at-13 { left: 13%; } .at-14 { left: 14%; } .at-15 { left: 15%; } .at-16 { left: 16%; } .at-17 { left: 17%; }
.at-18 { left: 18%; } .at-19 { left: 19%; } .at-20 { left: 20%; } .at-21 { left: 21%; } .at-22 { left: 22%; } .at-23 { left: 23%; }
.at-24 { left: 24%; } .at-25 { left: 25%; } .at-26 { left: 26%; } .at-27 { left: 27%; } .at-28 { left: 28%; } .at-29 { left: 29%; }
.at-30 { left: 30%; } .at-31 { left: 31%; } .at-32 { left: 32%; } .at-33 { left: 33%; } .at-34 { left: 34%; } .at-35 { left: 35%; }
.at-36 { left: 36%; } .at-37 { left: 37%; } .at-38 { left: 38%; } .at-39 { left: 39%; } .at-40 { left: 40%; } .at-41 { left: 41%; }
.at-42 { left: 42%; } .at-43 { left: 43%; } .at-44 { left: 44%; } .at-45 { left: 45%; } .at-46 { left: 46%; } .at-47 { left: 47%; }
.at-48 { left: 48%; } .at-49 { left: 49%; } .at-50 { left: 50%; } .at-51 { left: 51%; } .at-52 { left: 52%; } .at-53 { left: 53%; }
.at-54 { left: 54%; } .at-55 { left: 55%; } .at-56 { left: 56%; } .at-57 { left: 57%; } .at-58 { left: 58%; } .at-59 { left: 59%; }
.at-60 { left: 60%; } .at-61 { left: 61%; } .at-62 { left: 62%; } .at-63 { left: 63%; } .at-64 { left: 64%; } .at-65 { left: 65%; }
.at-66 { left: 66%; } .at-67 { left: 67%; } .at-68 { left: 68%; } .at-69 { left: 69%; } .at-70 { left: 70%; } .at-71 { left: 71%; }
.at-72 { left: 72%; } .at-73 { left: 73%; } .at-74 { left: 74%; } .at-75 { left: 75%; } .at-76 { left: 76%; } .at-77 { left: 77%; }
.at-78 { left: 78%; } .at-79 { left: 79%; } .at-80 { left: 80%; } .at-81 { left: 81%; } .at-82 { left: 82%; } .at-83 { left: 83%; }
.at-84 { left: 84%; } .at-85 { left: 85%; } .at-86 { left: 86%; } .at-87 { left: 87%; } .at-88 { left: 88%; } .at-89 { left: 89%; }
.at-90 { left: 90%; } .at-91 { left: 91%; } .at-92 { left: 92%; } .at-93 { left: 93%; } .at-94 { left: 94%; } .at-95 { left: 95%; }
.at-96 { left: 96%; } .at-97 { left: 97%; } .at-98 { left: 98%; } .at-99 { left: 99%; } .at-100 { left: 100%; }

.q { padding: 10px 0; border-top: 1px solid var(--line); }
.q-title { font-size: 13px; margin-bottom: 8px; }
.scale { display: grid; grid-template-columns: 96px repeat(5, 1fr) 96px; align-items: center; gap: 4px; }
.scale .end { font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.scale .end:last-child { text-align: right; }
.slot { min-height: 34px; border-radius: 8px; background: var(--bg-muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.opt .who { display: flex; gap: 8px; flex: none; }
.opt .txt { color: var(--ink-2); }
details.raw summary { cursor: pointer; color: var(--ink-3); font-size: 13px; margin-top: 20px; }
details.raw .rationale { background: var(--bg-muted); padding: 12px; border-radius: var(--radius-sm); }

dialog.howto { width: min(640px, calc(100vw - 24px)); overflow-y: auto; }
.howto-art { width: 100%; height: auto; display: block; margin: 4px 0 16px; }
.howto-art .frame { fill: var(--bg-muted); }
.howto-art .card-s { fill: var(--bg); stroke: var(--line-strong); }
.howto-art .hi { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 2; }
.howto-art .danger { fill: var(--bad-bg); stroke: var(--bad); stroke-width: 2; stroke-dasharray: 5 4; }
.howto-art .t { fill: var(--ink); font: 600 13px var(--font); }
.howto-art .t2 { fill: var(--ink-2); font: 12px var(--font); }
.howto-art .tb { fill: var(--bad); font: 600 12px var(--font); }
.howto-art .arrow { stroke: var(--ink-3); stroke-width: 2; fill: none; marker-end: url(#ah); }
.howto-art .ahead { fill: var(--ink-3); }
.howto-art .num-c { fill: var(--primary); }
.howto-art .num-t { fill: var(--on-primary); font: 700 12px var(--font); }
.howto-art { --tg: oklch(62% 0.15 240); }
.howto-art .bubble-s { fill: var(--tg); }
.howto-art .bubble-t { fill: var(--on-primary); font: 12px var(--font); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.steps b { color: var(--ink); display: block; font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 700px) {
  .participants { display: block; }
  .participants thead { display: none; }
  .participants tbody, .participants tr, .participants td { display: block; }
  .participants tr { border: 1px solid var(--line); border-radius: var(--r-inner); padding: 10px 12px; margin: 0 0 10px; }
  .participants td { border: 0; padding: 2px 0; display: flex; gap: 10px; align-items: center; }
  .participants td::before { content: attr(data-label); color: var(--ink-2); font-size: 13px; flex: 0 0 76px; }
  .participants td.num { text-align: left; }
  .participants td:first-child { display: block; font-weight: 600; margin-bottom: 4px; }
  .participants td:first-child::before { content: none; }

  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .scale { grid-template-columns: repeat(5, 1fr); }
  .scale .end { display: none; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .howto-art { display: none; }
  .rationale dl { grid-template-columns: 1fr; gap: 0; }
  .rationale dt { margin-top: 6px; }
}


.chat-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 20px 20px; }
.msg { display: flex; gap: 10px; min-width: 0; }
.msg > div { min-width: 0; }
.msg .avatar { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px; }
.msg .avatar img { width: 28px; height: 28px; }
.msg .bubble { box-shadow: none; background: var(--bg-muted); border-radius: 4px 14px 14px 14px; padding: 8px 12px; max-width: 100%; overflow-wrap: anywhere; }
.msg .who { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; overflow-wrap: anywhere; }
.sys { text-align: center; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.c-deleted .bubble { color: var(--ink-2); font-style: italic; }
.bursts { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.burst-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
.burst-row .who-name { overflow-wrap: anywhere; }
.burst-row .em { display: flex; flex-wrap: wrap; gap: 4px; }
.burst { background: var(--bg-muted); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.burst-row .tot { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }


.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head .grow { flex: 1; min-width: 0; }
.section:has(:hover), .section:has(:focus-within) { position: relative; z-index: 8; }
.nest { padding: var(--inset); }
.nest-body { padding: 20px calc(24px - var(--inset)) calc(24px - var(--inset)); }

.filter { position: relative; }
.filter .btn { max-width: min(70vw, 360px); }
.filter-label { overflow: hidden; text-overflow: ellipsis; }
.chev-d { width: 14px; height: 14px; flex: none; stroke: var(--ink-2); fill: none; stroke-width: 2; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 280px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-small); box-shadow: var(--shadow); padding: 6px; }
.menu-list { max-height: min(60vh, 420px); overflow-y: auto; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; background: transparent; border-radius: calc(var(--r-small) - 6px); cursor: pointer; text-align: left; text-decoration: none; }
.menu-item:hover { background: var(--bg-hover); }
.menu-name { min-width: 0; overflow-wrap: anywhere; }
.menu-item svg { width: 16px; height: 16px; flex: none; stroke: var(--ink); fill: none; stroke-width: 2; visibility: hidden; }
.menu-item[aria-checked="true"] svg { visibility: visible; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-switch { padding: 8px 10px; text-decoration: none; }
.menu-switch:hover { background: var(--bg-hover); border-radius: calc(var(--r-small) - 6px); }
.menu-switch[aria-checked="true"] span { background: var(--primary); }
.menu-switch[aria-checked="true"] span::after { transform: translateX(12px); }
.menu-switch[data-tip]:hover::after { bottom: auto; top: calc(100% + 8px); left: 0; right: auto; z-index: 30; padding: 6px 10px; border-radius: 8px; }
.syncing { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.syncing[data-failed] { color: var(--warn); }
.syncing[data-failed] .spin { display: none; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--ink-2); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

[data-syncing] [data-meta] { color: transparent; border-radius: 6px; background: linear-gradient(90deg, var(--bg-muted), var(--bg-hover), var(--bg-muted)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; user-select: none; }
[data-syncing] [data-meta] * { color: transparent; }
[data-syncing] .kpi-island [data-meta] { background-image: linear-gradient(90deg, color-mix(in oklch, var(--on-primary) 12%, var(--primary)), color-mix(in oklch, var(--on-primary) 26%, var(--primary)), color-mix(in oklch, var(--on-primary) 12%, var(--primary))); background-size: 200% 100%; }

.kpi-row { display: grid; grid-template-columns: 1fr minmax(200px, 230px); gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-outer); overflow: hidden; }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi .label { font-size: 13px; color: var(--ink-2); }
.kpi .value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .value small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.kpi .hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.hint-line { display: block; }
.kpi-island { border-radius: var(--r-outer); background: var(--primary); color: var(--on-primary); border: 0; }
.kpi.kpi-island .label, .kpi.kpi-island .hint, .kpi.kpi-island .value small { color: color-mix(in oklch, var(--on-primary) 82%, transparent); }
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis .kpi { border-bottom: 1px solid var(--line); }
  .kpis .kpi:nth-child(2n) { border-right: 0; }
  .kpis .kpi:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

.blend-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.blend-num b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.blend-wrap { position: relative; margin-top: 16px; }
.blend-bar { display: flex; gap: 3px; height: 32px; cursor: default; }
.blend-bar i { position: relative; flex: 1 1 0; display: flex; align-items: center; min-width: 0; padding: 0 10px; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 500; white-space: nowrap; }
.blend-bar i > span { overflow: hidden; text-overflow: clip; }
.blend-bar i.cut > span { visibility: hidden; }
.blend-bar i:hover { filter: brightness(1.15); }
.b-ads, .b-bio-ads, .b-bot { color: var(--on-primary); }
.b-org, .b-site, .b-none { color: var(--ink); }
.b-ads { background: var(--bar-strong); }
.b-bio-ads { background: color-mix(in oklch, var(--bar-strong) 55%, var(--bg)); }
.b-org { background: var(--ink-3); }
.b-site { background: var(--line-strong); }
.b-none { background: var(--bar); }
.b-bot { background: var(--ok); }
.seg-pop { display: none; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 6; width: max-content; min-width: 200px; max-width: min(280px, calc(100vw - 48px)); background: var(--primary); color: var(--on-primary); border-radius: 12px; padding: 10px 12px; font-style: normal; font-size: 12px; font-weight: 400; white-space: normal; pointer-events: none; }
.blend-bar i:hover .seg-pop { display: grid; gap: 2px; }
.blend-bar i:first-child .seg-pop { left: 0; transform: none; }
.blend-bar i:last-child .seg-pop { left: auto; right: 0; transform: none; }
.seg-pop b { font-weight: 600; font-size: 13px; }
.seg-pop small { color: color-mix(in oklch, var(--on-primary) 70%, transparent); font-size: 12px; }
.seg-pop strong { font-weight: 600; margin-top: 4px; }

.bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 20px; }
.bench > div { position: relative; background: var(--bg-muted); border-radius: var(--r-small); padding: 14px 16px; font-size: 13px; }
.nest .bench { margin: 0; }
.nest .bench > div { border-radius: var(--r-inner); }
.bench > div:hover { background: var(--bg-hover); }
.bench b { font-size: 17px; font-weight: 600; margin-right: 6px; }
.bench .pill { margin-left: 4px; vertical-align: 2px; }
.bench .pill.plain { background: var(--bg); }
.mkt { display: none; opacity: 0; transition: opacity .12s .2s, display 0s .32s allow-discrete; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; min-width: 220px; background: var(--primary); color: var(--on-primary); font-size: 12px; padding: 8px 10px; border-radius: 8px; }
.mkt::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.bench > div:hover .mkt, .bench > div:focus-within .mkt { display: block; opacity: 1; transition-delay: 0s; }
.bench > div:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.mkt a { color: inherit; text-decoration-color: color-mix(in oklch, var(--on-primary) 50%, transparent); }
@supports (corner-shape: squircle) { .bench > div, .kpis, .kpi-island, .menu-item { corner-shape: squircle; } }

.mx-funnel { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 64px 56px; gap: 6px 14px; align-items: center; }
.mx-funnel > div { display: contents; }
.mx-funnel .lbl { color: var(--ink-2); font-size: 13px; }
.mx-funnel .track { display: block; width: 100%; height: 22px; }
.mx-funnel .track rect { fill: var(--bar); }
.mx-funnel .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.mx-funnel .c { text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mx-funnel .price .lbl { color: var(--ink); font-weight: 600; }
.mx-funnel .price .track rect { fill: var(--bar-strong); }
@media (max-width: 600px) { .mx-funnel { grid-template-columns: 96px 1fr 44px 34px; gap: 6px 8px; } .mx-funnel .lbl { font-size: 12px; line-height: 1.2; } }

.camp { margin-top: 0; }
.camp .name { display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.camp .name > div { min-width: 0; }
.camp .name b { white-space: nowrap; }
.camp .name .chev { width: 14px; height: 14px; margin-top: 3.5px; transition: transform .15s; }
.camp tr.open .name .chev { transform: rotate(90deg); }
.row-toggle { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.camp tr.camp-row { cursor: pointer; }
.camp tr.camp-row:hover td, .camp tr.sel td { background: var(--bg-side); }
.camp tr.detail td { background: var(--bg-side); padding: 0; }
.camp .inner { padding: 8px 16px 16px 34px; width: 0; min-width: 100%; box-sizing: border-box; }
.camp .inner .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.camp .inner .chips .pill { background: var(--bg); border: 1px solid var(--line); height: 24px; }
.camp .inner .chips .pill.warn { background: var(--warn-bg); border-color: transparent; }
.camp .inner table { margin-top: 0; }
.camp .inner th, .camp .inner td { font-size: 13px; }
.live { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px var(--ok-bg); }
.live.off { visibility: hidden; }
.mini-bar { display: inline-block; height: 6px; margin-right: 8px; vertical-align: middle; fill: var(--bar-strong); }
.hidden-note td, .folded td { color: var(--ink-3); font-size: 12px; }
.plain-t td, .plain-t th { padding: 10px 16px; }
.mx-scroll[data-scroll-x] {
  overflow-x: auto; max-width: 100%;
  --scroll-bg: var(--bg);
  background-image:
    linear-gradient(to left, var(--scroll-bg) 20%, transparent),
    linear-gradient(to left, color-mix(in oklch, var(--ink) 16%, transparent), transparent);
  background-position: right center, right center;
  background-size: 32px 100%, 20px 100%;
  background-repeat: no-repeat;
  background-attachment: local, scroll;
}
.camp .inner .mx-scroll[data-scroll-x] { --scroll-bg: var(--bg-side); }
.camp .inner table td { background: transparent; }
.plain-t td.num, .plain-t th.num { white-space: nowrap; overflow-wrap: normal; }
.note[data-forwarded] { margin: 12px 0 0; padding: 0 4px; background: none; border-radius: 0; font-size: 13px; color: var(--ink-3); }
.note[data-forwarded] b { font-weight: 500; color: var(--ink-2); }

@media (min-width: 1101px) {
  .camp th.num, .camp td.num { white-space: nowrap; overflow-wrap: normal; }
  .camp > tbody > tr.camp-row > td:first-child { width: 100%; max-width: 0; }
  .camp .name b, .camp .name .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .camp .inner table th, .camp .inner table td { padding: 8px 7px; }
  .camp .inner table th:first-child, .camp .inner table td:first-child { padding-left: 0; }
  .camp .inner table th:last-child, .camp .inner table td:last-child { padding-right: 0; }
  .camp .inner table td.ad-name { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .camp .inner table tr:last-child td { border-bottom: 0; }
  .camp .inner { padding: 14px 8px 18px 45px; }
  .camp .inner .chips { margin: 0 0 12px; }
}
.mx-trend { white-space: nowrap; }
.mx-lines { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.mx-spark-btn { display: inline-flex; align-items: center; padding: 6px 4px; margin: -6px 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; vertical-align: middle; }
.mx-spark-btn:hover, .mx-spark-btn[aria-expanded="true"] { background: var(--bg-hover); }
.mx-spark-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
@media (pointer: coarse) { .mx-spark-btn { min-height: 44px; margin: -14px 0; } }
.mx-spark { display: block; width: 44px; height: 16px; overflow: visible; }
.mx-spark polyline { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mx-spark.ctr polyline { stroke: var(--bar-strong); }
.mx-spark.cpm polyline { stroke: var(--ink-3); }
.ad-name .pill { margin-top: 4px; }
.mx-spark.big { width: 96px; height: 24px; }
.mx-spark.new polyline { stroke: var(--bar-strong); }
.mx-spark.cost polyline { stroke: var(--ink-3); }
.mx-sat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0 0 12px; }
.mx-sat-line { display: inline-flex; align-items: center; gap: 10px; }
.mx-sat-line > span[data-meta] { display: inline-flex; }
.camp .name .mx-sat-flag { margin-top: 4px; }
.camp .name .mx-sat-flag .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }
.camp .name .mx-sat-flag .pill::before { display: none; }
.mx-card { position: fixed; z-index: 40; width: 336px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 14px 16px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-small); box-shadow: var(--shadow); font-size: 13px; white-space: normal; }
.mx-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 12px; }
.mx-card-head .small { font-size: 12px; white-space: nowrap; }
.mx-card-avg { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.mx-card-avg b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mx-chart { display: block; width: 100%; height: auto; overflow: visible; }
.mx-chart .grid { stroke: var(--line); stroke-width: 1; }
.mx-chart .tick { fill: var(--ink-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.mx-chart .avg { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.mx-chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-chart .line.tail { stroke-dasharray: 3 3; }
.mx-chart .dot { stroke: var(--bg); stroke-width: 2; }
.mx-chart .dot.today { fill: var(--bg); stroke-width: 1.5; }
.mx-chart.ctr .line, .mx-chart.new .line { stroke: var(--bar-strong); }
.mx-chart.ctr .dot, .mx-chart.new .dot { fill: var(--bar-strong); }
.mx-chart.ctr .dot.today, .mx-chart.new .dot.today { fill: var(--bg); stroke: var(--bar-strong); }
.mx-chart.cpm .line, .mx-chart.cost .line { stroke: var(--ink-3); }
.mx-chart.cpm .dot, .mx-chart.cost .dot { fill: var(--ink-3); }
.mx-chart.cpm .dot.today, .mx-chart.cost .dot.today { fill: var(--bg); stroke: var(--ink-3); }
.mx-chart .hit { fill: transparent; }
.mx-chart .hit.on { fill: var(--bg-hover); }
.mx-chart .dot.on { r: 5; }
.mx-chart .grid, .mx-chart .tick, .mx-chart .avg, .mx-chart .line { pointer-events: none; }
.mx-card-days { max-height: 196px; overflow-y: auto; margin-top: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.mx-day { display: grid; grid-template-columns: minmax(0, 1fr) 60px 44px; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.mx-card-days.imps .mx-day { grid-template-columns: minmax(0, 1fr) 92px 60px 44px; }
.mx-day > span { overflow: hidden; text-overflow: ellipsis; }
.mx-day .imp { text-align: right; color: var(--ink-3); }
.mx-day .v, .mx-day .d { text-align: right; }
.mx-day .v { font-weight: 600; }
.mx-day .up { color: var(--ok); }
.mx-day .down { color: var(--bad); }
.mx-day.today { color: var(--ink-2); }
.mx-day.on { background: var(--bg-hover); }

.mx-meets { list-style: none; margin: 0; padding: 0; }
.mx-meets li { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 6px 24px; padding: 14px 20px; border-top: 1px solid var(--line); }
.mx-meets li:first-child { border-top: 0; }
.mx-meet-when, .mx-meet-seats { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mx-meet-seats { text-align: right; }
.mx-nw { white-space: nowrap; }
@media (max-width: 560px) {
  [data-board] .section-head .grow { flex: 1 1 100%; }
  .mx-meets li { flex-direction: column; padding: 12px 16px; }
  .mx-meet-seats { text-align: left; }
}

.mx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mx-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; background: var(--bg-muted); border-radius: var(--r-small); }
.mx-stats .dim { font-size: 13px; }
.mx-stats b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-stats b small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.tables-line { display: flex; gap: 28px; flex-wrap: wrap; }
.tables-line b { display: block; font-size: 20px; font-weight: 600; }
.tables-line span { font-size: 13px; color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 20px; }
.tile { background: var(--bg-muted); border-radius: var(--r-inner); padding: 10px 12px; min-width: 0; }
.tile dt { color: var(--ink-2); font-size: 13px; margin: 0; }
.tile dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .camp, .camp > tbody { display: block; }
  .camp > thead { display: none; }
  .camp > tbody > tr { display: block; }
  .camp > tbody > tr.detail[hidden] { display: none; }
  .camp > tbody > tr.camp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); }
  .camp tr.camp-row:hover, .camp tr.camp-row.sel { background: var(--bg-side); }
  .camp tr.camp-row:hover td, .camp tr.sel td { background: transparent; }
  .camp tr.camp-row > td { display: block; border: 0; padding: 0; text-align: left; white-space: nowrap; overflow-wrap: normal; font-size: 14px; }
  .camp tr.camp-row > td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--ink-3); font-size: 11px; font-weight: 500; line-height: 1.2; white-space: normal; }
  .camp tr.camp-row > td:first-child { grid-column: 1 / -1; white-space: normal; font-size: inherit; }
  .camp tr.camp-row > td:first-child::before { content: none; }
  .camp .name b { white-space: normal; overflow-wrap: anywhere; }
  .camp tr.detail > td { display: block; }
  .camp .inner { padding: 4px 16px 14px; }
  .camp .inner .chips .pill { height: auto; min-height: 24px; padding: 3px 10px; white-space: normal; }
  .camp .inner table { min-width: 600px; }
  .camp .inner table th, .camp .inner table td { padding: 8px 10px; }
  .camp .inner table th.num, .camp .inner table td.num { white-space: nowrap; overflow-wrap: normal; }
  .camp .inner table th:first-child, .camp .inner table td:first-child { position: sticky; left: 0; z-index: 1; padding-left: 0; background: var(--bg-side); box-shadow: 1px 0 0 var(--line); }
  .camp .inner table td.ad-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .camp .inner table tr:last-child td { border-bottom: 0; }
}
@media (max-width: 560px) {
  .camp > tbody > tr.camp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .card.mx-scroll[data-scroll-x] { margin-inline: -16px; max-width: none; border-inline-width: 0; border-radius: 0; }
  .plain-t { min-width: 440px; }
  .plain-t td, .plain-t th { padding: 10px 6px; }
  .plain-t th { font-size: 11px; }
  .plain-t td:first-child { width: 92px; min-width: 92px; max-width: 92px; font-size: 12.5px; overflow-wrap: anywhere; }
  .plain-t td:first-child .small { font-size: 11px; line-height: 1.3; }
  .plain-t th:first-child, .plain-t td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
  .tables-line { gap: 16px 24px; }
}


.support h2 { font-size: 17px; margin-bottom: 6px; }
.support > section > .muted { margin: 0 0 12px; max-width: 78ch; }
.support .card .muted { margin: 0; }
.support .section:first-child { margin-top: 0; }
.support .note { margin: 12px 0; }

.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; max-width: 640px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bar); }
.dot-on { background: var(--accent); }

.sup-kpis { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-outer); overflow: hidden; }
.sup-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -1px -1px 0; }
.sup-kpi { padding: 16px 18px; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sup-kpi dt { color: var(--ink-2); font-size: 13px; margin: 0; }
.sup-kpi dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stop { border: 1px solid var(--line); border-radius: var(--r-small); background: var(--bg); padding: 16px 18px; min-width: 0; }
.stop-pin { font-size: 22px; line-height: 1; margin: 0 0 10px; }
.stop h3 { font-size: 15px; margin: 0; }
.stop-state { margin: 6px 0 10px; }
.stop ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.stop li { padding: 4px 0 4px 10px; border-left: 2px solid transparent; overflow-wrap: anywhere; }
.stop li.manual { border-left-color: var(--bad); color: var(--ink); }

.tcard { overflow: hidden; }
.tcard table { margin: 0; }
.tcard th { padding: 12px 16px; background: var(--bg-side); }
.tcard td { padding: 14px 16px; }
.tcard tbody tr:hover td { background: var(--bg-side); }
.tcard td.num, .tcard th.num { text-align: right; }

.scenarios th, .scenarios td { text-align: left; vertical-align: top; }
.scenarios td:first-child { font-weight: 600; overflow-wrap: normal; }
.scenarios td.self, .tcard .scenarios tbody tr:hover td.self { background: var(--ok-bg); }
.scenarios td.manual, .tcard .scenarios tbody tr:hover td.manual { background: var(--bad-bg); }

.fixes-chart { display: block; width: 100%; height: auto; max-width: 1000px; margin: 0 auto; font-family: var(--font); }
.fixes-chart .q-first { fill: var(--ok-bg); }
.fixes-chart .q-label { fill: var(--ok); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.fixes-chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.fixes-chart .mid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.fixes-chart .axis-label { fill: var(--ink-3); font-size: 13px; }
.fixes-chart circle { fill: var(--accent); }
.fixes-chart .fix-shipped circle { fill: var(--ok); }
.fixes-chart .fix-n { fill: var(--bg); font-size: 15px; font-weight: 600; }
.fixes-chart .fix-t { fill: var(--ink); font-size: 14px; font-weight: 500; }

ol.fixes { margin: 16px 0 0; padding: 4px 24px; list-style: none; }
.fixes li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fixes li:last-child { border-bottom: 0; }
.fixes li > div { min-width: 0; overflow-wrap: anywhere; }
.fix-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 600; }
.sources { font-size: 13px; }

@media (max-width: 700px) {
  .tcard:has(.scenarios) { padding: var(--inset); }
  .scenarios { display: block; }
  .scenarios thead { display: none; }
  .scenarios tbody, .scenarios tr, .scenarios td { display: block; }
  .scenarios tr { border: 1px solid var(--line); border-radius: var(--r-inner); padding: 10px 12px; margin: 0 0 10px; overflow: hidden; }
  .scenarios tr:last-child { margin-bottom: 0; }
  .scenarios td { border: 0; padding: 4px 6px; }
  .scenarios td::before { content: attr(data-label); display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
  .scenarios td:first-child::before { content: none; }
  ol.fixes { padding: 4px 16px; }
  .sup-kpi { padding: 14px; }
  .sup-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}


.head-controls { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .page-head:has(.head-controls) .grow { flex-basis: 100%; } }

.venues td { vertical-align: top; overflow-wrap: anywhere; }
.venues td:first-child { font-weight: 600; }
.venues td[data-label="карта"], .venues td[data-label="instagram"], .venues td[data-label="цена"], .venues td[data-label="статус"] { white-space: nowrap; overflow-wrap: normal; }

@media (max-width: 700px) {
  .tcard:has(.venues), .tcard:has(.waiting) { padding: var(--inset); }
  .venues, .waiting { display: block; }
  .venues thead, .waiting thead { display: none; }
  .venues tbody, .venues tr, .waiting tbody, .waiting tr { display: block; }
  .venues tr, .waiting tr { border: 1px solid var(--line); border-radius: var(--r-inner); padding: 10px 14px; margin: 0 0 10px; }
  .venues tr:last-child, .waiting tr:last-child { margin-bottom: 0; }
  .venues td, .waiting td { display: flex; align-items: center; gap: 10px; border: 0; padding: 3px 0; }
  .venues td::before, .waiting td::before { content: attr(data-label); flex: 0 0 76px; color: var(--ink-2); font-size: 13px; font-weight: 400; }
  .venues td:first-child::before, .waiting td:first-child::before { content: none; }
  .tcard tbody tr:hover td { background: transparent; }
}

@media (pointer: coarse) {
  .venues a { display: inline-flex; align-items: center; min-height: 44px; }
}


.waiting-event { margin: 0 0 56px; }
.waiting-event:last-child { margin-bottom: 0; }
.ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 12px; }
.waiting-event h2 { font-size: 17px; margin: 0; }
.waiting-event h2 a { text-decoration: none; }
.waiting-event h2 a:hover { text-decoration: underline; }
.waiting td { vertical-align: middle; }

@media (pointer: coarse) {
  .waiting-event h2 a { display: inline-flex; align-items: center; min-height: 44px; }
}


body.screens, body.doc {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
body.screens .app, body.doc .app { flex: 1; min-width: 0; height: 100dvh; min-height: 0; }
.main-canvas { position: relative; display: flex; flex-direction: row; height: 100dvh; overflow: hidden; }

.screens-nav {
  flex: none;
  width: 240px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 12px;
}
.screens-nav h1 { font-size: 15px; margin: 0 0 10px; }
.screens-nav ul { list-style: none; }
.screens-nav li { margin: 0 0 2px; }
.screens-nav a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none; overflow-wrap: anywhere; }
.screens-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.screens-pick { display: none; }
@media (width > 860px) {
  .screens-nav ul { display: block; position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
}

#viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: grab; touch-action: none; background: var(--bg); }
#viewport.dragging { cursor: grabbing; }
#world { position: absolute; top: 0; left: 0; width: max-content; transform-origin: 0 0; will-change: transform; }
#board { padding: 40px; }
#board h2 { font-size: 16px; font-weight: 500; margin: 0 0 4px; display: block; overflow-wrap: anywhere; }
#board h2 .source { color: var(--ink-2); font-weight: 400; font-size: 13px; }
#board .lede { margin: 0 0 16px; color: var(--ink-2); max-width: 900px; }

.row { display: flex; align-items: flex-start; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; flex: none; }
.card { margin: 0; width: 390px; flex: none; font-size: 13px; line-height: 1.4; }
.card figcaption { padding: 0 0 6px; overflow-wrap: anywhere; }
.card figcaption b { font-size: 15px; }
.card figcaption code { font-size: 13px; }
.card .k, .card .t, .card .u { color: var(--ink-2); }
.card .u { font-size: 12px; }
.card .via { color: var(--warn); }

.shot { position: relative; width: 390px; background: var(--bg); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.shot img { display: block; width: 390px; height: auto; user-select: none; -webkit-user-drag: none; }
.fold { position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--bad); pointer-events: none; }
.fold span { position: absolute; right: 6px; top: 2px; font-size: 10px; color: var(--bad); }
.miss { width: 390px; min-height: 240px; display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px; border-radius: 12px; border: 1px dashed var(--bad); color: var(--bad); }
.miss span { color: var(--ink-2); font-size: 12px; }

#hud { position: absolute; right: 16px; bottom: 16px; z-index: 10; display: flex; gap: 6px; align-items: center; background: var(--bg); padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
#hud button { border: 0; background: transparent; border-radius: 999px; min-height: 30px; min-width: 30px; padding: 0 10px; cursor: pointer; font-weight: 500; }
#hud button:hover { background: var(--bg-hover); }
#zoom { min-width: 44px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (width <= 860px), (pointer: coarse) { #hud { display: none; } }

#board .warn { max-width: 900px; }


.col > h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.card.dlg { width: auto; }
.card.dlg figcaption { max-width: 360px; }
.card.dlg .when { color: var(--ink); }
.card.dlg .note { display: block; margin: 0; padding: 0; border-radius: 0; background: none; color: var(--ink-2); font-size: inherit; }
.dlg__body { display: flex; align-items: flex-start; gap: 16px; }
.thread, .replies { width: 320px; flex: none; background: var(--tint-chat); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bubble { background: var(--bg); border-radius: 12px; padding: 8px 10px; box-shadow: 0 0 0 1px var(--line); }
.bubble--edit, .bubble--keyboard { background: var(--tint-edit); }
.bubble--system { background: transparent; box-shadow: none; color: var(--ink-2); font-size: 12px; text-align: center; padding: 2px 10px; }
.bubble__slug, .bubble__kind { font-size: 11px; color: var(--ink-2); margin-bottom: 4px; }
.bubble__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.kb { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.kb__row { display: flex; gap: 4px; }
#board .btn { display: block; flex: 1; min-height: 0; text-align: center; background: var(--tint-btn); color: var(--tint-btn-ink); border: 0; border-radius: 8px; padding: 6px 8px; font-size: 12px; font-weight: 400; white-space: normal; text-decoration: none; overflow-wrap: anywhere; }
#board .btn:hover { background: var(--tint-btn); }
#board .btn--tapped { flex: none; display: inline-block; padding: 1px 8px; }
#board .btn--app { outline: 1px dashed var(--tint-btn-ink); outline-offset: -2px; cursor: help; }
.branches { display: flex; flex-direction: column; gap: 12px; }
.branch { border-left: 2px solid var(--line); padding-left: 12px; }
.tap { margin: 0 0 6px; }
.tap--say { color: var(--warn); }
.variant { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.variant__label { color: var(--warn); font-weight: 500; }
.variant > .variant__label { width: 90px; flex: none; padding-top: 8px; }
.card.dlg .status { font-size: 11px; color: var(--ink-2); font-family: ui-monospace, monospace; }
.dlg__footer { margin-top: 32px; color: var(--ink-2); max-width: 900px; }

@media (width <= 860px) {
  .main-canvas { flex-direction: column; }
  .main-canvas .topbar { flex: none; }
  .main-canvas #viewport { min-height: 0; }

  .screens-nav { width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .screens-nav h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .screens-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; padding: 0 14px; font: inherit; font-weight: 500; text-align: left; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
  .screens-pick:hover { background: var(--bg-hover); }
  .screens-pick::after { content: ""; flex: none; width: 7px; height: 7px; margin-bottom: 3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .screens-pick:has(+ ul:popover-open)::after { margin-bottom: -3px; transform: rotate(225deg); }
  .screens-nav ul:popover-open { position: fixed; inset: auto 0 0 0; width: auto; max-height: 70dvh; margin: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-outer) var(--r-outer) 0 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-modal); overflow-y: auto; }
  .screens-nav ul::backdrop { background: oklch(0% 0 0 / 0.3); }
  .screens-nav a { padding: 10px 12px; font-size: 15px; }
}

@media (max-width: 700px) {
  body.screens { flex-direction: column; }
}

@media (pointer: coarse) {
  .screens-nav a, .screens-pick { min-height: 44px; }
  .screens-nav a { display: flex; align-items: center; }
}


.bake { max-width: 960px; }
.bake-about { color: var(--ink-2); max-width: 70ch; margin: -8px 0 24px; }
.bake-drop { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-outer); background: var(--bg-muted); cursor: pointer; }
.bake-drop:hover { background: var(--bg-hover); }
.bake-drop.over { border-color: var(--ink); background: var(--bg-hover); }
.bake-drop input::file-selector-button { font: inherit; font-weight: 500; min-height: 36px; padding: 0 14px; margin-right: 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); cursor: pointer; }
.bake-picked { padding-left: 18px; overflow-wrap: anywhere; }
.bake-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.bake-controls input[type="number"] { width: 6em; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; min-height: 36px; padding: 0 14px; }
.bake-check { display: inline-flex; align-items: center; gap: 8px; }
.bake-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.bake progress { width: 100%; accent-color: var(--primary); }
.bake-results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bake-results li { display: flex; flex-direction: column; gap: 8px; padding: var(--inset); border: 1px solid var(--line); border-radius: var(--r-outer); background: var(--bg); }
.bake-results video { width: 100%; height: auto; border-radius: var(--r-inner); background: var(--bg-muted); }
.bake-results a { color: var(--ink); overflow-wrap: anywhere; }

@media (pointer: coarse) {
  .bake-drop input, .bake-controls input[type="number"], .bake-check { min-height: 44px; }
  .bake-results a { display: inline-flex; align-items: center; min-height: 44px; }
}


.doc-frame { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
