/* Venu Motors admin: brand gold on white, near-black ink, Manrope. */

:root,
[data-theme="light"] {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --hover: #f2f4f7;
  --text: #14181c;
  --text-2: #344054;
  --muted: #667085;
  --line: #e7e9ee;
  --line-strong: #d0d5dd;

  --gold: #f2a516;
  --gold-strong: #e8950a;
  --gold-ink: #9a6200;          /* gold text that passes contrast on white */
  --gold-soft: #fff7e6;
  --gold-soft-2: #fdecc4;
  --on-gold: #1c1404;
  --gold-grad: linear-gradient(135deg, #ffd56b 0%, #f2a516 45%, #e8950a 100%);

  --ok: #067647;      --ok-soft: #ecfdf3;
  --info: #175cd3;    --info-soft: #eff8ff;
  --warn: #b54708;    --warn-soft: #fffaeb;
  --violet: #5925dc;  --violet-soft: #f4f3ff;
  --danger: #d92d20;  --danger-soft: #fef3f2;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 5%);
  --shadow: 0 1px 3px rgb(16 24 40 / 6%), 0 1px 2px rgb(16 24 40 / 4%);
  --shadow-lg: 0 24px 48px -12px rgb(16 24 40 / 18%);
  --sidebar-w: 256px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1013;
  --surface: #151a1f;
  --surface-2: #11151a;
  --hover: #1c2229;
  --text: #eef1f4;
  --text-2: #cfd5dd;
  --muted: #98a2b3;
  --line: #232a32;
  --line-strong: #344050;

  --gold-ink: #f7c04a;
  --gold-soft: #2a2110;
  --gold-soft-2: #3a2c10;

  --ok: #47cd89;      --ok-soft: #0f2a1d;
  --info: #84caff;    --info-soft: #102a43;
  --warn: #fdb022;    --warn-soft: #2e2208;
  --violet: #bdb4fe;  --violet-soft: #221b45;
  --danger: #f97066;  --danger-soft: #3a1512;

  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.error { color: var(--danger); font-weight: 500; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }

/* Icons (inline SVG injected by app.js) */
i[data-icon] { display: inline-flex; width: 18px; height: 18px; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold-grad); border-color: var(--gold-strong); color: var(--on-gold); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; height: 44px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn i[data-icon] { width: 16px; height: 16px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }

/* ── Inputs ──────────────────────────────────────── */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 9px 12px; min-height: 40px;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(242 165 22 / 18%);
}
textarea { min-height: 96px; resize: vertical; }
textarea.tall { min-height: 340px; line-height: 1.7; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold-strong); box-shadow: none; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; color: var(--text-2); }
label .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.search { position: relative; }
.search i[data-icon] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 36px; }

/* ── Brand ───────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-mark { width: 30px; height: 31px; object-fit: contain; }
.wordmark { font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.brand-lg .brand-mark { width: 40px; height: 42px; }
.brand-lg .wordmark { font-size: 18px; }

/* ── Login ───────────────────────────────────────── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); }
.login-brand {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 0% 0%, #2a2414 0%, #14181c 55%, #0b0d10 100%);
  display: grid; place-items: center; padding: 48px;
}
.login-brand::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(242 165 22 / 28%), transparent 65%);
}
.login-brand-inner { position: relative; z-index: 1; max-width: 420px; display: grid; gap: 20px; }
.login-mark { width: 72px; }
.login-brand h1 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.login-brand h1 span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-brand p { color: #c3c9d2; font-size: 16px; }
.login-points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; color: #e4e7ec; }
.login-points li { display: flex; gap: 10px; align-items: flex-start; }
.login-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--gold-grad); box-shadow: inset 0 0 0 5px #1c1708; }
.login-form-wrap { display: grid; place-items: center; padding: 32px 16px; }
.login-form { width: min(400px, 100%); display: grid; gap: 18px; }
.login-form h2 { font-size: 26px; font-weight: 800; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

/* ── Shell ───────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 6px;
}
.sidebar > .brand { padding: 4px 10px 18px; }
.nav { display: grid; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 600; text-decoration: none; position: relative;
}
.nav a i[data-icon] { color: var(--muted); }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: var(--gold-soft); color: var(--text); }
.nav a.active i[data-icon] { color: var(--gold-ink); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-strong); }
.count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.site-link { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; border: 1px dashed var(--line-strong); }
.site-link:hover { background: var(--hover); text-decoration: none; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; margin-top: 10px; border-top: 1px solid var(--line); }
.me-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.me-text strong { font-size: 13px; }
.me-text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: var(--gold-soft-2); color: var(--gold-ink);
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.c1 { background: var(--info-soft); color: var(--info); }
.avatar.c2 { background: var(--ok-soft); color: var(--ok); }
.avatar.c3 { background: var(--violet-soft); color: var(--violet); }
.avatar.c4 { background: var(--warn-soft); color: var(--warn); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 32px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.crumbs i[data-icon] { width: 14px; height: 14px; }
.crumbs strong { color: var(--text); }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.menu-toggle { display: none; }
.content { padding: 28px 32px 48px; max-width: 1360px; width: 100%; }
.scrim { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
  .shell.menu-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgb(16 24 40 / 40%); }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
}

/* ── Page header ─────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Cards & stats ───────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-head p { color: var(--muted); font-size: 13px; }
.card-body { padding: 18px 20px 20px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 18px 20px; display: grid; gap: 14px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.stat-icon.info { background: var(--info-soft); color: var(--info); }
.stat-icon.ok { background: var(--ok-soft); color: var(--ok); }
.stat-icon.violet { background: var(--violet-soft); color: var(--violet); }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.trend { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.trend.up { background: var(--ok-soft); color: var(--ok); }
.trend.down { background: var(--danger-soft); color: var(--danger); }
.trend.flat { background: var(--hover); color: var(--muted); }

.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 16px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3a2c0c 0%, #14181c 55%);
  border: 1px solid #23282e; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; aspect-ratio: 1; background: url(img/mark.png) center / contain no-repeat; opacity: .12; }
.hero h1 { font-size: 22px; }
.hero p { color: #c3c9d2; margin-top: 4px; }
.hero .page-actions { position: relative; z-index: 1; }
.hero .btn:not(.primary) { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 16%); color: #fff; box-shadow: none; }
.hero .btn:not(.primary):hover { background: rgb(255 255 255 / 14%); }

.grid { display: grid; gap: 16px; }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-main, .grid-2 { grid-template-columns: 1fr; } }

/* Bar chart */
.chart { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 8px; height: 190px; padding-top: 10px; }
.bar-col { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; text-align: center; }
.bar-track { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: 100%; max-width: 30px; min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--gold-soft-2); transition: background .15s; }
.bar.has { background: var(--gold-grad); }
.bar-col:hover .bar { filter: brightness(1.05); outline: 2px solid var(--gold-soft-2); }
.bar-val { position: absolute; top: -20px; left: 0; right: 0; font-size: 11px; font-weight: 700; color: var(--text-2); opacity: 0; transition: opacity .15s; }
.bar-col:hover .bar-val { opacity: 1; }
.bar-label { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .bar-col:nth-child(odd) .bar-label { visibility: hidden; } }

/* Progress rows */
.meter-list { display: grid; gap: 14px; }
.meter-row { display: grid; gap: 6px; }
.meter-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; }
.meter-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); }

.pipeline { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--hover); gap: 2px; }
.pipeline span { height: 100%; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.s-new { background: #2e90fa; } .s-contacted { background: #f79009; } .s-qualified { background: #7a5af8; }
.s-converted { background: #12b76a; } .s-closed { background: #98a2b3; }

.quick { display: grid; gap: 10px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.quick a:hover { background: var(--hover); text-decoration: none; border-color: var(--line-strong); }
.quick a > i[data-icon]:first-child { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); }
.quick a small { display: block; color: var(--muted); font-weight: 500; }
.quick a .go { margin-left: auto; color: var(--muted); }

/* ── Tabs / filters ──────────────────────────────── */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--hover); border-radius: 12px; width: fit-content; margin-bottom: 14px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs button span { font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--text-2); }
.tabs button.active span { background: var(--gold-soft-2); color: var(--gold-ink); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1; min-width: 220px; }
.toolbar select, .toolbar input[type="date"] { width: auto; }

/* ── Tables ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background .1s; }
tbody tr.clickable:hover { background: var(--hover); }
td.num { font-variant-numeric: tabular-nums; }
.cell-person { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.cell-person strong { display: block; font-weight: 700; }
.sub { color: var(--muted); font-size: 12px; font-weight: 500; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--hover); display: block; border: 1px solid var(--line); }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.pager div { display: flex; gap: 8px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--hover); color: var(--text-2); white-space: nowrap; text-transform: capitalize; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.new { background: var(--info-soft); color: var(--info); }
.badge.contacted { background: var(--warn-soft); color: var(--warn); }
.badge.qualified { background: var(--violet-soft); color: var(--violet); }
.badge.converted, .badge.published, .badge.live { background: var(--ok-soft); color: var(--ok); }
.badge.closed, .badge.draft, .badge.hidden { background: var(--hover); color: var(--muted); }
.badge.scheduled { background: var(--gold-soft); color: var(--gold-ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: var(--hover); color: var(--text-2); white-space: nowrap; }

/* Empty / loading */
.empty { padding: 56px 24px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty i[data-icon] { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); }
.empty strong { color: var(--text); font-size: 15px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--hover), var(--line), var(--hover)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading { display: grid; gap: 12px; padding: 24px; }

/* Testimonial cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.t-card { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.t-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.t-card img, .t-card .t-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--hover); display: grid; place-items: center; color: var(--muted); }
.t-card .t-body { padding: 16px; display: grid; gap: 10px; flex: 1; }
.t-card blockquote { margin: 0; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-card .t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.stars { color: var(--gold-strong); letter-spacing: 1px; font-size: 13px; }

/* FAQ list */
.faq-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.faq-row:last-child { border-bottom: 0; }
.faq-row:hover { background: var(--hover); }
.faq-num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.faq-text { flex: 1; min-width: 0; }
.faq-text strong { display: block; }
.faq-text p { color: var(--muted); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Settings list */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.list-row > div { flex: 1; min-width: 0; }
.list-row strong { display: block; }
.form-stack { display: grid; gap: 14px; }

/* ── Drawer ──────────────────────────────────────── */
.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(640px, 100vw);
  border: 0; padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: slide-in .22s ease; }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.drawer::backdrop { background: rgb(16 24 40 / 45%); backdrop-filter: blur(2px); }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer header, .drawer footer { display: flex; align-items: center; gap: 10px; padding: 18px 24px; }
.drawer header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 18px; font-weight: 800; }
.drawer footer { border-top: 1px solid var(--line); background: var(--surface-2); }
.drawer .spacer { flex: 1; }
/* max-content rows: sections keep their full height and the panel scrolls, instead of squeezing them */
.drawer-body { padding: 24px; overflow-y: auto; flex: 1; min-height: 0; display: grid; grid-auto-rows: max-content; gap: 18px; align-content: start; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.section-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 18px; }

.lead-head { display: flex; align-items: center; gap: 14px; }
.lead-head .avatar { width: 48px; height: 48px; font-size: 16px; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 150px 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 2px; } .kv dd { padding-top: 2px; } }
.kv dt, .kv dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-weight: 600; background: var(--surface-2); text-transform: capitalize; }
.kv dd { word-break: break-word; font-weight: 600; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.status-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.status-picker label { display: block; cursor: pointer; }
.status-picker input { position: absolute; opacity: 0; pointer-events: none; }
.status-picker .badge { padding: 7px 14px 7px 12px; border: 1px solid transparent; font-size: 13px; }
.status-picker input:checked + .badge { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 15%, transparent); }

.image-field { display: grid; gap: 10px; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 14px; display: flex; gap: 14px; align-items: center; background: var(--surface-2); }
.dropzone.drag { border-color: var(--gold); background: var(--gold-soft); }
.dropzone .preview { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--hover); flex: none; }
.dropzone .ph { width: 120px; height: 80px; border-radius: 8px; display: grid; place-items: center; background: var(--hover); color: var(--muted); flex: none; }
.dropzone .controls { display: grid; gap: 8px; }
.dropzone .controls div { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Toasts ──────────────────────────────────────── */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--surface); font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .2s ease; }
.toast i[data-icon] { color: #47cd89; }
.toast.error i[data-icon] { color: #f97066; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 520px) { .toasts { left: 16px; right: 16px; } .toast { min-width: 0; max-width: none; } }
