﻿/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --text: #0b0b0b;
  --muted: #666666;
  --border: #e1e1e1;
  --brand: #0b0b0b;
  --brand-2: #262626;
  --brand-soft: #ebebeb;
  --brand-text: #0b0b0b;
  --on-brand: #ffffff;
  --good: #15803d;
  --good-soft: #e4f3ea;
  --on-good: #ffffff;
  --warn: #a16207;
  --warn-soft: #fbf0d6;
  --bad: #b91c1c;
  --bad-soft: #fbe6e6;
  --info: #404040;
  --info-soft: #ebebeb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface-2: #1a1a1a;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --border: #262626;
  --brand: #ffffff;
  --brand-2: #e2e2e2;
  --brand-soft: #1f1f1f;
  --brand-text: #ffffff;
  --on-brand: #000000;
  --good: #4ade80;
  --good-soft: #0f2a1a;
  --on-good: #052e16;
  --warn: #fbbf24;
  --warn-soft: #2e2410;
  --bad: #f87171;
  --bad-soft: #301616;
  --info: #d4d4d4;
  --info-soft: #1f1f1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface-2: #1a1a1a;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --border: #262626;
  --brand: #ffffff;
  --brand-2: #e2e2e2;
  --brand-soft: #1f1f1f;
  --brand-text: #ffffff;
  --on-brand: #000000;
  --good: #4ade80;
  --good-soft: #0f2a1a;
  --on-good: #052e16;
  --warn: #fbbf24;
  --warn-soft: #2e2410;
  --bad: #f87171;
  --bad-soft: #301616;
  --info: #d4d4d4;
  --info-soft: #1f1f1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; min-width: 0; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; background: #000; border: 1px solid var(--border); }
.logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  color: var(--muted); font-weight: 550; text-decoration: none;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.nav .count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700;
}
.sidebar .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.me .who { min-width: 0; }
.me .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding-block: 30px 60px; padding-left: max(clamp(18px, 3.4vw, 44px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(18px, 3.4vw, 44px), env(safe-area-inset-right, 0px)); max-width: 1240px; width: 100%; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead p { color: var(--muted); margin-top: 4px; }

/* ---------- Cards and grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2 { margin-bottom: 14px; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
.grid.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .value { font-size: 34px; font-weight: 750; letter-spacing: -0.03em; margin-top: 6px; }
.kpi .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.kpi .ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.kpi .ico svg { width: 20px; height: 20px; }
.ico.brand { background: var(--brand-soft); color: var(--brand-text); }
.ico.good { background: var(--good-soft); color: var(--good); }
.ico.warn { background: var(--warn-soft); color: var(--warn); }
.ico.info { background: var(--info-soft); color: var(--info); }

/* ---------- Buttons and forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.btn.primary:hover { opacity: 0.88; }
.btn.good { background: var(--good); border-color: transparent; color: var(--on-good); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 17px; height: 17px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, .textarea, select.input {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
.input:focus, .textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 360px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.field { margin-bottom: 16px; }

/* ---------- Pills, avatars, bars ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill.new { background: var(--surface-2); color: var(--muted); }
.pill.qualifying { background: var(--info-soft); color: var(--info); }
.pill.qualified { background: var(--brand-soft); color: var(--brand-text); }
.pill.dm_sent { background: var(--warn-soft); color: var(--warn); }
.pill.call_offered { background: var(--warn-soft); color: var(--warn); }
.pill.call_booked { background: var(--good-soft); color: var(--good); }
.pill.not_a_fit { background: var(--bad-soft); color: var(--bad); }
.pill.live { background: var(--good-soft); color: var(--good); }
.pill.review { background: var(--brand-soft); color: var(--brand-text); }
.pill.paused { background: var(--bad-soft); color: var(--bad); }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.queued { background: var(--info-soft); color: var(--info); }
.pill.sent { background: var(--good-soft); color: var(--good); }
.pill.failed, .pill.blocked { background: var(--bad-soft); color: var(--bad); }
.pill.rejected { background: var(--surface-2); color: var(--muted); }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--on-brand); background: var(--brand); font-weight: 700; font-size: 15px; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.a0 { }
.a1 { background: #4a4a4a; color: #fff; }
.a2 { background: #6e6e6e; color: #fff; }
.a3 { background: #8f8f8f; color: #000; }
.a4 { background: #b8b8b8; color: #000; }
.bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.bar.warn > span { background: var(--warn); }
.meter { display: grid; gap: 7px; }
.meter .top { display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- Funnel ---------- */
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.funnel .step { text-align: center; }
.funnel .col { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.funnel .col span { width: 100%; max-width: 56px; border-radius: 10px 10px 4px 4px; background: var(--brand); min-height: 6px; opacity: 0.9; }
.funnel .step:last-child .col span { background: var(--good); opacity: 1; }
.funnel .n { font-weight: 750; font-size: 18px; margin-top: 8px; }
.funnel .t { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- Banner ---------- */
.banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid var(--border); }
.banner.review { background: var(--brand-soft); border-color: transparent; }
.banner.live { background: var(--good-soft); border-color: transparent; }
.banner.paused { background: var(--bad-soft); border-color: transparent; }
.banner .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; }
.banner .ico svg { width: 22px; height: 22px; }
.banner b { display: block; }

/* ---------- Tables and lists ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 18px; background: var(--surface-2); }
td { padding: 14px 18px; border-top: 1px solid var(--border); vertical-align: top; }
tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.list > .item:first-child { border-top: 0; padding-top: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big svg { width: 26px; height: 26px; }
.empty .big { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }

/* ---------- Review cards ---------- */
.draft { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; }
.draft .context { padding: 20px; background: var(--surface-2); border-right: 1px solid var(--border); }
.draft .proposal { padding: 20px; }
.quote { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.reason { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; min-height: 560px; }
.convlist { border-right: 1px solid var(--border); max-height: 72vh; overflow: auto; }
.conv { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.conv:hover { background: var(--surface-2); text-decoration: none; }
.conv.active { background: var(--brand-soft); }
.conv .snippet { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.threadhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.messages { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; overflow: auto; max-height: 62vh; }
.bubble { max-width: 74%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 5px; }
.bubble .meta { display: block; font-size: 11px; opacity: 0.7; margin-top: 3px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.alert.urgent, .alert.instagram_limit { background: var(--bad-soft); }
.alert.handover, .alert.dm_not_ours { background: var(--warn-soft); }
.alert .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-top: 7px; flex: none; }
.alert.urgent .dot, .alert.instagram_limit .dot { background: var(--bad); }
.alert.handover .dot, .alert.dm_not_ours .dot { background: var(--warn); }

/* ---------- Login ---------- */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1000px 520px at 50% -10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent), var(--bg); }
.authcard { width: min(420px, 100%); }
.authcard .brand { justify-content: center; padding-bottom: 8px; }
.notice { padding: 11px 14px; border-radius: 11px; font-size: 14px; margin-bottom: 14px; }
.notice.error { background: var(--bad-soft); color: var(--bad); }
.notice.ok { background: var(--good-soft); color: var(--good); }

/* ---------- Mobile ---------- */
@media (max-width: 1060px) {
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.even { grid-template-columns: 1fr; }
  .draft { grid-template-columns: 1fr; }
  .draft .context { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { padding: 0 8px 0 4px; }
  .brand span { display: none; }
  .nav { flex-direction: row; }
  .nav a { padding: 9px 11px; white-space: nowrap; }
  .nav a span.label { display: none; }
  .nav a.active span.label { display: inline; }
  .sidebar .spacer, .me .who { display: none; }
  .main { padding-block: 20px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .inbox { grid-template-columns: 1fr; }
  .convlist { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); }
  .funnel { gap: 4px; }
  .bubble { max-width: 90%; }
  h1 { font-size: 22px; }
  th, td { padding: 11px 12px; }
}
@media (max-width: 520px) {
  .grid.kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi .value { font-size: 28px; }
  .kpi .ico { display: none; }
}
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }



/* ---------- Setup checklist ---------- */
.checklist { display: grid; gap: 4px; margin-top: 14px; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--text); text-decoration: none; }
.check:hover { background: var(--surface-2); text-decoration: none; }
.check .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.check.done .tick { background: var(--good); border-color: var(--good); color: var(--on-good); }
.check.done { color: var(--muted); }
select.input { appearance: auto; }

/* ---------- Interactive extras ---------- */
[hidden] { display: none !important; }
kbd { font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.btn kbd { margin-left: 8px; opacity: 0.85; }
.btn.good kbd, .btn.primary kbd { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: inherit; }
.shortcuts { align-self: center; }

.side-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.side-tools .btn { justify-content: flex-start; }
.side-tools .btn kbd { margin-left: auto; }
.side-tools [data-theme-toggle] { flex: none; justify-content: center; }

.searchbar .input { background: var(--surface-2); border-color: transparent; }
.convlist .searchbar { padding: 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* toasts */
#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 80; max-width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 14px; background: var(--text); color: var(--bg); padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: toast-in 0.22s ease-out; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
.toast.error { background: var(--bad); color: #fff; }
.toast button { margin-left: auto; background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 8px; padding: 4px 10px; font: inherit; font-weight: 650; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* review cards */
.draft-card { transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.34s ease, margin 0.34s ease; max-height: 1200px; overflow: hidden; outline: none; }
.draft-card.leaving { opacity: 0; transform: translateX(18px); max-height: 0; margin-bottom: 0 !important; border-width: 0; }
.draft-card.selected { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.new-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--brand-soft); font-weight: 600; }

/* activity chart */
.chart { width: 100%; height: auto; display: block; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .line.a { stroke: var(--brand); }
.chart .line.b { stroke: var(--good); }
.chart .area.a { fill: var(--brand); opacity: 0.07; }
.chart .area.b { fill: var(--good); opacity: 0.1; }
.chart .dot { fill: var(--surface); stroke-width: 2; cursor: default; transition: r 0.12s; }
.chart .dot.a { stroke: var(--brand); }
.chart .dot.b { stroke: var(--good); }
.chart .dot:hover { r: 6; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--font); }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend.a { background: var(--brand); }
.legend.b { background: var(--good); }

/* folding setup sections */
.fold > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { margin-bottom: 14px; }
.fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 8px; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; margin: 0 4px 3px; flex: none; }
.fold[open] .chev { transform: rotate(-135deg); margin-top: 6px; }

/* quick jump and welcome */
.palette { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: grid; place-items: start center; padding: 14vh 16px 0; z-index: 90; animation: fade-in 0.15s ease-out; }
.palette-box { width: min(560px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.palette-box > input.input { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); padding: 17px 20px; font-size: 16px; }
.palette-box ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette-box li a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; }
.palette-box li.active a { background: var(--brand-soft); }
.palette-box li.none { padding: 14px; color: var(--muted); }
.palette-foot { padding: 10px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.welcome-body { padding: 28px; }
.welcome-body h2 { font-size: 22px; margin-bottom: 8px; }
.welcome-steps { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 12px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .side-tools { margin: 0; }
  .side-tools .tool-label, .side-tools kbd { display: none; }
  .shortcuts { display: none; }
  #toasts { left: 16px; right: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .palette { animation: none; }
  .draft-card, .chev, .chart .dot { transition: none !important; }
}
/* ---------- Account link in the sidebar ---------- */
.mecard { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.mecard:hover { text-decoration: none; }
.mecard:hover .who b { text-decoration: underline; }
/* ---------- Sidebar polish: no wrapping labels, long emails shorten instead of overlapping ---------- */
.side-tools .btn { white-space: nowrap; }
.me { min-width: 0; }
.me .who { min-width: 0; overflow: hidden; }
.me .who b, .me .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me form { flex: none; margin-left: 8px; }
/* ---------- Website import ---------- */
.sug { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); vertical-align: middle; }
.importform { display: flex; gap: 10px; }
.importform .input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .importform { flex-direction: column; } }