/* Личный кабинет FloraDesk на сайте (/account/). Токены — как у лендинга. */

:root {
  --bg: #fbf8f4; --bg-2: #f4eee6; --surface: #ffffff; --line: #eae1d6; --line-2: #ddd2c4;
  --ink: #1d1a17; --ink-2: #4a4540; --ink-3: #6b645d;
  --brand: #1f4d3a; --brand-2: #2a6650; --on-brand: #ffffff;
  --peony: #b83d62; --peony-soft: #fbe7ec; --sage-soft: #e6efe8; --butter-soft: #fff2d9;
  --ok: #1f6b46; --ok-soft: #e3f1e8; --warn: #8a5a00; --warn-soft: #fff2d9; --bad: #a3284a; --bad-soft: #fbe7ec;
  --deep: #1f4d3a; --on-deep: #ffffff; --on-deep-2: rgba(255, 255, 255, .78);
  --sh-1: 0 1px 2px rgba(29, 26, 23, .04), 0 6px 18px -6px rgba(29, 26, 23, .08);
  --sh-2: 0 2px 6px rgba(29, 26, 23, .05), 0 30px 70px -24px rgba(29, 26, 23, .28);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side: 256px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111412; --bg-2: #171b18; --surface: #1b201d; --line: #2a312d; --line-2: #36403a;
  --ink: #f2efea; --ink-2: #cbc5bd; --ink-3: #a39d95;
  --brand: #9ed8ba; --brand-2: #b8e6cd; --on-brand: #0e1a14;
  --peony: #f08aa6; --peony-soft: #36212a; --sage-soft: #1c2b23; --butter-soft: #2c271b;
  --ok: #8fd6ad; --ok-soft: #1c2b23; --warn: #f1c86a; --warn-soft: #2c271b; --bad: #f6a9bd; --bad-soft: #36212a;
  --deep: #1c3a2d; --on-deep: #f2efea; --on-deep-2: rgba(242, 239, 234, .78);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -6px rgba(0, 0, 0, .35);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111412; --bg-2: #171b18; --surface: #1b201d; --line: #2a312d; --line-2: #36403a;
    --ink: #f2efea; --ink-2: #cbc5bd; --ink-3: #a39d95;
    --brand: #9ed8ba; --brand-2: #b8e6cd; --on-brand: #0e1a14;
    --peony: #f08aa6; --peony-soft: #36212a; --sage-soft: #1c2b23; --butter-soft: #2c271b;
    --ok: #8fd6ad; --ok-soft: #1c2b23; --warn: #f1c86a; --warn-soft: #2c271b; --bad: #f6a9bd; --bad-soft: #36212a;
    --deep: #1c3a2d; --on-deep: #f2efea; --on-deep-2: rgba(242, 239, 234, .78);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -6px rgba(0, 0, 0, .35);
    --sh-2: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.serif { font-family: var(--serif); }
.nums { font-variant-numeric: tabular-nums; }

/* --- загрузка ------------------------------------------------------------------------ */

.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot img { border-radius: 50%; animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }

/* --- кнопки и поля --------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-outline { background: var(--surface); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
:root[data-theme="dark"] .btn-danger { color: #1d1015; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field-hint { font-size: 13px; color: var(--ink-3); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea.input { resize: vertical; min-height: 96px; }
.form-error { color: var(--bad); font-size: 14px; min-height: 0; }
.form-error:not(:empty) { margin: -4px 0 12px; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--ink); font-size: 14px; margin-bottom: 16px; }

/* --- вход ----------------------------------------------------------------------------- */

.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px;
  padding: 40px; background: var(--deep); color: var(--on-deep);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px var(--serif); text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-light { color: var(--on-deep); }
.auth-pitch h2 { font: 600 clamp(28px, 3vw, 40px)/1.15 var(--serif); margin: 40px 0 24px; max-width: 14ch; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--on-deep-2); }
.auth-pitch li { display: flex; gap: 10px; }
.auth-pitch li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--peony); }
.auth-flowers { position: absolute; right: -60px; bottom: -40px; width: 380px; opacity: .9; pointer-events: none; }
.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font: 600 34px/1.15 var(--serif); margin: 0 0 8px; }
.auth-card .lead { color: var(--ink-2); margin: 0 0 28px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 14px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-soft); color: var(--brand); font-weight: 700; font-size: 13px;
}
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: var(--r);
}
.code-box strong { font: 700 28px var(--sans); letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.waiting { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s infinite; }

/* --- каркас кабинета ---------------------------------------------------------------- */

.shell { min-height: 100dvh; display: grid; grid-template-columns: var(--side) 1fr; }
.topbar { display: none; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 28px;
  padding: 24px 16px; border-right: 1px solid var(--line); background: var(--bg-2);
}
.sidebar > .brand { padding: 0 8px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.nav a[aria-current="page"] .ico { color: var(--peony); }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--peony-soft); color: var(--peony); font-weight: 700;
}
.me-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sub { font-size: 13px; color: var(--ink-3); }
.side-actions { display: flex; align-items: center; justify-content: space-between; }
.scrim { display: none; }

.main { min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 64px; outline: none; }
.page { max-width: 1160px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font: 600 clamp(28px, 3vw, 36px)/1.15 var(--serif); margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--ink-3); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
h2.section { font: 600 20px var(--serif); margin: 36px 0 14px; }

/* --- карточки ---------------------------------------------------------------------------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 16px; }
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; min-height: 172px; }
.kpi-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.kpi-value { font: 600 30px/1.15 var(--serif); }
.kpi-value.nums { font: 700 30px/1.15 var(--sans); letter-spacing: -.01em; }
.kpi-sub { color: var(--ink-3); font-size: 14px; }
.kpi .btn { margin-top: auto; align-self: flex-start; }
.kpi-plan { background: var(--deep); color: var(--on-deep); border-color: transparent; position: relative; overflow: hidden; }
.kpi-plan .kpi-label, .kpi-plan .kpi-sub { color: var(--on-deep-2); }
.kpi-plan .btn-primary { background: var(--on-deep); color: var(--deep); }
.kpi-plan::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--peony) 55%, transparent), transparent 70%); opacity: .55;
}
.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--peony); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
.stack { display: grid; gap: 16px; align-content: start; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--warn-soft); }
.alert .ico { color: var(--warn); margin-top: 2px; }
.alert-title { font-weight: 600; }
.alert-text { font-size: 14px; color: var(--ink-2); }
.links { display: grid; }
.links a, .links button {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; border: 0; border-top: 1px solid var(--line);
  background: none; text-decoration: none; text-align: left; cursor: pointer; color: var(--ink);
}
.links > :first-child { border-top: 0; }
.links .ico:last-child { margin-left: auto; color: var(--ink-3); width: 16px; }
.links a:hover, .links button:hover { color: var(--brand); }

/* --- таблицы --------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 10px; }
.data td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.data tr:hover td { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data .actions { text-align: right; white-space: nowrap; }
.data .actions > * + * { margin-left: 6px; }
.bot-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bot-ava { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--sage-soft); color: var(--brand); }
.bot-name { font-weight: 600; }
.bot-title { color: var(--ink-3); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok, .chip-paid { background: var(--ok-soft); color: var(--ok); }
.chip-pending, .chip-awaiting_requisites { background: var(--warn-soft); color: var(--warn); }
.chip-nosub, .chip-stopped, .chip-cancelled, .chip-chargebacked { background: var(--bad-soft); color: var(--bad); }
.badge { padding: 2px 8px; border-radius: 99px; background: var(--peony-soft); color: var(--peony); font-size: 12px; font-weight: 700; }
.empty { text-align: center; padding: 48px 24px; }
.empty h3 { font: 600 22px var(--serif); margin: 0 0 8px; }
.empty p { color: var(--ink-3); margin: 0 auto 20px; max-width: 46ch; }

/* --- тарифы ------------------------------------------------------------------------------ */

.term-switch { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.term-switch button {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: transparent; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.term-switch button small { margin-left: 6px; color: var(--peony); font-weight: 700; }
.term-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
/* три колонки для сравнения: бот, бот и сайт, только сайт */
.plan-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan-group h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-1); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font: 600 22px var(--serif); }
.plan-desc { color: var(--ink-2); font-size: 14px; margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 700 30px var(--sans); font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-3); }
.price-note { font-size: 13px; color: var(--ok); margin: -6px 0 0; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.feat li { display: flex; gap: 8px; }
.feat .ico { width: 18px; height: 18px; color: var(--brand); }
.plan .btn { margin-top: auto; }

/* --- платежи и пополнение ---------------------------------------------------------------- */

.pay-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; align-items: start; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.preset {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface);
  font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums;
}
.preset[aria-pressed="true"] { border-color: var(--brand); background: var(--sage-soft); color: var(--brand); }
.ref-link { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); font-size: 14px; word-break: break-all; margin: 12px 0; }

/* --- поддержка ---------------------------------------------------------------------------- */

.chat { display: flex; flex-direction: column; height: min(72dvh, 760px); padding: 0; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.thread { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: min(560px, 80%); padding: 10px 14px; border-radius: 16px; background: var(--bg-2); align-self: flex-start; }
.msg-owner { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; }
.msg-support { border-bottom-left-radius: 6px; }
.msg-author { font-size: 12px; font-weight: 700; color: var(--peony); margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-media { font-size: 13px; font-style: italic; opacity: .85; }
.msg-time { font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.thread-empty { margin: auto; text-align: center; color: var(--ink-3); max-width: 40ch; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--line); }
.composer .input { min-height: 46px; max-height: 160px; resize: none; }

/* --- окна и уведомления ------------------------------------------------------------------- */

.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--sh-2);
}
.modal::backdrop { background: rgba(17, 20, 18, .45); backdrop-filter: blur(2px); }
.modal[open] { animation: rise .22s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { margin: 0; font: 600 24px var(--serif); }
.modal-body { padding: 16px 22px 22px; }
.modal-body > p { margin: 0 0 16px; color: var(--ink-2); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
details.more { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; gap: 8px; justify-items: end; }
.toast {
  max-width: 380px; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg);
  box-shadow: var(--sh-2); font-size: 14px; animation: rise .22s var(--ease);
}

/* --- телефон и планшет ------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-plan { grid-column: 1 / -1; }
  .grid-2, .pay-grid { grid-template-columns: 1fr; }
  .plan-groups { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 24px 16px; gap: 0; }
  .auth-pitch, .auth-flowers { display: none; }
  .auth-main { place-items: start center; padding: 32px 16px; }

  .shell { grid-template-columns: 1fr; }
  .topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-100%);
    transition: transform .25s var(--ease); box-shadow: var(--sh-2);
  }
  .sidebar.open { transform: none; }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(17, 20, 18, .4); }
  .main { padding: 20px 16px 48px; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { min-height: 0; }

  /* таблицы на узком экране — карточками */
  table.data, .data tbody, .data tr, .data td { display: block; width: 100%; }
  .data thead { display: none; }
  .data tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .data tr:first-child { border-top: 0; }
  .data td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .data td[data-label]::before { content: attr(data-label); color: var(--ink-3); text-align: left; }
  .data td.cell-main { text-align: left; }
  .data .actions { justify-content: flex-start; padding-top: 10px; }
  .data tr:hover td { background: none; }
  .toasts { left: 16px; right: 16px; bottom: 16px; justify-items: stretch; }
  .toast { max-width: none; }
  .term-switch { display: flex; overflow-x: auto; }
  .chat { height: calc(100dvh - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
