/* VYRL Portal — premium dark. Black / graphite / white / silver. Mobile first. */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f10;
  --surface: #141415;
  --surface-2: #1b1b1d;
  --surface-3: #232326;
  --line: #262628;
  --line-2: #343437;
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #71717a;
  --silver: #c8cbd2;
  --silver-hi: #eef0f4;
  --won: #8fd3a4;
  --won-bg: rgba(143, 211, 164, 0.12);
  --lost: #e39a9a;
  --lost-bg: rgba(227, 154, 154, 0.11);
  --est: #aebbd6;
  --est-bg: rgba(174, 187, 214, 0.12);
  --focus: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- wordmark */
.wordmark {
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e6e8ec 55%, #b9bcc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: -0.2em; /* optical: cancel trailing letter-spacing */
}
.wordmark--sm { font-size: 20px; }
.wordmark--xl { font-size: 46px; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.noscript { padding: 24px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__biz {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 11px; background: var(--surface);
}
.sidebar { display: none; }
.main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 1180px; margin: 0 auto; }

.demo-ribbon {
  display: flex; align-items: center; gap: 8px 10px; justify-content: center; flex-wrap: wrap;
  padding: 9px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: #0a0a0a; background: linear-gradient(90deg, #cfd2d8, #f1f2f4 50%, #cfd2d8);
  text-align: center;
}
.demo-ribbon b { letter-spacing: 0.14em; font-weight: 900; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(12, 12, 13, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  position: relative;
}
.tabbar a[aria-current='page'] { color: var(--text); }
.tabbar a[aria-current='page']::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--text);
}
.tabbar svg { width: 22px; height: 22px; }
.badge-dot {
  position: absolute; top: 10px; margin-left: 22px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: #000; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
}

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; background: linear-gradient(90deg, var(--bg-2) 247px, var(--line) 247px, var(--line) 248px, var(--bg) 248px); }
  .topbar, .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px;
    position: sticky; top: 0; height: 100vh; padding: 26px 16px 20px;
    border-right: 1px solid var(--line); background: var(--bg-2);
  }
  .sidebar .wordmark { font-size: 26px; padding: 0 10px 4px; }
  .sidebar__biz { padding: 0 10px 18px; color: var(--muted); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
    text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px;
  }
  .sidebar nav a:hover { background: var(--surface); color: var(--text); }
  .sidebar nav a[aria-current='page'] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
  .sidebar nav svg { width: 19px; height: 19px; }
  .sidebar nav .count { margin-left: auto; font-size: 12px; background: #fff; color: #000; border-radius: 999px; padding: 1px 8px; font-weight: 800; }
  .sidebar__foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }
  .sidebar__foot .tag { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
  .main { padding: 30px 36px 48px; width: 100%; }
}

/* ---------------------------------------------------------------- type + layout */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
h1 { font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.grid { display: grid; gap: 12px; }
@media (min-width: 900px) { h1 { font-size: 32px; } .grid { gap: 16px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card__head h2 { margin: 0; }
.link { color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.link:hover { color: #fff; text-decoration: underline; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }

/* ---------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; } }
.kpi {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 15px 14px; text-decoration: none; display: block; min-height: 112px;
  box-shadow: var(--shadow);
}
.kpi:hover { border-color: var(--line-2); }
.kpi__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi__value { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.kpi__note { font-size: 12.5px; color: var(--dim); }
.kpi__note .up { color: var(--won); }
.kpi--won .kpi__value { color: var(--won); }
.kpi--lost .kpi__value { color: var(--lost); }

.home-cols { display: grid; gap: 12px; }
@media (min-width: 1100px) { .home-cols { grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; } .home-cols .card + .card { margin-top: 16px; } }

/* pipeline */
.pipe-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin: 4px 0 14px; }
.pipe-bar span { display: block; height: 100%; }
.pipe-rows { display: grid; gap: 2px; }
.pipe-row {
  display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 6px; border-radius: 10px; text-decoration: none; min-height: 44px;
}
.pipe-row:hover { background: var(--surface-2); }
.pipe-row .sw { width: 10px; height: 10px; border-radius: 3px; }
.pipe-row .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.pipe-row .v { color: var(--dim); font-size: 12.5px; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.sw-new { background: #ffffff; }
.sw-contacted { background: var(--silver); }
.sw-estimate_sent { background: var(--est); }
.sw-won { background: var(--won); }
.sw-lost { background: var(--lost); }

/* sources */
.src-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 8px 0; }
.src-row + .src-row { border-top: 1px solid var(--line); }
.src-row .name { font-weight: 600; font-size: 14px; }
.src-row .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.src-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.src-row .bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: linear-gradient(90deg, #8d9099, #eef0f4); }

.foot-note { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12.5px; margin-top: 14px; }
.foot-note svg { width: 15px; height: 15px; flex: none; }

/* ---------------------------------------------------------------- leads list */
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.search {
  min-width: 0;
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
}
.search:focus-within { border-color: #6d6d73; }
.search svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; height: 100%; font-size: 15.5px; }
.search input::placeholder { color: var(--dim); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 14.5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: #f4f4f5; color: #0a0a0a; border-color: #f4f4f5; }
.btn--primary:hover { background: #ffffff; }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn .pill-n { background: #fff; color: #000; border-radius: 999px; font-size: 11.5px; padding: 1px 7px; font-weight: 800; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 19px; height: 19px; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.chip .n { color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 700; }
.chip[aria-pressed='true'] { background: #f4f4f5; color: #0a0a0a; border-color: #f4f4f5; }
.chip[aria-pressed='true'] .n { color: #52525b; }
@media (min-width: 900px) { .chips { margin: 0 0 4px; padding: 2px 0 12px; flex-wrap: wrap; overflow: visible; } }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.active-filters .chip { min-height: 34px; font-size: 12.5px; }

.lead-list { display: grid; gap: 8px; }
.lead-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start;
  padding: 14px 14px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; position: relative;
}
.lead-row:hover { border-color: var(--line-2); background: #171719; }
.lead-row[aria-current='true'] { border-color: #8a8a90; background: var(--surface-2); }
.lead-row__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lead-row__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row__when { color: var(--dim); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lead-row__what { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lead-row__src { color: var(--dim); font-size: 12.5px; }
.lead-row__val { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.unread { width: 8px; height: 8px; border-radius: 999px; background: #fff; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid transparent;
}
.pill-new { background: #f4f4f5; color: #0a0a0a; }
.pill-contacted { background: rgba(200, 203, 210, 0.13); color: var(--silver-hi); border-color: rgba(200, 203, 210, 0.25); }
.pill-estimate_sent { background: var(--est-bg); color: var(--est); border-color: rgba(174, 187, 214, 0.28); }
.pill-won { background: var(--won-bg); color: var(--won); border-color: rgba(143, 211, 164, 0.3); }
.pill-lost { background: var(--lost-bg); color: var(--lost); border-color: rgba(227, 154, 154, 0.28); }
.pill-sample { background: transparent; color: var(--muted); border: 1px dashed #55555b; }

.empty { text-align: center; padding: 42px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.more { margin-top: 12px; }

/* split view on wide screens */
.split { display: block; }
.split__detail-empty { display: none; }
@media (min-width: 1100px) {
  .split { display: grid; grid-template-columns: minmax(360px, 430px) 1fr; gap: 20px; align-items: start; }
  .split__list { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding-right: 4px; }
  .split__detail-empty { display: grid; place-items: center; min-height: 60vh; color: var(--dim); border: 1px dashed var(--line-2); border-radius: var(--radius); }
  .split--detail .split__list { display: block; }
}
@media (max-width: 1099.98px) { .split--detail .split__list { display: none; } }

/* ---------------------------------------------------------------- lead detail */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px; margin: -8px 0 6px; }
.back svg { width: 18px; height: 18px; }
@media (min-width: 1100px) { .split .back { display: none; } }
.detail-head { display: grid; gap: 12px; }
.detail-head h1 { overflow-wrap: anywhere; }
.detail-head .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper button {
  min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text-2); font-weight: 650; font-size: 13.5px; cursor: pointer; line-height: 1.15;
}
.stepper button:hover { background: var(--surface-3); }
.stepper button[aria-pressed='true'] { background: #f4f4f5; color: #0a0a0a; border-color: #f4f4f5; }
.stepper button.won[aria-pressed='true'] { background: var(--won); border-color: var(--won); }
.stepper button.lost[aria-pressed='true'] { background: var(--lost); border-color: var(--lost); }
@media (min-width: 600px) { .stepper { grid-template-columns: repeat(5, 1fr); } }

.dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.dl > div { padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.dl > div:first-child { border-top: 0; padding-top: 2px; }
.dl dt { color: var(--dim); font-size: 13px; font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; font-size: 14.5px; }
.dl dd a { color: var(--text); }
.message { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; margin: 2px 0 0; font-size: 15px; color: var(--text-2); }

.value-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.money { display: flex; align-items: center; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); padding: 0 14px; }
.money:focus-within { border-color: #6d6d73; }
.money span { color: var(--dim); font-weight: 700; margin-right: 6px; }
.money input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

.consent { border-color: #3b3b40; background: linear-gradient(180deg, #151517, #121213); }
.consent__status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.consent__status .dot { width: 10px; height: 10px; border-radius: 999px; }
.consent__status .yes { background: var(--won); }
.consent__status .no { background: #71717a; }
.lockline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lockline svg { width: 15px; height: 15px; flex: none; }
.consent__text { font-size: 13px; color: var(--text-2); white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 12.5px; margin-top: 10px; min-height: 32px; display: flex; align-items: center; }
details.raw pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: var(--text-2); background: #0b0b0c; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }

.detail-cols { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 1300px) { .detail-cols { grid-template-columns: 1fr 1fr; align-items: start; } .detail-cols .card + .card { margin-top: 12px; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 999px; background: var(--silver); }
.timeline li::after { content: ''; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li.note::before { background: #fff; }
.timeline .what { font-size: 14px; color: var(--text-2); }
.timeline .what b { color: var(--text); }
.timeline .body { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-top: 6px; font-size: 14px; }
.timeline .when { font-size: 12px; color: var(--dim); margin-top: 3px; }
.note-form textarea {
  width: 100%; min-height: 88px; resize: vertical; padding: 12px 13px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-2); outline: none; font-size: 15px;
}
.note-form textarea:focus { border-color: #6d6d73; }
.note-form .btn { margin-top: 10px; }

/* ---------------------------------------------------------------- dialog (filters) */
dialog.sheet {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0;
  width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; margin: auto auto 0; max-height: 88vh;
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
@media (min-width: 700px) { dialog.sheet { border-radius: 20px; margin: auto; } }
.sheet__body { padding: 18px 18px calc(18px + var(--safe-b)); display: grid; gap: 14px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__head h2 { margin: 0; color: var(--text); font-size: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.field select, .field input {
  height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none;
  font-size: 15px; width: 100%;
}
.field select:focus, .field input:focus { border-color: #6d6d73; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type='date'] { color-scheme: dark; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background:
  radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.07), transparent 60%), var(--bg); }
.login__card { width: 100%; max-width: 400px; }
.login__brand { text-align: center; margin-bottom: 30px; }
.login__brand .wordmark { font-size: 54px; }
.login__brand p { color: var(--dim); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin: 14px 0 0; font-weight: 700; }
.login .card { padding: 22px; }
.login h1 { font-size: 22px; }
.login form { display: grid; gap: 12px; margin-top: 16px; }
.login .field input { height: 52px; font-size: 16px; }
.login .btn { min-height: 52px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 18px 0; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.login__fine { text-align: center; color: var(--dim); font-size: 12px; margin-top: 18px; line-height: 1.5; }
.sent-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 14px; }
.sent-icon svg { width: 26px; height: 26px; }
.err { color: var(--lost); font-size: 13.5px; }
.devlink { word-break: break-all; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- account */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.setting p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background 0.15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #8a8a90; transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: #f4f4f5; }
.switch input:checked + span::after { transform: translateX(20px); background: #0a0a0a; }
.switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.domain { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; margin: 0 8px 8px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.domain::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: var(--won); }
.roadmap li { color: var(--muted); padding: 4px 0; }
.roadmap { margin: 0; padding-left: 18px; font-size: 14px; }

/* ---------------------------------------------------------------- toast + skeleton */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px);
  background: #f4f4f5; color: #0a0a0a; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.skeleton { height: 76px; border-radius: 14px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* small utilities (no inline styles: the CSP forbids them) */
.topbar .wordmark { text-decoration: none; }
a.src-row { text-decoration: none; color: inherit; }
.timeline { margin-top: 18px; }
.sub.tight { margin: 0 0 12px; }
.site-name { margin: 0 0 8px; }

@media (max-width: 420px) { #filters-btn > span:not(.pill-n) { display: none; } #filters-btn { padding: 0 14px; } }
.detail-cols > div, .split__detail, .split__list, .dl dd { min-width: 0; }
.dl dd a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.topbar .wordmark { padding: 12px 0; margin-top: -12px; margin-bottom: -12px; }
.money { min-width: 0; }
