@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* =========================================================================
   Laycor design system v3 — hand-written, no build step.
   Tokens → base → shell → components → builder → utilities → responsive
   ========================================================================= */

:root {
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe; --brand-300: #a5b4fc; --brand-400: #818cf8;
  --brand-500: #6366f1; --brand-600: #4f46e5; --brand-700: #4338ca; --brand-800: #3730a3;
  --violet: #8b5cf6; --sky: #0ea5e9; --emerald: #10b981; --amber: #f59e0b; --rose: #f43f5e;

  --canvas: #f5f6fa;
  --canvas-glow: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.10), transparent 60%),
                 radial-gradient(900px 500px at 100% 0%, rgba(14,165,233,.08), transparent 55%);
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f8;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6e9f0;
  --line-2: #d5dae5;

  --success: #16a34a; --success-bg: #ecfdf5; --success-ink: #15803d;
  --warning: #d97706; --warning-bg: #fffbeb; --warning-ink: #b45309;
  --danger: #e11d48;  --danger-bg: #fff1f2;  --danger-ink: #be123c;
  --info: #0284c7;    --info-bg: #f0f9ff;    --info-ink: #0369a1;

  --radius-sm: 8px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 6px 20px -8px rgba(15,23,42,.10);
  --shadow-hover: 0 2px 4px rgba(15,23,42,.05), 0 16px 36px -12px rgba(15,23,42,.18);
  --shadow-pop: 0 0 0 1px rgba(15,23,42,.06), 0 24px 48px -16px rgba(15,23,42,.28);
  --ring: 0 0 0 4px rgba(99,102,241,.22);
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
  --grad-aurora: linear-gradient(120deg, #6366f1, #8b5cf6 45%, #0ea5e9);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 264px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

[data-theme="dark"], :root[data-theme="dark"] {
  --canvas: #0a0c12;
  --canvas-glow: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.16), transparent 60%),
                 radial-gradient(900px 500px at 100% 0%, rgba(14,165,233,.10), transparent 55%);
  --surface: #12151d; --surface-2: #171b25; --surface-3: #1d2230;
  --ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #94a3b8; --muted-2: #64748b;
  --line: #222838; --line-2: #2e3548;
  --brand-50: #1c1b45; --brand-100: #262366;
  --success-bg: #052e16; --success-ink: #4ade80;
  --warning-bg: #2a1c05; --warning-ink: #fbbf24;
  --danger-bg: #2d0a12; --danger-ink: #fb7185;
  --info-bg: #082f49;   --info-ink: #38bdf8;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-card: 0 0 0 1px rgba(255,255,255,.04), 0 8px 24px -10px rgba(0,0,0,.6);
  --shadow-hover: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -14px rgba(0,0,0,.7);
  --shadow-pop: 0 0 0 1px rgba(255,255,255,.08), 0 24px 48px -16px rgba(0,0,0,.8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0a0c12;
    --canvas-glow: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.16), transparent 60%),
                   radial-gradient(900px 500px at 100% 0%, rgba(14,165,233,.10), transparent 55%);
    --surface: #12151d; --surface-2: #171b25; --surface-3: #1d2230;
    --ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #94a3b8; --muted-2: #64748b;
    --line: #222838; --line-2: #2e3548;
    --brand-50: #1c1b45; --brand-100: #262366;
    --success-bg: #052e16; --success-ink: #4ade80;
    --warning-bg: #2a1c05; --warning-ink: #fbbf24;
    --danger-bg: #2d0a12; --danger-ink: #fb7185;
    --info-bg: #082f49;   --info-ink: #38bdf8;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-card: 0 0 0 1px rgba(255,255,255,.04), 0 8px 24px -10px rgba(0,0,0,.6);
    --shadow-hover: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -14px rgba(0,0,0,.7);
    --shadow-pop: 0 0 0 1px rgba(255,255,255,.08), 0 24px 48px -16px rgba(0,0,0,.8);
  }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); background-image: var(--canvas-glow); background-attachment: fixed;
  color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 17px; letter-spacing: -0.01em; }
h3 { font-size: 15px; letter-spacing: -0.01em; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: rgba(99,102,241,.25); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* App 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: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px -6px rgba(79,70,229,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.nav-section { margin-top: 10px; }
.nav-title { padding: 0 10px 8px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-2); }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin-bottom: 2px; border-radius: 10px;
  color: var(--ink-2); font-weight: 520; position: relative; transition: background .15s var(--ease), color .15s;
}
.nav-item:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.nav-item.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-brand); }
[data-theme="dark"] .nav-item.active { color: var(--brand-300); }
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-item.active svg { opacity: 1; }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--surface-3); padding: 1px 7px; border-radius: 999px; }
.sidebar-footer { margin-top: auto; padding-top: 14px; }
.trial-card { position: relative; overflow: hidden; background: var(--grad-brand); color: #fff; border-radius: 14px; padding: 14px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 10px 24px -10px rgba(79,70,229,.6); }
.trial-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 999px; background: rgba(255,255,255,.14); }
.trial-card strong { display: block; color: #fff; margin-bottom: 3px; font-size: 13px; }
.trial-card a { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 8px; position: relative; }
.trial-card a:hover { background: rgba(255,255,255,.26); text-decoration: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 24px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar .spacer { flex: 1; }
.account-switch { display: flex; align-items: center; gap: 8px; }
.account-switch select { max-width: 220px; height: 34px; }
.account-switch strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 220px; font-weight: 600; }
.topbar-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface-3); color: var(--muted); font-size: 13px; width: 300px; margin-left: 12px; cursor: text; }
.topbar-search svg { width: 15px; height: 15px; }
.topbar-search kbd { margin-left: auto; font: 11px var(--mono); color: var(--muted-2); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--ink-2); padding: 4px 6px 4px 4px; border-radius: 999px; }
.user-chip:hover { background: var(--surface-3); }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--grad-aurora); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.content { padding: 30px 28px 64px; max-width: 1280px; width: 100%; }
.content.wide { max-width: none; }

/* Page header ----------------------------------------------------------- */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-header .lead { color: var(--muted); margin-top: 6px; max-width: 660px; font-size: 14.5px; }
.page-header .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs { display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumbs span:first-child::before { content: none; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .15s; text-decoration: none; letter-spacing: -0.005em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 18px -8px rgba(79,70,229,.7); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 24px -8px rgba(79,70,229,.8); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--danger-bg); color: var(--danger-ink); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; display: inline-grid; place-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

/* Cards ----------------------------------------------------------------- */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--line); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
a.card:hover, .card.hoverable:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--line-2); text-decoration: none; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-header p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Grid helpers ---------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* Stat tiles ------------------------------------------------------------ */
.stat { padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 520; }
.stat .value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.05; font-variant-numeric: tabular-nums; grid-column: 1; }
.stat .delta { font-size: 12.5px; margin-top: 8px; color: var(--muted); grid-column: 1; }
.stat .stat-icon { grid-column: 2; grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.stat .stat-icon svg { width: 19px; height: 19px; }
.stat.danger .value { color: var(--danger-ink); }
.stat.danger .stat-icon { background: var(--danger-bg); color: var(--danger-ink); }
.stat.success .stat-icon { background: var(--success-bg); color: var(--success-ink); }
.stat.info .stat-icon { background: var(--info-bg); color: var(--info-ink); }

/* Forms ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label, .label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.hint { color: var(--muted); font-size: 12.5px; }
.error { color: var(--danger-ink); font-size: 12.5px; }
.input, select, textarea.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: var(--shadow-xs);
}
.input::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: var(--ring); outline: none; }
.input.is-invalid { border-color: var(--danger); }
.input-group { display: flex; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; margin-left: -1px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand-600); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .track { background: var(--brand-600); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Badges ---------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: -0.005em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.badge.neutral { background: var(--surface-3); color: var(--muted); }
.badge.success { background: var(--success-bg); color: var(--success-ink); }
.badge.warning { background: var(--warning-bg); color: var(--warning-ink); }
.badge.danger { background: var(--danger-bg); color: var(--danger-ink); }
.badge.info { background: var(--info-bg); color: var(--info-ink); }
.badge.brand { background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .badge.brand { color: var(--brand-300); }
.badge.plain::before { content: none; }

/* Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card > .table-wrap:first-child { border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: 11px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table td.actions, .table th.actions { text-align: right; white-space: nowrap; }
.table a.row-link { color: var(--ink); font-weight: 600; }
.table a.row-link:hover { color: var(--brand-600); text-decoration: none; }
.table .sub { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; font-weight: 400; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Empty state ----------------------------------------------------------- */
.empty { text-align: center; padding: 56px 24px; }
.empty .icon { width: 56px; height: 56px; border-radius: 18px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 16px; position: relative; }
.empty .icon::after { content: ""; position: absolute; inset: -10px; border-radius: 24px; background: var(--brand-50); opacity: .45; z-index: -1; }
.empty .icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 16.5px; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 420px; }

/* Flash ----------------------------------------------------------------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; border: 1px solid transparent; animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flash svg { width: 18px; height: 18px; flex: none; }
.flash.success { background: var(--success-bg); color: var(--success-ink); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.flash.warning { background: var(--warning-bg); color: var(--warning-ink); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }
.flash.danger { background: var(--danger-bg); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.flash.info { background: var(--info-bg); color: var(--info-ink); border-color: color-mix(in srgb, var(--info) 20%, transparent); }

/* Tabs ------------------------------------------------------------------ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; transition: color .15s; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }
[data-theme="dark"] .tab.active { color: var(--brand-300); }
.segmented { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 6px 13px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 13px; transition: all .15s; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }

/* Code block ------------------------------------------------------------ */
.code { background: #0b1020; color: #dbe4ff; border-radius: 14px; padding: 18px; overflow-x: auto; position: relative; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre; border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.code .copy { position: absolute; top: 10px; right: 10px; }
.code .copy .btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.code .copy .btn:hover { background: rgba(255,255,255,.16); }

/* Checklist ------------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; flex: none; transition: all .2s; }
.checklist .tick svg { width: 12px; height: 12px; }
.checklist li.done .tick { background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 18%, transparent); }
.checklist li.done span { color: var(--muted); text-decoration: line-through; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-aurora); border-radius: 999px; transition: width .4s var(--ease); }

/* Hero / welcome banner ------------------------------------------------- */
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 26px 28px; color: #fff; background: linear-gradient(120deg, #312e81 0%, #4338ca 40%, #6d28d9 100%); box-shadow: 0 20px 40px -20px rgba(67,56,202,.7); }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 90% -20%, rgba(14,165,233,.5), transparent 60%), radial-gradient(400px 200px at 10% 120%, rgba(244,63,94,.35), transparent 60%); }
.hero-card > * { position: relative; }
.hero-card h2 { color: #fff; font-size: 20px; }
.hero-card p { color: rgba(255,255,255,.8); margin-top: 6px; max-width: 560px; }
.hero-card .btn-secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.hero-card .btn-secondary:hover { background: rgba(255,255,255,.24); }
.hero-card .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }

/* Plugin cards ---------------------------------------------------------- */
.plugin-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; height: 100%; }
.plugin-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plugin-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-500) 12%, transparent); }
.plugin-icon svg { width: 21px; height: 21px; }
.plugin-card h3 { margin-top: 12px; font-size: 15.5px; }
.plugin-card .desc { color: var(--muted); font-size: 13px; flex: 1; margin-top: 4px; line-height: 1.5; }
.plugin-card .meta { font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.plugin-card .meta b { color: var(--ink-2); font-weight: 600; }
.plugin-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Kanban ---------------------------------------------------------------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.column { background: var(--surface-3); border-radius: 16px; padding: 12px; min-height: 260px; border: 1px solid var(--line); }
.column h4 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin: 2px 4px 12px; text-transform: uppercase; letter-spacing: .05em; }
.deal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); border: 1px solid var(--line); padding: 13px; margin-bottom: 10px; transition: transform .15s var(--ease), box-shadow .15s; }
.deal:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.deal .title { font-weight: 600; }
.deal .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.deal form { margin-top: 10px; }

/* Timeline -------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.timeline .dot { width: 28px; height: 28px; border-radius: 999px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface); }
.timeline .dot svg { width: 14px; height: 14px; }
.timeline .when { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Definition list ------------------------------------------------------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 13.5px; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; color: var(--ink); word-break: break-word; }

/* Dropdown / details ---------------------------------------------------- */
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; animation: rise .18s var(--ease); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); background: none; border: 0; cursor: pointer; font-weight: 500; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.menu-list .danger { color: var(--danger-ink); }

/* Auth pages ------------------------------------------------------------ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: #0f0d2e; color: #fff; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 20% 10%, rgba(99,102,241,.55), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(14,165,233,.45), transparent 60%), radial-gradient(500px 400px at 70% 30%, rgba(139,92,246,.4), transparent 60%); }
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(600px 500px at 50% 40%, #000, transparent 75%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 480px; letter-spacing: -0.03em; }
.auth-side p { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 460px; font-size: 15.5px; }
.auth-side ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.92); }
.auth-side li svg { width: 18px; height: 18px; color: #a5b4fc; flex: none; }
.auth-quote { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(8px); max-width: 480px; }
.auth-quote p { color: #fff; margin: 0; font-size: 14.5px; }
.auth-quote .who { color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 8px; }
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form .card { width: 100%; max-width: 440px; border-radius: 22px; }
.auth-form .card-body { padding: 36px; }
.auth-form h1 { font-size: 24px; }
.auth-form .sub { color: var(--muted); margin: 6px 0 26px; }

/* Form builder ---------------------------------------------------------- */
.builder { display: grid; grid-template-columns: 224px minmax(0, 1fr) 324px; gap: 16px; align-items: start; }
.builder.with-preview { grid-template-columns: 224px minmax(0, 1fr) 324px 420px; }
.builder-palette, .builder-inspector, .builder-preview { position: sticky; top: calc(var(--topbar-h) + 16px); }
.palette-grid { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 10px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed transparent; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; color: var(--ink-2); font-weight: 500; transition: all .15s; }
.palette-item:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); transform: translateX(2px); }
.palette-item svg { width: 16px; height: 16px; color: var(--muted); }
.palette-item:hover svg { color: var(--brand-600); }
.canvas-list { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 160px; }
.canvas-empty { padding: 8px; }
.canvas-item { grid-column: span 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.canvas-item.half { grid-column: span 1; }
.canvas-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-card); }
.canvas-item.selected { border-color: var(--brand-500); box-shadow: var(--ring); }
.canvas-item.dragging { opacity: .4; }
.canvas-item .handle { color: var(--muted-2); cursor: grab; display: grid; }
.canvas-item .handle svg { width: 16px; height: 16px; }
.canvas-item .meta { flex: 1; min-width: 0; }
.canvas-item .meta .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas-item .meta .kind { font-size: 12px; color: var(--muted); }
.canvas-item .flags { display: flex; gap: 4px; }
.canvas-item .flags span { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 7px; }
.builder-inspector .card-body .field + .field { margin-top: 12px; }
.inspector-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.options-list { display: grid; gap: 6px; }
.options-list .row { flex-wrap: nowrap; }
.builder-preview iframe { width: 100%; height: 70vh; border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: #fff; }

/* Utilities ------------------------------------------------------------- */
.muted { color: var(--muted); } .small { font-size: 12.5px; } .strong { font-weight: 600; } .ink { color: var(--ink); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1200px) { .builder, .builder.with-preview { grid-template-columns: 1fr; } .builder-palette, .builder-inspector, .builder-preview { position: static; } .palette-grid { grid-template-columns: repeat(3, 1fr); } .topbar-search { display: none; } }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-w); z-index: 40; transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: var(--shadow-pop); background: var(--surface); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .content { padding: 20px 16px 48px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .account-switch strong { max-width: 130px; }
  .user-chip > span:not(.avatar) { display: none; }
  .topbar .btn-sm span.btn-label { display: none; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 10px; }
  h1 { font-size: 23px; }
}

/* Calendar -------------------------------------------------------------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal-head { padding: 8px 10px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-day { min-height: 118px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.cal-day:nth-child(7n+1) { border-left: 0; } .cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: var(--surface-2); opacity: .6; }
.cal-day.today .cal-num { background: var(--brand-600); color: #fff; }
.cal-num { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cal-event { display: block; font-size: 12px; line-height: 1.25; padding: 4px 7px; border-radius: 7px; background: var(--brand-50); color: var(--brand-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--brand-500); }
.cal-event:hover { text-decoration: none; filter: brightness(.97); }
.cal-event span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.cal-event.success { background: var(--success-bg); color: var(--success-ink); border-left-color: var(--success); }
.cal-event.danger { background: var(--danger-bg); color: var(--danger-ink); border-left-color: var(--danger); }
.cal-event.info { background: var(--info-bg); color: var(--info-ink); border-left-color: var(--info); }
.avail { font-variant-numeric: tabular-nums; text-align: center; font-weight: 600; }
.avail.ok { background: var(--success-bg); color: var(--success-ink); } .avail.low { background: var(--warning-bg); color: var(--warning-ink); } .avail.none { background: var(--danger-bg); color: var(--danger-ink); }
.pod-page { max-width: 520px; margin: 0 auto; } .pod-page .btn { height: 52px; font-size: 16px; }
@media (max-width: 860px) { .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 11px; } .cal-day { min-height: 70px; padding: 4px; } .cal-event span { display: none; } }

/* ---- Field App (phone-first) ---- */
.field-list { display: flex; flex-direction: column; gap: 10px; }
.field-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color .15s, transform .15s; }
.field-card:hover { border-color: var(--brand-300); text-decoration: none; transform: translateY(-1px); }
.field-card.is-done { opacity: .6; }
.field-time { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border-radius: 12px; background: var(--surface-2); line-height: 1.1; }
.field-time strong { font-size: 17px; letter-spacing: -0.02em; }
.field-time span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.field-time small { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }
.field-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.field-title { font-size: 15px; }
.field-steps { display: grid; gap: 10px; }
.field-steps .btn { justify-content: center; }
.rot-90 { transform: rotate(90deg); }
.inline-icon { display: inline-flex; align-items: center; gap: 5px; }
.inline-icon svg { flex: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.signature img { object-fit: contain; background: #fff; }
.photo.signature span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: #fff; }
.signature-pad { position: relative; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface); }
.signature-pad canvas { width: 100%; height: 160px; display: block; touch-action: none; border-radius: 12px; }
.signature-pad button { position: absolute; right: 6px; top: 6px; }
.file-list { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) { .field-grid { grid-template-columns: 1fr; } .field-page .page-header .actions { width: 100%; } }

/* ---- Dispatch board ---- */
.dispatch-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.dispatch-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 220px; display: flex; flex-direction: column; transition: border-color .15s, background .15s; }
.dispatch-col.is-over { border-color: var(--brand-500); background: var(--brand-50); }
[data-theme="dark"] .dispatch-col.is-over { background: color-mix(in srgb, var(--brand-500) 12%, var(--surface-2)); }
.dispatch-col.is-unassigned { border-style: dashed; }
.dispatch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dispatch-drop { display: flex; flex-direction: column; gap: 8px; padding: 10px; flex: 1; }
.dispatch-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; cursor: grab; box-shadow: var(--shadow-xs); }
.dispatch-card.is-dragging { opacity: .5; }
.dispatch-card:active { cursor: grabbing; }
.dispatch-title { font-weight: 600; color: var(--ink); }
.dispatch-time { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; background: var(--surface-2); color: var(--ink); }
.dispatch-time:hover, .dispatch-time:focus { border-color: var(--line-2); outline: none; }
.dispatch-empty { padding: 18px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }

/* ---- Estimates editor ---- */
.estimate-tiers { gap: 14px; }
.tier-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.tier-card.recommended { border-color: var(--brand-400); background: var(--brand-50); }
[data-theme="dark"] .tier-card.recommended { background: color-mix(in srgb, var(--brand-500) 12%, var(--surface-2)); }
.tier-head { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.tier-head small { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
.tier-head input { accent-color: var(--brand-600); }
.tier-card .input-group { display: flex; align-items: center; }
.tier-card .input-group .prefix { padding: 0 10px; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .estimate-tiers { grid-template-columns: 1fr; } }

/* ---- Weather strip ---- */
.weather-strip { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.weather-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.weather-day.today { border-color: var(--brand-400); }
.weather-day.risky { background: var(--warning-bg); }
[data-theme="dark"] .weather-day.risky { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); }
.wd-head { display: flex; justify-content: space-between; align-items: baseline; }
.wd-icon { font-size: 28px; line-height: 1.1; }
.wd-temp strong { font-size: 18px; }
.wd-jobs { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.wd-job { font-size: 12.5px; color: var(--ink); text-decoration: none; display: flex; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wd-job span { color: var(--muted); flex: none; }
.wd-job.at-risk { color: var(--warning-ink); font-weight: 600; }
.stat.warning .value { color: var(--warning-ink); }
.stat.warning .stat-icon { background: var(--warning-bg); color: var(--warning-ink); }
.weather-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.weather-chip.risky { background: var(--warning-bg); color: var(--warning-ink); font-weight: 600; }
@media (max-width: 1024px) { .weather-strip { grid-template-columns: repeat(7, 170px); } }

/* ---- Assistant chat ---- */
.chat { display: flex; flex-direction: column; min-height: 560px; }
.chat-log { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; }
.chat-empty { text-align: center; margin: auto; max-width: 420px; }
.chat-empty .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 12px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chat-msg { display: flex; flex-direction: column; gap: 4px; max-width: 85%; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg .bubble { padding: 11px 14px; border-radius: 14px; background: var(--surface-2); white-space: pre-wrap; line-height: 1.5; }
.chat-msg.me .bubble { background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ai .bubble { border-bottom-left-radius: 4px; }
.bubble.thinking { color: var(--muted); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; }
