/* Кабинет TimeSaverBot — по мокапам mockup/cabinet-mobile.html и cabinet-desktop.html (D-0007).
   Цвета как на timesaverbot.com: оранжевый — одно главное действие экрана (и логотип); синий — выбор, ссылки, подписи;
   белые карточки с тонкой рамкой; тёмно-синие заголовки, серый текст. Свойства — логические (inline/block): иврит справа налево. */
:root {
  --ground: #FFF9F5; --ground2: #FFE7D6; --screen: #F8FAFC; --surface: #FFFFFF; --sunk: #F1F5F9;
  --ink: #0F172A; --body: #475569; --mute: #64748B; --faint: #94A3B8;
  --line: #E2E8F0; --line-soft: #EEF2F6;
  --accent: #3B82F6; --accent-ink: #1D4ED8; --accent-soft: #EFF6FF;
  --go: #F97316; --go-ink: #C2410C; --go-soft: #FFF7ED; --on-go: #FFFFFF;
  --found: #10B981; --found-ink: #047857; --found-soft: #ECFDF5; --found-line: #A7F3D0;
  --warn: #B45309; --warn-soft: #FFFBEB; --warn-line: #FCD34D;
  --bad: #DC2626; --bad-soft: #FEF2F2; --bad-line: #FECACA;
  --side: #0F172A; --side-ink: #CBD5E1; --side-on: #FFFFFF; --side-hover: #1E293B;
  --wa: #16A34A;
  --scrim: rgba(15, 23, 42, .38);
  --shadow: 0 24px 60px rgba(15, 23, 42, .14);
  --f-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-logo: 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B1220; --ground2: #111a2e; --screen: #0F172A; --surface: #1E293B; --sunk: #162032;
    --ink: #F1F5F9; --body: #CBD5E1; --mute: #94A3B8; --faint: #64748B;
    --line: #334155; --line-soft: #243044;
    --accent: #60A5FA; --accent-ink: #93C5FD; --accent-soft: #172554;
    --go-ink: #FDBA74; --go-soft: #2A1A10;
    --found: #34D399; --found-ink: #6EE7B7; --found-soft: #0E2A22; --found-line: #1F5140;
    --warn: #FBBF24; --warn-soft: #2B2110; --warn-line: #78591A;
    --bad: #F87171; --bad-soft: #2A1215; --bad-line: #7F1D1D;
    --side: #020617; --side-hover: #0F172A;
    --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden], [x-cloak] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--screen); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 22px; line-height: 1.3; margin: 0; }
h2 { font-size: 17px; line-height: 1.35; margin: 0; }
p { margin: 0; }
.muted, .hint { color: var(--mute); font-size: 13.5px; }

/* ---------- логотип ---------- */
.logo { display: flex; align-items: center; gap: 7px; text-decoration: none; min-width: 0; }
.logo img { height: 30px; width: auto; }
.logo span { font-family: var(--f-logo); font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--go); }

/* ---------- раскладка кабинета: телефон ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.side { display: none; }
.appbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.appbar .ttl { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; }
.appbar .logo { flex: 1; }
.me-btn {
  width: 38px; height: 38px; border-radius: 99px; border: 1.5px solid var(--accent); background: var(--surface);
  color: var(--accent-ink); font-weight: 600; cursor: pointer; flex: 0 0 auto;
}
.main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 16px 96px; display: flex; flex-direction: column; gap: 14px; }
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); background: var(--surface); padding: 4px 6px max(10px, env(safe-area-inset-bottom));
}
.tabbar a {
  display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--mute);
  text-decoration: none; padding: 8px 2px 4px; position: relative;
}
.tabbar a::before {
  content: ""; position: absolute; top: 0; inset-inline: 28%; height: 3px; border-radius: 0 0 3px 3px; background: transparent;
}
.tabbar a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.tabbar a[aria-current="page"]::before { background: var(--accent); }
.ic { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dot {
  position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--ink); color: var(--surface); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--surface);
}

/* шапка телефона как в мокапе: на главной — логотип, на остальных страницах — заголовок */
@media (max-width: 899px) {
  body:not([data-home]) .appbar .logo { display: none; }
  body[data-home] .appbar .ttl { display: none; }
}

/* ---------- раскладка кабинета: компьютер (боковое меню, как cabinet-desktop) ---------- */
@media (min-width: 900px) {
  .app { flex-direction: row; }
  .side {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; width: 240px; flex: 0 0 240px;
    background: var(--side); color: var(--side-ink); padding: 18px 12px;
  }
  .side .logo { padding: 2px 10px 18px; }
  .side .logo span { color: var(--go); }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav.bottom { margin-top: auto; border-top: 1px solid var(--side-hover); padding-top: 10px; }
  .side a, .side button.nav-btn {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-ink);
    text-decoration: none; font-size: 14px; font-weight: 500; position: relative; background: none; border: 0; cursor: pointer; text-align: start; width: 100%;
  }
  .side a:hover, .side button.nav-btn:hover { background: var(--side-hover); color: var(--side-on); }
  .side a[aria-current="page"] { background: var(--accent); color: #fff; }
  .side .ic { width: 20px; height: 20px; }
  .side .cnt { margin-inline-start: auto; min-width: 20px; height: 20px; border-radius: 99px; background: var(--go); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
  .page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .appbar { padding: 12px 28px; }
  .appbar .logo { display: none; }
  .appbar .ttl { font-size: 18px; }
  .main { max-width: 1040px; padding: 24px 28px 40px; margin: 0; }
  .tabbar { display: none; }
}

/* ---------- карточки, кнопки ---------- */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.card-h { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  border-radius: 99px; font-weight: 600; font-size: 14px; padding: 8px 18px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.main { border-color: var(--go); background: var(--go); color: var(--on-go); box-shadow: 0 4px 12px rgba(249, 115, 22, .25); }
.btn.sel { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.out { border-color: var(--accent); color: var(--accent-ink); }
.btn.red { border-color: var(--bad-line); color: var(--bad); }
.btn.wide { width: 100%; }
.linkish { background: none; border: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* переключатель «Бот отвечает клиентам»: зелёный — работает, жёлтый — пауза или остановлен */
.switch { border-radius: 18px; padding: 15px 16px; display: grid; gap: 8px; border: 1.5px solid var(--found-line); background: var(--found-soft); }
.switch.off { border-color: var(--warn-line); background: var(--warn-soft); }
.sw-top { display: flex; align-items: center; gap: 12px; }
.sw-top div { flex: 1; min-width: 0; }
.sw-top b { display: block; font-size: 17px; line-height: 1.3; }
.sw-top span { display: block; font-size: 13px; color: var(--body); }
.sw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--body); }
.sw-meta i { font-style: normal; color: var(--found); font-weight: 700; }
.sw-meta i.bad { color: var(--warn); }
.tgl { flex: 0 0 auto; width: 60px; height: 34px; border-radius: 99px; border: none; background: var(--found); position: relative; cursor: pointer; }
.tgl::after {
  content: ""; position: absolute; top: 4px; inset-inline-start: 30px; width: 26px; height: 26px; border-radius: 99px; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .2s;
}
.tgl[aria-pressed="false"] { background: var(--faint); }
.tgl[aria-pressed="false"]::after { inset-inline-start: 4px; }
.tgl:disabled { cursor: default; opacity: .6; }

/* пробный период и тариф */
.trial { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; font-size: 14px; }
.trial div { flex: 1; min-width: 0; }
.trial.urgent { border-color: var(--go); }
.plan-top { display: flex; align-items: flex-start; gap: 12px; }
.plan-top div { flex: 1; }
.plan-top b { display: block; font-size: 17px; }
.plan-price { font-size: 28px; font-weight: 700; line-height: 1; }
.plan-price small { display: block; font-size: 12px; font-weight: 500; color: var(--mute); text-align: end; }
.meter { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--go); border-radius: 99px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.ticks li::before { content: "✓"; color: var(--found); font-weight: 700; margin-inline-end: 8px; }

/* баннеры над содержимым */
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--warn-line); background: var(--warn-soft); font-size: 14px; }
.banner div { flex: 1; min-width: 0; }
.banner.bad { border-color: var(--bad-line); background: var(--bad-soft); }

/* пустое состояние раздела */
.empty { text-align: center; padding: 28px 16px; color: var(--mute); display: grid; gap: 8px; justify-items: center; }
.empty .ic { width: 40px; height: 40px; color: var(--faint); }
.empty b { color: var(--ink); font-size: 16px; }

/* списки настроек (профиль) */
.list { padding: 0; gap: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.li:first-child { border-top: 0; }
.li > div { flex: 1; min-width: 0; }
.li span.sub { display: block; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.li.danger { color: var(--bad); }

/* формы */
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.error { color: var(--bad); font-size: 14px; }
.ok { color: var(--found-ink); font-size: 14px; }

/* страницы входа и регистрации */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, var(--ground) 0%, var(--ground2) 100%) fixed var(--ground); }
.auth-box { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth-box .logo { justify-content: center; }
.auth-box .logo img { height: 44px; }
.auth-box .logo span { font-size: 26px; }
.auth-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px 20px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.auth-card h1 { text-align: center; }
.auth-card .sub { text-align: center; color: var(--mute); font-size: 14px; }
.auth-links { text-align: center; font-size: 14px; color: var(--mute); display: grid; gap: 6px; }
.lang-pick { display: flex; justify-content: center; gap: 6px; }
.lang-pick a { font-size: 13px; color: var(--mute); text-decoration: none; padding: 4px 10px; border-radius: 99px; border: 1px solid transparent; }
.lang-pick a[aria-current="true"] { border-color: var(--line); color: var(--ink); background: var(--surface); }

/* меню «я» (шторка на телефоне, окно на компьютере) */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; }
.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 21; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 16px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 4px; max-height: 85vh; overflow: auto;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line); justify-self: center; margin-bottom: 6px; }
.sheet h3 { margin: 4px 0 8px; font-size: 16px; }
.menu-i {
  display: flex; flex-direction: column; align-items: flex-start; padding: 12px 6px; border: 0; border-top: 1px solid var(--line-soft);
  background: none; text-align: start; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
}
.menu-i small { color: var(--mute); font-size: 12.5px; font-weight: 400; }
@media (min-width: 900px) {
  .sheet { inset-inline: auto 24px; inset-block: 64px auto; bottom: auto; width: 320px; border-radius: 16px; box-shadow: var(--shadow); }
  .sheet .grab { display: none; }
}

/* всплывающее сообщение */
.toast {
  position: fixed; inset-inline: 0; bottom: 92px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); z-index: 30;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow);
}
@media (min-width: 900px) { .toast { bottom: 28px; } }

.offline { position: sticky; top: 0; z-index: 40; background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--ink); text-align: center; font-size: 13.5px; padding: 6px 12px; }

/* страницы ошибок и простые страницы платформы (подтверждение, сброс пароля, безопасность) */
main.plain { max-width: 520px; margin: 40px auto; padding: 0 16px; display: grid; gap: 14px; }
pre.codes { background: var(--sunk); padding: 12px; border-radius: 12px; }
/* «Что знает бот» (мокап knows): группы с правкой на месте — текст как поле, рамка при наведении и фокусе */
.kgroup { overflow: hidden; padding: 0; gap: 0; }
.kh { display: flex; align-items: center; gap: 10px; padding: 13px 14px 11px; }
.kh h2 { flex: 1; margin: 0; font-size: 15.5px; font-weight: 700; }
.kh .cnt { font-size: 12px; color: var(--mute); font-weight: 500; }
.f-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start; padding: 7px 14px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.f-row label { color: var(--mute); padding-top: 7px; }
.ed {
  width: 100%; min-width: 0; border: 1.5px solid transparent; border-radius: 10px; background: transparent; padding: 6px 8px;
  font-size: 13.5px; line-height: 1.45; resize: none; color: var(--ink); field-sizing: content; min-height: 34px;
}
.ed:hover { border-color: var(--line); }
.ed:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.ed.b { font-weight: 600; }
.svc { display: grid; grid-template-columns: 1fr 110px 30px; gap: 6px; align-items: center; padding: 5px 8px 5px 6px; border-top: 1px solid var(--line-soft); }
.svc .ed.p { text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.x { width: 30px; height: 30px; border-radius: 99px; border: none; background: none; color: var(--faint); font-size: 15px; cursor: pointer; }
.x:hover { background: var(--sunk); color: var(--body); }
.qa { display: grid; grid-template-columns: 1fr 30px; gap: 0 6px; padding: 6px 8px 6px 6px; border-top: 1px solid var(--line-soft); }
.qa .ed.a { color: var(--body); padding-top: 0; }
.qa .x { grid-row: 1 / 3; grid-column: 2; }
.unans { border-color: var(--accent); }
.ua { padding: 12px 14px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.ua q { font-weight: 600; font-size: 14px; }
.ua small { color: var(--mute); font-size: 12px; }
.ua-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ua-row input { flex: 1; min-width: 160px; font-size: 14px; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; background: var(--surface); }
.ua-row input:focus { border-color: var(--accent); outline: none; }
.adder { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line-soft); }
.add { min-height: 42px; border: 1.5px dashed var(--accent); background: var(--surface); color: var(--accent-ink); border-radius: 99px; font-size: 13.5px; font-weight: 600; padding: 0 16px; cursor: pointer; }
.nudge { display: flex; gap: 10px; align-items: center; padding: 12px 14px; font-size: 13.5px; text-decoration: none; color: var(--ink); border-color: var(--accent); }
.nudge div { flex: 1; }
.nudge b { display: block; }
.nudge .arr { color: var(--accent); font-weight: 700; font-size: 20px; }
@media (max-width: 520px) {
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .f-row label { padding-top: 2px; }
  .svc { grid-template-columns: 1fr 88px 30px; }
}
/* проверочный чат (D-0015): реплики клиента — справа, бота — слева */
.chat { padding: 0; gap: 0; overflow: hidden; }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 280px; max-height: 60vh; overflow-y: auto; background: var(--sunk); }
.msg { max-width: 82%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; display: grid; gap: 2px; font-size: 14px; }
.msg.mine { align-self: flex-end; background: var(--accent-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.msg .by { font-size: 11.5px; color: var(--mute); font-weight: 600; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .err { font-size: 12px; color: var(--bad); }
.typing { flex-direction: row; display: flex; gap: 4px; padding: 12px; }
.typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }
.compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.compose input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 99px; padding: 10px 16px; background: var(--surface); }
.compose input:focus { border-color: var(--accent); outline: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 99px; background: var(--sunk); justify-self: start; }
.seg button { border: 0; background: none; border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--body); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pair { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .pair { grid-template-columns: 220px 1fr; } }
.qr-box { width: 220px; height: 220px; border: 1.5px solid var(--line); border-radius: 14px; display: grid; place-items: center; background: #fff; }
.qr-box img { width: 200px; height: 200px; image-rendering: pixelated; }
.paircode { font-size: 28px; font-weight: 700; letter-spacing: 3px; text-align: center; padding: 12px; border-radius: 14px; background: var(--sunk); }
.how { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.metaopt { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--line); }
.conn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.conn-row > div { flex: 1; min-width: 160px; display: grid; }
.big-ok { width: 40px; height: 40px; border-radius: 99px; background: var(--found-soft); color: var(--found-ink); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.opt > div { flex: 1; min-width: 0; display: grid; }
.opt.col { flex-direction: column; align-items: stretch; }
.search { width: 100%; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; background: var(--surface); }
.chatpick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line-soft); background: none; text-align: start; cursor: pointer; }
.chatpick .av { width: 34px; height: 34px; border-radius: 99px; background: var(--sunk); display: grid; place-items: center; font-weight: 600; }
.chatpick .nm { flex: 1; min-width: 0; display: grid; }
.chatpick small { color: var(--mute); }
.chatpick .ck { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; color: #fff; }
.chatpick[aria-pressed="true"] .ck { background: var(--accent); border-color: var(--accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .search { flex: 1; min-width: 180px; width: auto; }
.lead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: start; cursor: pointer; width: 100%; font: inherit; color: inherit; }
.lead.new { border-color: var(--accent); }
.lead .av { width: 40px; height: 40px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.lead .who { flex: 1; min-width: 0; display: grid; }
.lead .who span { color: var(--body); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead .when { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--mute); }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--sunk); color: var(--body); }
.tag.new { background: var(--accent); color: #fff; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.kv > span { color: var(--mute); }
.kv select { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface); }
.recap { background: var(--sunk); border-radius: 14px; padding: 10px 14px; display: grid; gap: 8px; font-size: 13.5px; margin: 8px 0; }
.recap .who-b { font-size: 11.5px; font-weight: 600; color: var(--mute); }
.btn.wa { border-color: var(--wa); background: var(--wa); color: #fff; }
@media (min-width: 900px) { .lead-sheet { width: 460px; max-height: calc(100vh - 100px); } }
.stack { display: grid; gap: 14px; }
.center { text-align: center; }
