/* Layout: light sidebar rail + translucent top bar over a soft canvas; cards carry a hairline border and a soft shadow. */
:root {
  --bg: #f4f6fb; --panel: #ffffff; --fill: #eff2f8; --fill-2: #f7f8fc; --lane: #eaeef6; --line: #e3e7f0; --line-strong: #cfd6e3;
  --ink: #111727; --muted: #4c5468; --faint: #a4acbd;
  --brand: #3d5afe; --brand-ink: #ffffff; --on-accent: #ffffff; --brand-soft: #ebefff; --brand-soft-2: #d5dcff;
  --ok: #10915a; --ok-soft: #e3f6ec; --warn: #c26400; --warn-soft: #fff1df; --bad: #d63a3a; --bad-soft: #fdebea;
  --violet-soft: #f0eaff; --note-soft: #fff7d6; --today: #f2f5ff;
  --sidebar: #ffffff; --sidebar-ink: #4b5468; --sidebar-active: #ebefff; --sidebar-active-ink: #3d5afe;
  --topbar: rgba(255, 255, 255, .78); --input: #ffffff; --overlay: rgba(12, 16, 28, .45); --toast: #111727; --toast-ink: #ffffff;
  --shadow: 0 1px 2px rgba(17, 23, 39, .04), 0 6px 20px rgba(17, 23, 39, .06);
  --shadow-lg: 0 24px 60px rgba(17, 23, 39, .20);
  --radius: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --series-1: #3d5afe; --series-2: #0f9488;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a0d14; --panel: #121722; --fill: #1a2030; --fill-2: #161b28; --lane: #141926; --line: #232a3b; --line-strong: #323b51;
  --ink: #eef1f7; --muted: #b0b8ca; --faint: #5c657a;
  --brand: #6b82ff; --brand-ink: #ffffff; --on-accent: #ffffff; --brand-soft: rgba(107, 130, 255, .15); --brand-soft-2: rgba(107, 130, 255, .30);
  --ok: #3ccf8e; --ok-soft: rgba(60, 207, 142, .13); --warn: #ffb24d; --warn-soft: rgba(255, 178, 77, .13); --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .13);
  --violet-soft: rgba(167, 139, 250, .15); --note-soft: rgba(250, 204, 21, .12); --today: rgba(107, 130, 255, .07);
  --sidebar: #0e121b; --sidebar-ink: #a2aabd; --sidebar-active: rgba(107, 130, 255, .16); --sidebar-active-ink: #c4ceff;
  --topbar: rgba(14, 18, 27, .72); --input: #0f131d; --overlay: rgba(0, 0, 0, .62); --toast: #e9ecf4; --toast-ink: #0a0d14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --series-1: #6b82ff; --series-2: #0ea594;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0a0d14; --panel: #121722; --fill: #1a2030; --fill-2: #161b28; --lane: #141926; --line: #232a3b; --line-strong: #323b51;
  --ink: #eef1f7; --muted: #b0b8ca; --faint: #5c657a;
  --brand: #6b82ff; --brand-ink: #ffffff; --on-accent: #ffffff; --brand-soft: rgba(107, 130, 255, .15); --brand-soft-2: rgba(107, 130, 255, .30);
  --ok: #3ccf8e; --ok-soft: rgba(60, 207, 142, .13); --warn: #ffb24d; --warn-soft: rgba(255, 178, 77, .13); --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .13);
  --violet-soft: rgba(167, 139, 250, .15); --note-soft: rgba(250, 204, 21, .12); --today: rgba(107, 130, 255, .07);
  --sidebar: #0e121b; --sidebar-ink: #a2aabd; --sidebar-active: rgba(107, 130, 255, .16); --sidebar-active-ink: #c4ceff;
  --topbar: rgba(14, 18, 27, .72); --input: #0f131d; --overlay: rgba(0, 0, 0, .62); --toast: #e9ecf4; --toast-ink: #0a0d14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --series-1: #6b82ff; --series-2: #0ea594;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1, 'cv11' 1; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; } h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 14px; }

/* login */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--panel); border: 1px solid var(--line); padding: 36px; border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; max-width: 380px; display: grid; gap: 14px; }
.err { color: var(--bad); min-height: 1em; margin: 0; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: var(--sidebar); color: var(--sidebar-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; flex-shrink: 0; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); padding: 4px 10px 22px; }
.brand.big { color: var(--ink); font-size: 22px; padding: 0 0 8px; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, var(--brand), #00b3a4); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 16px rgba(61, 90, 254, .35); }
nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: inherit; margin-bottom: 3px; font-weight: 600; transition: background .15s, color .15s; }
nav a i { font-style: normal; width: 22px; text-align: center; }
nav a:hover { background: var(--fill); color: var(--ink); }
nav a.active { background: var(--sidebar-active); color: var(--sidebar-active-ink); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; gap: 10px; align-items: center; padding: 12px 24px; background: var(--topbar); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.search-wrap { flex: 1; max-width: 560px; position: relative; } .search { width: 100%; }
.bell { position: relative; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; cursor: pointer; font-size: 16px; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--bad); color: var(--on-accent); border-radius: 99px; font-size: 12.5px; padding: 1px 6px; font-weight: 700; }
.me { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.view { padding: 28px; max-width: 1440px; width: 100%; animation: viewIn .28s ease-out; }
@keyframes viewIn { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* controls */
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--input); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
label { display: grid; gap: 5px; font-size: 14px; color: var(--muted); font-weight: 500; }
.btn { font: inherit; font-weight: 650; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 9px 15px; border-radius: 11px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:hover { background: var(--fill-2); border-color: var(--line-strong); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 4px 14px rgba(61, 90, 254, .28); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.sm { padding: 5px 10px; font-size: 14px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.ok { background: var(--ok); color: var(--on-accent); border-color: var(--ok); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spacer { flex: 1; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat .num { font-size: 32px; font-weight: 800; letter-spacing: -.03em; } .stat .lbl { color: var(--muted); font-size: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.list-item:first-of-type { border-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); padding: 16px 0; text-align: center; }
.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--fill); color: var(--muted); }
.pill.new { background: var(--brand-soft); color: var(--brand); } .pill.working { background: var(--warn-soft); color: var(--warn); }
.pill.sold, .pill.available { background: var(--ok-soft); color: var(--ok); } .pill.lost, .pill.removed { background: var(--bad-soft); color: var(--bad); }
.pill.overdue { background: var(--bad-soft); color: var(--bad); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); background: var(--panel); cursor: pointer; flex-shrink: 0; display: grid; place-items: center; }
.check.done { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--fill-2); }
.table-wrap { overflow-x: auto; }

/* customer page */
.cust-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.cust-head .avatar { width: 56px; height: 56px; font-size: 20px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.cust-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.composer .tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.composer .tabs button { border: 0; background: var(--fill); padding: 6px 12px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.composer .tabs button.on { background: var(--brand); color: var(--on-accent); }
.composer-box { position: relative; }
.mention-menu { position: absolute; left: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 10; min-width: 220px; overflow: hidden; }
.mention-menu div { padding: 8px 12px; cursor: pointer; } .mention-menu div.on, .mention-menu div:hover { background: var(--brand-soft); }
.timeline { margin-top: 16px; }
.tl { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); flex-shrink: 0; font-size: 14px; }
.tl.note .ico { background: var(--note-soft); } .tl.call .ico { background: var(--ok-soft); } .tl.text .ico { background: var(--brand-soft); }
.tl.stage .ico { background: var(--violet-soft); } .tl.system .ico, .tl.task .ico { background: var(--fill); }
.tl .body { white-space: pre-wrap; word-wrap: break-word; }
.mention { background: var(--brand-soft); color: var(--brand); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.stage-bar { display: flex; gap: 3px; margin: 8px 0; flex-wrap: wrap; }
.stage-bar button { flex: 1; min-width: 60px; border: 0; padding: 6px 4px; font: inherit; font-size: 12.5px; font-weight: 600; background: var(--fill); color: var(--muted); cursor: pointer; }
.stage-bar button:first-child { border-radius: 8px 0 0 8px; } .stage-bar button:last-child { border-radius: 0 8px 8px 0; }
.stage-bar button.past { background: var(--brand-soft-2); color: var(--brand); } .stage-bar button.on { background: var(--brand); color: var(--on-accent); }
.stage-bar button.lost.on { background: var(--bad); }

/* pipeline */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.lane { background: var(--lane); border: 1px solid var(--line); border-radius: var(--radius); min-width: 240px; width: 240px; padding: 10px; flex-shrink: 0; }
.lane h3 { font-size: 14px; margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.lane.drag { outline: 2px dashed var(--brand); }
.deal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: grab; transition: transform .15s, box-shadow .15s; }
.deal:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.deal .nm { font-weight: 600; } .deal .veh { font-size: 14px; color: var(--muted); }

/* inventory */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.car { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.car:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.car .ph { height: 140px; background: linear-gradient(135deg, var(--fill), var(--brand-soft-2)); display: grid; place-items: center; font-size: 42px; background-size: cover; background-position: center; }
.car .info { padding: 12px; } .car .t { font-weight: 700; } .car .price { font-size: 18px; font-weight: 700; color: var(--brand); }
.age.hot { color: var(--bad); font-weight: 600; }

/* notifications */
.notif-panel { position: fixed; top: 64px; right: 16px; width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 20; padding: 8px 16px; }
.notif { padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; } .notif.unread { font-weight: 600; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 30; padding: 16px; }
.modal-card { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: popin .2s ease-out; border-radius: 20px; padding: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; display: grid; gap: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--toast); color: var(--toast-ink); font-weight: 600; padding: 12px 18px; border-radius: 10px; z-index: 40; box-shadow: var(--shadow); }

/* phone layout: bottom nav */
@media (max-width: 820px) {
  .sidebar { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; width: 100%; padding: 6px; z-index: 10; }
  .sidebar .brand { display: none; }
  nav { display: flex; justify-content: space-around; }
  nav a { flex-direction: column; gap: 2px; font-size: 14px; padding: 6px 4px; margin: 0; }
  nav a i { font-size: 18px; }
  .view { padding: 14px 16px 90px; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .search-wrap { order: 5; flex-basis: 100%; max-width: none; }
  .cust-grid { grid-template-columns: minmax(0, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* desking */
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.desk-form { display: grid; gap: 12px; } .desk-form h2 { margin: 8px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-grid td, .pay-grid th { text-align: center; padding: 6px; } .pay-grid td:first-child { text-align: left; }
.pay { font: inherit; font-weight: 700; width: 100%; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.pay:hover { border-color: var(--brand); } .pay.on { background: var(--brand); color: var(--on-accent); border-color: var(--brand); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.sum-line.total { border-top: 1px solid var(--line); font-weight: 700; padding-top: 8px; } .sum-line.neg span:last-child { color: var(--bad); }
.big-pay { text-align: center; font-size: 40px; font-weight: 800; color: var(--brand); margin-top: 10px; } .big-pay span { font-size: 18px; color: var(--muted); }
.print-area { display: none; }
@media (max-width: 1000px) { .desk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr 1fr; } }

/* printable offer sheet */
@media print {
  body { background: var(--panel); } .shell > .sidebar, .topbar, .view, .toast, .live-stack, .modal, .notif-panel { display: none !important; }
  .print-area { display: block; } .main { display: block; }
}
.offer { font: 14px/1.5 Georgia, "Times New Roman", serif; color: #000; padding: 24px; }
.offer-head { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 14px; }
.offer h1 { font-size: 24px; margin: 0; } .offer h2 { font-size: 17px; margin: 16px 0 6px; }
.offer-table, .offer-grid { width: 100%; border-collapse: collapse; margin-top: 8px; }
.offer-table td { padding: 6px 4px; border-bottom: 1px solid #ccc; } .offer-table td:last-child { text-align: right; }
.offer-table .tot td { font-weight: 700; border-top: 2px solid #000; }
.offer-grid th, .offer-grid td { border: 1px solid #999; padding: 8px; text-align: center; } .offer-grid .sel { background: #eee; font-weight: 700; outline: 2px solid #000; }
.offer .fine { font-size: 12.5px; color: #444; margin-top: 12px; } .offer .sign { display: flex; gap: 40px; margin-top: 36px; } .offer .sign > div { flex: 1; }

/* live alerts */
.live-stack { position: fixed; bottom: 20px; right: 16px; z-index: 50; display: grid; gap: 10px; width: 380px; max-width: calc(100vw - 32px); }
.live-pop { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg); border-left: 5px solid var(--brand); animation: popin .25s ease-out; }
.live-pop.urgent { border-left-color: var(--warn); animation: popin .25s ease-out, nudge .6s .3s 2; }
.live-pop.out { opacity: 0; transform: translateX(30px); transition: .25s; }
.live-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; font-weight: 800; color: var(--brand); }
.live-title { font-weight: 700; }
@keyframes popin { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* videos */
.video-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.progress { height: 8px; background: var(--fill); border-radius: 99px; overflow: hidden; } .progress div { height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.ico-sq { width: 38px; height: 38px; border-radius: 10px; background: var(--violet-soft); display: grid; place-items: center; flex-shrink: 0; }

.duty { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.duty.on { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
@media (max-width: 820px) { .live-stack { bottom: 80px; } }

/* schedule & team */
.sched-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sched-top .lbl { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--fill); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--ok-soft); color: var(--ok); } .chip.on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chip.duty { background: var(--brand-soft); color: var(--brand); }
.next-up { font-size: 20px; font-weight: 800; }
table.sched { min-width: 900px; } table.sched td, table.sched th { padding: 6px; text-align: center; } table.sched td:first-child, table.sched th:first-child { text-align: left; min-width: 190px; }
table.sched th.today, table.sched td.today { background: var(--today); }
.team-row td { background: var(--fill-2); font-weight: 700; font-size: 14px; text-align: left !important; }
.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; } .team-dot.lg { width: 14px; height: 14px; margin: 0; }
.shift { font: inherit; font-size: 14px; font-weight: 700; width: 100%; min-width: 74px; border-radius: 8px; padding: 7px 4px; border: 1px solid transparent; cursor: pointer; }
.shift.on { background: var(--brand-soft); color: var(--brand); } .shift.off { background: transparent; color: var(--faint); border-color: var(--line); border-style: dashed; }
.shift.ovr { background: var(--warn-soft); color: var(--warn); } .shift:disabled { cursor: default; }
.avatar.sm { width: 30px; height: 30px; font-size: 14px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); vertical-align: middle; }
.link-btn { border: 0; background: none; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--panel); border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(18px); } .switch input:disabled + span { opacity: .6; cursor: default; }
.pat-week { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; } .pat-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.pat-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pat-day { display: grid; gap: 4px; padding: 6px; border-radius: 8px; background: var(--fill-2); align-content: start; } .pat-day.on { background: var(--brand-soft); }
.pat-day input[type=time] { padding: 4px; font-size: 14px; } .pat-toggle { display: flex; flex-direction: row; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; }
.pat-toggle input { width: auto; }
@media (max-width: 700px) { .pat-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.perm-help { margin-top: 14px; } .perm-help summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.perm-table th { font-size: 14px; text-transform: none; letter-spacing: 0; vertical-align: bottom; } .perm-table td { text-align: center; color: var(--ok); font-weight: 700; } .perm-table td:first-child { text-align: left; color: var(--ink); white-space: nowrap; }

.modal-card.wide { max-width: 860px; }

/* accessories */
.acc-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px dashed var(--line-strong); background: var(--panel); border-radius: 99px; padding: 4px 10px; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.acc-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; }
.acc-row.no-cost { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.acc-head { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.gross-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); }

.acc-row.cat { grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto; }
.email-body { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Menlo, monospace; background: var(--fill-2); border-radius: 8px; padding: 10px; margin: 6px 0 0; }
.acc-vendor { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: -2px; }

.send-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: end; }
.send-as { display: flex; flex-direction: row; align-items: center; gap: 6px; } .send-as select { width: auto; }
#emailSubject { flex: 1; min-width: 200px; }

/* theme switch + motion preferences */
.theme-btn { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 11px; padding: 7px 10px; cursor: pointer; font-size: 16px; line-height: 1; }
.theme-btn:hover { background: var(--fill-2); }
.sidebar .brand-text { color: var(--ink); }
.login { background: radial-gradient(1200px 500px at 20% -10%, var(--brand-soft), transparent), var(--bg); }
.stat { position: relative; overflow: hidden; } .stat .lbl { font-weight: 600; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--brand-soft); opacity: .7; }
.pill { letter-spacing: .01em; }
.offer-preview { background: #fff; color: #000; }
@media (max-width: 820px) { .sidebar { border-right: 0; border-top: 1px solid var(--line); } nav a.active { background: var(--sidebar-active); } .view { padding: 16px 16px 92px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* global search dropdown */
.search-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; max-height: 70vh; overflow: auto; }
.sm-head { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.sm-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.sm-item:hover { background: var(--fill); } .sm-item .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-all { color: var(--brand); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
.avatar.xs { width: 26px; height: 26px; font-size: 12.5px; }
/* stock numbers */
.stock-chip { display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--fill); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stock-row { margin-top: 8px; } .stock-add { display: flex; gap: 8px; margin-top: 12px; } .stock-add input { flex: 1; min-width: 0; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn.ghost:hover { color: var(--bad); background: var(--bad-soft); }
/* reports */
.seg { display: inline-flex; background: var(--fill); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .rep-tabs button:not(.btn) { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.rep-tabs { gap: 4px; flex-wrap: wrap; } .rep-tabs button.on { background: var(--brand); color: var(--on-accent); }
.date-in { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); } .date-in input { width: auto; padding: 6px 8px; }
.rep-table .num-col { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-left: 12px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.key.k1 { background: var(--series-1); } .key.k2 { background: var(--series-2); height: 3px; border-radius: 2px; vertical-align: 3px; }
.chart { position: relative; margin-top: 10px; }
.chart .grid { stroke: var(--line); stroke-width: 1; } .chart .axis { fill: var(--muted); font-size: 12.5px; font-family: var(--font); }
.chart .bar { fill: var(--series-1); } .chart .ln { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; } .chart .pt { fill: var(--series-2); stroke: var(--panel); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .tip { position: absolute; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 8px 10px; font-size: 14px; pointer-events: none; min-width: 110px; color: var(--ink); }

/* data mining */
.chip-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.presets { gap: 8px; flex-wrap: wrap; }
.mine-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .mine-grid { grid-template-columns: 1fr; } }
.mine-filters { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
@media (max-width: 900px) { .mine-filters { position: static; max-height: none; } }
.mf-group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: grid; gap: 10px; }
.mf-head { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mf label { font-size: 14px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.mf-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; } .mf-range span { font-size: 14px; color: var(--faint); }
.mf input, .mf select { padding: 7px 9px; font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex !important; align-items: center; gap: 0; margin: 0 !important; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; font-size: 13px !important; color: var(--ink) !important; }
.chip input { display: none; } .chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-accent) !important; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); } .chk input { width: auto; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin: 12px 0; border-radius: 12px; background: var(--brand-soft); }
.bulk-bar.idle { background: var(--fill); } .bulk-bar.idle b { color: var(--muted); font-weight: 600; }
.mine-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; } .mine-table th.on { color: var(--brand); }
.mine-table tr.sel td { background: var(--today); } .mine-table td input, .mine-table th input { width: auto; }
.mine-table td.hot { color: var(--bad); font-weight: 700; } .mine-table .num-col { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.dt-purchase { background: var(--brand-soft); color: var(--brand); } .pill.dt-lease { background: var(--violet-soft); color: #7c4dff; } .pill.dt-cash { background: var(--ok-soft); color: var(--ok); }
.preview-box { background: var(--fill); border-radius: 12px; padding: 10px 12px; } #bulkPrev { white-space: pre-wrap; font-size: 14px; margin-top: 4px; }
.list-item.owned { margin-top: 8px; align-items: flex-start; }
.rep-filters { gap: 10px; flex-wrap: wrap; }
.mine-table td { white-space: nowrap; } .mine-table td .muted.small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mine-grid > * { min-width: 0; }

/* 360° studio */
.studio { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } }
.studio-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(120% 90% at 50% 20%, var(--panel) 0%, var(--fill) 60%, var(--lane) 100%); position: sticky; top: 76px; }
@media (max-width: 980px) { .studio-stage { position: relative; top: 0; } }
.viz { height: min(62vh, 560px); min-height: 300px; } .viz canvas { display: block; }
.viz-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); }
.viz-hint { position: absolute; left: 14px; top: 12px; font-size: 14px; color: var(--muted); background: var(--panel); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.viz-views { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); }
.viz-views button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 9px; cursor: pointer; }
.viz-views button:hover { color: var(--ink); } .viz-views button.on { background: var(--brand); color: var(--on-accent); }
.viz-tags { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.viz-tags span { font-size: 14px; font-weight: 600; background: var(--brand); color: var(--on-accent); padding: 3px 10px; border-radius: 99px; }
.studio-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.studio-title { display: flex; gap: 12px; align-items: flex-start; } .studio-title h2 { margin: 2px 0 0; font-size: 18px; } .studio-title > div:first-child { flex: 1; }
.studio-price { font-size: 18px; font-weight: 800; }
.pay-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); }
.pay-now { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; } .pay-now span { font-size: 15px; font-weight: 600; color: var(--muted); }
.pay-diff { text-align: right; } .pay-diff b { color: var(--brand); font-size: 18px; }
.acc-groups { display: grid; gap: 12px; }
.acc-group-h { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.acc-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; cursor: pointer; transition: border-color .15s, background .15s; }
.acc-tile:hover { border-color: var(--line-strong); } .acc-tile.on { border-color: var(--brand); background: var(--brand-soft); }
.acc-tile input { display: none; }
.acc-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.acc-tile.on .acc-check { background: var(--brand); border-color: var(--brand); } .acc-tile.on .acc-check::after { content: "✓"; color: var(--on-accent); font-size: 14px; font-weight: 800; }
.acc-name { font-weight: 600; font-size: 14px; } .acc-pay { text-align: right; display: grid; } .acc-pay b { font-size: 14px; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
/* customer build page */
.customer-build { min-height: 100%; } .cb-wrap { max-width: 1240px; margin: 0 auto; padding: 16px; }
.cb-top { display: flex; align-items: center; gap: 10px; padding: 6px 0 14px; font-size: 17px; }
.cb-intro h1 { margin: 6px 0 4px; } .cb-intro p { margin: 0 0 14px; }
.studio-actions .btn.wide { flex: 1 1 100%; justify-content: center; }
.viz-views button { white-space: nowrap; }
@media (max-width: 600px) { .viz { height: 44vh; min-height: 260px; } .viz-views button { padding: 6px 8px; } .viz-hint { display: none; } }
@media (max-width: 820px) { nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } nav::-webkit-scrollbar { display: none; } nav a { flex: 0 0 auto; min-width: 62px; } }
@media (max-width: 600px) { .viz-tags { display: none; } }

/* appointments, appraisals, lead sources */
.appt-when { display: grid; text-align: center; min-width: 58px; padding: 4px 6px; border-radius: 10px; background: var(--fill); line-height: 1.2; } .appt-when span { font-size: 12.5px; color: var(--muted); }
.list-item.appt { margin-top: 8px; align-items: flex-start; } .list-item.appt .grow { min-width: 0; } .appt-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; } .list-item.appt.cancelled { opacity: .5; }
.pill.appt-confirmed, .pill.appt-showed { background: var(--ok-soft); color: var(--ok); } .pill.appt-no_show { background: var(--bad-soft); color: var(--bad); } .pill.appt-scheduled { background: var(--brand-soft); color: var(--brand); }
.list-item.appr { color: var(--ink); margin-top: 8px; } .list-item.appr img, .appr-ph { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--fill); display: grid; place-items: center; flex-shrink: 0; }
.appr-thumbs { display: flex; gap: 6px; flex-wrap: wrap; } .appr-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.appr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } .appr-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.appr-desk { background: var(--ok-soft); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; } .src-grid > div { background: var(--fill); border-radius: 12px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.src-grid code { font-size: 14px; word-break: break-all; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

/* playbooks, credit, service drive */
.pb-run { background: var(--fill); border-radius: 12px; padding: 10px 12px; margin-top: 8px; display: grid; gap: 6px; } .pb-run.stopped, .pb-run.done { opacity: .65; }
.pb-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.pb-step { display: inline-grid; place-items: center; min-width: 38px; padding: 3px 4px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; line-height: 1.1; }
.pb-step i { font-style: normal; font-size: 14px; color: var(--muted); } .pb-step.ok { background: var(--ok-soft); border-color: transparent; } .pb-step.skip { background: var(--warn-soft, var(--fill)); border-style: dashed; }
.pb-list { display: grid; gap: 14px; } .pb-card { display: grid; gap: 10px; } .pb-name { font-weight: 700; font-size: 17px; max-width: 420px; }
.pb-edit-steps { display: grid; gap: 8px; }
.pb-edit-step { display: grid; grid-template-columns: auto 70px 190px 1fr auto; gap: 8px; align-items: start; background: var(--fill); border-radius: 12px; padding: 8px 10px; }
.pb-text { display: grid; gap: 6px; padding-top: 18px; } .pb-link { color: var(--ink); margin-top: 16px; align-items: center; }
@media (max-width: 700px) { .pb-edit-step { grid-template-columns: auto 70px 1fr auto; } .pb-text { grid-column: 1 / -1; padding-top: 0; } }
.credit-score { display: flex; gap: 12px; align-items: center; margin: 8px 0; } .credit-score > b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; min-width: 64px; }
.credit-score.t1 > b, .credit-score.t2 > b { color: var(--ok); } .credit-score.t3 > b { color: var(--brand); } .credit-score.t4 > b, .credit-score.t5 > b { color: var(--bad); }
.credit-detail { display: grid; gap: 4px; margin-top: 6px; }
.cf-wrap { max-width: 720px; } .cf-form { display: grid; gap: 12px; } .cf-form h2 { margin: 8px 0 0; font-size: 16px; }
.cf-lock { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; } .cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); } .cf-consent input { width: auto; margin-top: 3px; }
.cf-err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.cf-done { text-align: center; padding: 36px 20px; } .cf-check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 28px; margin: 0 auto 8px; }
.svc-tiles { margin-bottom: 14px; }
.svc-table td { vertical-align: top; } .svc-table tr.opp td:first-child { box-shadow: inset 3px 0 0 var(--ok); } .svc-table td.pos { color: var(--ok); font-weight: 700; } .svc-table td.neg { color: var(--bad); font-weight: 700; }
.svc-flag { display: inline-block; font-size: 14px; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); margin: 0 4px 4px 0; white-space: nowrap; }
.svc-flag.equity, .svc-flag.paid { background: var(--ok-soft); color: var(--ok); }

/* trade reconditioning on the desk, market analysis */
.recon-box { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; } .recon-box .row { flex-wrap: wrap; gap: 8px; }
.recon-total { font-weight: 700; } .recon-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 6px; }
.mkt-btn { white-space: nowrap; }
.mkt-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; } .mkt-head > div { background: var(--fill); border-radius: 12px; padding: 10px 12px; }
.mkt-head b { display: block; font-size: 20px; } .mkt-head span { font-size: 14px; color: var(--muted); }
.mkt-range { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--ok-soft), var(--brand-soft), var(--bad-soft)); margin: 18px 0 26px; }
.mkt-range i { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); } .mkt-range em { position: absolute; top: 16px; font-size: 12.5px; font-style: normal; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.mkt-points { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* inbox */
.nav-badge { margin-left: auto; background: var(--bad); color: var(--on-accent); border-radius: 99px; font-size: 12.5px; padding: 1px 7px; font-weight: 700; }
.mkt-chip { border: 1px solid var(--line); background: var(--panel); color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 99px; cursor: pointer; }
.mkt-chip:hover { background: var(--brand-soft); }
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 16px; margin-top: 14px; height: calc(100vh - 190px); min-height: 460px; }
.inbox > .card { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.inbox-list { padding: 6px; overflow-y: auto !important; }
.inbox-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--ink); } .inbox-row:hover { background: var(--fill); } .inbox-row.on { background: var(--brand-soft); }
.inbox-row.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); } .inbox-back { display: none; font-size: 20px; padding: 0 8px 0 0; }
.bubbles { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 2px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 16px; word-wrap: break-word; } .bubble > div { white-space: pre-wrap; } .bubble span { display: block; font-size: 12.5px; opacity: .7; margin-top: 3px; }
.bubble.in { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--brand); color: var(--on-accent); border-bottom-right-radius: 4px; }
.compose { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; } .compose select { width: auto; justify-self: start; }
.optout { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (max-width: 820px) {
  .inbox { grid-template-columns: 1fr; height: auto; } .inbox.has-convo .inbox-list { display: none; } .inbox:not(.has-convo) .inbox-convo { display: none; }
  .inbox-convo { height: calc(100vh - 230px); min-height: 420px; } .inbox-back { display: inline; }
}
.desk-grid > * { min-width: 0; } .desk-form input, .desk-form select { min-width: 0; }
.desk-form { grid-template-columns: minmax(0, 1fr); }
.desk-grid > * > * { min-width: 0; }

/* leaderboard and showroom TV */
.lb-table td { vertical-align: middle; } .lb-rank { font-weight: 800; font-size: 18px; width: 40px; text-align: center; }
.lb-bar { position: relative; height: 10px; border-radius: 99px; background: var(--fill); min-width: 120px; } .lb-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--series-1); }
.lb-bar em { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); opacity: .5; }
.lb-goal { width: 70px; } .lb-store { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tv-page { background: #0b0f1d; margin: 0; min-height: 100vh; }
.tv { background: #0b0f1d; color: #eef1ff; font-family: var(--display, system-ui), sans-serif; min-height: 100%; padding: 3vw 4vw 0; display: flex; flex-direction: column; gap: 2.4vw; box-sizing: border-box; border-radius: inherit; }
.tv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; flex-wrap: wrap; }
.tv-dealer { font-size: clamp(14px, 1.6vw, 28px); opacity: .7; font-weight: 600; } .tv-month { font-size: clamp(26px, 4vw, 72px); font-weight: 800; letter-spacing: -.02em; }
.tv-store { display: grid; gap: 6px; text-align: right; min-width: 260px; } .tv-store b { font-size: clamp(40px, 6vw, 110px); line-height: 1; font-weight: 800; color: #3ccf8e; } .tv-store span { opacity: .7; font-size: clamp(12px, 1.2vw, 22px); }
.tv-rows { display: grid; gap: 1vw; }
.tv-row { display: grid; grid-template-columns: 3.5vw 14vw 1fr 7vw; align-items: center; gap: 1.5vw; font-size: clamp(16px, 2.2vw, 40px); font-weight: 700; padding: .6vw 1vw; border-radius: 1vw; }
.tv-row.lead { background: rgba(107, 130, 255, .14); }
.tv-rank { text-align: center; opacity: .8; } .tv-name { display: flex; align-items: center; gap: .8vw; white-space: nowrap; overflow: hidden; } .tv-name i { width: .9vw; height: .9vw; min-width: 8px; min-height: 8px; border-radius: 50%; }
.tv-bar { position: relative; height: 1.6vw; min-height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); } .tv-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #6b82ff; transition: width .6s; }
.tv-bar em { position: absolute; top: -.5vw; bottom: -.5vw; width: 3px; background: #fff; opacity: .55; border-radius: 2px; }
.tv-bar.big { height: 12px; } .tv-bar.big i { background: #3ccf8e; }
.tv-units { text-align: right; font-size: clamp(20px, 3vw, 56px); } .tv-units small { font-size: .5em; opacity: .55; }
.tv-empty { text-align: center; font-size: 2.4vw; opacity: .7; padding: 4vw; }
.tv-ticker { margin-top: auto; display: flex; gap: 2vw; align-items: center; overflow: hidden; padding: 1.2vw 0 1.6vw; border-top: 1px solid rgba(255, 255, 255, .1); font-size: clamp(13px, 1.5vw, 26px); }
.tv-ticker > span { color: #ffb24d; font-weight: 700; white-space: nowrap; position: relative; z-index: 1; background: #0b0f1d; padding-right: 1.5vw; } .tv-tick-track { display: flex; gap: 1.6vw; white-space: nowrap; animation: tvtick 40s linear infinite; } .tv-tick-track i { opacity: .4; font-style: normal; }
@keyframes tvtick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tv-tick-track { animation: none; } }
@media (max-width: 700px) { .tv-row { grid-template-columns: 28px 90px 1fr 50px; } }

/* customer portal */
.pv { display: grid; gap: 14px; } .pv-hi { margin: 0; } .pv h2 { margin: 0 0 6px; font-size: 17px; }
.pv-sp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .pv-appt { background: var(--brand-soft); }
.pv-car { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; } .pv-photo { height: 130px; border-radius: 12px; background: var(--fill) center/cover; display: grid; place-items: center; font-size: 40px; }
.pv-offer { margin-top: 10px; } .pv-offer b { font-size: 30px; font-weight: 800; color: var(--brand); } .pv-offer span { color: var(--muted); }
.pv-cta { display: grid; gap: 2px; color: var(--ink); border: 2px solid var(--brand); }
.pv-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.pv-need { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--fill); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 600; color: var(--ink); }
.pv-need .small { color: var(--brand); } .pv-need.done { background: var(--ok-soft); cursor: default; } .pv-need.done .small { color: var(--ok); }
@media (max-width: 560px) { .pv-car { grid-template-columns: 1fr; } }
.doc-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; } .doc-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; } .need-chips span { font-size: 14px; padding: 2px 8px; border-radius: 99px; background: var(--fill); } .need-chips span.done { background: var(--ok-soft); color: var(--ok); }

.lb-table tr.lb-me td { background: var(--brand-soft); }

/* ---------- batch 2 ---------- */
.ai-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
#aiAsk { font-size: 14px; }
.ai-out { margin-top: 10px; background: var(--brand-soft); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.ai-text { white-space: pre-wrap; line-height: 1.5; }
.call-screen { text-align: center; display: grid; justify-items: center; gap: 2px; padding: 6px 0 10px; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.call-timer { font-size: 28px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.call-o.on { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.tl-audio { width: 100%; max-width: 360px; height: 34px; margin-top: 6px; }
.jk-bar { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; margin: 10px 0 6px; } .jk-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.jk-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; } .jk-row:last-child { border-bottom: 0; }
.jk-row .grow { min-width: 0; } .jk-row.done .grow { color: var(--muted); } .jk-ico { width: 22px; text-align: center; }
.wl-item { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; } .wl-item:last-child { border-bottom: 0; }
.wl-match { padding: 4px 0; gap: 8px; } .wl-match a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.life-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.life-stats div { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: grid; } .life-stats b { font-size: 22px; } .life-stats span { font-size: 14px; color: var(--muted); }
.life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.life-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.warn-box { background: var(--warn-soft, #fff4d6); color: var(--ink); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.cm-card { display: grid; gap: 10px; } .cm-total { font-size: 28px; font-weight: 800; color: var(--ok); }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; } .cm-chips span { background: var(--fill); border-radius: 99px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
.cm-chips .cm-next { background: var(--brand-soft); color: var(--brand); }
.app-card:empty { display: none; }
.install-steps { line-height: 2; padding-left: 20px; }
.qv-hits { display: grid; gap: 4px; margin-top: 8px; } .qv-hit { width: 100%; border: 0; background: var(--fill); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; gap: 10px; }
.fab { display: none; position: fixed; right: 18px; bottom: 84px; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 40; cursor: pointer; }
@media (max-width: 760px) { .fab { display: block; } }
#shell.hidden ~ .fab { display: none; }
.sg-doc h1 { font-size: 22px; } .sg-table { width: 100%; border-collapse: collapse; } .sg-table td { padding: 6px 2px; border-bottom: 1px solid var(--line); vertical-align: top; } .sg-table td:last-child { text-align: right; font-weight: 600; }
.sg-form { display: grid; gap: 10px; } .sg-pad-wrap { position: relative; } .sg-pad { width: 100%; height: 160px; background: #fff; border: 2px dashed var(--line-strong); border-radius: 12px; touch-action: none; display: block; }
.sg-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #999; pointer-events: none; transition: opacity .2s; }
.sg-done { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.cust-grid > div { min-width: 0; } .composer .tabs { overflow-x: auto; scrollbar-width: none; }
.cust-grid > div[style*='grid'] { grid-template-columns: minmax(0, 1fr); } .cust-grid .card { min-width: 0; }
.wl-match { flex-wrap: wrap; } .wl-item .muted.small a { word-break: break-word; } .wl-item { min-width: 0; }

.cq { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr); gap: 14px; margin: 6px 0 10px; }
.cq-break { display: grid; gap: 4px; } .cq-break div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 4px 0; font-size: 14px; } .cq-break span { color: var(--muted); }
.cq-chart { position: relative; height: 190px; display: flex; gap: 10px; padding: 0 8px 22px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cq-col { position: relative; flex: 1; } .cq-col i { position: absolute; left: 25%; right: 25%; background: var(--muted); opacity: .55; border-radius: 4px; min-height: 4px; }
.cq-col em { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 12.5px; font-style: normal; color: var(--muted); }
.cq-ours { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--bad); z-index: 1; } .cq-ours span { position: absolute; right: 4px; top: -18px; font-size: 12.5px; font-weight: 700; color: var(--bad); background: var(--panel); padding: 0 4px; border-radius: 4px; }
@media (max-width: 640px) { .cq { grid-template-columns: 1fr; } }

.help-btn { border-color: var(--warn); color: var(--warn); } .help-btn.asked { background: var(--warn-soft); } .help-btn.answered { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.help-reasons { display: flex; flex-wrap: wrap; gap: 6px; } .help-reasons .chip-btn.on { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }

.fi-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; } .fi-chip { background: var(--ok-soft); color: var(--ok); border-radius: 99px; padding: 3px 10px; font-size: 14px; font-weight: 600; }
.fi-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fi-col { border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: grid; gap: 4px; align-content: start; }
.fi-col:hover { border-color: var(--brand); } .fi-col.platinum { border-color: var(--brand); background: var(--brand-soft); }
.fi-pay { font-size: 26px; font-weight: 800; } .fi-pay span { font-size: 14px; color: var(--muted); font-weight: 600; }
.fi-col ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; display: grid; gap: 3px; } .fi-col li { color: var(--muted); } .fi-col li.on { color: var(--ink); font-weight: 600; }
.fi-custom { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .fi-custom summary { cursor: pointer; font-weight: 600; } .fi-custom label { display: block; margin: 6px 0; }
.ln-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: grid; gap: 6px; } .ln-table td, .ln-table th { padding: 6px; }
@media (max-width: 760px) { .fi-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tfa-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .tfa-qr { width: 160px; height: 160px; border-radius: 10px; background: #fff; padding: 6px; }
.tfa-key { font-family: ui-monospace, monospace; font-size: 15px; font-weight: 700; letter-spacing: .5px; margin-top: 4px; word-break: break-all; }
.au-list { display: grid; gap: 2px; max-height: 380px; overflow: auto; margin-top: 8px; }
.au-row { display: grid; grid-template-columns: 110px 140px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; padding: 5px 4px; border-bottom: 1px solid var(--line); } .au-row.bad { background: var(--bad-soft); }
.au-row span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jk-dms { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 2px solid var(--line); }
@media (max-width: 640px) { .au-row { grid-template-columns: 1fr; gap: 0; } }

/* printed pencil (proposal layout) */
.pencil { font: 11.5px/1.35 var(--font, system-ui, sans-serif); color: #111; padding: 18px 22px; max-width: 8.5in; margin: 0 auto; background: #fff; }
.pencil h3 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #333; border-bottom: 1.5px solid #111; padding-bottom: 3px; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.pp-brand { display: flex; gap: 10px; align-items: center; font-size: 16px; } .pp-sub { font-size: 12.5px; color: #555; }
.pp-mark { width: 38px; height: 38px; border-radius: 10px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.pp-meta { min-width: 230px; }
.pp-kv { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; } .pp-kv span { color: #555; min-width: 62px; font-size: 10.5px; }
.pp-kv b { flex: 1; font-weight: 600; border-bottom: 1px solid #999; min-height: 15px; overflow-wrap: anywhere; } .pp-kv.mono b { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-box { border: 1.5px solid #111; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; break-inside: avoid; }
.pp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-checks { display: flex; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; } .pp-check { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid #111; border-radius: 3px; margin-right: 4px; font-size: 12.5px; font-weight: 800; vertical-align: -3px; }
.pp-equip { border-top: 2px solid #111; border-bottom: 2px solid #111; padding: 5px 2px; margin-bottom: 10px; font-size: 12.5px; }
.pp-cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; align-items: start; }
.pp-tbl { width: 100%; border-collapse: collapse; } .pp-tbl td { padding: 3px 2px; border-bottom: 1px solid #ccc; } .pp-tbl td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-tbl .tot td, .pp-tbl .sub td { font-weight: 700; border-top: 1.5px solid #111; } .pp-tbl .big td { font-weight: 800; font-size: 12.5px; border-top: 1.5px solid #111; }
.pp-tbl .due td { font-weight: 800; font-size: 13.5px; background: #111; color: #fff; padding: 5px 4px; }
.pp-grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; } .pp-grid th, .pp-grid td { border: 1px solid #999; padding: 4px 3px; text-align: center; }
.pp-grid th small { display: block; font-weight: 400; color: #555; } .pp-grid .sel { font-weight: 800; outline: 2px solid #111; outline-offset: -2px; background: #eee; }
.pp-pick { margin-top: 6px; } .pp-init { margin-top: 8px; } .pp-fine { font-size: 9.5px; color: #444; margin: 6px 0 0; }
.pp-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; text-align: center; font-size: 10.5px; } .pp-sign span { display: block; border-top: 1px solid #111; margin-bottom: 3px; }
.pp-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; color: #444; }
@page { size: letter portrait; margin: .35in; }
@media print { .pencil { padding: 0; } }
@media (max-width: 700px) { .offer-preview .pp-top, .offer-preview .pp-cols { grid-template-columns: 1fr; } }
.pencil table, .pencil td, .pencil th { font-size: inherit; line-height: 1.3; } .pencil .pp-grid th { font-size: 14px; text-transform: none; letter-spacing: 0; color: #111; }
.pencil .pp-tbl .big td { font-size: 12.5px; } .pencil .pp-tbl .due td { font-size: 13.5px; }
.pp-kv span { white-space: nowrap; } .pp-kv b { min-width: 0; }
@media print { html, body, .shell, .main { min-height: 0 !important; height: auto !important; } .pencil { break-after: avoid; } }

/* desk screen: finance details on the left, payments on the right */
.dk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 14px; }
.dk-back { font-size: 26px; line-height: 1; color: var(--muted); text-decoration: none; padding: 0 4px; }
.dk-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand); flex: none; }
.dk-who, .dk-veh { min-width: 0; } .dk-veh { padding-left: 14px; border-left: 1px solid var(--line); } .dk-veh .muted { overflow-wrap: anywhere; }
.dk-ver { width: auto; max-width: 240px; }
.dk-actions { display: flex; gap: 8px; } .dk-push { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.dk-grid { display: grid; grid-template-columns: minmax(290px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dk-grid > * { min-width: 0; }
.dk-left { padding: 6px 16px 10px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
.dk-left-head { padding: 10px 0; border-bottom: 1px solid var(--line); } .dk-left-head h2 { margin: 0; font-size: 17px; }
.dk-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-weight: 600; }
.dk-line input { width: 130px; text-align: right; font-weight: 700; } .dk-ro { padding: 8px 12px; border-radius: 10px; background: var(--fill); min-width: 130px; text-align: right; }
.dk-sec { border-top: 1px solid var(--line); }
.dk-sec > summary { display: flex; align-items: center; gap: 10px; padding: 13px 0; cursor: pointer; font-weight: 600; list-style: none; }
.dk-sec > summary::-webkit-details-marker { display: none; }
.dk-sec > summary > span:first-child { flex: 1; }
.dk-sec > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 6px; transition: transform .15s; }
.dk-sec[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.dk-val { font-variant-numeric: tabular-nums; }
.dk-add { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 8px; background: var(--fill); }
.dk-taxpill { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.dk-body { display: grid; gap: 10px; padding: 0 0 14px; } .dk-body label { font-size: 14px; }
.dk-kv { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.dk-right { display: grid; gap: 12px; }
.dk-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: var(--radius); background: var(--fill); }
.dk-tab { font: inherit; border: 0; background: transparent; border-radius: 12px; padding: 8px; cursor: pointer; color: var(--muted); display: grid; gap: 2px; }
.dk-tab b { font-size: 18px; color: inherit; } .dk-tab span { font-size: 14px; font-weight: 600; }
.dk-tab.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); } .dk-tab.on b { color: var(--brand); }
.dk-tab:disabled { cursor: default; opacity: .55; }
.dk-tools { min-height: 32px; }
.dk-sum h2 { margin: 0; font-size: 17px; } .dk-sum-pay { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.dk-profit { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 2px 0 10px; } .dk-profit b { color: var(--ink); }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.dk-chip { font-size: 14px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--fill); }
.dk-break { margin-top: 10px; } .dk-break > summary { cursor: pointer; font-size: 14px; color: var(--brand); font-weight: 600; } .dk-break #sumBox { margin-top: 8px; }
.dk-pg-wrap { overflow-x: auto; margin-top: 12px; }
.dk-pg { display: grid; grid-template-columns: repeat(3, minmax(84px, .7fr)) repeat(3, minmax(112px, 1fr)); gap: 10px; align-items: center; min-width: 600px; }
.dk-pg-lbl { font-size: 14px; font-weight: 700; color: var(--muted); }
.dk-pg select, .dk-pg input { width: 100%; min-width: 0; font-weight: 600; }
.dk-money, .dk-pct { position: relative; display: block; margin: 0; }
.dk-money::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; } .dk-money input { padding-left: 22px; }
.dk-pct::after { content: "%"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; } .dk-pct input { padding-right: 24px; }
.dk-cell { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; padding: 18px 6px; min-height: 64px; border-radius: 12px; background: var(--fill); border-color: transparent; font-variant-numeric: tabular-nums; }
.dk-cell.on { box-shadow: 0 6px 18px var(--brand-soft-2); }
.obd { display: grid; gap: 6px; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 4px 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.dk-roll { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); min-height: 44px; }
@media (max-width: 1000px) { .dk-grid { grid-template-columns: minmax(0, 1fr); } .dk-left { position: static; max-height: none; } }
@media (max-width: 640px) { .dk-veh { padding-left: 0; border-left: 0; flex-basis: 100%; } .dk-actions { flex-basis: 100%; } .dk-actions .btn { flex: 1; justify-content: center; } .dk-line input, .dk-ro { width: 120px; min-width: 0; } }
.dk-right { grid-template-columns: minmax(0, 1fr); } .dk-right > * { min-width: 0; } .dk-tab b { font-size: clamp(14px, 4vw, 18px); overflow-wrap: anywhere; }
.obd input[data-f=code] { text-transform: uppercase; } .obd > .btn { justify-self: start; }

.pp-opt { font-style: normal; font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #777; border-radius: 3px; padding: 0 3px; margin-left: 4px; color: #333; vertical-align: 1px; }
.pp-tbl td small { display: block; font-size: 8.5px; color: #555; font-weight: 400; } .pp-grid td small { display: block; font-size: 8.5px; color: #555; font-weight: 400; }
.pp-ca { margin-top: 10px; } .pp-ca ul { margin: 0; padding-left: 16px; font-size: 9.5px; line-height: 1.35; } .pp-ca li { margin: 2px 0; }

/* printed pencil, v2: calm page 1, disclosures on page 2 */
.pencil2 { font: 11px/1.4 var(--font, system-ui, sans-serif); color: #16181d; background: #fff; max-width: 8.5in; margin: 0 auto; padding: 22px 26px; }
.pencil2 h1, .pencil2 h2, .pencil2 h3, .pencil2 h4 { color: #16181d; }
.pq-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #d9dce3; }
.pq-brand { display: flex; align-items: center; gap: 10px; } .pq-brand b { display: block; font-size: 14px; } .pq-brand span { font-size: 14px; color: #6b7080; }
.pq-mark { width: 30px; height: 30px; border-radius: 8px; background: #16181d; color: #fff !important; display: grid; place-items: center; font-weight: 800; font-size: 15px !important; }
.pq-meta { display: flex; gap: 14px; font-size: 14px; color: #6b7080; }
.pq-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 18px 0 16px; }
.pq-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7080; }
.pq-car h1 { font-size: 24px; line-height: 1.15; margin: 2px 0 6px; letter-spacing: -.02em; }
.pq-specs { font-size: 10.5px; color: #4a4f5c; } .pq-specs i { font-style: normal; margin: 0 6px; color: #b4b8c2; }
.pq-for { text-align: right; flex: none; max-width: 42%; } .pq-for span { display: block; font-size: 9.5px; color: #6b7080; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pq-for b { display: block; font-size: 15px; margin: 2px 0; } .pq-for div { font-size: 10.5px; color: #4a4f5c; overflow-wrap: anywhere; }
.pq-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pencil2 h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.pq-grid { width: 100%; border-collapse: separate; border-spacing: 4px; margin: 0 -4px; font-variant-numeric: tabular-nums; font-size: inherit; }
.pq-grid th, .pq-grid td { padding: 0; border: 0; font-size: inherit; text-transform: none; letter-spacing: 0; }
.pq-grid thead th { font-size: 12.5px; font-weight: 700; text-align: center; padding-bottom: 2px; color: #16181d; } .pq-grid thead th:first-child { text-align: left; font-weight: 600; color: #6b7080; }
.pq-grid thead small { display: block; font-size: 9px; font-weight: 400; color: #6b7080; }
.pq-grid tbody th { text-align: left; font-weight: 700; font-size: 14px; color: #16181d; white-space: nowrap; padding-right: 4px; }
.pq-grid td { text-align: center; background: #f2f3f6; border-radius: 8px; padding: 9px 4px; }
.pq-grid td b { display: block; font-size: 16px; letter-spacing: -.01em; } .pq-grid td small { display: block; font-size: 8.5px; color: #6b7080; margin-top: 1px; }
.pq-grid td.sel { background: #16181d; color: #fff; } .pq-grid td.sel small { color: #c9ccd4; }
.pq-under { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; font-size: 9.5px; color: #4a4f5c; } .pq-under span:last-child { text-align: right; max-width: 55%; }
.pq-cash { display: flex; justify-content: space-between; align-items: baseline; padding: 16px; background: #f2f3f6; border-radius: 10px; } .pq-cash b { font-size: 24px; }
.pq-price { background: #f7f8fa; border-radius: 12px; padding: 12px 14px; }
.pq-line { display: flex; justify-content: space-between; gap: 10px; padding: 3.5px 0; font-variant-numeric: tabular-nums; } .pq-line span { color: #3a3e49; } .pq-line b { font-weight: 600; white-space: nowrap; }
.pq-line.dim span, .pq-line.dim b { color: #8a8f9c; font-weight: 400; }
.pq-line.sub { border-top: 1px solid #d9dce3; margin-top: 2px; padding-top: 5px; } .pq-line.sub b, .pq-line.sub span { font-weight: 700; color: #16181d; }
.pq-line.due { border-top: 2px solid #16181d; margin-top: 6px; padding-top: 7px; font-size: 14px; } .pq-line.due span, .pq-line.due b { font-weight: 800; color: #16181d; }
.pq-line.fin { font-weight: 700; } .pq-line.fin span, .pq-line.fin b { font-weight: 700; color: #16181d; }
.pq-chosen { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #c4c8d1; font-size: 20px; font-weight: 800; letter-spacing: -.02em; } .pq-chosen span { font-size: 14px; font-weight: 500; color: #6b7080; letter-spacing: 0; }
.pq-opt { font-style: normal; font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid #9ca1ad; border-radius: 3px; padding: 0 3px; margin-left: 3px; color: #4a4f5c; vertical-align: 1px; font-weight: 600; }
.pq-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #d9dce3; font-size: 14px; }
.pq-details h3 { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 6px; color: #6b7080; border: 0; padding: 0; }
.pq-details .pq-line { padding: 2px 0; }
.pq-strong { margin: 0; font-weight: 700; font-size: 10.5px; } .pq-small { margin: 2px 0 4px; font-size: 9px; color: #6b7080; overflow-wrap: anywhere; }
.pq-notes { margin: 14px 0 0; font-size: 14px; color: #3a3e49; } .pq-notes b { margin-right: 6px; }
.pq-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 34px; font-size: 9.5px; color: #6b7080; text-align: center; } .pq-sign span { display: block; border-top: 1px solid #16181d; margin-bottom: 4px; }
.pq-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 9px; color: #8a8f9c; }
.pq-page2 { margin-top: 36px; padding-top: 22px; border-top: 1px dashed #c4c8d1; }
.pq-disc { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; counter-reset: d; }
.pq-disc li { counter-increment: d; display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; } .pq-disc li::before { content: counter(d); grid-row: span 9; width: 20px; height: 20px; border-radius: 50%; background: #16181d; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.pq-disc h4 { margin: 1px 0 3px; font-size: 14px; } .pq-disc p { margin: 0; font-size: 10.5px; line-height: 1.5; color: #2c2f38; }
.pq-consent { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 10.5px; } .pq-consent th { text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #6b7080; padding: 4px 6px; border-bottom: 1px solid #16181d; }
.pq-consent td { padding: 9px 6px; border-bottom: 1px solid #d9dce3; } .pq-consent td:nth-child(2) { white-space: nowrap; } .pq-consent td:last-child { width: 38%; }
@media print { .pencil2 { padding: 0; } .pq-page2 { break-before: page; margin-top: 0; padding-top: 0; border-top: 0; } .pq-page1 { break-after: auto; } }
@media (max-width: 700px) { .offer-preview .pq-main { grid-template-columns: 1fr; } .offer-preview .pq-hero { flex-direction: column; align-items: flex-start; } .offer-preview .pq-for { text-align: left; max-width: none; } .offer-preview .pq-grid-wrap { overflow-x: auto; } }

/* pencil order: small customer/vehicle band, purchase + trade, payments underneath */
.pq-band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 10px 0 12px; border-bottom: 1px solid #d9dce3; font-size: 9.5px; color: #4a4f5c; }
.pq-band b { display: block; font-size: 14px; color: #16181d; margin: 1px 0; } .pq-band .mono { font-size: 9px; } .pq-addr { margin-top: 4px; color: #8a8f9c; }
.pq-lbl { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a8f9c; }
.pq-mid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 16px; font-size: 14px; }
.pq-trade { padding: 12px 0 0; } .pq-trade h3 { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 4px; color: #6b7080; }
.pq-trade .pq-strong { font-size: 14px; } .pq-optnote { margin-top: 14px; }
.pq-pay { margin-top: 20px; padding-top: 14px; border-top: 1px solid #d9dce3; }
.pq-payhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .pq-payhead .pq-chosen { margin: 0; padding: 0; border: 0; font-size: 16px; }
.pq-grid { table-layout: fixed; } .pq-grid thead th:first-child { width: 72px; }
.pq-term { margin: 8px 0 0; padding: 7px 10px; border-left: 3px solid #16181d; background: #f7f8fa; font-size: 9.5px; line-height: 1.45; color: #2c2f38; }

/* one-page pencil: trade left, purchase right, compact disclosures */
.pencil2 .pq-mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 12px; }
.pencil2 .pq-trade { padding-top: 10px; } .pencil2 .pq-price { padding: 10px 14px; } .pencil2 .pq-price .pq-line { padding: 2.5px 0; }
.pencil2 .pq-pay { margin-top: 14px; padding-top: 10px; } .pencil2 .pq-grid td { padding: 6px 4px; } .pencil2 .pq-grid td b { font-size: 15px; }
.pq-discs { margin-top: 12px; padding: 8px 10px; border: 1px solid #d9dce3; border-radius: 8px; }
.pq-discs h3 { font-size: 8.5px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px; color: #6b7080; border: 0; padding: 0; }
.pq-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; } .pq-dgrid p { margin: 0; font-size: 8.5px; line-height: 1.4; color: #2c2f38; }
.pq-ini { display: inline-block; white-space: nowrap; margin: 2px 8px 0 0; } .pq-ini u { display: inline-block; width: 34px; border-bottom: 1px solid #16181d; text-decoration: none; vertical-align: -1px; margin-left: 3px; }
.pencil2 .pq-sign { margin-top: 26px; } .pencil2 .pq-foot { margin-top: 10px; }

/* fit busy deals on one page */
.pencil2 .pq-trade { font-size: 10.5px; } .pencil2 .pq-trade .pq-line { padding: 1.5px 0; } .pencil2 .pq-trade h3 { margin: 9px 0 2px; } .pencil2 .pq-trade h2 { margin-bottom: 4px; }
.pencil2 .pq-trade .pq-strong { font-size: 12.5px; } .pencil2 .pq-trade .pq-small { margin: 1px 0 3px; }
.pencil2 .pq-price .pq-line { padding: 2px 0; } .pencil2 .pq-band { padding: 8px 0 10px; } .pencil2 .pq-head { padding-bottom: 8px; }
.pencil2 .pq-grid { border-spacing: 4px 3px; } .pencil2 .pq-grid td { padding: 5px 4px; } .pencil2 .pq-grid td b { font-size: 14px; }
.pencil2 .pq-sign { margin-top: 22px; } .pencil2 .pq-discs { margin-top: 10px; } .pencil2 .pq-term { margin-top: 6px; padding: 5px 9px; }

/* discount requests on the desk */
#discBanner:empty { display: none; }
.disc-b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; }
.disc-b.ok { background: var(--ok-soft); } .disc-b.bad { background: var(--bad-soft); } .disc-b.warn { background: var(--warn-soft); }
.disc-b .grow { min-width: 0; flex: 1 1 260px; } .disc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.disc-rehash { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; } .disc-rehash label { font-size: 14px; } .disc-rehash label:first-child { width: 150px; }
.disc-rehash.hidden { display: none; } .disc-prev { padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: 14px; }

/* in-store credit application */
.ca-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ca-note { padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; margin-bottom: 14px; }
.ca-sec { display: grid; gap: 10px; margin-bottom: 14px; } .ca-sec h2 { margin: 0; } .ca-sec h3 { margin: 8px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ca-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; } .ca-g4.wide1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 80px 110px; }
.ca-g4 > * { min-width: 0; } .ca-g4 label { font-size: 14px; }
.ca-prev { display: none; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); border: 1px dashed var(--line-strong); } .ca-prev.on { display: grid; gap: 8px; }
.ca-annual { font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.ca-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); } .ca-consent input { width: auto; margin-top: 2px; }
.ca-co-toggle { margin: 0 0 14px; } .ca-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
#caErr { color: var(--bad); font-weight: 600; }
@media (max-width: 760px) { .ca-g4, .ca-g4.wide1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ===================== Theme: "Graphite + Volt" =====================
   Graphite surfaces, a volt-lime accent, sharper corners and a technical display face.
   The sidebar stays dark in both modes. Light mode uses black as the accent fill with lime ink. */
:root {
  --bg: #f2f3f0; --panel: #ffffff; --fill: #eceee9; --fill-2: #f6f7f4; --lane: #e8eae4; --line: #e0e2dc; --line-strong: #c9ccc3;
  --ink: #0f1114; --muted: #5f6570; --faint: #9ca1aa;
  --brand: #0f1114; --brand-ink: #d4ff3a; --on-accent: #d4ff3a; --brand-soft: #efffc2; --brand-soft-2: #ddf98d; --volt: #c8ff2e; --volt-ink: #0f1114;
  --ok: #0e8a52; --ok-soft: #e1f5e9; --warn: #b85e00; --warn-soft: #fff0dc; --bad: #d22f3a; --bad-soft: #fdeaea;
  --violet-soft: #eef0ff; --note-soft: #fff8d4; --today: #f6ffdf;
  --sidebar: #0c0e11; --sidebar-ink: #9aa1ad; --sidebar-active: #c8ff2e; --sidebar-active-ink: #0c0e11;
  --topbar: rgba(242, 243, 240, .82); --input: #ffffff; --overlay: rgba(8, 10, 12, .55); --toast: #0f1114; --toast-ink: #eef1f5;
  --shadow: 0 1px 0 rgba(15, 17, 20, .04), 0 8px 24px -12px rgba(15, 17, 20, .18);
  --shadow-lg: 0 30px 70px -20px rgba(15, 17, 20, .35);
  --radius: 12px;
  --font: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --series-1: #5b8c00; --series-2: #0b8fa8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a0b0d; --panel: #121418; --fill: #1a1d22; --fill-2: #15181c; --lane: #111317; --line: #23272e; --line-strong: #333944;
  --ink: #eef1f5; --muted: #8b929e; --faint: #565d69;
  --brand: #c8ff2e; --brand-ink: #0a0b0d; --on-accent: #0a0b0d; --brand-soft: rgba(200, 255, 46, .10); --brand-soft-2: rgba(200, 255, 46, .22); --volt: #c8ff2e; --volt-ink: #0a0b0d;
  --ok: #3ddc8f; --ok-soft: rgba(61, 220, 143, .12); --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .12); --bad: #ff5d68; --bad-soft: rgba(255, 93, 104, .12);
  --violet-soft: rgba(140, 150, 255, .12); --note-soft: rgba(250, 214, 60, .10); --today: rgba(200, 255, 46, .05);
  --sidebar: #08090b; --sidebar-ink: #8b929e; --sidebar-active: #c8ff2e; --sidebar-active-ink: #08090b;
  --topbar: rgba(10, 11, 13, .78); --input: #0e1013; --overlay: rgba(0, 0, 0, .7); --toast: #eef1f5; --toast-ink: #0a0b0d;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -14px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --series-1: #c8ff2e; --series-2: #2ee6d6;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0a0b0d; --panel: #121418; --fill: #1a1d22; --fill-2: #15181c; --lane: #111317; --line: #23272e; --line-strong: #333944;
  --ink: #eef1f5; --muted: #8b929e; --faint: #565d69;
  --brand: #c8ff2e; --brand-ink: #0a0b0d; --on-accent: #0a0b0d; --brand-soft: rgba(200, 255, 46, .10); --brand-soft-2: rgba(200, 255, 46, .22); --volt: #c8ff2e; --volt-ink: #0a0b0d;
  --ok: #3ddc8f; --ok-soft: rgba(61, 220, 143, .12); --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .12); --bad: #ff5d68; --bad-soft: rgba(255, 93, 104, .12);
  --violet-soft: rgba(140, 150, 255, .12); --note-soft: rgba(250, 214, 60, .10); --today: rgba(200, 255, 46, .05);
  --sidebar: #08090b; --sidebar-ink: #8b929e; --sidebar-active: #c8ff2e; --sidebar-active-ink: #08090b;
  --topbar: rgba(10, 11, 13, .78); --input: #0e1013; --overlay: rgba(0, 0, 0, .7); --toast: #eef1f5; --toast-ink: #0a0b0d;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -14px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --series-1: #c8ff2e; --series-2: #2ee6d6;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

body { font-family: var(--font); letter-spacing: -.005em; }
h1, h2, .brand, .big-pay, .dk-sum-pay, .dk-tab b, .stat .val, .stat b, .pay-now { font-family: var(--display); }
h1 { font-weight: 700; letter-spacing: -.03em; }
h2 { font-weight: 600; letter-spacing: -.01em; }
#view a:not([class]):hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sidebar nav a, .sidebar nav a:visited { text-decoration: none; color: var(--sidebar-ink); }
.sidebar nav a:hover { color: #f4f6f8; }
.sidebar nav a.active { color: var(--sidebar-active-ink); }
::selection { background: var(--volt); color: var(--volt-ink); }

/* sidebar: always graphite, volt active chip with a hairline glow */
.sidebar { background: var(--sidebar); border-right: 1px solid #1b1e23; }
.sidebar .brand, .sidebar .brand-text { color: #f4f6f8; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--volt); color: var(--volt-ink); box-shadow: 0 0 0 1px rgba(200, 255, 46, .35), 0 8px 22px -6px rgba(200, 255, 46, .55); }
.logo svg { width: 20px; height: 20px; display: block; }
nav a { border-radius: 9px; font-weight: 500; letter-spacing: .005em; position: relative; color: var(--sidebar-ink); }
nav a i.ico { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
nav a i.ico svg { width: 20px; height: 20px; }
nav a:hover { background: #16191e; color: #f4f6f8; }
nav a.active { background: var(--sidebar-active); color: var(--sidebar-active-ink); font-weight: 650; box-shadow: 0 6px 20px -8px rgba(200, 255, 46, .6); }
nav a.active i.ico svg { stroke-width: 2.2; }
.nav-badge { background: #ff5d68; color: #fff; }

/* top bar icon buttons */
.topbar { border-bottom: 1px solid var(--line); }
.icon-btn, .bell, .theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.bell svg, .theme-btn svg { width: 19px; height: 19px; }
.bell:hover, .theme-btn:hover { border-color: var(--ink); } .bell:active, .theme-btn:active { transform: scale(.95); }
.badge { background: #ff5d68; color: #fff; }
.me { border-radius: 10px; background: var(--ink); color: var(--panel); font-family: var(--display); }

/* buttons, inputs, cards: sharper and punchier */
.btn { border-radius: 9px; font-weight: 600; letter-spacing: .005em; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--on-accent); border-color: var(--brand); }
.btn.primary:hover { box-shadow: 0 8px 22px -8px var(--brand); filter: brightness(1.05); }
#newLeadBtn { font-family: var(--display); }
input, select, textarea { border-radius: 9px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.card, .dk-head { border-radius: var(--radius); }
.pill { border-radius: 6px; font-weight: 600; letter-spacing: .02em; }
.toast { border-radius: 10px; font-weight: 600; }
.modal-card { border-radius: 14px; border: 1px solid var(--line); }
.chip-btn { border-radius: 7px; }
.chip-btn.on, .chip-btn.active { background: var(--brand); color: var(--on-accent); border-color: var(--brand); }
.stat .lbl { text-transform: uppercase; font-size: 12.5px; letter-spacing: .08em; }
.stat::after { right: auto; left: 20px; top: -1px; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--volt); opacity: 1; }
.pay.on, .dk-cell.on { box-shadow: 0 10px 26px -10px var(--brand); }
.dk-tab.on b { color: inherit; } .dk-tab.on { box-shadow: inset 0 -2px 0 var(--brand), var(--shadow); }
.dk-sum-pay, .big-pay { color: var(--ink); }
:root:not([data-theme="light"]) .dk-sum-pay, :root[data-theme="dark"] .dk-sum-pay { color: var(--brand); }
.login { background: radial-gradient(900px 420px at 15% -10%, var(--brand-soft-2), transparent 70%), var(--bg); }
.login-card { border-radius: 16px; }
.brand.big .logo { width: 40px; height: 40px; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dk-sum-pay { color: var(--ink); } }
@media (max-width: 820px) {
  .sidebar { border-top: 1px solid #1b1e23; }
  nav a { color: var(--sidebar-ink); } nav a.active { background: transparent; color: var(--volt); box-shadow: none; }
  nav a.active i.ico { background: var(--volt); color: var(--volt-ink); border-radius: 8px; width: 34px; height: 26px; }
  nav a i.ico svg { width: 20px; height: 20px; }
}

/* ===================== Settings, customer team, aged inventory, lead clock, lease grid ===================== */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-grid .card { display: grid; gap: 12px; margin: 0; } .set-grid h2 { margin: 0; } .set-grid p { margin: 0; }
.set-users { grid-row: span 2; }
.set-ulist { display: grid; gap: 2px; max-height: 520px; overflow: auto; }
.set-user { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); } .set-user.off { opacity: .55; }
.set-bank { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; align-items: center; margin-bottom: 6px; }
.set-lease { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.set-bank-head { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 0; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .team-grid label:first-child { grid-column: span 2; }
.dk-mf { display: block; margin: 0; } .dk-ldown { align-self: end; font-weight: 600; font-size: 14px; color: var(--muted); padding: 0 4px 6px; text-align: center; }
#dkLeaseCard[hidden] { display: none; }
.aged-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.aged { display: grid; gap: 12px; margin: 0; }
.aged-head { display: flex; gap: 12px; align-items: center; }
.aged-days { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--fill); flex: none; line-height: 1; }
.aged-days b { font-family: var(--display); font-size: 22px; } .aged-days span { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.aged-matches { display: grid; gap: 6px; }
.aged-m { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n b" "w b"; column-gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--fill-2); }
.aged-m > a:first-child { grid-area: n; } .aged-m > span { grid-area: w; } .aged-m .btn { grid-area: b; align-self: center; }
.lead-clock { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lead-clock[hidden] { display: none; }
.lead-clock b { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 15px; }
.lead-clock .lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 3px rgba(200, 255, 46, .25); animation: lcPulse 1.2s ease-in-out infinite; }
.lead-clock.late { border-color: var(--bad); color: var(--bad); } .lead-clock.late .lc-dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(255, 93, 104, .25); }
@keyframes lcPulse { 50% { opacity: .35; } }
.lc-card { display: grid; gap: 8px; margin-bottom: 14px; border-left: 3px solid var(--volt); } .lc-card[hidden] { display: none; }
.lc-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; background: var(--fill-2); color: var(--ink); text-decoration: none; }
.lc-time { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 18px; min-width: 58px; }
.lc-row.late .lc-time { color: var(--bad); }
.cust-clock { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); font-size: 14px; }
.cust-clock b { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 18px; margin-right: 4px; }
.cust-clock.late { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.cust-clock.done { background: var(--fill-2); border-color: var(--line); color: var(--muted); } .cust-clock.done b { font-size: 14px; color: var(--ink); }
.cust-clock.slow b { color: var(--warn); }
#custClock:empty { display: none; }
a.stat { color: inherit; text-decoration: none; } a.stat:hover { border-color: var(--line-strong); }
@media (max-width: 820px) {
  .set-grid { grid-template-columns: minmax(0, 1fr); } .set-users { grid-row: auto; }
  .lead-clock .lc-name { display: none; } .lead-clock { padding: 0 10px; }
  .aged-list { grid-template-columns: minmax(0, 1fr); }
}
.lc-row .grow { min-width: 0; } .lc-row .pill { flex: none; }
.lc-row .lc-x { flex: none; padding: 2px 8px; }
@media (max-width: 820px) { .sidebar nav a.active { color: var(--volt); } .lc-row { flex-wrap: wrap; } }

/* 360° vehicle picker */
.veh-pick { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--fill-2); border: 1px solid var(--line); }
.vp-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.vp-f { display: grid; gap: 4px; margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.vp-f select { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.vp-colors { display: grid; gap: 6px; } .vp-cname { font-size: 14px; font-weight: 600; }
.vp-sw { display: flex; flex-wrap: wrap; gap: 7px; }
.vp-c { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; transition: transform .1s; }
.vp-c:hover { transform: scale(1.12); } .vp-c.on { box-shadow: 0 0 0 2px var(--brand); transform: scale(1.12); }
.vp-note { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .vp-row { grid-template-columns: 80px minmax(0, 1fr); } .vp-row .vp-f:last-child { grid-column: span 2; } }

.lang-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); margin: 0 0 12px auto; float: right; }
.lang-toggle button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
#caLang { float: none; margin: 0; }
.lang-toggle button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.cf-form, .pv > .card:first-of-type { clear: both; }

/* Desk: room for the payment grid. "Bigger grid" hides the details column; the summary sits beside the grid. */
.dk-more { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.dk-more .btn { min-width: 34px; justify-content: center; }
.dk-grid.wide { grid-template-columns: minmax(0, 1fr); }
.dk-grid.wide .dk-left { display: none; }
@media (min-width: 1100px) {
  .dk-grid.wide .dk-right { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; }
  .dk-grid.wide .dk-right > * { grid-column: 2; }
  .dk-grid.wide .dk-right > #dkGridCard, .dk-grid.wide .dk-right > #dkLeaseCard { grid-column: 1; grid-row: 1 / span 8; }
  .dk-grid.wide .dk-tools { flex-wrap: wrap; }
  .dk-grid.wide .dk-pg { gap: 12px; }
  .dk-grid.wide .dk-cell { font-size: clamp(20px, 1.9vw, 28px); padding: 24px 8px; min-height: 80px; }
}
@media (min-width: 1500px) { .dk-grid:not(.wide) { grid-template-columns: 340px minmax(0, 1fr); } }

/* 360° studio: real photo mode */
.viz-mode { position: absolute; right: 12px; top: 10px; display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); z-index: 3; }
.viz-mode button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.viz-mode button.on { background: var(--grad, var(--brand)); color: #fff; }
.viz-photo { position: absolute; inset: 0; z-index: 2; background: var(--panel); display: grid; grid-template-rows: 1fr auto; }
.viz-photo[hidden] { display: none; }
.vph-img { display: grid; place-items: center; overflow: hidden; padding: 52px 16px 8px; touch-action: pan-y; }
.vph-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none; }
.vph-wait, .vph-none { color: var(--muted); font-size: 14px; text-align: center; max-width: 360px; line-height: 1.5; }
.vph-cap { font-size: 14px; color: var(--muted); padding: 8px 14px 12px; text-align: center; }
.vph-cap a { color: var(--brand); }
.studio-stage.photo-mode .viz-views, .studio-stage.photo-mode .viz-hint { display: none; } .studio-stage.photo-mode .viz-tags { z-index: 3; }

/* Showroom floor */
.fl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fl-stats .stat { padding: 14px 16px; } .fl-stats .num { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.fl-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.fl-grid > .card, #floorView > .card { min-width: 0; }
.fl-grid h2, #floorView > .card h2 { margin: 0 0 10px; font-size: 16px; }
@media (max-width: 1250px) { .fl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fl-grid > :first-child { grid-row: span 2; } }
@media (max-width: 760px) { .fl-grid { grid-template-columns: minmax(0, 1fr); } .fl-grid > :first-child { grid-row: auto; } }
.fl-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fl-queue li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--fill-2); border: 1px solid transparent; flex-wrap: wrap; }
.fl-queue li .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-queue li.next { background: var(--brand-soft); border-color: var(--brand-soft-2); }
.fl-queue li.busy { opacity: .72; }
.fl-n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--panel); color: var(--muted); flex: none; }
.fl-queue li.next .fl-n { background: var(--grad, var(--brand)); color: #fff; }
.fl-row, .fl-drive { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.fl-row:first-of-type, .fl-drive:first-of-type { border-top: 0; }
.fl-row .grow, .fl-drive .grow { min-width: 160px; flex: 1; }
.fl-time { flex: none; min-width: 58px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; padding: 6px 8px; border-radius: 10px; background: var(--fill); font-variant-numeric: tabular-nums; }
.fl-drive.late .fl-time { background: var(--bad-soft); color: var(--bad); }
.fl-drive.late { box-shadow: inset 3px 0 0 var(--bad); padding-left: 8px; }
#floorCard .fl-drive { border: 0; padding: 4px 0; }
.fl-log td, .fl-log th { white-space: nowrap; } .fl-log td:last-child { white-space: normal; }
.table-wrap { overflow-x: auto; }
.fl-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.wi-lic { padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; margin-top: 10px; line-height: 1.6; }
.wi-lic .btn { margin: 4px 4px 0 0; }
.wi-hits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.lic-cam { position: relative; border-radius: 14px; overflow: hidden; background: var(--fill); min-height: 70px; display: grid; place-items: center; margin-bottom: 10px; }
.lic-cam video { display: none; width: 100%; max-height: 260px; object-fit: cover; }
.lic-cam.on video { display: block; }
.lic-frame { display: none; position: absolute; inset: 22% 8%; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 10px; }
.lic-cam.on .lic-frame { display: block; }
.lic-cam #licCamBtn { margin: 14px; }
.lic-nocam { padding: 10px 12px; border-radius: 12px; background: var(--fill); margin-bottom: 10px; }

/* Contracts in transit */
.cit-list { display: grid; gap: 12px; }
.cit { padding: 14px 16px; box-shadow: var(--shadow), inset 4px 0 0 var(--line-strong); }
.cit.warn { box-shadow: var(--shadow), inset 4px 0 0 var(--warn); } .cit.bad { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); } .cit.ok { box-shadow: var(--shadow), inset 4px 0 0 var(--ok); }
.cit-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cit-head .grow { min-width: 180px; flex: 1; }
.cit-days { width: 58px; flex: none; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--fill); display: grid; line-height: 1.1; }
.cit-days b { font-family: var(--display); font-size: 22px; } .cit-days span { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cit.warn .cit-days { background: var(--warn-soft); color: var(--warn); } .cit.bad .cit-days { background: var(--bad-soft); color: var(--bad); } .cit.ok .cit-days { background: var(--ok-soft); color: var(--ok); }
.cit-amt { text-align: right; display: grid; } .cit-amt b { font-family: var(--display); font-size: 20px; }
.cit-body { display: grid; grid-template-columns: 180px 180px minmax(0, 1fr); gap: 10px 14px; margin-top: 12px; align-items: end; }
.cit-body label { font-size: 14px; } .cit-note { grid-column: 1 / -1; }
.cit-stips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cit-stips > .muted { width: 100%; }
.stip { font: inherit; font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--warn); cursor: pointer; }
.stip.done { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.cit-stips select { width: auto; font-size: 14px; padding: 4px 8px; }
@media (max-width: 760px) { .cit-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cit-stips { grid-column: 1 / -1; } .cit-amt { text-align: left; } }

/* Book values */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.book-col { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.book-col table { width: 100%; font-size: 14px; } .book-col th { font-size: 12.5px; color: var(--muted); text-align: right; font-weight: 700; }
.book-col td { padding: 4px 0; } .book-col td + td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.book-col tr.on td { color: var(--brand); font-weight: 800; }
.book-brand { font-family: var(--display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.book-brand.kbb { color: #1f6fd1; } .book-brand.bb { color: var(--ink); }


/* Desk, compact: tabs, summary and grid fit on a laptop screen without scrolling */
.dk-right { gap: 8px; }
.dk-tabs { padding: 4px; gap: 4px; }
.dk-tab { padding: 5px 8px; grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 8px; }
.dk-tab b { font-size: clamp(14px, 1.3vw, 17px); } .dk-tab span { font-size: 14px; }
.dk-tools { min-height: 0; } .dk-tools .btn.sm { padding: 4px 10px; }
.dk-sum { padding: 8px 16px; }
.dk-sum > .row { gap: 10px; } .dk-sum h2 { font-size: 15px; } .dk-sum-pay { font-size: 22px; }
.dk-profit { margin: 0 0 6px; font-size: 14px; }
.dk-chips { padding-top: 6px; gap: 4px; } .dk-chip { font-size: 14px; padding: 3px 8px; }
.dk-break { margin-top: 4px; }
#dkGridCard, #dkLeaseCard { padding: 10px 16px; }
#dkGridCard h2, #dkLeaseCard h2 { font-size: 15px; }
.dk-pg-wrap { margin-top: 6px; }
.dk-pg { gap: 6px 8px; }
.dk-pg-lbl { font-size: 14px; }
.dk-pg select, .dk-pg input { padding-top: 6px; padding-bottom: 6px; }
.dk-cell { padding: 8px 6px; min-height: 46px; font-size: clamp(17px, 1.5vw, 22px); }
.dk-more { margin-top: 8px; padding-top: 6px; } .dk-more .btn.sm { padding: 3px 10px; }
.dk-left { padding: 2px 14px 8px; }
.dk-left-head { padding: 8px 0; }
.dk-line { padding: 4px 0; } .dk-line input, .dk-ro { padding-top: 6px; padding-bottom: 6px; }
.dk-sec > summary { padding: 9px 0; }

.dk-sum-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dk-sum-top .dk-chips { flex: 1; border-top: 0; padding-top: 0; min-width: 0; }
.dk-sum-sub { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-top: 4px; }
.dk-sum-sub .dk-profit { margin: 0; } #dkHint2 { font-size: 14px; }
@media (max-width: 1419px) { #dkHint2 { display: none; } }
.dk-tab b, .dk-tab span { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 700px) { .dk-tab { grid-auto-flow: row; gap: 0; } } .dk-sum-sub .dk-break { margin: 0; } .dk-sum-sub .dk-break[open] { flex-basis: 100%; }
@media (min-width: 1420px) {
  .dk-right { grid-template-columns: minmax(0, 1fr) auto; }
  .dk-right > * { grid-column: 1 / -1; }
  .dk-right > .dk-tabs { grid-column: 1; } .dk-right > .dk-tools { grid-column: 2; align-self: center; flex-wrap: wrap; justify-content: flex-end; }
  .dk-right > .dk-tools #dkHint { display: none; }
}

/* ===================== Theme: "Ledger" =====================
   Warm paper surfaces, ink-black controls and one signal-orange accent. A slim icon rail on the left instead of a wide dark
   sidebar, hairline borders instead of heavy shadows, Fraunces (serif) for headings and big numbers, Instrument Sans for text. */
:root {
  --bg: #f5f2ec; --panel: #fffdf9; --fill: #efebe3; --fill-2: #f8f5ef; --lane: #ece7dd; --line: #e4dfd4; --line-strong: #cdc6b7;
  --ink: #1d1b17; --muted: #6d675c; --faint: #a39d90;
  --accent: #e2531f; --accent-soft: #fcebe2; --accent-ink: #ffffff;
  --brand: #1d1b17; --brand-ink: #fffdf9; --on-accent: #fffdf9; --brand-soft: #fcebe2; --brand-soft-2: #f6cdb9;
  --volt: #e2531f; --volt-ink: #ffffff;
  --grad: #e2531f; --grad-soft: #fcebe2;
  --ok: #1f7a4d; --ok-soft: #e3f1e7; --warn: #a65d00; --warn-soft: #fbefd9; --bad: #c4352c; --bad-soft: #fbe7e4;
  --violet-soft: #ece9f7; --note-soft: #fbf3d2; --today: #fdf3ec;
  --sidebar: #fffdf9; --sidebar-ink: #6d675c; --sidebar-active: #1d1b17; --sidebar-active-ink: #fffdf9;
  --topbar: rgba(245, 242, 236, .9); --input: #fffdf9; --overlay: rgba(29, 27, 23, .45); --toast: #1d1b17; --toast-ink: #fffdf9;
  --shadow: 0 1px 2px rgba(29, 27, 23, .05);
  --shadow-lg: 0 24px 60px -24px rgba(29, 27, 23, .35);
  --radius: 10px;
  --font: "Instrument Sans", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --series-1: #e2531f; --series-2: #2f6f8f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #131210; --panel: #1b1a17; --fill: #25231f; --fill-2: #1f1d1a; --lane: #171614; --line: #2e2c27; --line-strong: #423f38;
  --ink: #f2eee6; --muted: #a29b8e; --faint: #6a645a;
  --accent: #ff7445; --accent-soft: rgba(255, 116, 69, .14); --accent-ink: #1b1a17;
  --brand: #f2eee6; --brand-ink: #1b1a17; --on-accent: #1b1a17; --brand-soft: rgba(255, 116, 69, .14); --brand-soft-2: rgba(255, 116, 69, .3);
  --volt: #ff7445; --volt-ink: #1b1a17; --grad: #ff7445; --grad-soft: rgba(255, 116, 69, .12);
  --ok: #5fcf93; --ok-soft: rgba(95, 207, 147, .13); --warn: #f0b45a; --warn-soft: rgba(240, 180, 90, .13); --bad: #ff6f62; --bad-soft: rgba(255, 111, 98, .14);
  --violet-soft: rgba(160, 150, 255, .12); --note-soft: rgba(250, 214, 60, .09); --today: rgba(255, 116, 69, .06);
  --sidebar: #1b1a17; --sidebar-ink: #a29b8e; --sidebar-active: #f2eee6; --sidebar-active-ink: #1b1a17;
  --topbar: rgba(19, 18, 16, .88); --input: #161513; --overlay: rgba(0, 0, 0, .6); --toast: #f2eee6; --toast-ink: #1b1a17;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, .8);
  --series-1: #ff7445; --series-2: #6fb3d2;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #131210; --panel: #1b1a17; --fill: #25231f; --fill-2: #1f1d1a; --lane: #171614; --line: #2e2c27; --line-strong: #423f38;
  --ink: #f2eee6; --muted: #a29b8e; --faint: #6a645a;
  --accent: #ff7445; --accent-soft: rgba(255, 116, 69, .14); --accent-ink: #1b1a17;
  --brand: #f2eee6; --brand-ink: #1b1a17; --on-accent: #1b1a17; --brand-soft: rgba(255, 116, 69, .14); --brand-soft-2: rgba(255, 116, 69, .3);
  --volt: #ff7445; --volt-ink: #1b1a17; --grad: #ff7445; --grad-soft: rgba(255, 116, 69, .12);
  --ok: #5fcf93; --ok-soft: rgba(95, 207, 147, .13); --warn: #f0b45a; --warn-soft: rgba(240, 180, 90, .13); --bad: #ff6f62; --bad-soft: rgba(255, 111, 98, .14);
  --violet-soft: rgba(160, 150, 255, .12); --note-soft: rgba(250, 214, 60, .09); --today: rgba(255, 116, 69, .06);
  --sidebar: #1b1a17; --sidebar-ink: #a29b8e; --sidebar-active: #f2eee6; --sidebar-active-ink: #1b1a17;
  --topbar: rgba(19, 18, 16, .88); --input: #161513; --overlay: rgba(0, 0, 0, .6); --toast: #f2eee6; --toast-ink: #1b1a17;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, .8);
  --series-1: #ff7445; --series-2: #6fb3d2;
  color-scheme: dark;
}

body { font-family: var(--font); font-size: 14px; letter-spacing: 0; background: var(--bg); }
h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
h2 { font-family: var(--font); font-weight: 650; letter-spacing: -.005em; }
.brand, .big-pay, .dk-sum-pay, .stat .val, .stat .num, .pay-now, .cit-days b, .cit-amt b, .aged-days b { font-family: var(--display); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
#view a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
#view a:not([class]):hover { text-decoration-color: var(--accent); }

/* Rail: slim, light, icon over label */
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar .brand, .sidebar .brand-text { color: var(--ink); }
.logo { background: var(--ink); color: var(--bg); border-radius: 9px; box-shadow: none; }
.logo svg path:first-child { fill: var(--accent); }
nav a, .sidebar nav a, .sidebar nav a:visited { color: var(--sidebar-ink); box-shadow: none; }
nav a:hover, .sidebar nav a:hover { background: var(--fill); color: var(--ink); }
nav a.active, .sidebar nav a.active { background: var(--sidebar-active); color: var(--sidebar-active-ink); box-shadow: none; }
nav a.active i.ico { color: var(--accent); }
.nav-badge, .badge { background: var(--accent); color: #fff; }
@media (min-width: 821px) {
  .sidebar { width: 84px; padding: 12px 8px; overflow-y: auto; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .brand { justify-content: center; margin: 0 0 12px; padding: 0; }
  .sidebar .brand-text { display: none; }
  nav a { flex-direction: column; gap: 3px; padding: 7px 2px 6px; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.15; border-radius: 10px; position: relative; }
  nav a i.ico { width: 22px; height: 22px; }
  nav a i.ico svg { width: 19px; height: 19px; }
  nav a .nav-badge { position: absolute; top: 3px; right: 10px; margin: 0; min-width: 16px; height: 16px; font-size: 14px; padding: 0 4px; }
}
@media (max-width: 820px) {
  .sidebar { border-top: 1px solid var(--line); background: var(--sidebar); }
  nav a.active, .sidebar nav a.active { background: transparent; color: var(--ink); }
  nav a.active i.ico { background: var(--ink); color: var(--accent); border-radius: 8px; width: 34px; height: 26px; }
}

/* Top bar: flat paper with a hairline */
.topbar { background: var(--topbar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.icon-btn, .bell, .theme-btn, .lead-clock { border-radius: 9px; }
.me { background: var(--ink); color: var(--bg); border-radius: 50%; }

/* Buttons: ink primary, accent only where it matters */
.btn { border-radius: 8px; box-shadow: none; }
.btn.primary, #newLeadBtn { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; filter: none; box-shadow: none; }
.btn:not(.primary):not(.danger):not(.ok):hover { border-color: var(--ink); }
input, select, textarea { border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-btn { border-radius: 8px; }
.chip-btn.on, .chip-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill { border-radius: 6px; letter-spacing: .01em; }

/* Cards: hairlines, no glow; stats get a small accent tick instead of a gradient bar */
.card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
a.card:hover, a.stat:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.stat::after { left: 16px; top: 0; width: 22px; height: 3px; right: auto; border-radius: 0 0 3px 3px; background: var(--accent); opacity: 1; }
.stat .num, .stat .val { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.modal-card { border-radius: 14px; }
.toast { border-radius: 10px; }

/* Desk: tighter type and spacing so it all fits without looking crushed */
.dk-head, .dk-sum { background: var(--panel); border: 1px solid var(--line); }
.dk-head { padding: 10px 14px; gap: 12px; }
.dk-grid { gap: 12px; }
.dk-left { padding: 2px 14px 6px; font-size: 14px; }
.dk-left-head { padding: 7px 0; } .dk-left-head h2 { font-size: 14px; }
.dk-line { padding: 3px 0; font-size: 14px; font-weight: 600; }
.dk-line input, .dk-ro { padding: 5px 9px; font-size: 14px; width: 120px; min-width: 0; }
.dk-sec > summary { padding: 8px 0; font-size: 14px; }
.dk-body label { font-size: 14px; } .dk-body input, .dk-body select { padding: 5px 8px; font-size: 14px; }
.dk-right { gap: 8px; }
.dk-tabs { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.dk-tab { padding: 5px 8px; border-radius: 7px; }
.dk-tab span { font-size: 14px; } .dk-tab b { font-size: 15px; font-family: var(--font); font-weight: 700; }
.dk-tab.on { background: var(--ink); color: var(--bg); box-shadow: none; } .dk-tab.on b { color: var(--bg); }
:root .dk-tab.on b { color: var(--bg); }
.dk-tools .btn.sm { padding: 3px 9px; font-size: 14px; }
.dk-sum { padding: 8px 14px; }
.dk-sum h2 { font-size: 14px; } .dk-sum-pay, .big-pay { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); font-size: 22px; }
:root:not([data-theme="light"]) .dk-sum-pay, :root[data-theme="dark"] .dk-sum-pay { color: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dk-sum-pay { color: var(--accent); } }
.dk-chip { font-size: 14px; padding: 2px 7px; border-radius: 6px; }
.dk-profit, #dkHint2 { font-size: 14px; }
#dkGridCard, #dkLeaseCard { padding: 9px 14px 10px; }
#dkGridCard h2, #dkLeaseCard h2 { font-size: 14px; }
.dk-pg { gap: 5px 6px; }
.dk-pg-lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.dk-pg select, .dk-pg input { padding: 5px 8px; font-size: 14px; }
.dk-money input { padding-left: 20px; } .dk-money::before { left: 8px; }
.dk-cell { font-size: clamp(15px, 1.25vw, 19px); font-weight: 700; padding: 7px 4px; min-height: 40px; border-radius: 8px; background: var(--fill-2); border: 1px solid var(--line); }
.dk-cell:hover { border-color: var(--ink); }
.pay.on, .dk-cell.on { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.dk-more { margin-top: 6px; padding-top: 5px; } .dk-more .btn.sm { padding: 2px 9px; font-size: 14px; }
@media (min-width: 1100px) { .dk-grid.wide .dk-cell { font-size: clamp(18px, 1.6vw, 24px); padding: 16px 6px; min-height: 64px; } }

/* Lead clock, aged, response */
.lead-clock .lc-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lc-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); }
.aged-days, .cust-clock { background: var(--accent-soft); border-color: transparent; }
.vp-c.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.viz-mode button.on, .fl-queue li.next .fl-n { background: var(--ink); color: var(--bg); }
.fl-queue li.next { background: var(--accent-soft); border-color: transparent; }
.login { background: var(--bg); }

.btn, button, .lead-clock, .me, .lc-time, .fl-time { font-family: var(--font); }
#newLeadBtn, .lead-clock b, .lc-time, .cust-clock b { font-family: var(--font) !important; font-weight: 700; }
@media (max-width: 820px) { nav a { position: relative; } nav a .nav-badge { position: absolute; top: 1px; right: calc(50% - 22px); margin: 0; min-width: 16px; height: 16px; font-size: 14px; padding: 0 4px; } }
.btn { font-weight: 600; }


/* ===================== Colors: Aurora purple on the Ledger layout =====================
   Devin kept the purple scheme: lavender-white / midnight surfaces, violet-to-pink gradient accents, midnight rail. */
:root {
  --bg: #f5f4fb; --panel: #ffffff; --fill: #efedf8; --fill-2: #f7f6fc; --lane: #eeecf7; --line: #e6e3f2; --line-strong: #cfcae6;
  --ink: #17142e; --muted: #6a6688; --faint: #a4a0bf;
  --brand: #6a4cff; --brand-ink: #ffffff; --on-accent: #ffffff; --brand-soft: #efeaff; --brand-soft-2: #dcd2ff;
  --volt: #7c5cff; --volt-ink: #ffffff;
  --grad: linear-gradient(135deg, #6a4cff 0%, #b14dff 55%, #ff5c9d 100%);
  --grad-soft: linear-gradient(135deg, rgba(106, 76, 255, .10), rgba(255, 92, 157, .10));
  --ok: #0f9d63; --ok-soft: #e2f7ed; --warn: #c26a00; --warn-soft: #fff1de; --bad: #e0344a; --bad-soft: #fdeaee;
  --violet-soft: #efeaff; --note-soft: #fff7d6; --today: #f4f0ff;
  --sidebar: #13102b; --sidebar-ink: #a9a4cc; --sidebar-active: var(--grad); --sidebar-active-ink: #ffffff;
  --topbar: rgba(245, 244, 251, .78); --input: #ffffff; --overlay: rgba(19, 16, 43, .5); --toast: #17142e; --toast-ink: #ffffff;
  --shadow: 0 1px 2px rgba(23, 20, 46, .04), 0 10px 30px -14px rgba(60, 40, 140, .22);
  --shadow-lg: 0 30px 70px -20px rgba(40, 25, 110, .38);
  --series-1: #6a4cff; --series-2: #ff5c9d;
  --brand-mid: #b14dff; --brand-end: #ff5c9d; --glow-rgb: 177, 77, 255;
  --accent: #7c5cff; --accent-soft: #efeaff; --accent-ink: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0a19; --panel: #15132a; --fill: #1d1a37; --fill-2: #18162f; --lane: #121027; --line: #27234a; --line-strong: #39345f;
  --ink: #f1efff; --muted: #9a95c2; --faint: #5f5a87;
  --brand: #a08cff; --brand-ink: #ffffff; --on-accent: #ffffff; --brand-soft: rgba(140, 115, 255, .14); --brand-soft-2: rgba(140, 115, 255, .28);
  --volt: #a08cff; --volt-ink: #ffffff;
  --grad: linear-gradient(135deg, #7b5cff 0%, #c255ff 55%, #ff6aa8 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, .16), rgba(255, 106, 168, .12));
  --ok: #3fdc9a; --ok-soft: rgba(63, 220, 154, .13); --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .13); --bad: #ff6178; --bad-soft: rgba(255, 97, 120, .14);
  --violet-soft: rgba(140, 115, 255, .14); --note-soft: rgba(250, 214, 60, .10); --today: rgba(140, 115, 255, .07);
  --sidebar: #0d0b1f; --sidebar-ink: #8f8ab8;
  --topbar: rgba(11, 10, 25, .72); --input: #100e22; --overlay: rgba(0, 0, 0, .65); --toast: #f1efff; --toast-ink: #17142e;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -16px rgba(0, 0, 0, .8); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .85);
  --series-1: #a08cff; --series-2: #ff6aa8;
  --accent: #a08cff; --accent-soft: rgba(140, 115, 255, .16); --accent-ink: #ffffff;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0b0a19; --panel: #15132a; --fill: #1d1a37; --fill-2: #18162f; --lane: #121027; --line: #27234a; --line-strong: #39345f;
  --ink: #f1efff; --muted: #9a95c2; --faint: #5f5a87;
  --brand: #a08cff; --brand-ink: #ffffff; --on-accent: #ffffff; --brand-soft: rgba(140, 115, 255, .14); --brand-soft-2: rgba(140, 115, 255, .28);
  --volt: #a08cff; --volt-ink: #ffffff;
  --grad: linear-gradient(135deg, #7b5cff 0%, #c255ff 55%, #ff6aa8 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, .16), rgba(255, 106, 168, .12));
  --ok: #3fdc9a; --ok-soft: rgba(63, 220, 154, .13); --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .13); --bad: #ff6178; --bad-soft: rgba(255, 97, 120, .14);
  --violet-soft: rgba(140, 115, 255, .14); --note-soft: rgba(250, 214, 60, .10); --today: rgba(140, 115, 255, .07);
  --sidebar: #0d0b1f; --sidebar-ink: #8f8ab8;
  --topbar: rgba(11, 10, 25, .72); --input: #100e22; --overlay: rgba(0, 0, 0, .65); --toast: #f1efff; --toast-ink: #17142e;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -16px rgba(0, 0, 0, .8); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .85);
  --series-1: #a08cff; --series-2: #ff6aa8;
  --accent: #a08cff; --accent-soft: rgba(140, 115, 255, .16); --accent-ink: #ffffff;
  color-scheme: dark;
}


body { background: radial-gradient(1200px 600px at 100% -10%, rgba(var(--glow-rgb), .08), transparent 60%), var(--bg); background-attachment: fixed; }
::selection { background: var(--brand-mid); color: #fff; }
#view a:not([class]) { color: var(--brand); text-decoration: none; }
#view a:not([class]):hover { text-decoration: underline; text-decoration-color: var(--brand); }
.sidebar { background: radial-gradient(300px 260px at 0% 0%, rgba(var(--glow-rgb), .25), transparent 70%), var(--sidebar); border-right: 1px solid rgba(255, 255, 255, .05); }
.sidebar .brand, .sidebar .brand-text { color: #fff; }
.logo { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(var(--glow-rgb), .8); }
.logo svg path:first-child { fill: currentColor; }
nav a, .sidebar nav a, .sidebar nav a:visited { color: var(--sidebar-ink); }
nav a:hover, .sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
nav a.active, .sidebar nav a.active { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(var(--glow-rgb), .9); }
nav a.active i.ico { color: #fff; }
.nav-badge, .badge { background: var(--brand-end); color: #fff; }
@media (max-width: 820px) {
  .sidebar { border-top: 1px solid rgba(255, 255, 255, .06); }
  nav a.active, .sidebar nav a.active { background: transparent; color: #fff; box-shadow: none; }
  nav a.active i.ico { background: var(--grad); color: #fff; }
}
.me { background: var(--grad); color: #fff; }
.btn.primary, #newLeadBtn { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(var(--glow-rgb), .9); }
.btn.primary:hover { background: var(--grad); border-color: transparent; filter: brightness(1.07) saturate(1.1); }
.btn:not(.primary):not(.danger):not(.ok):hover { border-color: var(--brand); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chip-btn.on, .chip-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
a.card:hover, a.stat:hover { border-color: var(--brand); }
.stat::after { left: 0; right: 0; width: auto; height: 3px; border-radius: 0; background: var(--grad); }
.stat .num, .stat .val { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dk-tab.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand-mid), var(--shadow); } .dk-tab.on b, :root .dk-tab.on b { color: var(--brand); }
.dk-sum-pay, .big-pay, :root:not([data-theme="light"]) .dk-sum-pay, :root[data-theme="dark"] .dk-sum-pay { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dk-cell:hover { border-color: var(--brand); }
.pay.on, .dk-cell.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(var(--glow-rgb), .95); }
.lead-clock .lc-dot { background: var(--brand-mid); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .25); }
.lc-card { border-left: 3px solid var(--brand-mid); }
.aged-days, .cust-clock { background: var(--grad-soft); }
.vp-c.on { box-shadow: 0 0 0 2px var(--brand-mid); }
.viz-mode button.on, .fl-queue li.next .fl-n { background: var(--grad); color: #fff; }
.fl-queue li.next { background: var(--brand-soft); }
.login { background: radial-gradient(900px 480px at 15% -10%, rgba(var(--glow-rgb), .28), transparent 70%), radial-gradient(700px 420px at 100% 110%, rgba(255, 92, 157, .2), transparent 70%), var(--bg); }

.dk-taxzip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; background: var(--brand-soft); }
.cpy { cursor: copy; border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background .15s; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
.cpy:hover { background: var(--brand-soft); text-decoration-color: var(--brand); }
.cpy.copied { background: var(--ok-soft); color: var(--ok); text-decoration: none; }
.cpy.copied::after { content: " ✓"; font-size: .85em; }
/* Credit application: Personal / Residence / Employment tabs */
.ca-sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--fill); margin-left: auto; flex-wrap: wrap; }
.ca-tabs button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.ca-tabs button b { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: var(--panel); color: var(--muted); }
.ca-tabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.ca-tabs button.on b { background: var(--grad, var(--brand)); color: #fff; }
.ca-tabs button.done b { background: var(--ok); color: #fff; } .ca-tabs button.done b::before { content: "✓"; } .ca-tabs button.done b { font-size: 0; } .ca-tabs button.done b::before { font-size: 12.5px; }
.ca-tab-dot { display: none; }
.ca-pane { display: none; gap: 10px; } .ca-pane.on { display: grid; }
.ca-next { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.ca-seg-wrap { display: grid; gap: 5px; } .ca-seg-l { font-size: 14px; font-weight: 600; }
.ca-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-seg button { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer; }
.ca-seg button:hover { border-color: var(--brand); }
.ca-seg button.on { background: var(--grad, var(--brand)); color: #fff; border-color: transparent; }
.ca-emp { display: grid; gap: 10px; } .ca-emp.off { display: none; }
.ca-tax { font-size: 14px; } .ca-tax:empty { display: none; } .ca-tax:not(:empty) { padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); }

/* ---------- Customer page: quick actions, tabs, snapshot, audit ---------- */
.cust-head { margin-bottom: 10px; } .cust-head > .grow { flex: 1; }
.cust-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 2px; }
.cust-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cust-actions .qa { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s; }
.cust-actions .qa:hover { border-color: var(--brand); background: var(--brand-soft); }
.cust-actions .qa[data-primary] { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.cust-actions .qa[data-primary]:hover { filter: brightness(1.06); }
.cust-actions .qa-i { font-size: 15px; line-height: 1; }
.cust-actions .qa.asked { border-color: var(--warn, #d97706); }
.cust-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.cust-tabs::-webkit-scrollbar { display: none; }
.cust-tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cust-tabs button:hover { color: var(--ink); }
.cust-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.cust-tabs button i { font-style: normal; font-size: 12.5px; background: var(--fill); color: var(--muted); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.cust-tabs button.on i { background: var(--brand-soft); color: var(--brand); }
.cust-pane { display: none; }
.cust-pane.on { display: block; animation: paneIn .14s ease-out; }
@keyframes paneIn { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.pane-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.snap { text-align: left; display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; transition: border-color .12s, transform .12s; }
.snap:hover { border-color: var(--brand); transform: translateY(-1px); }
.snap-l { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.snap b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap-s { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap.t1 b, .snap.t2 b { color: var(--ok); } .snap.t4 b, .snap.t5 b { color: var(--bad); }
.snap.live { border-color: var(--ok); }
.tl.mini { padding: 8px 0; gap: 10px; } .tl.mini .ico { width: 26px; height: 26px; font-size: 14px; } .tl.mini .body { font-size: 14px; }
.tl-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.tl-filter button { border: 0; background: var(--fill); padding: 4px 10px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tl-filter button.on { background: var(--brand); color: var(--on-accent); }
.info-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 4px; font-size: 14px; }
.info-dl dt { color: var(--muted); } .info-dl dd { margin: 0; word-break: break-word; }
.audit-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.audit-when { width: 92px; flex-shrink: 0; display: grid; }
.audit-chg { margin-top: 3px; font-size: 12.5px; } .audit-chg s { color: var(--muted); }
.audit-move { padding: 4px 0; border-top: 1px dashed var(--line); }
#auditRows { margin-top: 8px; }
@media (max-width: 980px) { .pane-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .cust-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .cust-actions::-webkit-scrollbar { display: none; }
  .cust-actions .qa { flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 12.5px; min-width: 64px; }
  .cust-actions .qa-i { font-size: 18px; }
  .snap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-when { width: 64px; }
}

/* ---------- Customer page: three columns (info rail · tabs · actions) ---------- */
.cust-head .head-veh { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.cust-head .head-veh:hover { border-color: var(--brand); }
.cust-head .head-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.cust-head .head-veh { position: relative; padding-top: 16px; min-width: 200px; }
.cust-head .head-veh .head-k { position: absolute; top: 4px; left: 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cust-head .head-veh.empty { border-style: dashed; }
.cust-head .head-veh.empty b { color: var(--muted); font-weight: 600; }
.cust-head .head-veh > span:last-child { display: grid; line-height: 1.25; }
.pill.cond-new { background: var(--ok-soft); color: var(--ok); } .pill.cond-used { background: var(--brand-soft); color: var(--brand); }
.cust-head .help-btn { font-weight: 700; }
.cust-shell { display: grid; grid-template-columns: 276px minmax(0, 1fr) 168px; gap: 16px; align-items: start; }
.cust-main { min-width: 0; container-type: inline-size; }
.cust-left { display: grid; gap: 12px; align-content: start; min-width: 0; }
.side-card { padding: 14px 16px; }
.side-card h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.side-row { display: grid; grid-template-columns: 18px 62px minmax(0, 1fr); gap: 6px; align-items: center; padding: 5px 0; font-size: 14px; }
.side-i { font-size: 14px; text-align: center; }
.side-l { color: var(--muted); font-size: 14px; }
.side-v { font-weight: 600; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.side-v .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.reach-row { display: flex; gap: 12px; align-items: center; }
.reach-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
  background: radial-gradient(circle, var(--brand-soft-2) 0 34%, var(--brand-soft) 35% 64%, transparent 65%), var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.glance { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.glance:first-of-type { border-top: 0; }
.glance:hover { background: var(--fill-2); }
.glance .grow { display: grid; min-width: 0; line-height: 1.3; }
.glance b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glance .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glance-go { color: var(--faint); font-size: 16px; }
.glance.t1 b, .glance.t2 b { color: var(--ok); } .glance.t4 b, .glance.t5 b { color: var(--bad); } .glance.live b { color: var(--ok); }
#assistCard.side-card h2 { font-size: 14px; margin-bottom: 8px; }
.cust-right { display: grid; gap: 14px; align-content: start; position: sticky; top: 12px; }
.act-group { display: grid; gap: 5px; }
.act-group h4 { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.act { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; white-space: nowrap; transition: border-color .12s, background .12s; }
.act:hover { border-color: var(--brand); background: var(--brand-soft); }
.act-i { width: 18px; text-align: center; font-size: 14px; }
.act[data-primary] { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.act[data-good]:hover { border-color: var(--ok); background: var(--ok-soft); } .act[data-bad]:hover { border-color: var(--bad); background: var(--bad-soft); }
.up-next .list-item { padding: 6px 0; }
.up-when { font-size: 14px; font-weight: 700; white-space: nowrap; }
@container (max-width: 860px) { .cust-main .pane-grid, .cust-main .cust-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1279px) {
  .cust-shell { grid-template-columns: 244px minmax(0, 1fr); }
  .cust-main { grid-column: 2; grid-row: 2; } .cust-left { grid-row: 1 / span 2; }
}
@media (max-width: 900px) {
  .cust-shell { grid-template-columns: minmax(0, 1fr); }
  .cust-main { grid-column: 1; grid-row: 2; } .cust-left { grid-row: 3; }
  .cust-head .head-cards { order: 5; width: 100%; } .cust-head .head-veh { flex: 1 1 160px; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 20px; } .cust-head .head-veh .pill { position: absolute; top: 4px; right: 8px; font-size: 14px; padding: 1px 7px; }
  .cust-head > .grow { flex: 1 1 calc(100% - 80px); }
  .cust-head h1 { font-size: 26px; }
  .cust-head .help-btn { order: 6; flex: 1; } .cust-head #editCust { order: 7; } .cust-head #helpDismiss { order: 6; }
}

/* ---------- Vehicle spiffs ---------- */
.spiff-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; margin-left: 6px; vertical-align: middle; }
.spiff-chip.big { font-size: 14px; padding: 4px 10px; }
.set-spiffs { margin-bottom: 16px; }
.spf-forms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; margin: 12px 0; }
.spf-form { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; align-content: start; background: var(--fill-2); }
.spf-form h3 { margin: 0; font-size: 14px; }
.spf-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.spf-days { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.spf-days button { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.spf-days button.on { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.spf-days input { width: 70px; }
.spf-preview { font-size: 14px; }
.spf-units { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-height: 110px; overflow: auto; }
.spf-units span { font-size: 14px; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.spf-units span i { font-style: normal; color: var(--muted); font-weight: 500; }
.spf-units span.skip { background: var(--fill); color: var(--faint); text-decoration: line-through; }
.spf-table td, .spf-table th { white-space: nowrap; }
.aged-head .spiff-chip { align-self: center; }
@media (max-width: 900px) { .spf-forms, .spf-g { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Customer page: market highlights ---------- */
.mkt-card .mkt-unit { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: grid; gap: 10px; }
.mkt-card .mkt-unit:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.mkt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.mkt-stats > div { background: var(--fill-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.mkt-stats b { font-size: 16px; white-space: nowrap; } .mkt-stats b small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mkt-stats span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mkt-stats .good b { color: var(--ok); } .mkt-stats .ok b { color: var(--ink); } .mkt-stats .high b { color: var(--bad); }
.mkt-range.sm { margin: 10px 0 26px; }
.mkt-points.sm { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 2px; }

/* ---------- Settings: my colors ---------- */
.set-theme { margin-bottom: 14px; }
.th-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.th-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.th-block h3 + .th-seg { margin-bottom: 14px; }
.th-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.th-sw { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill-2); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; position: relative; min-height: 44px; }
.th-sw i { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.th-sw span { line-height: 1.15; } .th-sw em { display: block; font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }
.th-sw:hover { border-color: var(--line-strong); }
.th-sw.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft-2); background: var(--panel); }
.th-sw.on::after { content: '✓'; position: absolute; top: 4px; right: 7px; font-size: 12.5px; color: var(--brand); }
.th-custom input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.th-seg { display: inline-flex; flex-wrap: wrap; background: var(--fill); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.th-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 11px; border-radius: 8px; cursor: pointer; min-height: 34px; }
.th-seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.th-preview { display: grid; grid-template-columns: 54px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 112px; background: var(--bg); }
.th-pv-rail { background: var(--sidebar); display: grid; align-content: start; justify-items: center; gap: 7px; padding: 10px 0; }
.th-pv-rail .logo { width: 22px; height: 22px; border-radius: 7px; display: block; margin-bottom: 4px; }
.th-pv-rail span { width: 30px; height: 7px; border-radius: 4px; background: var(--sidebar-ink); opacity: .35; }
.th-pv-rail span.on { background: var(--grad); opacity: 1; }
.th-pv-main { padding: 10px 12px; display: grid; gap: 10px; align-content: start; }
.th-pv-bar { height: 8px; width: 46%; border-radius: 4px; background: var(--line-strong); }
.th-pv-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.th-pv-row .btn { pointer-events: none; }
.th-pv-row .pill { background: var(--brand-soft); color: var(--brand); }
.th-pv-link { color: var(--brand); font-size: 14px; font-weight: 600; }
.th-pv-tabs { display: flex; gap: 12px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.th-pv-tabs span { padding-bottom: 5px; } .th-pv-tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand-mid); font-weight: 600; }
@media (max-width: 900px) { .th-grid { grid-template-columns: 1fr; } .th-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sold bell: board, congrats, alerts ---------- */
.sold-list { display: grid; gap: 12px; max-width: 860px; }
.sold-item { display: grid; gap: 12px; }
.sold-item.focus { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.sold-top { display: flex; gap: 12px; align-items: center; }
.sold-head { font-size: 15px; line-height: 1.35; }
.sold-bell { font-size: 22px; filter: saturate(1.2); }
.sold-item.focus .sold-bell { animation: sold-ring 1s ease 2; transform-origin: 50% 10%; }
@keyframes sold-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .sold-item.focus .sold-bell { animation: none; } }
.sold-ms { display: flex; flex-wrap: wrap; gap: 6px; }
.sold-ms .ms { display: inline-flex; align-items: baseline; gap: 6px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--brand-soft-2); border-radius: 999px; padding: 4px 11px; font-size: 14px; font-weight: 600; }
.sold-ms .ms small { color: var(--muted); font-weight: 500; font-size: 14px; }
.sold-ms .ms-big_gross { background: var(--ok-soft); border-color: transparent; }
.sold-ms .ms-slump_buster, .sold-ms .ms-streak { background: var(--warn-soft); border-color: transparent; }
.kudos { display: flex; flex-wrap: wrap; gap: 6px; }
.kudo { background: var(--fill-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font-size: 14px; }
.kudo-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.kudo-form input { flex: 1 1 200px; min-width: 0; }
.kudo-emoji { display: flex; gap: 2px; background: var(--fill); border-radius: 10px; padding: 3px; }
.kudo-emoji button { border: 0; background: transparent; font-size: 18px; line-height: 1; padding: 6px 7px; border-radius: 8px; cursor: pointer; min-width: 36px; min-height: 36px; }
.kudo-emoji button.on { background: var(--panel); box-shadow: var(--shadow); }
.kudo-quick { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.kudo-quick button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; font-size: 16px; line-height: 1; padding: 5px 9px; cursor: pointer; min-height: 32px; color: var(--ink); }
.kudo-quick button:hover { border-color: var(--brand); }
.kudo-quick .kudo-say { font-size: 14px; font-weight: 600; color: var(--brand); }
.kudo-sent { font-size: 14px; font-weight: 600; color: var(--ok); }
.live-pop.cheer { border-left: 4px solid var(--brand-mid); background-image: var(--grad-soft); }
.sold-set details summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.sold-set details summary::-webkit-details-marker { display: none; }
.sold-set details summary::before { content: '▸'; color: var(--muted); } .sold-set details[open] summary::before { content: '▾'; }
.sold-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 10px; }
.sold-set-grid label { display: grid; gap: 4px; align-content: start; }
.sold-set-grid label.chk { display: flex; align-items: center; gap: 8px; }

/* ---------- Preview: simulate a sold car ---------- */
.ss-boosts { display: grid; gap: 6px; margin: 4px 0 8px; }
.ss-boost { display: flex !important; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ss-boost:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ss-boost input { margin-top: 3px; width: auto; }
.ss-boost span { display: grid; gap: 2px; } .ss-boost small { color: var(--muted); font-size: 14px; font-weight: 500; }

.th-sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); margin-left: 6px; font-size: 14px; }
.th-schemes-block { margin-top: 14px; }
.th-schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.th-scheme { border: 1px solid var(--line); background: var(--fill-2); border-radius: 14px; padding: 6px; display: grid; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; position: relative; }
.th-scheme:hover { border-color: var(--line-strong); }
.th-scheme.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft-2); background: var(--panel); }
.th-scheme.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--on-accent); font-size: 12.5px; display: grid; place-items: center; }
.th-thumb { display: grid; grid-template-columns: 1fr 1fr; height: 62px; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.th-half { display: grid; grid-template-columns: 12px 1fr; gap: 5px; padding: 0 6px 0 0; }
.th-half .th-rail { display: block; }
.th-half .th-card { display: grid; align-content: center; gap: 5px; margin: 9px 0; padding: 6px; border-radius: 6px; border: 1px solid; }
.th-half .th-card b { display: block; height: 9px; width: 70%; border-radius: 4px; }
.th-half .th-card u { display: block; height: 5px; width: 90%; border-radius: 3px; }
.th-name { font-size: 14px; font-weight: 600; padding: 0 4px 2px; } .th-name em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 4px; }
@media (max-width: 900px) { .th-schemes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Leather 360 ---------- */
.lth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.lth-stage { position: relative; padding: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #3a3f4a, #15171b 70%); min-height: 520px; }
.lth-canvas { position: absolute; inset: 0; } .lth-canvas canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.lth-tools { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.lth-tools .th-seg { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); }
.lth-tools .th-seg button { color: #d7dae0; } .lth-tools .th-seg button.on { background: #fff; color: #15171b; }
.lth-badges { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.lth-badges span { background: rgba(0, 0, 0, .45); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 10px; font-size: 14px; font-weight: 600; backdrop-filter: blur(4px); }
.lth-hint { position: absolute; right: 12px; bottom: 14px; color: rgba(255, 255, 255, .6) !important; }
.lth-panel { display: grid; gap: 14px; }
.lth-sec h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.lth-sec .row h3 { margin: 0; } .lth-sec .row { margin-bottom: 8px; }
.lth-cur { text-transform: none; letter-spacing: 0; color: var(--ink); }
.lth-sub { font-size: 14px; color: var(--muted); margin: 8px 0 6px; } .lth-sub b { color: var(--ink); }
.lth-name { font-size: 14px; font-weight: 600; margin-top: 6px; }
.lth-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.lth-sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.lth-sw button.on { box-shadow: 0 0 0 2px var(--brand); transform: scale(1.08); }
.lth-climate { display: grid; gap: 6px; }
.lth-climate button { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: var(--fill-2); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; }
.lth-climate button span { color: var(--muted); font-weight: 600; }
.lth-climate button.on { border-color: var(--brand); background: var(--brand-soft); } .lth-climate button.on span { color: var(--brand); }
.lth-total { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.lth-total > div:first-child { display: flex; justify-content: space-between; align-items: baseline; } .lth-total b { font-size: 26px; }
body.lth-present .sidebar, body.lth-present .topbar, body.lth-present #demoBar, body.lth-present .lth-panel, body.lth-present .bottom-nav { display: none !important; }
body.lth-present .lth-wrap { grid-template-columns: 1fr; }
.lth-stage:fullscreen { border-radius: 0; min-height: 100vh; }
@media (max-width: 1000px) { .lth-wrap { grid-template-columns: 1fr; } .lth-stage { min-height: 380px; } }

.ss-sec { margin-top: 8px; } .ss-addons { display: grid; gap: 4px; max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mail-box { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; min-height: 360px; }
.mail-list { display: grid; align-content: start; gap: 4px; max-height: 60vh; overflow: auto; }
.mail-row { text-align: left; border: 1px solid var(--line); background: var(--fill-2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: var(--ink); }
.mail-row span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row.on { border-color: var(--brand); background: var(--brand-soft); }
.mail-view { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: auto; max-height: 60vh; }
.mail-head { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; font-size: 14px; }
@media (max-width: 760px) { .mail-box { grid-template-columns: 1fr; } }

.lth-dds { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.lth-dd { display: grid; grid-template-columns: minmax(0, 1fr) 22px 150px; align-items: center; gap: 8px; font-size: 14px; }
.lth-dd.lead { font-weight: 600; }
.lth-dd-l { color: var(--ink); }
.lth-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong), inset 0 0 0 2px var(--panel); }
.lth-dd select { min-height: 36px; padding: 6px 8px; }

/* Market talking points: a light highlight so salespeople see them first */
.mkt-say { background: color-mix(in srgb, var(--warn-soft) 70%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); border-left: 3px solid var(--warn); border-radius: 10px; padding: 9px 12px; display: grid; gap: 4px; }
.mkt-say > b { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); }
.mkt-say li { color: var(--ink); }

/* ---------- Finding things: sidebar sections, settings jump links ---------- */
.nav-group { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-ink); opacity: .55; padding: 10px 6px 4px; text-align: center; }
.nav-group:first-child { padding-top: 2px; }
@media (max-width: 820px) { .nav-group { display: none; } }
.set-jump { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 6px; margin: -4px 0 14px; padding: 4px 2px 6px; position: sticky; top: 70px; z-index: 3; background: var(--bg); }
.set-jump a { flex: none; white-space: nowrap; }
.set-jump a { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.set-jump a:hover { border-color: var(--brand); color: var(--brand); }
#view section[id] { scroll-margin-top: 120px; }
@media (max-width: 820px) { .set-jump { position: static; } }

.mail-row small { font-size: 12.5px; color: var(--muted); }
.mail-tag { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.lth-perf-seg small, .lth-perf small { font-weight: 500; opacity: .75; margin-left: 2px; }
.lth-closeup { position: absolute; right: 14px; bottom: 44px; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.lth-closeup span { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 6px 18px rgba(0,0,0,.35); background: var(--leather, #1c1c1e); position: relative; overflow: hidden; }
.lth-closeup span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.18)); }
.lth-closeup.perf span { background: radial-gradient(circle, var(--under, #b3262e) 0 2.6px, rgba(0,0,0,.45) 3.2px, transparent 3.6px) 0 0 / 13px 13px, radial-gradient(circle, var(--under, #b3262e) 0 2.6px, rgba(0,0,0,.45) 3.2px, transparent 3.6px) 6.5px 6.5px / 13px 13px, var(--leather, #1c1c1e); }
.lth-closeup b { font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; }
@media (max-width: 760px) { .lth-closeup span { width: 64px; height: 64px; } }
.ip-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ip-bar input { flex: 1 1 320px; font-size: 16px; padding: 12px 14px; }
.ip-count { margin: 8px 2px; }
.ip-list { display: grid; gap: 6px; max-height: min(58vh, 560px); overflow: auto; padding: 2px; }
.ip-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--fill-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; cursor: pointer; }
.ip-row:hover, .ip-row.sel { border-color: var(--brand); background: var(--brand-soft); }
.ip-ph { width: 64px; height: 44px; border-radius: 8px; background: var(--fill) center / cover no-repeat; display: grid; place-items: center; font-size: 20px; }
.ip-main { display: grid; gap: 2px; min-width: 0; }
.ip-main > .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-price { font-variant-numeric: tabular-nums; }
.ip-row mark { background: color-mix(in srgb, var(--brand) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 640px) { .ip-row { grid-template-columns: 48px minmax(0, 1fr) auto; } .ip-row .pill { display: none; } .ip-ph { width: 48px; height: 36px; } }
.src-chip { font: inherit; color: inherit; background: var(--fill); border: 1px dashed var(--line-strong); border-radius: 99px; padding: 0 8px; cursor: pointer; }
.src-chip:hover { border-color: var(--brand); color: var(--brand); border-style: solid; }
.src-chip span { font-size: 12.5px; opacity: .7; }
.src-pop { position: absolute; z-index: 60; width: min(360px, calc(100vw - 16px)); padding: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.src-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.src-opts button { font: inherit; font-size: 14px; color: var(--ink); background: var(--fill-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.src-opts button.on { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.mg-pct { display: inline-grid; place-items: center; min-width: 44px; font-weight: 700; font-size: 14px; border-radius: 99px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.mg-high { background: rgba(224, 49, 49, .16); color: #e03131; } .mg-likely { background: rgba(247, 103, 7, .16); color: #e8590c; } .mg-maybe { background: rgba(250, 176, 5, .18); color: #b07a00; } .mg-low { background: var(--fill); color: var(--muted); }
:root[data-theme="dark"] .mg-high { color: #ff8787; } :root[data-theme="dark"] .mg-likely { color: #ffa94d; } :root[data-theme="dark"] .mg-maybe { color: #ffd43b; }
.mg-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border: 1px solid rgba(247, 103, 7, .4); background: rgba(247, 103, 7, .08); border-radius: 12px; font-size: 14px; }
.mg-score { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; } .mg-score .mg-pct { font-size: 22px; min-width: 76px; padding: 8px 12px; }
.mg-parts { display: grid; gap: 6px; padding: 10px 12px; background: var(--fill-2); border: 1px solid var(--line); border-radius: 12px; }
.mg-part { display: grid; grid-template-columns: 110px minmax(80px, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: center; font-size: 14px; }
.mg-pl small { color: var(--muted); font-weight: 500; } .mg-bar { height: 8px; background: var(--fill); border-radius: 99px; overflow: hidden; } .mg-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.mg-pd.good { color: #2f9e44; } .mg-pd.mid { color: #e8590c; } .mg-pd.bad { color: var(--muted); }
.mg-grid { display: grid; gap: 4px; margin-top: 12px; max-height: 44vh; overflow: auto; }
.mg-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 8px; align-items: stretch; } .mg-row.same .mg-cell { opacity: .7; }
.mg-lab { font-size: 14px; color: var(--muted); align-self: center; }
.mg-cell { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 14px; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.mg-cell.on { border-color: var(--brand); background: var(--brand-soft); } label.mg-cell { display: flex; color: var(--ink); font-weight: 500; } .mg-cell input { margin: 0; flex: none; width: 16px; height: 16px; padding: 0; accent-color: var(--brand); } .mg-cell.empty { cursor: default; }
.mg-headrow { position: sticky; top: 0; background: var(--panel); z-index: 1; padding-bottom: 4px; }
.mg-who { border-radius: 10px; padding: 8px 10px; background: var(--fill-2); border: 1px solid var(--line); }
.mg-badge { display: inline-block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 6px; margin-right: 6px; background: var(--brand); color: var(--on-accent); }
.mg-who.drop .mg-badge { background: var(--fill); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.danger { background: #e03131; border-color: #e03131; color: #fff; }
.mg-list { display: grid; gap: 6px; margin-top: 6px; }
.mg-pick { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--fill-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.mg-pick:hover { border-color: var(--brand); } .mg-pick > span:last-child { display: grid; }
.mg-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.mg-pair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mg-pair .mg-pct { font-size: 16px; min-width: 56px; padding: 6px 10px; }
.mg-pp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .mg-why { grid-column: 2 / 3; display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.mg-why span { padding: 2px 8px; border-radius: 99px; background: var(--fill); } .mg-why .good { color: #2f9e44; } .mg-why .mid { color: #e8590c; } .mg-why .bad { color: var(--muted); }
.mg-acts { grid-row: 1 / 3; grid-column: 3; display: grid; gap: 6px; }
@media (max-width: 760px) { .mg-pair { grid-template-columns: auto 1fr; } .mg-pp { grid-template-columns: 1fr; } .mg-acts { grid-row: auto; grid-column: 1 / -1; display: flex; } .mg-why { grid-column: 1 / -1; } .mg-row { grid-template-columns: 80px 1fr 1fr; } .mg-part { grid-template-columns: 80px 1fr; } .mg-pd { grid-column: 1 / -1; } }
.wo-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.wo-row:first-of-type { border-top: 0; } .wo-row.done b { text-decoration: line-through; opacity: .6; }
label.wo-chk { display: block; } .wo-chk input, .dl-step input { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--brand); flex: none; }
.wo-st { font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 2px 8px; white-space: nowrap; background: var(--fill); color: var(--muted); }
.wo-overdue { background: rgba(224, 49, 49, .16); color: #e03131; } .wo-due_today { background: rgba(247, 103, 7, .16); color: #e8590c; }
:root[data-theme="dark"] .wo-overdue { color: #ff8787; } :root[data-theme="dark"] .wo-due_today { color: #ffa94d; }
.wo-presets { display: flex; flex-wrap: wrap; gap: 6px; } .wo-presets button { font: inherit; font-size: 14px; color: var(--ink); background: var(--fill-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.wo-presets button.on { background: var(--brand); color: var(--on-accent); border-color: var(--brand); }
.wo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; } .wo-stats .card { display: grid; gap: 2px; padding: 14px 16px; }
.wo-stats b { font-size: 26px; font-variant-numeric: tabular-nums; } .wo-stats b.bad { color: #e03131; } .wo-stats span { color: var(--muted); font-size: 14px; }
.dl-prog { width: 120px; height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; } .dl-prog i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.dl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin-top: 10px; }
.dl-group h4 { margin: 8px 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
label.dl-step { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); font-size: 14px; font-weight: 500; padding: 5px 0; cursor: pointer; }
.dl-step span { display: grid; } .dl-step small { color: var(--muted); font-weight: 400; font-size: 12.5px; } .dl-step.on > span { color: var(--muted); }
.dl-sec { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.dl-score { font-size: 16px; padding: 1px 8px; border-radius: 8px; background: var(--fill); } .dl-score.s5, .dl-score.s4 { color: #2f9e44; } .dl-score.s3 { color: #e8590c; } .dl-score.s2, .dl-score.s1 { color: #e03131; }
.dl-demo { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; border: 1px dashed var(--line-strong); font-size: 14px; }
@media (max-width: 640px) { .wo-row { flex-wrap: wrap; } }
/* Production report */
.prod-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.prod-table th.sorted { color: var(--text); }
.prod-table tr.grp th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 0; padding-bottom: 0; }
.prod-table tr.grp th.grp-h { border-left: 2px solid var(--line); text-align: left; }
.prod-table td.top { color: var(--ok, #1a7f37); font-weight: 700; }
.prod-table td.src { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.prod-table tfoot td { border-top: 2px solid var(--line); font-weight: 600; }
.prod-table td.prod-name { white-space: nowrap; position: sticky; left: 0; background: var(--card); }
.prod-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.prod-src { display: grid; gap: 6px; }
.prod-src-row { display: grid; grid-template-columns: 150px 1fr 36px; gap: 10px; align-items: center; }
.prod-src-row b { text-align: right; }
.prod-bar { position: relative; display: block; height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 15%, transparent); overflow: hidden; }
.prod-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.prod-bar.two i { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.prod-bar.two i.c { background: var(--accent); }
.prod-day { display: grid; grid-template-columns: 1fr 28px; gap: 8px; align-items: center; min-width: 160px; text-align: right; }

/* ---------- Header navigation (the old left bar, now menus in the top bar) ---------- */
.shell { display: block; }
.shell > .main { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 40; flex-wrap: nowrap; padding: 10px 18px; gap: 10px; }
.topbar > .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; flex: none; margin: 0; padding: 0; }
.topbar > .brand .brand-text { color: var(--ink); }
.topbar #nav.topnav { display: flex; align-items: center; gap: 4px; flex: none; overflow: visible; margin: 0; padding: 0; }
.topbar #nav .nav-dd { position: relative; }
.topbar #nav .nav-dd.hidden { display: none; }
.topbar #nav .nav-group { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; opacity: 1; white-space: nowrap; }
.topbar #nav .nav-group:hover, .topbar #nav .nav-dd.open .nav-group { background: var(--fill); }
.topbar #nav .nav-dd.here .nav-group { background: var(--brand-soft, var(--fill)); color: var(--brand); }
.topbar #nav .nav-here { font-weight: 500; color: var(--muted); font-size: 14px; }
.topbar #nav .nav-here::before { content: '·'; margin: 0 6px 0 0; }
.topbar #nav .caret { font-size: 14px; opacity: .7; }
.topbar #nav .nav-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg, 0 18px 40px -12px rgba(0,0,0,.45)); z-index: 60; }
.topbar #nav .nav-dd.open .nav-menu { display: block; }
.topbar #nav .nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.topbar #nav .nav-menu a { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 9px 10px; margin: 0; border-radius: 9px; font-size: 14px; font-weight: 550; text-align: left; color: var(--ink); background: transparent; box-shadow: none; min-width: 0; }
.topbar #nav .nav-menu a:hover { background: var(--fill); color: var(--ink); }
.topbar #nav .nav-menu a.active { background: var(--brand-soft, var(--fill)); color: var(--brand); box-shadow: none; }
.topbar #nav .nav-menu a.hidden { display: none; }
.topbar #nav .nav-menu a i.ico { width: 22px; height: 22px; background: none; color: inherit; }
.topbar #nav .nav-menu a i.ico svg { width: 19px; height: 19px; }
.topbar .search-wrap { flex: 1 1 240px; min-width: 160px; }
.nav-burger { display: none; }
.nav-badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 999px; font-size: 12.5px; padding: 1px 7px; }
@media (max-width: 1679px) { .topbar #nav .nav-here { display: none; } .topbar > .brand .brand-text { display: none; } }
/* Desktop: short dropdown menus (Sell, Cars, F&I, Manage) plus Settings. Each position only sees the pages it can use.
   Under 1280px (phones, every iPad in portrait, and iPad mini / Air / 11" Pro in landscape) the menus go behind ☰ so the top bar never runs off the screen. */
@media (max-width: 1279px) {
  .topbar { flex-wrap: wrap; padding: 8px 12px; }
  .nav-burger { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 18px; cursor: pointer; order: -1; }
  .topbar #nav.topnav { display: none; position: fixed; inset: var(--nav-top, 60px) 0 0 0; background: var(--bg); z-index: 70; overflow-y: auto; padding: 12px 16px 40px; flex-direction: column; align-items: stretch; gap: 14px; }
  body.nav-open .topbar #nav.topnav { display: flex; }
  body.nav-open .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); z-index: 75; }
  body.nav-open #fab { display: none; }
  .topbar #nav .nav-group { pointer-events: none; padding: 4px 2px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: none !important; }
  .topbar #nav .nav-group .caret, .topbar #nav .nav-here { display: none; }
  .topbar #nav .nav-menu { display: grid; position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; box-shadow: none; min-width: 0; }
  .topbar .search-wrap { order: 5; flex-basis: 100%; }
  .view { padding-bottom: 32px; }
}

/* ---------- Acquisitions ---------- */
.acq-table tr.acq-row { cursor: pointer; }
.acq-table tr.acq-row:hover td { background: var(--fill); }
.acq-st.acq-new { background: var(--brand-soft); color: var(--brand); } .acq-st.acq-offered { background: var(--warn-soft); color: var(--warn); }
.acq-st.acq-purchased { background: var(--ok-soft); color: var(--ok); } .acq-st.acq-passed { background: var(--fill); color: var(--muted); }
.bad-txt { color: var(--bad); }
.acq-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.acq-side { width: 220px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #e9eef5; }
.acq-head-nums { display: flex; gap: 22px; text-align: right; }
.acq-head-nums > div { display: grid; gap: 2px; }
.acq-head-nums b { font-size: 20px; } .acq-head-nums .acq-big { font-size: 28px; color: var(--brand); }
.acq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.acq-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.acq-tiles .stat .num { font-size: 24px; }
.acq-spark { margin-top: 6px; }
.acq-range { padding: 54px 8px 6px; }
.acq-range-track { position: relative; height: 10px; border-radius: 6px; background: var(--fill); }
.acq-band { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: color-mix(in srgb, var(--brand) 25%, transparent); }
.acq-mark { position: absolute; top: -48px; transform: translateX(-50%); display: grid; justify-items: center; font-size: 14px; white-space: nowrap; }
.acq-mark i { order: 3; width: 3px; height: 22px; margin-top: 4px; border-radius: 2px; background: var(--muted); }
.acq-mark b { order: 1; } .acq-mark small { order: 2; color: var(--muted); }
.acq-mark.m-o i { background: var(--brand); height: 26px; } .acq-mark.m-o b { color: var(--brand); }
.acq-mark.m-t i { background: var(--warn); } .acq-mark.m-r i { background: var(--ok); }
.acq-mark.m-t { top: 18px; } .acq-mark.m-t i { order: 0; margin: 0 0 4px; } .acq-mark.m-t b { order: 1; } .acq-mark.m-t small { order: 2; }
.acq-range-ends { display: flex; justify-content: space-between; margin-top: 62px; }
.acq-talk { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }
.acq-obj { display: grid; gap: 10px; } .acq-obj > div { padding: 10px 12px; border-radius: 10px; background: var(--fill); }
.acq-math td { padding: 7px 8px; } .acq-math tr.sub td { border-top: 2px solid var(--line); font-weight: 650; }
.acq-grade { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.acq-recon-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.acq-recon-cats .badge { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 12.5px; margin-left: 4px; }
.acq-recon-rows { display: grid; gap: 6px; margin: 10px 0; }
.acq-offer { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.acq-offer-side { display: grid; gap: 10px; position: sticky; top: 76px; }
.acq-offer-side hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.acq-opts { display: grid; gap: 6px; }
.acq-buy { background: var(--ok); color: #fff; border-color: transparent; }
.acq-bought { padding: 10px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.acq-side-up { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.acq-side-up img { width: 140px; border-radius: 8px; border: 1px solid var(--line); grid-row: span 2; }
@media (max-width: 900px) { .acq-offer { grid-template-columns: 1fr; } .acq-offer-side { position: static; } .acq-head-nums { text-align: left; } }
/* The printed offer: clean, white, one page */
.acq-paper { background: #fff; color: #111; border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); padding: 28px; overflow-x: auto; }
.acq-sheet { --acq-brand: #0f2a4a; font: 13px/1.45 "Inter", "Helvetica Neue", Arial, sans-serif; color: #15181d; max-width: 780px; margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-variant-numeric: tabular-nums; }
.acq-sheet .mono { font-family: ui-monospace, Menlo, monospace; font-size: .95em; letter-spacing: .02em; }
.as-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--acq-brand); color: #fff; border-radius: 10px; padding: 14px 18px; }
.as-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.as-mono { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--acq-brand); display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.as-logo { flex: none; max-height: 46px; max-width: 150px; background: #fff; border-radius: 8px; padding: 4px 6px; object-fit: contain; }
.as-dealer { font-size: 19px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.as-contact { font-size: 12.5px; opacity: .82; margin-top: 2px; }
.as-doc { text-align: right; flex: none; }
.as-doc-title { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.as-doc-meta { font-size: 14px; opacity: .82; margin-top: 2px; }
.as-for { font-size: 14px; color: #4a515c; margin: 10px 2px 12px; }
.as-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.as-car { border: 1px solid #e3e6ea; border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 170px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }
.as-photo { grid-row: 1 / 3; background: #f3f5f7; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.as-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.as-veh { font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 6px; }
.as-specs { margin: 0; display: grid; gap: 3px; font-size: 14px; }
.as-specs div { display: flex; gap: 8px; } .as-specs dt { color: #6a717c; width: 62px; flex: none; } .as-specs dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.as-offer { background: color-mix(in srgb, var(--acq-brand) 7%, #fff); border: 2px solid var(--acq-brand); border-radius: 10px; padding: 12px 14px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.as-offer-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acq-brand); }
.as-offer-amt { font-size: 42px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #0d1015; margin: 2px 0 8px; }
.as-terms { display: flex; justify-content: center; align-items: center; gap: 8px; }
.as-terms span { background: var(--acq-brand); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 14px; } .as-terms b { font-size: 14px; }
.as-terms i { font-style: normal; font-size: 12.5px; color: #6a717c; }
.as-offer-exp { font-size: 14px; color: #3b414a; margin-top: 8px; line-height: 1.4; }
.as-sec { margin-top: 16px; }
.as-sec h3 { font-size: 12.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--acq-brand); margin: 0 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid color-mix(in srgb, var(--acq-brand) 25%, #fff); }
.as-bars { display: grid; gap: 7px; }
.as-bar { display: grid; grid-template-columns: 170px 1fr 74px; gap: 10px; align-items: center; }
.as-bar-l { font-size: 14px; font-weight: 600; line-height: 1.2; } .as-bar-l small { display: block; font-size: 14px; color: #7a818b; font-weight: 400; }
.as-bar-t { height: 12px; background: #f0f2f4; border-radius: 6px; overflow: hidden; }
.as-bar-t span { display: block; height: 100%; border-radius: 6px; background: #b9c0c9; }
.as-bar.ours .as-bar-t span { background: var(--acq-brand); } .as-bar.ours .as-bar-l, .as-bar.ours .as-bar-v { color: var(--acq-brand); font-weight: 800; }
.as-bar.prov .as-bar-t span { background: #8b95a3; }
.as-bar.ret .as-bar-t span { background: repeating-linear-gradient(135deg, #d5dae0 0 5px, #e7eaee 5px 10px); }
.as-bar-v { text-align: right; font-weight: 650; font-size: 14px; }
.as-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.as-stats div { background: #f5f6f8; border-radius: 8px; padding: 7px 10px; display: flex; align-items: baseline; gap: 8px; }
.as-stats b { font-size: 16px; font-weight: 750; white-space: nowrap; } .as-stats span { font-size: 10.5px; color: #555c66; line-height: 1.25; }
.as-fine { font-size: 14px; color: #6a717c; margin: 7px 0 0; line-height: 1.4; }
.as-recon { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; font-size: 14px; }
.as-recon li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted #d6dadf; }
.as-recon li b { font-weight: 600; white-space: nowrap; }
.as-recon-tot { display: flex; justify-content: space-between; margin-top: 6px; padding: 6px 10px; background: #f5f6f8; border-radius: 6px; font-size: 12.5px; } .as-recon-tot b { font-weight: 750; }
.as-cond { font-size: 12.5px; color: #4a515c; margin-top: 6px; }
.as-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid #e3e6ea; border-radius: 10px; }
.as-why > div { display: flex; gap: 8px; align-items: flex-start; }
.as-ck { flex: none; width: 18px; height: 18px; color: var(--acq-brand); margin-top: 1px; } .as-ck svg { width: 100%; height: 100%; display: block; }
.as-why b { display: block; font-size: 14px; } .as-why small { display: block; font-size: 10.5px; color: #5d646e; line-height: 1.3; }
.as-legal { margin-top: 10px; }
.as-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.as-line { display: block; border-bottom: 1.5px solid #15181d; height: 30px; }
.as-sl { font-size: 12.5px; color: #3b414a; margin-top: 4px; } .as-sl-d { font-size: 14px; color: #8a919b; margin-top: 10px; border-top: 1px solid #c9ced4; width: 45%; padding-top: 2px; }
.as-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid #e3e6ea; font-size: 14px; color: #8a919b; }
@media (max-width: 720px) {
  .as-hero { grid-template-columns: 1fr; } .as-car { grid-template-columns: 1fr; } .as-photo { grid-row: auto; margin-bottom: 8px; }
  .as-bar { grid-template-columns: 110px 1fr 64px; } .as-stats, .as-why { grid-template-columns: 1fr; } .as-recon { grid-template-columns: 1fr; }
  .as-head { flex-direction: column; align-items: flex-start; } .as-doc { text-align: left; }
}
@media print { .acq-print { padding: 0; } .acq-print .acq-sheet { max-width: none; font-size: 12px; } .acq-print .as-sec, .acq-print .as-why, .acq-print .as-sign { break-inside: avoid; } }
/* Purchased alert */
.live-pop.bought { border-left-color: var(--ok); }
.live-side { display: block; width: 100%; max-width: 300px; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }

/* ---------- Appointments ---------- */
.appt-dept { margin-top: 16px; }
.appt-table td { vertical-align: top; }
.appt-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.appt-late td { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.ap-results { display: grid; gap: 4px; margin-top: 8px; } .ap-pick { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; } .ap-pick:hover { background: var(--fill); }

/* ---------- Leads tab ---------- */
.lead-wait.has { border-left: 4px solid var(--warn); }
.lead-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lead-row .grow { flex: 1 1 300px; min-width: 0; } .lead-row select { width: 200px !important; }
.lead-row select { max-width: 240px; }

/* ---------- Planner ---------- */
.pl-seg button span { margin-left: 4px; }
.off-person { border-top: 1px solid var(--line); padding: 6px 0; }
.off-person summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; list-style: none; }
.off-person summary::-webkit-details-marker { display: none; }
.pill.sm { font-size: 14px; padding: 1px 6px; }

/* ---------- Settings: sounds, routing, access ---------- */
.snd-list { display: grid; gap: 4px; margin-top: 8px; }
.snd-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.snd-row.off { opacity: .55; }
.snd-row .grow { flex: 1; min-width: 0; } .snd-row label.chk { margin: 0; gap: 6px; align-items: center; }
.snd-row label.chk, .ac-row, .route-row label { display: flex; }
.snd-row input[type=checkbox], .ac-row input[type=checkbox] { width: 18px; height: 18px; padding: 0; flex: none; }
#setSoundsCard input[type=range] { padding: 0; }
.route-grid { display: grid; gap: 6px; }
.route-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 10px; }
.route-row .seg { flex-wrap: wrap; }
@media (max-width: 600px) { .route-row { grid-template-columns: 1fr; } }
.ac-list { display: grid; gap: 2px; max-height: 50vh; overflow: auto; margin: 10px 0; }
.ac-row { align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); grid-template-columns: none; }
.ac-row > span { display: grid; gap: 1px; }

.call-steps { text-align: left; margin: 12px auto 6px; padding: 0; list-style: none; max-width: 420px; display: grid; gap: 6px; font-size: 14px; }
.call-steps li { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); opacity: .45; transition: opacity .3s, border-color .3s; }
.call-steps li.now { opacity: 1; border-color: var(--brand); } .call-steps li.done { opacity: .8; }
.setup-list { display: grid; gap: 2px; }
.setup-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.setup-item .grow { flex: 1; min-width: 0; } .setup-item code { background: var(--fill); padding: 2px 6px; border-radius: 6px; }
.setup-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); flex: none; }
.setup-item.ok .setup-dot { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.sms-bubble { background: var(--fill); border-radius: 14px 14px 14px 4px; padding: 10px 12px; margin-top: 6px; color: var(--ink); line-height: 1.4; }
.leave-what, .leave-to { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.leave-to { max-height: 220px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.leave-what label.chk, .leave-to label.chk { display: flex; gap: 6px; align-items: center; margin: 0; }
.leave-what input, .leave-to input, #lvOff, #clRec { width: 18px; height: 18px; padding: 0; flex: none; }
.intake { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.intake > div { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.intake code { font-size: 14px; overflow-wrap: anywhere; }
.photo-miss { display: grid; } .photo-miss-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); } .photo-miss-row .grow { flex: 1; min-width: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ph { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--fill); }
.ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; } .ph-main { position: absolute; top: 6px; left: 6px; }
.ph-btns { display: flex; gap: 4px; padding: 6px; justify-content: center; }
.call-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; font-size: 14px; }
.call-flow span { padding: 6px 10px; border-radius: 999px; background: var(--fill); } .call-flow i { color: var(--muted); font-style: normal; }
.consent-box { padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--ok); background: var(--fill); font-size: 14px; margin: 8px 0; }
.invite-page { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; background: var(--bg); }
.invite-card { width: 100%; max-width: 420px; display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.invite-card h1 { margin: 4px 0 0; font-size: 26px; }
.onboard { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; } .onboard li.now { font-weight: 700; } .onboard li.done { color: var(--ok); }
.modal { z-index: 80; } .toast { z-index: 90; } /* above the sticky header and its menus */
.set-user .grow { flex: 1; min-width: 0; }
.leave-to label.chk span small { margin-left: 4px; }
.dk-sold { background: var(--ok); color: #fff; border-color: transparent; font-weight: 700; } .dk-sold:hover { filter: brightness(1.08); }
.dk-saved { align-self: center; white-space: nowrap; min-width: 92px; text-align: right; }
.acq-kudos { margin-top: 12px; display: grid; gap: 10px; }
.kudo-row { display: flex; gap: 6px; flex-wrap: wrap; } .kudo-btn { font-size: 22px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--fill); cursor: pointer; }
.kudo-btn.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.kudo-lines { display: flex; gap: 6px; flex-wrap: wrap; } .kudo-list { display: grid; gap: 6px; } .kudo-item { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .kudo-e { font-size: 18px; }
.flow-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; }
.flow-crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; flex-wrap: wrap; } .flow-crumbs a { color: var(--muted); text-decoration: none; } .flow-crumbs a:hover { color: var(--brand); } .flow-sep { color: var(--muted); opacity: .6; }
.flow-links { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.flow-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.flow-chip:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 800px) { .flow-links { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; } }
@media print { .flow-bar { display: none !important; } }
.cust-head .head-veh .head-edit { color: var(--brand); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 4px; opacity: 0; transition: opacity .15s; }
.cust-head .head-veh:hover .head-edit, .cust-head .head-veh:focus-visible .head-edit { opacity: 1; } @media (hover: none) { .cust-head .head-veh .head-edit { opacity: 1; } }
.cust-head .head-sell { text-decoration: none; border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.head-sell-img { width: 64px; height: 32px; object-fit: contain; border-radius: 6px; background: #eef1f5; flex: none; }
/* My Board */
.board-top { margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.board-grid { --md-gap: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; grid-auto-rows: 4px; column-gap: 14px; row-gap: 0; align-items: start; }
.board-grid > * { margin-bottom: 14px !important; }
@media (max-width: 1400px) { .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1040px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bw { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; position: relative; }
.bw.wide { grid-column: span 2; }
.bw.bw-fixed { overflow: hidden; } .bw.bw-fixed .bw-body { flex: 1; min-height: 0; overflow: auto; } .bw.bw-fixed .bw-list { max-height: none; }
@media (max-width: 720px) { .board-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } .bw.wide, .bw[data-i] { grid-column: auto !important; grid-row-end: auto !important; } }
.board-grid.editing .bw[data-i] { cursor: grab; touch-action: none; user-select: none; }
.board-grid.editing .bw[data-i] .bw-body { pointer-events: none; }
.bw.bw-dragging { opacity: .6; cursor: grabbing; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.bw-rz { position: absolute; z-index: 2; touch-action: none; }
.bw-rz-e { top: 10px; bottom: 18px; right: -4px; width: 12px; cursor: ew-resize; }
.bw-rz-s { left: 10px; right: 18px; bottom: -4px; height: 12px; cursor: ns-resize; }
.bw-rz-se { right: -4px; bottom: -4px; width: 22px; height: 22px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--brand) 55%, transparent) 50%); border-bottom-right-radius: 12px; }
.bw-rz-e::after, .bw-rz-s::after { content: ''; position: absolute; border-radius: 99px; background: color-mix(in srgb, var(--brand) 45%, transparent); }
.bw-rz-e::after { top: 50%; right: 4px; width: 4px; height: 36px; transform: translateY(-50%); } .bw-rz-s::after { left: 50%; bottom: 4px; height: 4px; width: 36px; transform: translateX(-50%); }
.bw-hl { --hl: #f2c230; border: 2px solid var(--hl); background: color-mix(in srgb, var(--hl) 10%, var(--panel)); }
.bw-hl-green { --hl: #2fa565; } .bw-hl-blue { --hl: #3a7be0; } .bw-hl-red { --hl: #e0483a; } .bw-hl-purple { --hl: #8a5cf0; }
.board-grid.editing .bw:not(.bw-add) { outline: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.bw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .bw-head h2 { margin: 0; font-size: 16px; } .bw-ico { font-size: 18px; }
.bw-tools { display: flex; gap: 4px; flex-wrap: wrap; } .bw-tools .btn { padding: 3px 8px; }
.bw-body { display: grid; gap: 10px; min-width: 0; }
.bw-sub { font-size: 14px; color: var(--muted); }
.bw-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bw-stat { background: var(--fill); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; } .bw-stat b { font-size: 18px; } .bw-stat span { font-size: 12.5px; color: var(--muted); }
.bw-stat.big b { font-size: 26px; color: var(--brand); }
.bw-list { display: grid; gap: 2px; max-height: 340px; overflow: auto; }
.bw-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; color: inherit; text-decoration: none; min-width: 0; flex-wrap: wrap; }
a.bw-row:hover { background: var(--fill); } .bw-row.mine { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.bw-row .spacer { flex: 1; } .bw-grow { flex: 1; min-width: 0; }
.bw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; } .bw-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.bw-time { min-width: 62px; font-variant-numeric: tabular-nums; }
.bw-warn { color: var(--bad); font-weight: 600; }
.bw-bar { display: inline-block; height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; width: 100%; } .bw-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bw-bar.thin { height: 4px; margin-top: 4px; } .bw-bar.lb { width: 90px; }
.bw-goal { display: grid; gap: 4px; }
.bw-table { display: grid; gap: 2px; } .bw-th, .bw-tr { display: grid; grid-template-columns: 1fr 60px 50px 60px; gap: 8px; align-items: center; padding: 5px 6px; } .bw-th { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bw-th span:not(:first-child), .bw-tr span:not(:first-child) { text-align: right; } .bw-tr:nth-child(odd) { background: var(--fill); border-radius: 8px; }
.bw-up { display: grid; gap: 4px; justify-items: start; } .bw-upname { font-size: 26px; color: var(--brand); }
.bw-queue { margin: 0; padding-left: 22px; display: grid; gap: 3px; } .bw-queue li.me { font-weight: 700; color: var(--brand); }
.bw-rank { width: 26px; text-align: center; }
.bw-more { font-size: 14px; font-weight: 600; justify-self: start; }
.bw-empty { color: var(--muted); font-size: 14px; padding: 10px 4px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.bw-add { cursor: pointer; border: 2px dashed var(--line); background: transparent; display: grid; place-items: center; gap: 4px; min-height: 140px; color: var(--muted); font: inherit; }
.bw-add > span:first-child { font-size: 28px; } .bw-add:hover { border-color: var(--brand); color: var(--brand); }
.bw-pick { display: grid; gap: 6px; max-height: 60vh; overflow: auto; margin-bottom: 12px; }
.bw-opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card, transparent); color: inherit; font: inherit; cursor: pointer; }
.bw-opt:hover { border-color: var(--brand); } .bw-opt > span:last-child { display: grid; gap: 2px; } .bw-opt .bw-ico { font-size: 22px; }
/* My alerts */
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 18px; }
.al-group { display: grid; gap: 2px; align-content: start; } .al-gh { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 2px; font-weight: 700; }
.al-row.off b { color: var(--muted); }
.ac-alerts { margin: 10px 0; } .ac-alerts summary { cursor: pointer; padding: 6px 0; }
input.switch { appearance: none; -webkit-appearance: none; width: 38px !important; height: 22px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; padding: 0; border: 0; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
input.switch:checked { background: var(--ok); } input.switch:checked::after { left: 19px; }
/* Profile pictures and vendor emblems */
.avatar { overflow: hidden; }
.avatar .av-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar .av-img.logo { object-fit: contain; background: #fff; padding: 2px; }
.avatar.huge { width: 88px; height: 88px; font-size: 30px; }
button.av-btn { border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; position: relative; }
button.av-btn:hover { box-shadow: 0 0 0 2px var(--brand); }
button.av-btn::after { content: '📷'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s; font-size: 14px; border-radius: inherit; }
button.av-btn.huge::after { font-size: 22px; } button.av-btn:hover::after, button.av-btn:focus-visible::after { opacity: 1; }
.av-edit { display: flex; gap: 16px; align-items: center; margin: 6px 0 14px; } .av-edit-txt { display: grid; gap: 10px; }
@media (max-width: 480px) { .av-edit { flex-direction: column; align-items: flex-start; } }
#meBtn { overflow: hidden; padding: 0; } #meBtn .av-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.set-fee { display: grid; grid-template-columns: 1fr 110px 130px 34px; gap: 6px; align-items: center; margin-bottom: 6px; }
@media (max-width: 560px) { .set-fee { grid-template-columns: 1fr 90px; } .set-fee select { grid-column: 1; } }
.set-fees { margin: 10px 0; }
.set-verify { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.set-verify-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.set-verify-list a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: inherit; text-decoration: none; }
.set-verify-list a:hover { outline: 2px solid var(--warn); }
.dk-taxzip.ok { background: var(--ok-soft); }
.cp-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.cp-rules > div { background: var(--fill); border-radius: 10px; padding: 10px 12px; }
.cp-feed { display: grid; gap: 6px; margin: 8px 0; padding: 10px 12px; background: var(--fill); border-radius: 10px; } .cp-feed input { font-size: 14px; }
.cp-chip { border: 0; border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-left: 6px; }
.cp-chip.ok { background: var(--ok-soft); color: var(--ok); } .cp-chip.warn { background: var(--warn-soft); color: var(--warn); } .cp-chip.bad { background: var(--bad-soft); color: var(--bad); }
.bw-opt.on { border-color: var(--ok); }
.br-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.br-prev { width: 220px; height: 76px; border-radius: 10px; display: grid; place-items: center; }
.br-prev img { max-width: 190px; max-height: 56px; background: #fff; border-radius: 6px; padding: 4px 6px; object-fit: contain; }
.br-prev span { color: #fff; opacity: .8; font-size: 14px; }
.rc-rows { display: grid; gap: 6px; margin-bottom: 8px; max-height: 360px; overflow: auto; }
.ow-bar { gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; } .ow-bar select { max-width: 320px; }
.ow-list { display: grid; gap: 10px; }
.ow-card { border-left: 4px solid var(--warn, #e0a100); padding: 12px 14px; display: grid; gap: 6px; }
.ow-card.ow-high { border-left-color: var(--bad, #e5484d); } .ow-card.ow-low { border-left-color: var(--line-strong); }
.ow-card.done { opacity: .72; }
.ow-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ow-sev { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: var(--warn-soft, #fff4d6); color: var(--warn-ink, #8a5a00); }
.ow-high .ow-sev { background: var(--bad-soft, #fde8e8); color: var(--bad, #c62828); } .ow-low .ow-sev { background: var(--fill); color: var(--muted); }
.ow-who { font-size: 14px; } .ow-who a { font-weight: 650; }
.ow-quote { margin: 0; padding: 6px 10px; border-left: 3px solid var(--line-strong); background: var(--fill-2, var(--fill)); border-radius: 0 8px 8px 0; font-style: italic; overflow-wrap: anywhere; }
.ow-detail { font-size: 14px; }
.ow-acts { gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.ow-tag { font-weight: 650; }
.ow-rules { display: grid; gap: 8px; margin: 10px 0; }
.ow-rule { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.ow-rule.off { opacity: .6; } .ow-rule.off .ow-rule-b { display: none; }
.ow-rule-h { display: flex; gap: 10px; align-items: flex-start; } .ow-rule-h select { width: auto; flex: none; }
.ow-rule-b { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-left: 52px; }
.ow-rule-b .chip-btn { padding: 3px 10px; font-size: 14px; }
.ow-min { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-left: auto; } .ow-min input { width: 76px; }
.ow-try { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 640px) { .ow-rule-b { padding-left: 0; } .ow-min { margin-left: 0; } }
.fi-rows { display: grid; gap: 6px; margin: 4px 0 8px; } .fi-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 6px; align-items: center; font-size: 14px; } .fi-quick .chip-btn { font-size: 14px; }
.mkt-src { font-size: 14px; color: var(--muted); margin: 8px 0 0; } .mkt-src.live { color: var(--ok); }
.cq-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .cq-more > div { background: var(--fill); border-radius: 10px; padding: 8px 12px; display: grid; } .cq-more b { font-size: 16px; } .cq-more span { font-size: 14px; color: var(--muted); }
.cq-reb { flex: 1 1 260px; } .cq-reb em { display: flex; justify-content: space-between; gap: 10px; font-style: normal; font-size: 14px; }
.mkt-comps { margin: 8px 0; } .mkt-comps summary { cursor: pointer; font-weight: 600; }
.vd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; } .vd-stats div { background: var(--fill); border-radius: 10px; padding: 8px 12px; display: grid; } .vd-stats span { font-size: 14px; color: var(--muted); }
.vd-steps { display: grid; gap: 10px; font-size: 14px; } .vd-cols { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sc-head { align-items: flex-start; } .sc-months { margin: 8px 0 12px; flex-wrap: wrap; }
.sc-card { padding: 10px; margin-bottom: 12px; } .sc-wrap { max-width: 100%; overflow-x: auto; }
.sc-table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-table th, .sc-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.sc-table thead th { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: normal; min-width: 54px; vertical-align: bottom; background: var(--panel); }
.sc-table .sc-groups th { text-align: center; color: var(--ink); border-bottom: 2px solid var(--line-strong); font-size: 14px; }
.sc-table .sc-gfresh { border-bottom-color: #d98b2b !important; } .sc-table .sc-gphone { border-bottom-color: #c56b2a !important; } .sc-table .sc-ginternet { border-bottom-color: #3d9a50 !important; } .sc-table .sc-gcampaign { border-bottom-color: #b08a2e !important; }
.sc-table .sc-gcalls, .sc-table .sc-gappts { border-bottom-color: #8e4d74 !important; }
.sc-name { text-align: left !important; position: sticky; left: 0; background: var(--panel); z-index: 1; font-weight: 650; min-width: 140px; }
.sc-table td.sc-gap, .sc-table th:empty { min-width: 10px; padding: 0; border-bottom: 0; }
.sc-c { font-weight: 700; border-radius: 0; }
.sc-c.good { background: color-mix(in srgb, #22c55e 30%, transparent); color: var(--ink); } .sc-c.warn { background: color-mix(in srgb, #eab308 34%, transparent); color: var(--ink); } .sc-c.bad { background: color-mix(in srgb, #ef4444 34%, transparent); color: var(--ink); }
.sc-neg { color: var(--bad, #e5484d); } .sc-b { font-weight: 700; }
.sc-house th, .sc-house td { color: var(--muted); }
.sc-me th, .sc-me td:not(.good):not(.warn):not(.bad) { background: color-mix(in srgb, var(--brand) 14%, var(--panel)); } .sc-me th.sc-name { font-weight: 800; box-shadow: inset 3px 0 0 var(--brand); }
.sc-table tfoot th, .sc-table tfoot td { border-top: 2px solid var(--line-strong); font-weight: 750; background: var(--fill); }
.sc-table tfoot .sc-name { background: var(--fill); } .sc-pen th, .sc-pen td { font-weight: 600 !important; color: var(--muted); }
.sc-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .sc-summary > div { background: var(--fill); border-radius: 10px; padding: 8px 14px; display: grid; min-width: 150px; }
.sc-summary b { font-size: 20px; } .sc-summary span { font-size: 14px; color: var(--muted); } .sc-summary .bad { background: color-mix(in srgb, #ef4444 30%, transparent); } .sc-summary .good { background: color-mix(in srgb, #22c55e 26%, transparent); }
.sc-set { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0; } .sc-set > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
@media print { .sc-months, #scPrint { display: none !important; } .sc-table { font-size: 9px; } .sc-c.good { background: #bbf7d0 !important; } .sc-c.warn { background: #fef08a !important; } .sc-c.bad { background: #fecaca !important; } }
/* Deal compliance */
#guardCard h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 4px; display: flex; gap: 8px; align-items: center; }
.gd-row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.gd-row > span:first-child { width: 18px; text-align: center; flex: none; }
.gd-row.gd-stop { background: color-mix(in srgb, #dc2626 12%, transparent); }
.gd-row.gd-check { background: color-mix(in srgb, #d97706 12%, transparent); }
.gd-row + .gd-row { margin-top: 4px; }
.gd-block { border: 1px solid color-mix(in srgb, #dc2626 50%, transparent); background: color-mix(in srgb, #dc2626 10%, transparent); border-radius: 10px; padding: 8px 10px; font-size: 14px; display: grid; gap: 4px; }
.gd-recall { margin-top: 6px; padding-left: 8px; border-left: 2px solid var(--line-strong); }
.gd-notice { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; margin-bottom: 10px; font-size: 14px; }
.gd-notice h3 { font-size: 14px; margin: 10px 0 2px; } .gd-notice p { margin: 0 0 6px; }
.gd-sig { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .gd-sig img { width: 240px; border: 1px solid var(--line); border-radius: 8px; background: #fff; } .gd-sig div { display: grid; }
.gd-set { display: grid; gap: 6px; margin: 8px 0; } .gd-src { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft, rgba(127,127,127,.08)); margin-bottom: 8px; }
.linkish { background: none; border: 0; color: var(--accent, #7c5cff); cursor: pointer; padding: 0; font: inherit; text-transform: none; letter-spacing: 0; }
/* Key log */
.ky-table td { vertical-align: top; } .ky-tag { display: inline-block; min-width: 28px; text-align: center; font-weight: 700; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); }
.ky-late td { background: color-mix(in srgb, #dc2626 10%, transparent); }
.td-ins { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0; } .td-ins legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
@media print { .noprint { display: none !important; } }
/* Page header with actions on the right */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1 { margin: 0; } .page-head .row input[type=date] { width: auto; }
/* Customer import and pilot */
.im-drop { display: grid; place-items: center; gap: 4px; padding: 26px; border: 2px dashed var(--line-strong); border-radius: 14px; cursor: pointer; margin: 8px 0; text-align: center; }
.im-drop.on { border-color: var(--accent, #7c5cff); background: color-mix(in srgb, var(--accent, #7c5cff) 8%, transparent); }
.im-how { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 2px; }
.im-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.im-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; } .im-counts > div { display: grid; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); min-width: 130px; }
.im-counts b { font-size: 22px; } .im-counts span { font-size: 14px; color: var(--muted); } .im-counts .warn { border-color: color-mix(in srgb, #d97706 60%, transparent); }
.pl-reps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .chip-check { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.parallel-banner { display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4;
  background: color-mix(in srgb, #0b7285 14%, var(--card, transparent)); border: 1px solid color-mix(in srgb, #0b7285 45%, transparent); color: var(--ink); }
.parallel-banner .pb-ico { font-size: 20px; } .parallel-banner .grow { flex: 1; min-width: 0; } .parallel-banner .btn { flex-shrink: 0; }
@media (max-width: 640px) { .parallel-banner { margin: 8px 10px 0; font-size: 13px; } }
.pilot-pill { font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, #d97706 18%, transparent); border: 1px solid color-mix(in srgb, #d97706 50%, transparent); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* In Transit */
.tr-list { display: grid; gap: 12px; } .tr-card { display: grid; gap: 10px; } .tr-card.late { border-color: color-mix(in srgb, #dc2626 45%, var(--line)); } .tr-card.ask { border-color: color-mix(in srgb, #d97706 60%, var(--line)); }
.tr-card.flash { animation: trflash 1.6s ease 2; } @keyframes trflash { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #7c5cff) 50%, transparent); } }
.tr-head { display: flex; gap: 12px; align-items: flex-start; } .tr-days { display: grid; place-items: center; min-width: 58px; padding: 6px; border-radius: 12px; background: var(--bg-soft, rgba(127,127,127,.1)); } .tr-days b { font-size: 22px; line-height: 1; } .tr-days span { font-size: 12.5px; color: var(--muted); }
.tr-name { font-size: 16px; } .tr-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.tr-eta { display: grid; text-align: right; min-width: 150px; } .tr-eta b { font-size: 16px; } .tr-eta span { font-size: 14px; color: var(--muted); } .tr-eta.bad b, .tr-eta.bad span { color: #ef4444; }
.tr-stages { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; overflow-x: auto; }
.tr-stages li { flex: 1; min-width: 92px; } .tr-stages button { width: 100%; display: grid; gap: 2px; padding: 7px 6px; font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; text-align: center; }
.tr-stages small { font-weight: 500; font-size: 12.5px; opacity: .85; } .tr-stages li.done button { background: color-mix(in srgb, #16a34a 16%, transparent); border-color: color-mix(in srgb, #16a34a 40%, transparent); }
.tr-stages li.now button { background: color-mix(in srgb, var(--accent, #7c5cff) 22%, transparent); border-color: var(--accent, #7c5cff); } .tr-stages li.now.slow button { background: color-mix(in srgb, #dc2626 18%, transparent); border-color: #dc2626; }
.tr-stages li.next button { opacity: .7; } .tr-stages button:disabled { cursor: default; }
.tr-ask { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #d97706 14%, transparent); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tr-foot { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; } .tr-recon { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 240px; }
.tr-cost { display: flex; gap: 12px; } .tr-cost div { display: grid; text-align: right; } .tr-cost span { font-size: 12.5px; color: var(--muted); } .tr-cost .tot b { color: var(--accent, #7c5cff); }
.tr-notes { white-space: pre-wrap; } .tr-stats { margin-bottom: 12px; } .tr-stats .stat.bad b { color: #ef4444; } .tr-stats .stat.warn b { color: #d97706; }
.tr-stats .stat { display: grid; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, transparent); } .tr-stats .stat b { font-size: 24px; font-weight: 800; } .tr-stats .stat span { color: var(--muted); font-size: 14px; }
.tr-kind i { font-style: normal; opacity: .7; margin-left: 4px; }
.tr-rrow { display: flex; gap: 6px; margin-bottom: 4px; } .tr-rrow input:first-child { flex: 1; } .tr-rrow input[type=number] { width: 110px; }
.tr-srow { display: flex; gap: 6px; align-items: center; margin: 4px 0; } .tr-srow input:first-child { flex: 1; } .tr-srow input[type=number] { width: 70px; }
@media (max-width: 700px) { .tr-head { flex-wrap: wrap; } .tr-eta { text-align: left; } }
/* Scorecard month-end pace */
.sc-pace { margin: 0 0 10px; justify-content: flex-start; }
/* Discount approval on the phone */
.dc-wrap { max-width: 520px; margin: 0 auto; } .dc-card { display: grid; gap: 12px; }
.dc-ask { display: grid; gap: 2px; text-align: center; padding: 8px 0; } .dc-ask b { font-size: 34px; letter-spacing: -.02em; } .dc-ask span { color: var(--muted); font-size: 14px; }
.dc-note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent, #7c5cff); background: var(--fill, transparent); border-radius: 6px; }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .dc-grid > div { display: grid; padding: 8px 12px; border-radius: 10px; background: var(--fill, rgba(127,127,127,.08)); }
.dc-grid span { font-size: 14px; color: var(--muted); } .dc-grid b { font-size: 18px; } .dc-grid .neg b { color: #ef4444; }
.dc-btns { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; } .dc-btns .btn { padding: 14px 8px; font-size: 15px; }
/* Desk log */
.dl-title { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin-bottom: 10px; flex-wrap: wrap; }
.dl-tot { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .dl-tot > div { display: grid; padding: 6px 12px; border-radius: 10px; background: var(--fill, rgba(127,127,127,.08)); min-width: 84px; } .dl-tot b { font-size: 20px; } .dl-tot span { font-size: 12.5px; color: var(--muted); }
.dl-table td, .dl-table th { padding: 6px 8px; font-size: 14px; vertical-align: top; } .dl-table td.c { text-align: center; font-weight: 700; } .dl-table .dl-sold td { background: color-mix(in srgb, #16a34a 10%, transparent); }
.dl-notes { max-width: 260px; } .dl-reps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; } .dl-reps div { display: flex; gap: 6px; } .dl-reps span { color: var(--muted); }
.dl-sign { display: none; }
/* Landscape only for the desk log sheet (a bare @page here turned every printout, the pencil included, sideways). */
@page desklog { size: letter landscape; margin: 10mm; }
@media print { .dl-sheet { page: desklog; } .dl-sheet { border: 0; box-shadow: none; padding: 0; } .dl-table td, .dl-table th { font-size: 10px; padding: 3px 5px; }
  .dl-sign { display: flex; gap: 40px; margin-top: 18px; } .dl-sign div { flex: 1; border-top: 1px solid #333; padding-top: 4px; font-size: 14px; } }
/* Website chat */
.ch-panel { margin-bottom: 14px; } .ch-list { display: grid; gap: 4px; margin-top: 8px; }
.ch-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ch-item .grow { display: grid; min-width: 0; } .ch-last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; } .ch-item.open .ch-dot { background: #16a34a; } .ch-item.unread { border-color: var(--accent, #7c5cff); } .ch-item.unread .ch-dot { background: #ef4444; box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 30%, transparent); }
.ch-msgs { height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; margin: 10px 0; border-radius: 12px; background: var(--fill, rgba(127,127,127,.08)); }
.ch-m { max-width: 80%; padding: 7px 11px; border-radius: 14px; white-space: pre-wrap; font-size: 14px; } .ch-m.visitor { align-self: flex-start; background: var(--card, #fff); border: 1px solid var(--line); }
.ch-m.staff { align-self: flex-end; background: var(--accent, #7c5cff); color: #fff; } .ch-m.system { align-self: center; font-size: 14px; color: var(--muted); } .ch-m i { display: block; font-style: normal; font-size: 12.5px; opacity: .8; }
.ch-send { display: flex; gap: 6px; } .ch-send input { flex: 1; } .ch-quick { flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ch-code { white-space: pre-wrap; word-break: break-all; padding: 10px; border-radius: 10px; background: var(--fill, rgba(127,127,127,.1)); font-size: 14px; } .ch-try { height: 480px; }
.ch-top { display: flex; gap: 6px; align-items: center; }
/* 360° photos */
.sp-card { margin-top: 16px; display: grid; gap: 10px; }
.sp-stage { position: relative; height: 380px; border-radius: 12px; overflow: hidden; background: var(--fill, rgba(127,127,127,.08)); } .sp-stage.sm { height: 240px; }
.sp-stage iframe { width: 100%; height: 100%; border: 0; }
.sp-view { position: relative; height: 100%; cursor: grab; touch-action: pan-y; user-select: none; outline: none; } .sp-view:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.sp-view img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }
.sp-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 14px; transition: opacity .4s; }
.sp-empty { display: grid; gap: 4px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; }
.sp-note { margin: 0; } .sp-site code { word-break: break-all; }
.sp-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; } .sp-pick { cursor: pointer; }
.sp-provs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 8px 0; } .sp-provs > div { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
/* Outside connections */
.cn-list { display: grid; gap: 6px; } .cn-sub { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.cn-plat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; } .cn-plat > label:not(.cn-wide) { justify-content: space-between; } .cn-wide { grid-column: 1 / -1; }
.cn-subs, .cn-bureau { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cn-pull { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cn-warn { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(245,158,11,.12); color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.cn-lenders { display: grid; gap: 6px; } .cn-err { margin: 0; color: #ef4444; font-size: 14px; }
.cn-grid { display: grid; gap: 8px; margin: 10px 0 16px; } .cn-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cn-item summary { display: flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; } .cn-item summary::-webkit-details-marker { display: none; }
.cn-item[open] { display: grid; gap: 6px; } .cn-item ol, .cn-item ul, .cn-rules { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
/* Stores: banner, problem reports, super-admin */
.st-banner { position: sticky; top: 0; z-index: 60; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 6px 16px; font-size: 14px; text-align: center; color: #1b1300; background: #fbbf24; }
.st-banner.staging { background: #7dd3fc; color: #04223a; }
.st-prob { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); } .st-prob .row input { flex: 1; min-width: 160px; }
.st-errs { margin: 4px 0 0; padding: 8px; border-radius: 8px; background: var(--fill, rgba(127,127,127,.08)); white-space: pre-wrap; font-size: 12.5px; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; } .st-tiles > div { display: grid; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.st-tiles b { font-size: 24px; } .st-tiles span { color: var(--muted); font-size: 14px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; } .st-store { display: grid; gap: 8px; }
.st-nums { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; } .st-warn { color: #ef4444; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa4b2; } .st-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.st-add { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; } @media (max-width: 700px) { .st-add { grid-template-columns: 1fr; } }
.st-key { max-width: 420px; }
/* Printing always uses the light palette, even when the app is in dark mode. */
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #ffffff; --panel: #ffffff; --fill: #f1f2ef; --fill-2: #f6f7f4; --line: #dfe1db; --line-strong: #c9ccc3; --ink: #0f1114; --muted: #5f6570; --faint: #9ca1aa;
    --brand: #0f1114; --on-accent: #ffffff; --grad: #0f1114; --accent: #0f1114; --brand-soft: #f1f2ef; --brand-soft-2: #e3e5df; color-scheme: light;
  }
  body { background: #fff !important; color: #0f1114; }
}

@media print { .stat .num, .dk-sum-pay { color: #0f1114 !important; background: none !important; } }

.ph-none { display: grid; justify-items: center; gap: 4px; } .ph-none small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.car .ph { position: relative; } .ph-360 { position: absolute; left: 10px; top: 10px; font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; }
/* AI accessory preview over the real photo in Build & Price */
.vph-ai { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 0 14px; z-index: 3; pointer-events: none; }
.vph-ai[hidden] { display: none; }
.vph-ai .btn { pointer-events: auto; box-shadow: var(--shadow); }
.vph-ai .btn[hidden] { display: none; }
.vph-ai-msg { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--ink); background: var(--panel); border-radius: 8px; padding: 0 8px; max-width: 520px; margin: 0 auto; }
.vph-ai-msg:empty { display: none; }
.viz-photo.ai-on .vph-img { position: relative; }
.viz-photo.ai-on .vph-img::after { content: 'AI preview'; position: absolute; left: 22px; top: 58px; background: rgba(0,0,0,.65); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }

/* UpShift logo: two see-through layers tinted by the active theme (arrow and gauge = accent, lettering = text color) */
.ulogo { position: relative; display: inline-block; flex-shrink: 0; }
.ulogo i { position: absolute; inset: 0; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ulogo .la { background: var(--grad, var(--brand)); }
.ulogo .li { background: var(--ink); }
.ulogo.full { width: 200px; max-width: 100%; aspect-ratio: 557 / 371; }
.ulogo.full .la { --m: url(/logo-full-accent.png); } .ulogo.full .li { --m: url(/logo-full-ink.png); }
.ulogo.mark { width: 44px; aspect-ratio: 348 / 198; }
.ulogo.mark .la { --m: url(/logo-mark-accent.png); } .ulogo.mark .li { --m: url(/logo-mark-ink.png); }
.brand.big:has(.ulogo) { justify-content: center; padding-bottom: 14px; }

.forgot-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; justify-self: center; margin: 0 auto; display: block; }
.forgot-link:hover { color: var(--ink); text-decoration: underline; }

/* Settings sub-tabs: one section at a time */
.set-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.set-grid.set-grid-one { grid-template-columns: minmax(0, 1fr); }
#view section.card[hidden] { display: none !important; }
.set-jump.set-tabs { flex-wrap: wrap; overflow: visible; position: static; }

.vph-turn { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* Bigger alerts: the pop-ups, the bell list and the little messages at the bottom */
.live-stack { width: 520px; gap: 14px; bottom: 24px; right: 20px; }
.live-pop { padding: 20px 22px; gap: 16px; border-radius: 18px; border-left-width: 7px; font-size: 17px; line-height: 1.4; }
.live-pop .live-ico { width: 56px; height: 56px; font-size: 28px; }
.live-pop .live-title { font-size: 21px; margin-bottom: 4px; }
.live-pop .btn.sm { font-size: 16px; padding: 10px 18px; }
.live-pop .live-side { max-width: 100%; }
.notif-panel { width: 460px; font-size: 16px; }
.notif { padding: 14px 0; }
.toast { font-size: 17px; padding: 16px 24px; }
@media (max-width: 820px) { .live-stack { width: auto; left: 12px; right: 12px; max-width: none; bottom: 80px; } .live-pop { font-size: 16px; padding: 16px; } .live-pop .live-title { font-size: 19px; } }

/* Respond now list under the red timer */
.clock-panel { position: fixed; z-index: 45; width: 460px; max-width: calc(100vw - 24px); max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 12px; display: grid; gap: 6px; }
.clock-panel[hidden] { display: none; }
.clock-panel .row { gap: 8px; align-items: baseline; }
.clock-panel .lc-row { font-size: 15px; }

/* Acquisitions: on/off checkboxes in the market analysis */
.acq-chk { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin: 0; font-weight: inherit; color: inherit; }
.acq-chk input { width: auto; margin-top: 3px; flex: none; accent-color: var(--brand); }
.acq-off > td, li.acq-off { opacity: .45; } .acq-off .num-col { text-decoration: line-through; }
.acq-sub-item td:first-child { padding-left: 30px; font-size: 14px; }
.acq-talk li { list-style: none; margin-left: -18px; } .acq-talk { counter-reset: none; }
.seg.wrap { flex-wrap: wrap; } .seg button small { opacity: .7; font-weight: 600; }

/* "UpShift was just updated" bar */
.update-bar { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--brand); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 600; max-width: calc(100vw - 24px); }

.acq-opts-sub { display: grid; gap: 4px; margin: 2px 0 6px 24px; font-size: 14px; } .acq-opts-sub.acq-off { opacity: .45; pointer-events: none; }

/* Market analysis: Where it sits | How we get to the number | Talking points, with similar cars full width underneath */
.acq-grid.acq-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.acq-grid3 > .acq-wide { grid-column: 1 / -1; }
.acq-grid3 .acq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .acq-grid.acq-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acq-grid3 > section:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 760px) { .acq-grid.acq-grid3 { grid-template-columns: minmax(0, 1fr); } }

/* F&I tab: smart package columns */
.fi-terms { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fi-smart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: stretch; }
.fi-sc { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--tier, var(--line)); border-radius: 14px; padding: 12px; min-width: 0; }
.fi-sc.platinum { --tier: #6b7cff; } .fi-sc.gold { --tier: #d4a72c; } .fi-sc.silver { --tier: #9aa4b1; } .fi-sc.bronze { --tier: #b8733d; }
.fi-sc.picked { box-shadow: 0 0 0 2px var(--tier); }
.fi-sc header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .fi-sc header b { font-size: 18px; }
.fi-drop { list-style: none; margin: 0; padding: 6px; display: grid; gap: 6px; align-content: start; flex: 1; min-height: 120px; border: 2px dashed transparent; border-radius: 10px; transition: border-color .12s, background .12s; }
.fi-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.fi-chip { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); cursor: grab; font-size: 14px; user-select: none; }
.fi-chip:active { cursor: grabbing; } .fi-chip.dragging { opacity: .4; } .fi-chip.emp { border-color: #2e9d5b; }
.fi-chip .grow { flex: 1; min-width: 0; } .fi-chip b { white-space: nowrap; font-size: 14px; }
.fi-grip { color: var(--muted); font-size: 14px; letter-spacing: -2px; }
.fi-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 6px; } .fi-x:hover { color: var(--ink); background: var(--line); }
.fi-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 20px 0; }
.fi-sc footer { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 4px; }
.fi-line2 { display: flex; justify-content: space-between; font-size: 14px; }
.fi-sc .fi-pay { font-size: 28px; font-weight: 800; line-height: 1.1; } .fi-sc .fi-pay span { font-size: 14px; font-weight: 500; color: var(--muted); }
.fi-chg { font-size: 14px; color: var(--muted); } .fi-chg.up { color: var(--ink); font-weight: 600; }
.fi-sc footer .btn { margin-top: 6px; }
.fi-tray { display: flex; flex-wrap: wrap; gap: 8px; min-height: 56px; margin-top: 8px; }
.fi-tray .fi-chip { padding: 6px 10px; }
.fi-reqs { display: grid; gap: 8px; margin-top: 10px; } .fi-req { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .fi-req.open { border-color: #e5484d; }
.fi-ans { margin-top: 4px; color: var(--muted); }
.fi-req-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.fi-emp { display: grid; gap: 8px; margin: 10px 0; }
@media (max-width: 1100px) { .fi-smart { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fi-smart, .fi-req-opts { grid-template-columns: minmax(0, 1fr); } }

/* F&I: per-product payment and cost of ownership */
.fi-chip { cursor: pointer; } .fi-amt { display: grid; text-align: right; line-height: 1.15; } .fi-amt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fi-own-with { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fi-own-with > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; } .fi-own-with span { color: var(--muted); font-size: 14px; } .fi-own-with b { font-size: 22px; } .fi-own-with small { color: var(--muted); }
.fi-own { border: 1px solid #e5484d55; background: #e5484d12; border-radius: 12px; padding: 12px; }
.fi-own ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; } .fi-own li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.fi-own-tot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 700; } .fi-own-tot b { font-size: 20px; color: #e5484d; }
.fi-own-move { margin-top: 12px; } .fi-own-move summary { cursor: pointer; color: var(--muted); font-size: 14px; }

.fi-price { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; font-size: 14px; padding: 1px 4px; margin: -1px -4px; border-radius: 6px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; } .fi-price:hover { background: var(--line); }

.cit-ladder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.letter-prev { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; background: var(--bg); max-height: 50vh; overflow: auto; }
.letter p { margin: 0 0 12px; line-height: 1.5; }

.kind-seg { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; justify-self: start; }
.kind-seg label { display: flex; align-items: center; gap: 6px; padding: 7px 14px; cursor: pointer; font-weight: 600; margin: 0; }
.kind-seg input { position: absolute; opacity: 0; pointer-events: none; } .kind-seg label:has(input:checked) { background: var(--brand); color: #fff; }

/* Deal forms (Documents tab) */
.fm-card { grid-column: 1 / -1; }
.fm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.fm-item { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.fm-item:hover { border-color: var(--brand); } .fm-item.hot { border-color: var(--brand); background: var(--brand-soft); }
.fm-item small { display: block; color: var(--muted); font-size: 12px; } .fm-ico { font-size: 22px; } .fm-print { padding: 4px 6px; border-radius: 8px; } .fm-print:hover { background: var(--line); }
.fm-prev { background: #fff; color: #111; border-radius: 10px; padding: 24px; max-height: 70vh; overflow: auto; margin-top: 12px; }
.fm-page { color: #111; font-size: 12.5px; line-height: 1.35; }
.fm-page h2 { margin: 0; font-size: 20px; letter-spacing: .04em; } .fm-page h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; border-bottom: 2px solid #111; padding-bottom: 2px; }
.fm-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; border-bottom: 3px solid #111; padding-bottom: 8px; margin-bottom: 10px; } .fm-head > div:last-child { text-align: right; }
.fm-big { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 8px; } .fm-big > div { border: 2px solid #111; padding: 6px 8px; } .fm-big small { display: block; font-size: 10px; text-transform: uppercase; } .fm-big b { font-size: 17px; }
.fm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; } .fm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; }
.fm-f { display: flex; gap: 6px; align-items: baseline; margin: 3px 0; } .fm-f > span:first-child { white-space: nowrap; font-weight: 600; font-size: 11.5px; }
.fm-line { flex: 1; border-bottom: 1px solid #111; min-height: 16px; padding: 0 2px; display: inline-block; }
.fm-boxes { display: flex; flex-wrap: wrap; gap: 4px 16px; } .fm-box { white-space: nowrap; display: inline-flex; gap: 4px; align-items: baseline; }
.fm-notes { border: 1px solid #111; height: 70px; margin-top: 4px; }
.fm-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; } .fm-sign .fm-line { display: block; height: 22px; } .fm-sign small { font-size: 10.5px; }
.fm-legal { font-size: 11px; margin-top: 10px; } .fm-terms { padding-left: 18px; margin: 4px 0; } .fm-terms li { margin: 3px 0; }
@media print { .fm-page { font-size: 11.5px; } }

/* Settings: financial institutions */
.fin-bank { border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--bg); }
.fin-bank > summary { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; flex-wrap: wrap; } .fin-bank > summary .btn { margin-left: auto; }
.fin-bank[open] { padding-bottom: 12px; } .fin-bank > :not(summary) { margin: 0 12px; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 4px !important; }
.fin-in { display: flex; align-items: center; gap: 4px; } .fin-in i { font-style: normal; color: var(--muted); } .fin-in input { flex: 1; min-width: 0; }
.fin-counties { display: grid; gap: 6px; margin-top: 10px !important; margin-bottom: 8px !important; }
.dk-fin { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 8px; display: grid; gap: 4px; font-size: 14px; }
.dk-fin .warn { color: #e5484d; font-weight: 600; }

/* Readability: a size up across the app, and stronger gray text (Devin asked for easier-to-read text) */
body { font-size: 16px; line-height: 1.55; }
.small { font-size: 14px; } label { font-size: 14px; } .btn.sm { font-size: 14px; } .pill { font-size: 14px; }
h2 { font-size: 17px; } .muted.small, .side-l, .stat .lbl { font-size: 14px; }
input, select, textarea, .btn { font-size: 15px; }

/* Dead / Bad / Unsubscribed */
.pill.dead { background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--ink); }
.pill.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.st-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin: 8px 0; border: 1px solid var(--line); background: var(--card); }
.st-banner.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: color-mix(in srgb, var(--bad) 10%, var(--card)); }
.st-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.st-pick button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.st-pick button.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }

/* Grouped top menu + one-line phone and tablet header */
.topbar #nav > a.nav-solo { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--ink); text-decoration: none; }
.topbar #nav > a.nav-solo i.ico { display: none; }
.topbar #nav > a.nav-solo:hover { background: var(--fill); }
.topbar #nav > a.nav-solo.active { background: var(--brand-soft, var(--fill)); color: var(--brand); }
.topbar #nav > a.nav-solo.hidden { display: none; }
.nav-extras, .search-toggle { display: none; }
@media (max-width: 1279px) {
  .topbar { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; position: sticky; }
  .topbar > .brand .brand-text { display: none; }
  .topbar .search-wrap { display: none; }
  body.search-open .topbar .search-wrap { display: block; position: absolute; left: 10px; right: 10px; top: calc(100% + 6px); z-index: 80; }
  body.search-open .topbar .search-wrap .search { box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
  .search-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 20px; cursor: pointer; margin-left: auto; flex: none; }
  .topbar #newLeadBtn { padding: 0; width: 40px; height: 40px; justify-content: center; font-size: 20px; flex: none; }
  .topbar #newLeadBtn .nl-word { display: none; }
  .topbar #dutyBtn, .topbar #themeBtn, .topbar #reportBtn, .topbar .pilot-pill { display: none !important; }
  .topbar .lead-clock { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .topbar .lead-clock .lc-name { display: none; }
  .topbar .bell, .topbar .me { flex: none; }
  .topbar #nav > a.nav-solo { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
  .topbar #nav > a.nav-solo i.ico { display: inline-grid; }
  .nav-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-extras button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
  .nav-extras button[hidden] { display: none; }
}
@media (max-width: 640px) { .dk-actions { flex-wrap: wrap; } .dk-actions .btn, .dk-actions .pill { flex: 1 1 calc(33% - 8px); min-width: 0; justify-content: center; } }
/* "Interested in" / "Trade" cards: the label sits on its own line so nothing overlaps at bigger text sizes */
.cust-head .head-veh { flex-wrap: wrap; padding-top: 8px; row-gap: 4px; }
.cust-head .head-veh .head-k { position: static; flex: none; width: 100%; font-size: 12px; line-height: 1.2; }
@media (max-width: 820px) { .cust-head .head-veh { padding-top: 8px; } .cust-head .head-veh .pill { position: static; font-size: 12px; } }

/* Customer header: the name keeps room, the Interested in / Trade cards share the rest and wrap under it when tight */
.cust-head > .grow { flex: 1 1 260px; min-width: min(100%, 240px); }
.cust-head .head-cards { flex: 1 1 420px; min-width: 0; }
.cust-head .head-cards .head-veh { flex: 1 1 200px; min-width: 0; }
/* Laptop and big-iPad widths (1280-1679, e.g. 1366, 1440, 1536 and 13" iPads): keep the top bar on one line */
@media (min-width: 1280px) and (max-width: 1679px) {
  .topbar { gap: 6px; padding: 10px 12px; }
  .topbar #themeBtn { display: none; }
  .topbar .search-wrap { flex: 1 1 120px; min-width: 90px; }
  .topbar .loc-pick { max-width: 150px; }
  .topbar .lead-clock .lc-name { display: none; }
  .topbar #newLeadBtn .nl-word { display: none; } .topbar #newLeadBtn { padding: 0 14px; font-size: 18px; }
  .topbar #nav .nav-group, .topbar #nav > a.nav-solo { padding: 8px 8px; }
}

/* Settings: a search box, then sections in groups */
.set-jump.set-tabs { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, var(--panel)); }
.set-jump .set-find { width: 100%; font-size: 15px; }
.set-grp { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); }
.set-grp[hidden] { display: none; }
.set-grp-h { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.set-grp-l { display: flex; flex-wrap: wrap; gap: 6px; }
.set-jump a.set-miss { display: none !important; }
@media (max-width: 700px) { .set-grp { grid-template-columns: 1fr; gap: 6px; } }

.ap-past { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--fill); }
.ap-past .seg button.on { background: var(--brand); color: #fff; }
#apTxt[hidden], .ap-past[hidden] { display: none !important; }

/* Alerts sized by priority */
.live-pop.pri-critical { border-left-width: 10px; border-left-color: var(--bad); padding: 24px 26px; font-size: 19px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 35%, transparent), var(--shadow-lg); animation: popin .25s ease-out, nudge .6s .3s 2, critGlow 1.6s ease-in-out infinite; }
.live-pop.pri-critical .live-title { font-size: 24px; color: var(--bad); }
.live-pop.pri-critical .live-ico { width: 64px; height: 64px; font-size: 32px; }
.live-pop.pri-critical .live-title::before { content: 'NOW · '; font-size: .7em; letter-spacing: .08em; }
@keyframes critGlow { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--bad) 18%, transparent), var(--shadow-lg); } }
.live-pop.pri-high { border-left-color: var(--warn); }
.live-pop.pri-normal { padding: 14px 16px; font-size: 15px; gap: 12px; border-left-width: 5px; }
.live-pop.pri-normal .live-title { font-size: 17px; } .live-pop.pri-normal .live-ico { width: 42px; height: 42px; font-size: 22px; }
.live-pop.pri-normal .btn.sm { font-size: 14px; padding: 6px 12px; }
.live-pop.pri-low { padding: 10px 14px; font-size: 14px; gap: 10px; border-left-width: 4px; opacity: .96; }
.live-pop.pri-low .live-title { font-size: 15px; margin: 0; } .live-pop.pri-low .live-ico { width: 32px; height: 32px; font-size: 17px; }
.live-pop.pri-low .btn.sm { font-size: 13px; padding: 4px 10px; } .live-pop.pri-low .row { margin-top: 4px !important; }
@media (prefers-reduced-motion: reduce) { .live-pop.pri-critical { animation: none; } }

/* Guided photo shoot */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sh-slot { display: grid; grid-template-rows: 84px auto; gap: 4px; padding: 6px; border-radius: 12px; border: 1px dashed var(--line); background: var(--fill); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.sh-slot.req:not(.on) { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.sh-slot.on { border-style: solid; border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.sh-slot img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; }
.sh-empty { display: grid; place-items: center; height: 84px; color: var(--muted); font-size: 24px; }
.sh-lbl { font-size: 13px; font-weight: 600; line-height: 1.25; }
.sh-step { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 12px; color: var(--ink); }
.sh-step .sh-diag { flex: none; color: var(--ink); }
.sh-in { width: 150px; height: 150px; flex: none; display: grid; place-items: center; font-size: 48px; border-radius: 16px; background: var(--fill); }
.sh-prev { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-top: 10px; }
.sh-take { display: flex; justify-content: center; width: 100%; padding: 14px; font-size: 18px; }
.sh-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.sh-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: transparent; padding: 0; cursor: pointer; }
.sh-dot.req { border-color: var(--warn); } .sh-dot.on { background: var(--ok); border-color: var(--ok); } .sh-dot.here { outline: 2px solid var(--brand); outline-offset: 2px; }
.inv-grid .car { position: relative; }
.sh-chip { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warn); color: #111; }
.sh-chip.ok { background: var(--ok); color: #fff; }
@media (max-width: 520px) { .sh-step { flex-direction: column; align-items: center; text-align: center; } }
@media (min-width: 801px) and (max-width: 1679px) { .topbar #themeBtn { display: none; } .topbar .lead-clock .lc-name { display: none; } .topbar { gap: 8px; } }
#vdSubjW[hidden] { display: none !important; }
.dk-inc { margin-bottom: 10px; } .dk-inc .inc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0 8px; align-items: baseline; margin: 4px 0; } .dk-inc .inc-row > .muted, .dk-inc .inc-row > span { grid-column: 2 / -1; font-size: 12px; }
.dk-inc .inc-cmp { margin: 6px 0 2px; padding: 6px 8px; border-radius: 8px; background: var(--fill); }
.inc-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.inc-status > div { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inc-status b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .inc-status span { font-size: 12px; color: var(--muted, #777); overflow: hidden; text-overflow: ellipsis; }
.md-bar { margin: -6px 0 8px; } .cols.md-arranging > .card { position: relative; outline: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; } .md-handle { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; cursor: grab; touch-action: none; } .md-handle:active { cursor: grabbing; } .card.md-dragging { opacity: .75; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.cf-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; } .cf-bar select { width: auto; max-width: 100%; padding: 7px 10px; font-size: 14px; } .cf-bar select.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--input)); font-weight: 650; } @media (max-width: 640px) { .cf-bar select { flex: 1 1 calc(50% - 8px); min-width: 0; } }
.ac-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 4px; grid-column: 1 / -1; }
.lb-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; } .lb-team { border: 1px solid var(--line); border-left: 6px solid var(--tc); border-radius: 14px; padding: 12px 14px; background: var(--fill); } .lb-team.top { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 50%, transparent); } .lb-trank { font-weight: 800; } .lb-tstats { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; } .lb-tstats div { display: grid; } .lb-tstats b { font-size: 22px; } .lb-tstats span { font-size: 12px; color: var(--muted); }
.ca-guard { margin: 10px 0; } .ca-guard > summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .ca-guard.bad { border-color: var(--bad, #e5484d); }

/* Layout polish */
.md-stats .stat { padding: 10px 14px; min-height: 0; } .md-stats .stat .num { font-size: 26px; line-height: 1.1; } .md-stats .stat .lbl { font-size: 12px; margin-top: 2px; }
@media (max-width: 760px) { .md-stats { gap: 8px; } .md-stats .stat { padding: 8px 12px; } .md-stats .stat .num { font-size: 22px; } #view { padding-bottom: 120px; } }
body[data-page="desk"] #fab { display: none !important; }
.st-banner:not(.staging) { position: static; z-index: auto; justify-content: flex-start; text-align: left; color: var(--ink); font-size: 15px; }
.reach-in { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
#assistCard.fold > h2, #assistCard.fold > .row:first-child { cursor: pointer; }
#assistCard.fold > .row:first-child h2::after { content: ' ▸'; color: var(--muted); }
#assistCard.fold.open > .row:first-child h2::after { content: ' ▾'; }
#assistCard.fold:not(.open) > :not(:first-child) { display: none; }
@media (max-width: 640px) {
  .dk-head { padding: 8px 10px; gap: 6px 8px; }
  .dk-head .dk-veh > .muted.small { display: none; }
  .dk-head .dk-av { width: 34px; height: 34px; font-size: 13px; }
  .dk-actions { display: grid; grid-template-columns: 1fr 1fr 1fr 44px; gap: 6px; flex-basis: 100%; }
  .dk-actions .btn, .dk-actions .pill { padding: 8px 6px; min-width: 0; justify-content: center; }
  .dk-actions .dk-sold, .dk-actions > a.btn, .dk-actions > .pill { grid-column: 1 / -1; }
  .dk-actions .dk-saved { grid-column: 1 / -1; } .dk-actions .dk-saved:empty { display: none; }
}

/* Acquisitions extras */
.acq-counter { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; margin-top: 6px; }
.acq-counter b { font-size: 18px; color: var(--warn, #b7791f); }
.warn-txt { color: var(--warn, #b7791f); }
.acq-turn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.acq-turn.ok { background: color-mix(in srgb, var(--ok, #2f855a) 10%, transparent); }
.acq-turn.slow { background: color-mix(in srgb, var(--warn, #b7791f) 12%, transparent); }

/* F&I extras */
.fix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 14px 0; }
.fix-grid > .card { margin: 0; }
.fix-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 4px; }
.fix-nums > div { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.fix-nums span { font-size: 12px; color: var(--muted); } .fix-nums b { font-size: 18px; }
.fix-stip { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fix-stip.done .grow { text-decoration: line-through; color: var(--muted); }
.fi-cust { position: fixed; inset: 0; z-index: 9000; background: var(--bg); overflow: auto; padding: 24px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.fi-cust-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fi-cust-head h1 { margin: 2px 0; } .fi-cust-k { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); }
.fi-cust-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.fi-cust-col { text-align: left; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; }
.fi-cust-col.on { border-color: var(--accent, #7c5cff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #7c5cff) 25%, transparent); }
.fi-cust-name { font-size: 20px; font-weight: 700; } .fi-cust-pay { font-size: 32px; font-weight: 800; } .fi-cust-pay span { font-size: 15px; font-weight: 500; color: var(--muted); }
.fi-cust-day { font-size: 13px; color: var(--muted); min-height: 1em; }
.fi-cust-col ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; } .fi-cust-col li { display: flex; flex-direction: column; } .fi-cust-col li span { font-size: 12px; color: var(--muted); }
.fi-cust-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; }
.fix-stip { flex-direction: row !important; justify-content: flex-start; text-align: left; font-weight: 500; }
.fix-stip input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; }
.fix-stip .grow { flex: 1; text-align: left; }

/* GM report and show rate */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 16px 0; }
.gm-grid > .card { margin: 0; }
.gm-kv { display: grid; gap: 2px; margin-top: 8px; } .gm-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); } .gm-kv span { color: var(--muted); }
.gm-show { margin-top: 14px; } .gm-show > summary { cursor: pointer; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.gm-show-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 10px; } .gm-show-grid h3 { margin: 0 0 6px; font-size: 14px; }
.gm-bar { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr 44px 44px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.gm-track { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; } .gm-track i { display: block; height: 100%; background: var(--accent, #7c5cff); border-radius: 6px; }
@media print { #nav, .topbar, header, #gmPrint { display: none !important; } .gm-grid { grid-template-columns: 1fr 1fr; } }

.acq-trade-note{margin-top:12px;border-left:4px solid var(--accent);font-size:15px;line-height:1.5}
.pill.acq-trade{background:color-mix(in srgb,var(--accent) 18%,transparent)}

.pb-edit-step.pb-off > :not(.pb-step-on) { opacity: .45; }
.pb-step-on { align-self: center; white-space: nowrap; }

/* My Day layout: boxes packed on the left, "Off today" follow-ups on the right */
.md-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.md-main.md-has-side { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.md-side { display: grid; gap: 16px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.md-main:not(.md-has-side) .md-side { display: none; }
.md-side .off-today { margin: 0; }
.cols.md-cols { --md-gap: 16px; grid-auto-rows: 4px; row-gap: 0; column-gap: 16px; align-items: start; }
.cols.md-cols > * { margin: 0 0 16px; }
@media (max-width: 1100px) { .md-main.md-has-side { grid-template-columns: minmax(0, 1fr); } .md-side { position: static; max-height: none; } }
@media (max-width: 720px) { .cols.md-cols { grid-auto-rows: auto; row-gap: 16px; } .cols.md-cols > * { margin: 0; grid-row-end: auto !important; } }

/* F&I aftersale */
.as-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.as-prod { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; background: var(--fill); font-size: 13.5px; }
.as-days { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.as-days.ok { background: var(--ok-soft, rgba(47,165,101,.15)); color: var(--ok, #2fa565); }
.as-days.warn { background: rgba(242,194,48,.18); color: #b98a00; }
.as-days.bad { background: rgba(224,72,58,.15); color: var(--bad, #e0483a); }
.as-acts { white-space: nowrap; } .as-acts .btn { margin-left: 4px; }
.as-pick { display: grid; gap: 6px; } .as-pick .chk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .as-price { width: 110px; margin-left: auto; }
.as-qrow { gap: 8px; align-items: center; }
.as-rf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.as-win { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.as-ok { color: var(--ok, #2fa565); }
#asQ label.as-qrow { display: flex; flex-direction: row; align-items: center; gap: 10px; }
#asQ label.as-qrow input[type=checkbox] { width: auto; flex: none; }
#asQ label.as-qrow input[type=number] { margin-left: auto; }
#asQ .row { flex-wrap: wrap; gap: 8px; }

.appt-conf { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; padding: 2px 8px; border-radius: 8px; margin: 4px 0 2px; }
.appt-conf.yes { color: var(--ok, #2fa565); background: var(--ok-soft, rgba(47,165,101,.14)); }
.appt-conf.no { color: #b97800; background: rgba(242,170,48,.16); }
.appt-conf-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 8px; }

/* Customer Deal tab: one card holds the status, car, trade, numbers and next step */
.deal-card .deal-hd { gap: 10px; flex-wrap: wrap; }
.deal-card .stage-bar { margin: 12px 0; }
.deal-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.deal-box { background: var(--fill); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deal-box .head-k { margin-bottom: 2px; }
.deal-box .pill { align-self: flex-start; }
.deal-veh { display: flex; gap: 10px; align-items: flex-start; }
.deal-veh img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.deal-big { font-size: 17px; font-weight: 700; margin-top: 2px; }
.deal-ln { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.deal-ln b { color: var(--text); font-weight: 600; }
.deal-tr { display: block; color: inherit; text-decoration: none; padding-bottom: 6px; }
.deal-tr + .deal-tr { border-top: 1px solid var(--line); padding-top: 6px; }
.deal-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.deal-next { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.deal-next .head-k { margin: 0; }
.want-h { margin: 14px 0 4px; font-size: 14px; }
@media (max-width: 900px) { .deal-sum { grid-template-columns: 1fr; } }

/* Login: inventory car photos in a honeycomb behind the sign-in card. Brightest in the middle, fading into the dark at the edges. */
.login { position: relative; overflow: hidden; }
.login-comb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: #0b0d14; }
.login-comb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,13,20,.35) 0, rgba(11,13,20,.6) 55%, rgba(11,13,20,.92) 100%); }
.login-comb .comb-hex { position: absolute; display: block; background: rgba(255,255,255,.16); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.login-comb .comb-hex i { position: absolute; inset: 2px; background: #1a1d28 center / cover no-repeat; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); filter: saturate(.8) brightness(.8); }
.login-card { position: relative; z-index: 1; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Desk: front & back products, Ally protection, LTV (public/desk-products.js) ---------- */
.dk-prod > summary { font-weight: 700; }
.dp { display: grid; gap: 12px; }
.dp-col { display: grid; gap: 8px; }
.dp-h { display: flex; align-items: baseline; gap: 8px; }
.dp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: minmax(56px, auto); align-content: start; gap: 8px; }
.dp-tile { display: block; width: 100%; min-width: 0; min-height: 56px; margin: 0; text-align: left; font: inherit; font-size: 13px; line-height: 1.25; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.dp-tile:hover { border-color: var(--brand); }
.dp-in { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dp-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dp-tile .dp-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fill); font-weight: 700; font-size: 13px; }
.dp-tile .dp-nm { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.dp-tile .dp-pr { font-weight: 600; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dp-tile.on { background: var(--brand-soft); border-color: var(--brand); }
.dp-tile.on .dp-ck { background: var(--brand); color: var(--on-accent); }
.dp-allybtn { justify-self: start; }
.dp-picked { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.dp-row { display: grid; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dp-r1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dp-r2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding-left: 2px; }
.dp-r1 .dp-rname { flex: 1; white-space: nowrap; }
.dp-side { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--fill); color: var(--muted); }
.dp-side.back { background: var(--violet-soft); }
.dp-rname { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dp-ally { font-size: 11px; font-weight: 700; color: var(--brand); }
.dp-price { display: flex; align-items: center; gap: 4px; }
.dp-price .fin-in input { width: 84px; text-align: right; }
.dp-step, .dp-x { font: inherit; font-weight: 700; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.dp-step:hover { border-color: var(--brand); color: var(--brand); }
.dp-x:hover { border-color: var(--bad); color: var(--bad); }
.dp-acts { display: flex; align-items: center; gap: 6px; }
.dp-money .neg, .dp-ltvt .bad, .dp-ltvbox .bad { color: var(--bad); }
.dp-tot { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.dp-ltv.mine { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.dp-ltv .ok, .dp-ltvt .ok { color: var(--ok); } .dp-ltv .warn, .dp-ltvt .warn { color: var(--warn); } .dp-ltv .bad { color: var(--bad); }
.dp-ltvbox { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; }
.dp-ltvbox .row { flex-wrap: wrap; gap: 6px 10px; }
.dp-ltvt { width: 100%; font-size: 13px; } .dp-ltvt td, .dp-ltvt th { padding: 4px 6px; }
.dp-ltvt tr.mine td { background: var(--brand-soft); }
.al-car { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 10px; background: var(--fill); border-radius: 10px; }
.al-note { margin: 0; padding: 8px 10px; background: var(--warn-soft); border-radius: 10px; }
.al-grp h3 { margin: 10px 0 6px; font-size: 15px; }
.al-prod { padding: 8px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.al-prod .row { flex-wrap: wrap; gap: 6px; }
.al-prod.no { opacity: .6; }
.al-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-set { width: 100%; font-size: 13px; } .dp-set .fin-in input { width: 90px; }
@media (max-width: 560px) {
  .dp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}
.dp-tabs { display: flex; gap: 4px; padding: 3px; background: var(--fill); border-radius: 10px; }
.dp-tab { flex: 1; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dp-tab.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.dk-prod .dp-tiles { max-height: 360px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.al-prod.focus { background: var(--brand-soft); border-radius: 8px; padding: 8px; }
.dp-lt { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; }
.dp-lt.mine { border-color: var(--brand); background: var(--brand-soft); }
.dp-lt-top { display: flex; align-items: center; gap: 8px; }
.dp-lt-pct { font-size: 18px; }
.dp-lt .ok, .dp-lt-pct.ok { color: var(--ok); } .dp-lt-pct.warn { color: var(--warn); } .dp-lt .bad, .dp-lt-pct.bad { color: var(--bad); }
/* F&I deal documents and bank packs (dealdocs-ui.js) */
.dd-card { display: grid; gap: 12px; }
.dd-packs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dd-pack { display: grid; gap: 1px; text-align: left; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.dd-pack small { color: var(--muted); font-size: 12px; } .dd-pack:hover { border-color: var(--brand); }
.dd-pack.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); } .dd-pack.on small { color: var(--brand); }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dd-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dd-sec.has { border-color: var(--ok); } .dd-sec.picked { box-shadow: inset 0 0 0 2px var(--brand); } .dd-sec.picked:not(.has) { background: var(--bad-soft); }
.dd-chk { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); cursor: pointer; } .dd-chk input { width: auto; margin-top: 3px; } .dd-chk .grow { display: grid; gap: 1px; }
.dd-files { display: flex; flex-wrap: wrap; gap: 6px; } .dd-files:empty { display: none; }
.dd-file { padding: 0; border: 0; background: none; cursor: pointer; } .dd-file.cust .dd-th { outline: 2px dashed var(--ok); outline-offset: 1px; }
.dd-th { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: inline-grid; place-items: center; background: var(--fill); font-size: 11px; font-weight: 700; color: var(--bad); }
.dd-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.dd-send { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.dd-to { display: flex; flex-wrap: wrap; gap: 8px; } .dd-to label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); } .dd-to select { width: auto; min-width: 170px; }
.dd-sum { min-width: 200px; } .dd-log { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.dd-sort { display: grid; gap: 6px; max-height: 60vh; overflow: auto; } .dd-sort-row { display: flex; gap: 10px; align-items: center; } .dd-sort-row select { width: auto; max-width: 230px; }
.dd-view { margin-top: 10px; display: grid; place-items: center; background: var(--fill); border-radius: 10px; overflow: hidden; }
.dd-view img { max-width: 100%; max-height: 65vh; } .dd-view iframe { width: 100%; height: 65vh; border: 0; background: #fff; }
.dd-set-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 12px; } .dd-set-row input { flex: 1; }
.dd-set-packs { display: grid; gap: 10px; } .dd-set-pack { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.dd-set-boxes { display: flex; flex-wrap: wrap; gap: 4px 14px; } .dd-set-boxes label { display: flex; gap: 5px; align-items: center; font-size: 14px; color: var(--ink); } .dd-set-boxes input { width: auto; }
@media (max-width: 600px) { .dd-send { flex-direction: column; align-items: stretch; } .dd-to select { min-width: 0; width: 100%; } .dd-to { display: grid; } }
/* Customer value, service history and service check-in photos (custvalue-ui.js) */
.cv-chip { border: 1px solid var(--line); background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cv-chip.vip { background: var(--warn-soft); color: var(--warn); }
.cv-chip.customer { background: var(--fill); color: var(--muted); }
.cv-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cv-ic { font-size: 18px; width: 26px; text-align: center; }
.cv-amt { text-align: right; font-weight: 600; white-space: nowrap; }
.cv-table td.r, .cv-table th.r { text-align: right; white-space: nowrap; }
.cv-table .cv-work { max-width: 320px; }
.cv-visit { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.cv-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cv-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cv-ltv { text-align: right; min-width: 150px; }
.cv-ltv .num { font-size: 26px; font-weight: 700; color: var(--ok); }
.cv-ltv .lbl { font-weight: 600; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cv-slot { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--fill-2); cursor: pointer; overflow: hidden; margin: 0; }
.cv-slot.on { border-style: solid; border-color: var(--ok); }
.cv-slot.busy { opacity: .5; }
.cv-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-cam { font-size: 28px; opacity: .6; }
.cv-lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--ink); }
.cv-lbl i { font-weight: 400; color: var(--muted); }
.cv-send { border-color: var(--brand-soft-2); }
@media (max-width: 600px) { .cv-grid { grid-template-columns: repeat(2, 1fr); } .cv-ltv { text-align: left; } .cv-send .btn { flex: 1 1 100%; } }
.cv-head > .grow { flex: 1 1 360px; min-width: 0; }

/* Running the day: My Day lead flow, team follow-ups, and Manage the day (public/dayboard-ui.js) */
.db-light { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--line); display: inline-block; }
.db-light.green { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .db-light.red { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.bad { color: var(--bad); } .lf-tot .ok b { color: var(--ok); } .lf-tot .bad b { color: var(--bad); }
.lf-tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; margin: 2px 0 10px; }
.lf-tot > div { background: var(--fill); border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; }
.lf-tot b { font-size: 21px; line-height: 1.1; } .lf-tot span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lf-row { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.lf-row.red { border-left-color: var(--bad); } .lf-row.green { border-left-color: var(--ok); }
.lf-row .grow { flex: 1; min-width: 0; }
.lf-why { font-weight: 600; } .lf-why.lot { color: var(--warn); }
.lf-boxes { display: flex; gap: 5px; flex: none; }
.lf-box { width: 46px; border: 1px solid var(--line); border-radius: 9px; display: flex; flex-direction: column; align-items: center; padding: 3px 0 2px; color: var(--muted); text-decoration: none; }
.lf-box i { font-style: normal; font-size: 13px; line-height: 1.1; } .lf-box b { font-size: 16px; line-height: 1.1; color: var(--ink); } .lf-box span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.lf-box.on { border-color: var(--ok); background: var(--ok-soft); } .lf-box:not(.on) b { color: var(--muted); }
.tt-list { display: flex; flex-direction: column; gap: 2px; }
.tt-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; }
.tt-row.tt-me { background: var(--brand-soft); } .tt-row .grow { flex: 1; min-width: 0; }
.tt-bar { width: 70px; height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; flex: none; } .tt-bar i { display: block; height: 100%; background: var(--ok); }
.tt-row.red .tt-bar i { background: var(--bad); } .tt-num { font-weight: 700; font-size: 14px; width: 44px; text-align: right; } .tt-late { width: 92px; text-align: right; }
.db-help { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin: 6px 0; border-radius: 10px; border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--ink); text-decoration: none; }
.db-help.high { border-left-color: var(--bad); background: var(--bad-soft); } a.db-help { display: block; }
.db-help .grow { flex: 1; min-width: 0; }
.db-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.db-tile { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; border: 1px solid var(--line); }
.db-tile b { font-size: 30px; line-height: 1.05; letter-spacing: -.02em; } .db-tile span { color: var(--muted); font-weight: 600; font-size: 14px; }
.db-tile.on { outline: 2px solid var(--brand); } .db-tile.sold b { color: var(--ok); } .db-tile.no_deal b { color: var(--bad); } .db-tile.on_lot b { color: var(--warn); } .db-tile.close { cursor: default; }
.db-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.db-grid + .card, .card + .db-grid { margin-top: 14px; }
.db-filt { display: flex; gap: 6px; flex-wrap: wrap; } .db-filt .chip { border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.db-table td.c, .db-table th.c { text-align: center; } .db-table tr.db-sold td { background: var(--ok-soft); } .db-table tr.db-no_deal td:first-child { box-shadow: inset 3px 0 var(--bad); }
.db-table tr.flag td:first-child { box-shadow: inset 3px 0 var(--warn); } .db-reason { max-width: 220px; }
.db-why { background: var(--bad-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; } .db-why b { font-size: 16px; }
.db-ideas { display: flex; flex-wrap: wrap; gap: 6px; } .db-ideas .chip { border: 0; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.list-item.click { cursor: pointer; }
@media (max-width: 1000px) { .db-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .db-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .db-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .db-tile b { font-size: 24px; } .lf-box { width: 40px; } .tt-late { display: none; } }

/* ---------- Sales › Desking list and the customer's Pencils card (public/desklist-ui.js) ---------- */
.dl-tools { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dl-tools input { max-width: 320px; flex: 1 1 220px; }
.dl-list { display: grid; }
.dl-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(150px, 1.2fr) minmax(120px, .8fr) minmax(110px, .8fr) auto; gap: 6px 14px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.dl-row:hover, .dl-row:focus-visible { background: var(--fill); outline: none; }
.dl-acts { display: flex; gap: 6px; }
.pc-list { display: grid; margin-top: 8px; }
.pc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 8px; }
.pc-row:hover { background: var(--fill); }
.pc-v { font-weight: 700; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--fill); }
.pc-main, .pc-side { display: grid; gap: 2px; min-width: 0; }
.pc-side { justify-items: end; text-align: right; }
@media (max-width: 760px) {
  .dl-row { grid-template-columns: 1fr auto; }
  .dl-row .dl-pay, .dl-row .dl-when { grid-column: 1; }
  .dl-row .dl-st { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .dl-row .dl-acts { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .pc-row { grid-template-columns: auto 1fr; }
  .pc-side { grid-column: 2; justify-items: start; text-align: left; }
}

/* ---------- Desk: LTV bar at the top of the payment side ---------- */
.dk-ltvbar { margin-bottom: 10px; }
.dk-ltvbar:empty { display: none; }
.ltv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 6px; }
.ltv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ltv-tile { border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; background: var(--panel); display: grid; gap: 1px; }
.ltv-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.ltv-tile.ok { border-color: var(--ok); background: var(--ok-soft); }
.ltv-tile.warn { border-color: var(--warn); background: var(--warn-soft); }
.ltv-tile.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--panel)); }
.ltv-tile.mine { box-shadow: 0 0 0 3px var(--brand-soft); }
.ltv-who { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ltv-big { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ltv-big small { font-size: 15px; font-weight: 700; }
.ltv-tile.ok .ltv-big { color: var(--ok); } .ltv-tile.warn .ltv-big { color: var(--warn); } .ltv-tile.bad .ltv-big { color: var(--bad); }
.ltv-sub { font-size: 12px; }
.ltv-verdict { font-size: 13px; font-weight: 700; }
.ltv-tile.bad .ltv-verdict { color: var(--bad); } .ltv-tile.ok .ltv-verdict { color: var(--ok); }
.dk-ltv-empty { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
@media (max-width: 560px) { .ltv-tiles { grid-template-columns: 1fr; } }

/* ---------- Desk header: actions on the right, icon buttons for print and F&I ---------- */
.dk-head .dk-actions { margin-left: auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.dk-ico { display: inline-flex; align-items: center; gap: 5px; padding-left: 10px; padding-right: 10px; min-height: 40px; }
.dk-ico svg { width: 19px; height: 19px; flex: none; }
.dk-ico b { font-size: 12px; font-weight: 700; }
.dk-infi { color: var(--ok); border-color: var(--ok); }
.dk-sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 2px; }
@media (max-width: 640px) {
  .dk-head .dk-actions { display: grid; grid-template-columns: auto auto 1fr 1fr 1fr; gap: 6px; flex-basis: 100%; }
  .dk-head .dk-actions .dk-saved { grid-column: 1 / -1; } .dk-head .dk-actions .dk-saved:empty { display: none; }
  .dk-head .dk-actions .dk-sold, .dk-head .dk-actions > a.btn, .dk-head .dk-actions > .pill { grid-column: auto; }
  .dk-head .dk-actions .dk-sep { display: none; }
}

/* ---------- several stores (public/locations-ui.js) ---------- */
.loc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle;
  color: var(--lc, var(--brand)); background: color-mix(in srgb, var(--lc, var(--brand)) 13%, transparent); border: 1px solid color-mix(in srgb, var(--lc, var(--brand)) 30%, transparent); }
.loc-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lc, var(--brand)); }
.loc-pick { width: auto; max-width: 220px; font-weight: 600; padding: 7px 10px; border-radius: 10px; }
@media (max-width: 800px) { .loc-pick { max-width: 140px; font-size: 13px; } }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.loc-card { border-top: 4px solid var(--lc, var(--brand)); display: grid; gap: 8px; }
.loc-nums { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); } .loc-nums b { color: var(--ink); font-size: 17px; } .loc-nums .warn b { color: var(--warn); }
.st-tiles > div.hot b { color: var(--warn); }
.loc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.loc-away { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); }
.loc-setlist { display: grid; gap: 8px; margin: 10px 0; }
.loc-set { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--lc, var(--brand)); border-radius: 10px; }
.loc-links { margin-top: 6px; line-height: 1.8; word-break: break-all; } .loc-links code { font-size: 12px; }
.loc-access td, .loc-access th { text-align: center; } .loc-access td:first-child, .loc-access th:first-child { text-align: left; } .loc-access select { width: auto; min-width: 110px; }
.loc-access input[type=checkbox] { width: 20px; height: 20px; }
.loc-form { display: grid; gap: 10px; } .loc-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .loc-row3 { grid-template-columns: 1fr; } .loc-two { grid-template-columns: 1fr; } }
/* Equity board (#/equity) */
.eq-card { margin-bottom: 12px; border-left: 4px solid var(--warn); } .eq-card.eq-hot { border-left-color: var(--bad); }
.eq-score { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; background: var(--fill); font-weight: 800; font-size: 18px; }
.eq-hot .eq-score { background: var(--bad-soft); color: var(--bad); }
.eq-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.eq-chip { font-size: 13.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.eq-nums { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 18px; }
.eq-upgrade { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--ok-soft); font-size: 14.5px; }
.eq-pitch { margin-top: 8px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 14.5px; }
.chip-btn.eq-on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.eq-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.eq-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; } .eq-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; } .eq-checks input[type=checkbox] { width: auto; margin: 0; }
.eq-f { display: grid; gap: 4px; } .eq-f > span { font-size: 13.5px; font-weight: 600; color: var(--muted); } .eq-f input[type=checkbox] { justify-self: start; }
.ok-txt { color: var(--ok); }
/* Personalization: store logo in the top bar and sign-in, My workspace, Store branding (public/brand-ui.js) */
.brand .store-logo { height: 30px; max-width: 120px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px 4px; }
.brand.has-logo .ulogo { display: none; }
.store-tag { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -2px 0 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.store-tag img { max-height: 40px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.store-tag:empty { display: none; }
.mw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.mw-block h3, .br-sec h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.mw-block h3:not(:first-child) { margin-top: 16px; }
.mw-block textarea { width: 100%; resize: vertical; }
.mw-sample { color: var(--ink); white-space: pre-wrap; }
.mw-days { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.mw-days label { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.mw-days label.on, .mw-days label:has(input:checked) { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.mw-days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.snd-row select { width: auto; max-width: 190px; padding: 6px 8px; font-size: 13px; }
.br-sec { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.br-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.br-voice { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.br-voice.on { border-color: var(--brand); background: var(--brand-soft); }
.br-voice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.br-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.br-tpl { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; background: var(--fill-2); }
.br-tpl b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
@media (max-width: 900px) { .mw-grid, .br-voices, .br-tpls { grid-template-columns: 1fr; } .snd-row { flex-wrap: wrap; } .snd-row select { max-width: none; flex: 1 1 140px; } }
/* Compliance center (#/compliance) */
.stat.cp-bad .num { color: var(--bad); } .stat.cp-warn .num { color: var(--warn); }
.cp-tabs { flex-wrap: wrap; } .cp-table .pill { white-space: nowrap; }
.cp-miss { margin: 4px 0 0; padding-left: 18px; }
.cp-vendors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cp-vendor { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .cp-vendor.on { border-color: var(--brand); }
.cp-vendor h3 { margin: 0 0 2px; font-size: 16px; } .cp-vendor ol { padding-left: 18px; margin: 8px 0; display: grid; gap: 4px; }
.cp-vendor code { font-size: 12px; background: var(--fill); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.cp-pre { max-height: 52vh; overflow: auto; background: var(--fill); border-radius: 10px; padding: 12px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.cp-rules { display: grid; gap: 6px; padding-left: 18px; margin: 12px 0 0; }
.cp-hist { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; gap: 2px; }
.cp-ret { display: grid; gap: 0; }
.cp-ret-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); } .cp-ret-row h3 { margin: 0 0 4px; font-size: 16px; } .cp-ret-row > .grow { display: grid; gap: 4px; }
.cp-ret-row > .grow { flex: 1 1 auto; min-width: 0; } .cp-ret-side { display: grid; gap: 6px; align-content: start; flex: 0 0 170px; } .cp-ret-side input { max-width: 120px; }
@media (max-width: 600px) { .cp-ret-row { flex-direction: column; gap: 8px; } .cp-ret-side { flex: none; } }

/* sales process (Settings › Sales process, Lead routing rules, steps on the floor) */
.sp-steps { display: grid; gap: 6px; margin-top: 8px; }
.sp-step { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); flex-wrap: wrap; }
.sp-step.off { opacity: .6; } .sp-step input.grow { min-width: 140px; flex: 1; }
.sp-ord { display: inline-flex; gap: 2px; }
.sp-rule { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; }
.sp-rule .grid3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sp-people { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 5px; flex-basis: 100%; }
.sp-people[hidden] { display: none; }
.sp-chip { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.sp-chip.req { border-color: var(--warn); color: var(--warn); }
.sp-chip.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.sp-missing { background: var(--warn-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 6px; }
.sp-missing ul { margin: 0; padding-left: 18px; }

/* Printed pencil: measured at print settings so it can be shrunk onto one page (fitPencilToPage in desk.js) */
.pencil2.pq-measure { padding: 0; }
.pencil2.pq-measure .pq-page2 { display: none; }
@media print { .pencil2 { break-inside: avoid; } }

/* ---------- Desk › Trade reconditioning: fixed lines with a typed amount ---------- */
.rc-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.rc-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; font-weight: 600; cursor: text; }
.rc-line.on { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.rc-amt { display: inline-flex; align-items: center; gap: 2px; }
.rc-amt i { font-style: normal; color: var(--muted); font-weight: 500; }
.rc-amt input { width: 84px; min-height: 34px; padding: 4px 6px; text-align: right; }
@media (max-width: 640px) { .rc-lines { grid-template-columns: 1fr; } }

/* LTV follows the picked payment box: name the box, flash when the numbers move */
.ltv-pick { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 9px; }
.ltv-moved .ltv-big { animation: ltvFlash .6s ease-out; }
@keyframes ltvFlash { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.ltv-big { display: inline-block; transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .ltv-moved .ltv-big { animation: none; } }

/* Move from your old CRM (#/import, public/migrate-ui.js) */
.mg-crms { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.mg-crm { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.mg-crm.on { border-color: var(--accent, #7c5cff); background: color-mix(in srgb, var(--accent, #7c5cff) 12%, transparent); font-weight: 600; }
.mg-steps { margin: 6px 0; padding-left: 20px; } .mg-steps li { margin: 3px 0; }
.mg-files { display: grid; gap: 8px; margin: 8px 0; }
.mg-file { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.mg-file select { max-width: 100%; }
.mg-tally { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; } .mg-tally .warn b { color: #d97706; }
.mg-opts { display: grid; gap: 8px; margin: 10px 0; font-size: 14px; } .mg-opts label { display: block; } .mg-opts input, .mg-opts select { display: inline-block; width: auto; margin: 0 4px; vertical-align: middle; } .mg-opts input { width: 72px; }
.mg-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0; } .mg-bar i { display: block; height: 100%; background: var(--accent, #7c5cff); transition: width .4s; }

/* Live call coach panel (coach-ui.js): sits beside any screen during a call. */
.coach-panel { position: fixed; top: 76px; right: 16px; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); z-index: 85; /* above an open call screen (.modal is 80), under toasts */ display: grid; grid-template-rows: auto 1fr;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.coach-panel.min .coach-body { display: none; }
.coach-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--fill-2); }
.coach-title { font-weight: 700; }
.coach-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); animation: coachpulse 1.6s infinite; flex: none; }
.coach-dot.off { background: var(--faint); box-shadow: none; animation: none; }
@keyframes coachpulse { 50% { opacity: .45; } }
.coach-body { overflow: auto; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.coach-card { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 10px 12px; background: var(--fill-2); display: grid; gap: 4px; }
.coach-card.obj { border-left-color: var(--warn); background: var(--warn-soft); }
.coach-card.appt { border-left-color: var(--brand); background: var(--brand-soft); }
.coach-card.appt.urgent { border-left-color: var(--bad); background: var(--bad-soft); }
.coach-card.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.coach-say { font-size: 15px; line-height: 1.4; }
.coach-tip { font-size: 13px; color: var(--muted); }
.coach-info { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.coach-chip.have { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.coach-tx summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.coach-lines { max-height: 220px; overflow: auto; display: grid; gap: 6px; margin-top: 6px; }
.coach-line { font-size: 13px; padding: 6px 9px; border-radius: 10px; background: var(--fill); max-width: 88%; }
.coach-line span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.coach-line.rep { justify-self: end; background: var(--brand-soft); }
.coach-practice { display: grid; gap: 8px; } .coach-practice .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; } .coach-practice .chip-btn { flex: none; font-size: 12px; }
.coach-practice .row { flex-wrap: nowrap; } .coach-practice select { width: auto; flex: none; }
.coach-practice input { min-width: 0; }
.coach-src { text-align: right; }
@media (max-width: 820px) { .coach-panel { top: auto; bottom: 76px; left: 12px; right: 12px; width: auto; max-width: none; max-height: 62vh; } }
/* Funding: store toggle */
.fund-stores { gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.fund-stores .btn[data-fstore]:not(.primary) { border-left: 3px solid var(--lc, transparent); }
.fund-h { margin: 14px 0 6px; font-size: 1rem; }
.fl-stats .stat.warn .num { color: var(--warn, #e67700); }
.fl-stats .stat.bad .num { color: var(--bad, #e03131); }
.fund-stores .btn.primary .muted { color: inherit; opacity: .85; }

/* ---------- Customer page: tinted tabs and a shorter action rail ----------
   Each tab has its own light hue, mixed from the theme's colors, so you can tell where you are at a glance.
   The rail keeps the everyday actions in view and folds the rest into More. */
.cust-shell { --hue-info: #3b82f6; --hue-team: #0ea5a4; --hue-hist: #9b5de5; --hue-docs: #6b7a90; }
.cust-tabs button { --t: var(--brand); }
.cust-tabs [data-ctab=deal] { --t: var(--ok); } .cust-tabs [data-ctab=info] { --t: var(--hue-info); } .cust-tabs [data-ctab=team] { --t: var(--hue-team); }
.cust-tabs [data-ctab=activity] { --t: var(--warn); } .cust-tabs [data-ctab=history] { --t: var(--hue-hist); } .cust-tabs [data-ctab=docs] { --t: var(--hue-docs); } .cust-tabs [data-ctab=audit] { --t: var(--muted); }
.cust-main { --tab: var(--brand); }
.cust-main[data-tab=deal] { --tab: var(--ok); } .cust-main[data-tab=info] { --tab: var(--hue-info); } .cust-main[data-tab=team] { --tab: var(--hue-team); }
.cust-main[data-tab=activity] { --tab: var(--warn); } .cust-main[data-tab=history] { --tab: var(--hue-hist); } .cust-main[data-tab=docs] { --tab: var(--hue-docs); } .cust-main[data-tab=audit] { --tab: var(--muted); }

.cust-tabs { gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill-2); }
.cust-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; margin: 0; border-radius: 9px; padding: 8px 12px; transition: background .12s, color .12s; }
.cust-tabs button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t); opacity: .45; flex: none; }
.cust-tabs button:hover { background: color-mix(in srgb, var(--t) 8%, transparent); }
.cust-tabs button.on { color: color-mix(in srgb, var(--t) 72%, var(--ink)); background: color-mix(in srgb, var(--t) 14%, var(--panel)); box-shadow: inset 0 -2px 0 var(--t), var(--shadow); }
.cust-tabs button.on::before { opacity: 1; }
.cust-tabs button.on i { background: color-mix(in srgb, var(--t) 20%, transparent); color: inherit; }
.cust-pane.on .card { background: color-mix(in srgb, var(--tab) 4%, var(--panel)); border-top: 3px solid color-mix(in srgb, var(--tab) 45%, var(--line)); }
.cust-pane.on .card .card { border-top-width: 1px; border-top-color: var(--line); }

/* Who they are (left) sits on a quieter surface than the work area in the middle */
.cust-left .side-card { background: color-mix(in srgb, var(--fill-2) 75%, var(--panel)); }
.cust-left .side-card h3 { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.cust-left .side-card h3 .link-btn { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.side-open { margin-top: 6px; }

/* Action rail */
.cust-shell { grid-template-columns: 276px minmax(0, 1fr) 184px; }
.cust-right { display: grid; gap: 10px; align-content: start; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }
.cust-right .act-group { --g: var(--brand); display: grid; gap: 4px; min-width: 0; padding: 8px; border-radius: 12px;
  background: color-mix(in srgb, var(--g) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--g) 16%, var(--line)); }
.cust-right .act-group:empty { display: none; }
.cust-right .act-quick, .cust-right .act-deal { --g: var(--ok); }
.cust-right .act-cust { --g: var(--hue-team); }
.cust-right .act-status { --g: var(--bad); }
.cust-right .act-group h4 { margin: 0 2px 2px; font-size: 11.5px; color: color-mix(in srgb, var(--g) 55%, var(--muted)); }
.cust-right .act { border-color: transparent; background: var(--panel); min-width: 0; }
.cust-right .act:hover { border-color: color-mix(in srgb, var(--g, var(--brand)) 55%, transparent); background: color-mix(in srgb, var(--g, var(--brand)) 10%, var(--panel)); }
.cust-right .act[data-primary] { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }
.cust-right .act[data-bad]:hover { border-color: var(--bad); background: var(--bad-soft); }
.cust-right .act { white-space: normal; line-height: 1.25; } .cust-right .act span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cust-right .rail-more { justify-content: flex-start; border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); }
.cust-right .rail-more span:nth-child(2) { flex: 1; }
.cust-right .rail-caret { transition: transform .15s; }
.cust-right .rail-more[aria-expanded=true] { color: var(--ink); border-style: solid; }
.cust-right .rail-more[aria-expanded=true] .rail-caret { transform: rotate(180deg); }
.cust-right .rail-menu { display: grid; gap: 10px; }
.cust-right .rail-menu[hidden] { display: none; }

/* Under 1280px the rail sits above the tabs as one row: next steps and More. More opens every other action below it. */
@media (max-width: 1279px) {
  .cust-shell { grid-template-columns: 244px minmax(0, 1fr); }
  .cust-right { grid-column: 2; grid-row: 1; position: static; max-height: none; overflow: visible; display: flex; flex-wrap: wrap; gap: 6px; }
  .cust-right .act-main { display: contents; } .cust-right .act-main h4 { display: none; }
  .cust-right .act { width: auto; }
  .cust-right .act-main .act:not([data-primary]) { border-color: var(--line); }
  .cust-right .rail-more { width: auto; }
  .cust-right .act-quick { display: none; }
  .cust-right.all .act-quick { display: grid; order: 3; flex: 1 1 100%; }
  .cust-right .rail-menu { order: 4; flex: 1 1 100%; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; }
  .cust-right .act-group:not(.act-main) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .cust-right .act-group:not(.act-main) h4 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cust-shell { grid-template-columns: minmax(0, 1fr); }
  .cust-right { grid-column: 1; }
  .cust-right .rail-menu { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cust-right .act-main .act, .cust-right .rail-more { flex: 1 1 calc(33% - 6px); justify-content: center; padding-left: 6px; padding-right: 6px; }
  .cust-right .act-main .act .act-i { display: none; } /* labels only, so Appointment fits on one line */
  .cust-right .act span:last-child { overflow-wrap: normal; }
}
/* Sales board (#/salesboard): a board per store and the group board */
.sb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; } .sb-tabs button { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; min-height: 40px; }
.sb-tabs button.on { border-color: var(--lc, var(--brand)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lc, var(--brand)) 35%, transparent); }
.sb-board { border-top: 4px solid var(--lc, var(--brand)); } .sb-table td, .sb-table th { white-space: nowrap; } .sb-table tfoot td { border-top: 2px solid var(--line-strong); }
.sb-bar { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; vertical-align: middle; } .sb-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.sb-reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; } .sb-reps > div { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sb-rank { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--fill); font-size: 12px; font-weight: 700; flex: none; }
.sb-reps > div:nth-child(1) .sb-rank { background: #fbbf24; color: #1b1300; } .sb-reps > div:nth-child(2) .sb-rank { background: #cbd5e1; color: #0f172a; } .sb-reps > div:nth-child(3) .sb-rank { background: #d97706; color: #fff; }
.sb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; } .sb-two .sb-reps { grid-template-columns: 1fr; } .sb-feed { max-height: 520px; overflow: auto; }
.sb-print-title { display: none; } @media print { .sb-print-title { display: block; margin-bottom: 8px; } .sb-feed { max-height: none; } }
@media (max-width: 520px) { .sb-two { grid-template-columns: 1fr; } }
/* Store access per person (Settings › Users › Stores, Hire someone) */
.loc-acc { display: inline-block; margin-top: 3px; color: var(--muted); } .loc-acc.all { color: var(--ink); font-weight: 600; } .loc-acc small { color: var(--muted); font-weight: 400; }
.loc-pickr { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.loc-pickr .chk { display: flex; gap: 8px; align-items: center; } .loc-pickr .chk input { width: 20px; height: 20px; flex: none; }
.loc-allbox { align-items: flex-start !important; } .loc-allbox .muted { display: block; }
.loc-boxes { display: grid; gap: 6px; } .loc-boxes[hidden] { display: none; }
