/* Pillar & Partners brand: ivory, forest green, antique gold and walnut brown. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f5efe2;
  --surface: #fffcf5;
  --surface-2: #faf5ea;
  --border: #e6dbc5;
  --border-strong: #d4c5a7;
  --text: #1f1a13;
  --text-2: #4b4135;
  --muted: #7f735e;
  --accent: #1e3a2a;
  --accent-hover: #142a1e;
  --accent-ink: #f4e6c1;
  --accent-soft: #f1e8d2;
  --accent-text: #7a5a22;
  --gold: #b8913f;
  --gold-light: #e9cf8a;
  --gold-gradient: linear-gradient(100deg, #a9823a 0%, #e6cb86 48%, #b08838 100%);
  --brown: #4b3324;
  --call-icon: #e9cf8a;
  --side-bg: #13281c;
  --side-bg-2: #0f2117;
  --side-text: #e8dec6;
  --side-muted: #a49e88;
  --side-hover: rgba(233, 207, 138, .07);
  --side-active: rgba(233, 207, 138, .13);
  --side-active-text: #ecd391;
  --side-border: rgba(233, 207, 138, .16);
  --hot: #a5431d;
  --hot-soft: #f7e6dc;
  --warm: #8f6414;
  --warm-soft: #f5ead2;
  --cold: #65706a;
  --cold-soft: #ebebe4;
  --good: #2c6a44;
  --good-soft: #e3eedf;
  --bad: #a3291f;
  --bad-soft: #f6e3de;
  --info: #2f5873;
  --info-soft: #e4ecef;
  --violet: #6b4c7a;
  --violet-soft: #eee6ee;
  --shadow: 0 1px 2px rgba(60, 44, 20, .05), 0 3px 10px rgba(60, 44, 20, .05);
  --shadow-lg: 0 18px 48px rgba(30, 22, 10, .2), 0 2px 8px rgba(30, 22, 10, .08);
  --radius: 10px;
  --radius-sm: 7px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1510; --surface: #142019; --surface-2: #17251c; --border: #24372b; --border-strong: #324a3c;
    --text: #f1ead9; --text-2: #d0c7b1; --muted: #9b9482;
    --accent: #d2b262; --accent-hover: #e3c677; --accent-ink: #13200f; --accent-soft: #2a2a1b; --accent-text: #e2c87f;
    --gold: #d2b262; --gold-light: #ecd391; --brown: #c9a77c; --call-icon: #13200f;
    --side-bg: #0a110d; --side-bg-2: #08100b;
    --hot: #ee9468; --hot-soft: #36231a; --warm: #e3bd62; --warm-soft: #312915; --cold: #a3ada6; --cold-soft: #222a25;
    --good: #7fc79a; --good-soft: #1b2e22; --bad: #f08a7e; --bad-soft: #3a1f1b; --info: #93b9d6; --info-soft: #1b2a33;
    --violet: #c5a5d6; --violet-soft: #2c2333;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1510; --surface: #142019; --surface-2: #17251c; --border: #24372b; --border-strong: #324a3c;
  --text: #f1ead9; --text-2: #d0c7b1; --muted: #9b9482;
  --accent: #d2b262; --accent-hover: #e3c677; --accent-ink: #13200f; --accent-soft: #2a2a1b; --accent-text: #e2c87f;
  --gold: #d2b262; --gold-light: #ecd391; --brown: #c9a77c; --call-icon: #13200f;
  --side-bg: #0a110d; --side-bg-2: #08100b;
  --hot: #ee9468; --hot-soft: #36231a; --warm: #e3bd62; --warm-soft: #312915; --cold: #a3ada6; --cold-soft: #222a25;
  --good: #7fc79a; --good-soft: #1b2e22; --bad: #f08a7e; --bad-soft: #3a1f1b; --info: #93b9d6; --info-soft: #1b2a33;
  --violet: #c5a5d6; --violet-soft: #2c2333;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.25; }
h1, h2, h3, .brand-name { font-variant-numeric: lining-nums; }
h1 { font-family: var(--display); font-size: 31px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.1; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 620; }
p { margin: 0; }
.num, td.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 3px;
  padding: 20px 14px; background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  border-right: 1px solid var(--side-border); color: var(--side-text);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; margin-bottom: 6px; border-bottom: 1px solid var(--side-border); }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
.brand-name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.05; color: var(--side-active-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand > span { min-width: 0; }
.brand small { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 650; color: var(--side-muted); letter-spacing: .22em; text-transform: uppercase; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--side-text); font-weight: 500; text-decoration: none !important; opacity: .86; position: relative;
}
.nav-link svg { width: 17px; height: 17px; color: var(--side-muted); flex: none; }
.nav-link:hover { background: var(--side-hover); opacity: 1; }
.nav-link.active { background: var(--side-active); color: var(--side-active-text); opacity: 1; }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-gradient); }
.nav-link.active svg { color: var(--side-active-text); }
.nav-link .count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--side-bg); background: var(--gold-light); padding: 1px 7px; border-radius: 99px; }
.nav-section { font-size: 10px; font-weight: 650; color: var(--side-muted); text-transform: uppercase; letter-spacing: .2em; padding: 16px 10px 5px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--side-border); padding: 14px 4px 0; display: flex; align-items: center; gap: 10px; }
.sidebar-foot .muted { color: var(--side-muted); }
.sidebar .btn-ghost { color: var(--side-muted); }
.sidebar .btn-ghost:hover { background: var(--side-hover); color: var(--side-active-text); }
.sidebar .avatar { background: transparent; color: var(--side-active-text); box-shadow: inset 0 0 0 1px var(--gold); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 650; font-size: 12px; flex: none;
}
.main { min-width: 0; padding: 28px 32px 64px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 6px; }
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-105%);
    transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 40; }
  .mobile-bar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 16px;
    background: var(--side-bg); border-bottom: 1px solid var(--side-border); color: var(--side-active-text);
  }
  .mobile-bar .btn-ghost { color: var(--side-text); }
  .mobile-bar .brand-mark { width: 28px; height: 28px; }
  .mobile-bar strong { font-family: var(--display); font-size: 19px; font-weight: 600; }
  .main { padding: 18px 16px 64px; }
}

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 560; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(233, 207, 138, .22), 0 1px 2px rgba(20, 42, 30, .25); letter-spacing: .01em; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--border); border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-icon { width: 34px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }

label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 560; color: var(--text-2); }
label.field .hint { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-sm { height: 30px; font-size: 13px; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 32px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.card-body { padding: 16px 18px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 18px 20px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 20px; top: 0; width: 34px; height: 2px; background: var(--gold-gradient); }
.dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.tile .label { font-size: 11.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .09em; }
.tile .value { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1.05; margin-top: 6px; font-variant-numeric: lining-nums tabular-nums; }
.tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
.table th:first-child { border-top-left-radius: var(--radius); }
.table th:last-child { border-top-right-radius: var(--radius); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: var(--surface-2); }
.table tr.selected td { background: var(--accent-soft) !important; }
.table td.num, .table th.num { text-align: right; }
.table .w-check { width: 36px; padding-right: 0; }
.cell-title { font-weight: 580; color: var(--text); }
.cell-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 580; white-space: nowrap; background: var(--cold-soft); color: var(--cold);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.s-new { background: var(--info-soft); color: var(--info); }
.pill.s-attempted { background: var(--cold-soft); color: var(--cold); }
.pill.s-callback { background: var(--warm-soft); color: var(--warm); }
.pill.s-interested { background: var(--violet-soft); color: var(--violet); }
.pill.s-proposal { background: var(--violet-soft); color: var(--violet); }
.pill.s-won { background: var(--good-soft); color: var(--good); }
.pill.s-lost { background: var(--bad-soft); color: var(--bad); }
.pill.s-dnc { background: var(--bad-soft); color: var(--bad); }
.pill.t-hot { background: var(--hot-soft); color: var(--hot); }
.pill.t-warm { background: var(--warm-soft); color: var(--warm); }
.pill.t-cold { background: var(--cold-soft); color: var(--cold); }
.pill.d-pending { background: var(--warm-soft); color: var(--warm); }
.pill.d-approved { background: var(--info-soft); color: var(--info); }
.pill.d-paid { background: var(--good-soft); color: var(--good); }
.pill.d-void { background: var(--cold-soft); color: var(--cold); text-decoration: line-through; }
.pill.o-good { background: var(--good-soft); color: var(--good); }
.pill.o-mid { background: var(--warm-soft); color: var(--warm); }
.pill.o-bad { background: var(--bad-soft); color: var(--bad); }
.pill.o-none { background: var(--cold-soft); color: var(--cold); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab {
  padding: 9px 12px; border: 0; background: none; font: inherit; font-weight: 540; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab .c { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 2px; background: var(--border); border-radius: var(--radius-sm); gap: 2px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 540; color: var(--text-2); padding: 4px 10px; border-radius: 5px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Drawer / modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17, 18, 16, .32); z-index: 80; animation: fade .15s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg); z-index: 90;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease;
}
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.modal {
  position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(520px, calc(100vw - 32px));
  max-height: 80vh; overflow-y: auto; background: var(--surface); border-radius: 14px; z-index: 90;
  box-shadow: var(--shadow-lg); animation: pop .16s ease;
}
.modal-head { padding: 18px 20px 4px; }
.modal-body { padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 540; box-shadow: var(--shadow-lg);
  animation: pop .16s ease; max-width: calc(100vw - 32px);
}
.toast.error { background: var(--bad); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 6px) scale(.98); } }
.toast { animation-name: fade; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 4px; font-size: 15px; }
.empty .btn { margin-top: 14px; }
.kbd {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; font: 600 10.5px var(--mono);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--surface);
}
.divider { height: 1px; background: var(--border); }
.callout { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 13.5px; }
.callout.warn { background: var(--warm-soft); }
.callout.bad { background: var(--bad-soft); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 99px; padding: 3px 11px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.pagination { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 14px; border-top: 1px solid var(--border); }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 30px; bottom: -4px; width: 1px; background: var(--border); }
.tl-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.tl-icon svg { width: 12px; height: 12px; }
.tl-item.call .tl-icon { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.tl-item.deal .tl-icon { color: var(--good); background: var(--good-soft); border-color: transparent; }
.tl-meta { font-size: 12.5px; color: var(--muted); }
.tl-text { white-space: pre-wrap; margin-top: 2px; overflow-wrap: anywhere; }

/* Chart */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; position: relative; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.bar-col .bar { background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; transition: opacity .12s; }
.bar-col .bar.zero { background: var(--border); height: 2px !important; border-radius: 2px; }
.bar-col:hover .bar { opacity: .8; }
.bar-col .tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 6px 9px; border-radius: 7px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 5;
}
.bar-col:hover .tip { opacity: 1; }
.bar-col:first-child .tip { left: 0; transform: none; }
.bar-col:last-child .tip { left: auto; right: 0; transform: none; }
.bar-axis { display: flex; gap: 4px; margin-top: 6px; }
.bar-axis span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.hbar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbar .track { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- Dialer ---------- */
.dialer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1050px) { .dialer { grid-template-columns: 1fr; } }
.dial-biz { padding: 22px 24px; }
.dial-biz h1 { font-size: 36px; }
.call-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 60px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none !important; font-variant-numeric: tabular-nums; border: 0; cursor: pointer; transition: background .12s;
}
.call-btn:hover { background: var(--accent-hover); }
.call-btn svg { width: 22px; height: 22px; }
.call-btn.live { background: var(--hot); }
.timer { font: 600 13px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--hot-soft); color: var(--hot); }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.outcome {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 540;
  cursor: pointer; text-align: left; transition: border-color .1s, background .1s;
}
.outcome:hover { border-color: var(--muted); }
.outcome .kbd { margin-left: auto; }
.outcome.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.outcome.sold.sel { border-color: var(--good); background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); }
.script { white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.script mark { background: var(--warm-soft); color: var(--text); padding: 0 3px; border-radius: 3px; }
.talking { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.score-ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 207, 138, .14), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(107, 74, 48, .45), transparent 55%),
    linear-gradient(180deg, #16301f 0%, #0d1d13 100%);
}
.auth-card {
  width: min(420px, 100%); padding: 34px 32px 30px; background: var(--surface); border: 1px solid rgba(233, 207, 138, .5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 4px var(--surface), inset 0 0 0 5px rgba(184, 145, 63, .35);
  border-radius: 14px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 22px; }
.auth-brand img { width: 108px; height: 108px; filter: drop-shadow(0 6px 14px rgba(19, 40, 28, .3)); }
.auth-brand .brand-name { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.auth-brand small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-text); font-weight: 650; display: flex; align-items: center; gap: 10px; }
.auth-brand small::before, .auth-brand small::after { content: ""; width: 28px; height: 1px; background: var(--gold-gradient); }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; text-align: center; }
.auth-card h1 + p { text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.auth-card .btn { height: 42px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(233, 207, 138, .6); }

/* ---------- Brand finishing touches ---------- */
.page-head h1 + p, .page-head p { font-size: 14px; }
.drawer-head h2, .modal-head h2 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.drawer-head h2 { font-size: 27px; }
.empty h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.card { border-color: var(--border); }
.tabs .tab.active { border-bottom-color: var(--gold); }
.hbar .fill { background: var(--gold-gradient); }
.outcome.sel { border-color: var(--gold); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.callout { background: var(--accent-soft); }
.script mark { background: rgba(233, 207, 138, .35); }
.call-btn { box-shadow: inset 0 1px 0 rgba(233, 207, 138, .25), 0 8px 22px rgba(19, 40, 28, .22); letter-spacing: .02em; }
.call-btn svg { color: var(--call-icon); }
.call-btn.live svg { color: #fff; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 145, 63, .18); }
:focus-visible { outline-color: var(--gold); }
.chip:hover { border-color: var(--gold); }
.check input, input[type="checkbox"] { accent-color: var(--accent); }
.toast { background: var(--side-bg); color: var(--side-active-text); border: 1px solid var(--side-border); }
.mobile-bar .btn-primary { background: var(--gold-gradient); border-color: transparent; color: #1a140a; }
.btn-primary:disabled { background: var(--border-strong); border-color: var(--border-strong); color: var(--muted); box-shadow: none; }
