
/* Layout: phone-first app in the same dark showroom look as the website. Sticky logo bar, one column of content, fixed bottom tab bar. Single dark theme by choice (white logo on black). */
:root {
  --bg: #0a0b0c;
  --surface: #121416;
  --surface-2: #1a1d20;
  --line: #262a2e;
  --ink: #f1eee8;
  --ink-2: #a2a5a7;
  --ink-3: #6f7376;
  --accent: #cdb68a;
  --accent-ink: #0a0b0c;
  --good: #8cc4a4;
  --warn: #e3ad6c;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h1 { font-size: 24px; font-weight: 600; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
h2 { font-size: 13px; font-weight: 600; font-stretch: 125%; text-transform: uppercase; letter-spacing: .14em; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.label { font-family: var(--font-display); font-stretch: 125%; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: #0a0b0ce8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .in { max-width: 600px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px; display: flex; align-items: center; gap: 12px; }
header.top .ttl { display: grid; line-height: 1.15; }
header.top .ttl b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
header.top .ttl span { font-size: 11.5px; color: var(--ink-3); }
.pill { margin-left: auto; font: 500 10px/1 var(--font-display); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border: 1px solid #cdb68a66; color: var(--accent); border-radius: 99px; white-space: nowrap; }

.wrap { max-width: 600px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 22px calc(104px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 22px; }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wr { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sec { display: grid; gap: 12px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; }
.sec-h h2 { flex: 1; }
.count { font: 500 12px/1 var(--font-display); color: var(--ink-3); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.hello { display: grid; gap: 4px; }
.hello .d { font-size: 13px; color: var(--ink-3); }
.lock { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, #cdb68a1f, #cdb68a08); border: 1px solid #cdb68a40; font-size: 14px; }
.lock svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.accts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.acct b { font-weight: 500; font-size: 14px; }
.acct span { font-size: 12px; color: var(--ink-3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }

button, .btn { font: 600 12.5px/1 var(--font-display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; border: 0; border-radius: 10px; padding: 13px 16px; cursor: pointer; background: var(--surface-2); color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button.primary, .btn.primary { background: var(--ink); color: var(--accent-ink); }
button.gold { background: var(--accent); color: var(--accent-ink); }
button.ghost, .btn.ghost { background: transparent; border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--warn); border: 1px solid var(--line); }
button:disabled { opacity: .45; cursor: default; }
button svg, .btn svg { width: 17px; height: 17px; flex: none; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.full { width: 100%; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btns3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }

.q { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; }
.th { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th .vid { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: #0a0b0cc4; color: #fff; font: 600 10.5px/1 var(--font-body); padding: 4px 6px; border-radius: 6px; }
.th .vid svg { width: 10px; height: 10px; }
.th .many { position: absolute; right: 6px; top: 6px; background: #0a0b0cc4; color: #fff; font: 600 10.5px/1 var(--font-body); padding: 4px 6px; border-radius: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/1 var(--font-body); padding: 5px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.tag.acc { background: #cdb68a24; color: var(--accent); }
.tag.good { background: #8cc4a41f; color: var(--good); }
.tag.warn { background: #e3ad6c1f; color: var(--warn); }
.when { font: 500 12px/1.2 var(--font-display); font-stretch: 105%; color: var(--accent); font-variant-numeric: tabular-nums; }
.list > * + * { border-top: 1px solid var(--line); padding-top: 14px; }
.list { display: grid; gap: 14px; }

.empty { text-align: center; padding: 18px 8px; color: var(--ink-3); font-size: 14px; }

.chip { font: 500 13px/1 var(--font-body); text-transform: none; letter-spacing: 0; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); min-height: 36px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { position: relative; padding: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 1; min-height: 0; background: var(--surface-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .vid { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; background: #0a0b0cc4; color: #fff; font: 600 10px/1 var(--font-body); padding: 3px 5px; border-radius: 5px; letter-spacing: 0; text-transform: none; }
.tile .vid svg { width: 9px; height: 9px; }
.tile.used img { opacity: .38; }
.tile .st { position: absolute; right: 5px; top: 5px; font: 600 9.5px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; background: #0a0b0cd0; color: var(--ink-2); padding: 4px 5px; border-radius: 5px; }
.tile .sel { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #0a0b0c66; display: grid; place-items: center; font: 700 12px/1 var(--font-body); color: var(--accent-ink); }
.tile[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile[aria-pressed="true"] .sel { background: var(--accent); border-color: var(--accent); }

.stage { position: relative; aspect-ratio: 9 / 16; width: min(100%, 320px); margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; container-type: inline-size; max-width: 100%; }
.stage video, .stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { min-height: 34px; padding: 8px 12px; background: transparent; color: var(--ink-2); font-size: 11.5px; border-radius: 8px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); }

label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
input[type=text], input[type=search], input[type=time], input[type=tel], input[type=email], input[type=password], textarea, select { font: 400 15px/1.5 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 44px; }
textarea { resize: vertical; min-height: 128px; }

@keyframes b { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
.note { font-size: 12.5px; color: var(--ink-3); }
.err { font-size: 13px; color: var(--warn); }
.pick { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left; text-transform: none; letter-spacing: 0; font: 400 14px/1.45 var(--font-body); padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; color: var(--ink-2); justify-content: stretch; }
.opt b { display: block; color: var(--ink); font: 600 15px/1.3 var(--font-display); font-stretch: 110%; margin-bottom: 2px; }
.opt .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.opt .ic svg { width: 22px; height: 22px; }

.msg { display: grid; gap: 10px; }

.from { font-weight: 500; }

/* settings */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 6px; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); position: relative; cursor: pointer; flex: none; border: 1px solid var(--line); margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-3); transition: transform .15s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:disabled { cursor: not-allowed; opacity: .85; }
.switch .t { display: grid; gap: 2px; } .switch .t b { font-weight: 500; font-size: 14.5px; } .switch .t span { font-size: 12.5px; color: var(--ink-3); }

@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 #e3ad6c66; } 50% { box-shadow: 0 0 0 10px #e3ad6c00; } }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi .n { font: 500 26px/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--good); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 11.5px; color: var(--ink-3); }

/* tabs */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #0a0b0cf2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
nav.tabs .in { max-width: 600px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); }
nav.tabs button { background: none; border-radius: 0; flex-direction: column; gap: 4px; font: 500 10px/1 var(--font-display); font-stretch: 112%; letter-spacing: .1em; color: var(--ink-3); padding: 9px 2px 10px; min-height: 60px; position: relative; }
nav.tabs button svg { width: 21px; height: 21px; }
nav.tabs button[aria-current="page"] { color: var(--ink); }
nav.tabs button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--accent); }
nav.tabs .new svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--accent); color: var(--accent-ink); font: 700 10px/1 var(--font-body); border-radius: 99px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; letter-spacing: 0; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--ink); color: var(--accent-ink); padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; width: max-content; max-width: min(92vw, 520px); box-shadow: 0 8px 30px #000a; }
.sheet-back { position: fixed; inset: 0; background: #000b; z-index: 20; display: grid; align-items: end; }
.sheet { background: var(--surface); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; max-width: 600px; width: 100%; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; max-height: 92vh; overflow-y: auto; }
.sheet .media { border-radius: 12px; overflow: hidden; background: #000; max-height: 46vh; display: grid; place-items: center; }
.sheet .media img, .sheet .media video { max-height: 46vh; width: auto; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .thinking i { animation: none; } .switch input::after { transition: none; } }

.linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-transform: none; letter-spacing: 0; font: 500 13px var(--font-body); text-decoration: underline; }
.code { font: 13px/1.5 ui-monospace, Menlo, monospace; }
.steps-ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.steps-ol b { color: var(--ink); font-weight: 500; }
.tag.bad { background: #e36c6c22; color: #f09a9a; }
.loginwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
.loginbox { width: min(100%, 380px); display: grid; gap: 18px; text-align: center; }
.loginbox img { width: 200px; margin: 0 auto; }

nav.tabs button span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- tablets in portrait ---------- */
@media (min-width: 700px) {
  .wrap, header.top .in { max-width: 760px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  nav.tabs .in { max-width: 760px; }
  .briefpop { max-width: 640px; grid-template-columns: 1fr 160px; }
  .briefpop .body { width: 160px; }
}

/* ---------- tablets in landscape and computers: side menu, wider pages ---------- */
@media (min-width: 1000px) {
  body { font-size: 15.5px; }
  header.top { padding-left: 232px; }
  header.top .in { max-width: 1200px; }
  .wrap { max-width: 1200px; margin: 0; margin-left: 232px; padding: 30px 36px 48px; gap: 26px; }

  nav.tabs { top: 0; bottom: 0; right: auto; width: 232px; border-top: 0; border-right: 1px solid var(--line); background: #0d0f10; z-index: 7; padding-top: 18px; }
  nav.tabs .in { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; max-width: none; }
  nav.tabs::before { content: ""; display: block; height: 40px; margin: 8px 18px 26px; background: url(/brand/nexcoat-logo.svg) left center / contain no-repeat; }
  body.homebiz nav.tabs::before { height: 64px; margin: 0 20px 18px; background-image: url(/logo-white.png); }
  nav.tabs button { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 48px; padding: 10px 14px; border-radius: 10px; font-size: 12px; letter-spacing: .12em; }
  nav.tabs button:hover { background: var(--surface); color: var(--ink); }
  nav.tabs button[aria-current="page"] { background: var(--surface-2); }
  nav.tabs button[aria-current="page"]::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 3px; height: auto; border-radius: 2px; }
  nav.tabs .new svg { width: 26px; height: 26px; padding: 5px; }
  nav.tabs .badge { position: static; margin-left: auto; }

  h1 { font-size: 30px; }
  .hello h1 { font-size: 34px; }

  .q { grid-template-columns: 140px 1fr; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .tile { border-radius: 8px; }

  .stage { width: 100%; max-width: 400px; }

  .r-settings { grid-template-columns: 1fr 1fr; align-items: start; }
  .r-settings > :first-child, .r-settings > p.err, .r-settings > .full { grid-column: 1 / -1; }
  .r-settings > .full { max-width: 360px; }

  .sheet-back:not(.brief-back) { align-items: center; }
  .sheet { border-radius: 18px; max-width: 640px; border: 1px solid var(--line); }
  .toast { left: calc(50% + 116px); bottom: 28px; }
}
@media (min-width: 1500px) {
  .wrap { margin-left: max(232px, calc(232px + (100vw - 232px - 1200px) / 2)); }
  header.top .in { margin-left: max(0px, calc((100vw - 232px - 1200px) / 2)); }
}

.row input[type=search] { flex: 1; min-width: 0; }

button.th { padding: 0; min-height: 0; display: block; border-radius: 10px; background: var(--surface-2); cursor: zoom-in; }

.toast.act { display: flex; gap: 14px; align-items: center; }
.toast.act .linkbtn { color: var(--accent-ink); font-weight: 700; text-decoration: underline; }

input[type=datetime-local] { font: 400 15px/1.5 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; color-scheme: dark; }
.looks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.look { flex: 0 0 auto; width: 92px; padding: 0; min-height: 0; display: grid; gap: 6px; background: transparent; border-radius: 10px; text-transform: none; letter-spacing: 0; font: 500 11.5px/1.2 var(--font-body); color: var(--ink-2); }
.look img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.look[aria-pressed="true"] { color: var(--ink); }
.look[aria-pressed="true"] img { border-color: var(--accent); }

.tile .sel svg { width: 13px; height: 13px; color: var(--accent-ink); }
.sheet .grid .tile[aria-pressed="true"] .sel { background: var(--accent); border-color: var(--accent); }

.kpi small { font-size: 13px; font-weight: 500; }

.lrow { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr 44px 60px; gap: 10px; align-items: center; font-size: 14px; }

.lrow .ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }

.tag.bad { color: var(--warn); border-color: #e3ad6c55; }

/* ---------- business: jobs, book, money, clients ---------- */
.hdr-btns { display: flex; gap: 4px; margin-left: 6px; }
.hbtn { position: relative; background: transparent; color: var(--ink-2); padding: 8px; min-height: 40px; min-width: 40px; border-radius: 10px; }
.hbtn svg { width: 21px; height: 21px; }
.hbtn[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.hbtn .badge { position: absolute; top: 3px; right: 2px; }
nav.tabs .in { grid-template-columns: repeat(7, 1fr); }
nav.tabs button { letter-spacing: .06em; }
button.sm, .btn.sm { min-height: 36px; padding: 9px 12px; font-size: 11.5px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
a.btn.gold { background: var(--accent); color: var(--accent-ink); }
.row.wr { flex-wrap: wrap; }
.row.wr > * { min-width: 0; }
.grow { flex: 1; }
.sec { display: grid; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }
input[type=date], input[type=time] { font: 400 15px/1.5 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; color-scheme: dark; }
.bsheet h1 { font-size: 22px; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -6px auto 0; }
.weeknav { gap: 8px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { display: grid; justify-items: center; gap: 2px; padding: 8px 0; min-height: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-transform: none; letter-spacing: 0; }
.day .dn { font: 500 10px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.day .dd { font: 600 18px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.day .dots { display: flex; gap: 3px; height: 6px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.day.now { border-color: #cdb68a77; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day[aria-pressed="true"] .dn { color: var(--accent-ink); }
.day[aria-pressed="true"] .dots i { background: var(--accent-ink); }
.jobcard { display: grid; grid-template-columns: 62px 1fr; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14px/1.4 var(--font-body); }
.card .jobcard { background: var(--surface-2); }
.jobcard:hover { border-color: #3a3f44; }
.jobcard .jt b { display: block; font: 600 15px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.jobcard .jt span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.jobcard .jb { display: grid; gap: 3px; min-width: 0; }
.jobcard .jn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }
.addrrow { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 14px; }
.addrrow svg { width: 17px; height: 17px; flex: none; color: var(--ink-3); }
.addrrow .grow { min-width: 0; overflow-wrap: anywhere; }
.addrrow .btn, .addrrow button { flex: none; }
.emptybox { border: 1px dashed var(--line); border-radius: 14px; padding: 20px 16px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.steps4 i { height: 4px; border-radius: 4px; background: var(--line); }
.steps4 i.on { background: var(--accent); }
.steplab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11px; color: var(--ink-3); text-align: center; margin-top: -8px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lines { display: grid; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.line.tot { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.textbox { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.filecard { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none; text-transform: none; letter-spacing: 0; font: 400 14px/1.35 var(--font-body); }
.filecard .fi { width: 42px; height: 50px; border-radius: 6px; background: #fff; border-top: 6px solid #1a1a1a; color: #b8862e; display: grid; place-items: end center; padding-bottom: 6px; font: 700 10px/1 var(--font-display); letter-spacing: .06em; }
.filecard b { display: block; overflow-wrap: anywhere; }
.filecard .muted { display: block; }
.filecard .go { color: var(--accent); font: 600 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.phstrip { display: flex; gap: 8px; overflow-x: auto; }
.phstrip .ph { position: relative; flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.phstrip img { width: 100%; height: 100%; object-fit: cover; }
.phstrip i { position: absolute; left: 4px; bottom: 4px; font: 600 9.5px/1 var(--font-display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: #000a; padding: 3px 5px; border-radius: 4px; }
.paidnote { background: #8cc4a414; border: 1px solid #8cc4a444; border-radius: 12px; padding: 12px; font-size: 14px; }
.bookform { gap: 14px; }
.lineed { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.lineed input[type=text], .lineed select { width: 100%; }
.seg.full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.bslots { display: flex; gap: 8px; flex-wrap: wrap; }
.bslot { min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-transform: none; letter-spacing: 0; font: 500 14px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.bslot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bslot:disabled { opacity: .35; text-decoration: line-through; }
.totrow { display: flex; justify-content: space-between; align-items: baseline; }
.totrow b { font: 600 26px/1 var(--font-display); }
.tscroll { overflow-x: auto; }
.ptab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptab th { text-align: left; font: 500 10.5px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 4px 8px 0; }
.ptab td { padding: 6px 4px 6px 0; border-top: 1px solid var(--line); }
.ptab th:not(:first-child), .ptab td:not(:first-child) { text-align: right; }
.pin { width: 66px; min-height: 36px; text-align: right; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; color: var(--ink); font: 400 14px/1 var(--font-body); }
.pin.own { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpis.three .kpi .n { font-size: 20px; }
.bignum { font: 600 34px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.bignum.pos { color: var(--good); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 120px 1fr 70px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar .tr { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: 8px; }
.bar .v { text-align: right; color: var(--ink-2); }
.split { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; }
.split i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.ledger { display: grid; }
.lrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); font: 400 14.5px/1.4 var(--font-body); text-transform: none; letter-spacing: 0; background: none; color: var(--ink); text-align: left; border-radius: 0; width: 100%; }
.lrow:first-child { border-top: 0; padding-top: 0; }
.lrow .m { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.clientcard { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14.5px/1.35 var(--font-body); grid-template-columns: none; }
.clientcard .av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font: 600 16px/1 var(--font-display); color: var(--accent); flex: none; }
#bc-search { width: 100%; }
@media (max-width: 420px) { .bar { grid-template-columns: 96px 1fr 62px; } .kpis.three { grid-template-columns: 1fr 1fr; } .kpis.three .kpi:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .hdr-btns { margin-left: 10px; } }
header.top .ttl span, header.top .ttl b { white-space: nowrap; }
@media (max-width: 440px) { header.top .ttl span { display: none; } header.top .pill { padding: 6px 7px; letter-spacing: .1em; } header.top .in { gap: 8px; } }
.newclient { display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.grouph { margin-top: 6px; }
.savefile { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.savefile img, .savefile video { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }

/* cars & service history */
.carcard { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14.5px/1.35 var(--font-body); padding: 12px 14px; }
.carcard .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.carcard .ci svg { width: 22px; height: 22px; }
.carcard .grow > span { display: block; }
.carcard .go { color: var(--accent); font: 600 11.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; flex: none; }
.carchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.carchips .muted { margin-right: 2px; }
button.carchip { min-height: 34px; padding: 7px 12px; border-radius: 99px; background: transparent; border: 1px solid var(--line); color: var(--ink-2); text-transform: none; letter-spacing: 0; font: 500 13px/1.2 var(--font-body); }
button.carchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
button.hrow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); padding: 12px; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14px/1.35 var(--font-body); min-height: 0; }
button.hrow:last-child { border-bottom: 0; }
.hrow .hd { width: 92px; flex: none; color: var(--ink-2); font-size: 12.5px; }
.hrow .grow > span { display: block; }
.hrow .tag { margin-top: 4px; }
button.linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-transform: none; letter-spacing: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline; }

/* accounts: settings, logo, admin */
.warnbox { border-color: var(--accent); }
.logoprev { background: #fff; border-radius: 12px; padding: 14px; display: grid; place-items: center; }
.logoprev img { max-width: 220px; max-height: 120px; object-fit: contain; }
.bizcard { display: grid; gap: 10px; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv3 span { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--ink-2); }
.kv3 b { display: block; font: 600 18px/1.2 var(--font-display); color: var(--ink); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
input.pname { width: 100%; min-width: 150px; padding: 8px 10px; min-height: 38px; font: 400 14px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
button.xbtn { min-height: 34px; padding: 6px 10px; flex: none; }
.textbox { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; user-select: all; }

nav.tabs button { justify-content: flex-end; }

/* ---------- Nexcoat ---------- */
.ttl .nx { font-style: italic; color: var(--ink-2); font-weight: 800; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 4px; }
.ttl .nx em { font-style: italic; color: var(--accent); }
.ttl .nx .nxm { width: 13px; height: 11px; flex: none; }
body.nosc { overflow: hidden; }
.setupwrap { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.setupwrap .in { max-width: 560px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(30px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.nxmark { font: italic 800 22px/1 var(--font-display); font-stretch: 125%; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 10px; }
.nxmark i { font-style: italic; color: var(--accent); }
.nxmark .nxm { width: 30px; height: 26px; flex: none; }
/* Nexcoat logo on the login page */
.nxm-login { width: 84px; height: 72px; justify-self: center; margin-bottom: -6px; }
.loginbox h1.nxword { font: italic 800 34px/1 var(--font-display); font-stretch: 125%; letter-spacing: .06em; text-transform: none; }
.loginbox h1.nxword span { color: var(--accent); }
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps5 i { height: 4px; border-radius: 2px; background: var(--line); }
.steps5 i.on { background: var(--accent); }
.nxq { font: 600 21px/1.25 var(--font-body); text-wrap: balance; margin: 0; }
.choices { display: grid; gap: 8px; }
button.choice { display: flex; gap: 12px; align-items: center; justify-content: flex-start; text-align: left; text-transform: none; letter-spacing: 0; font: 400 14px/1.35 var(--font-body); padding: 14px; width: 100%; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.choice .cdot { flex: none; width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--ink-3); display: grid; place-items: center; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: #cdb68a14; }
.choice[aria-pressed="true"] .cdot { border-color: var(--accent); }
.choice[aria-pressed="true"] .cdot::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); }
.choice .t { display: grid; gap: 2px; min-width: 0; }
.choice .t b { font-weight: 600; font-size: 15px; }
.choice .t span { color: var(--ink-2); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inline { display: flex; align-items: center; gap: 8px; }
.inline input { max-width: 120px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wstats span { background: var(--surface-2); border-radius: 10px; padding: 8px; font-size: 11.5px; color: var(--ink-2); display: grid; gap: 2px; }
.wstats b { font: 600 16px/1.1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.offcard { opacity: .55; }
.asbar { background: #cdb68a1f; border: 1px solid #cdb68a55; border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; flex-wrap: wrap; }
.clockcard { justify-items: center; text-align: center; }
.clk { font: 600 40px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.wjob.isdone { opacity: .6; }
.scanbox { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface-2); min-height: 160px; display: grid; place-items: center; }
.scanbox img { max-height: 320px; width: auto; max-width: 100%; display: block; }
.scanbox::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); box-shadow: 0 0 16px var(--accent); top: 6%; animation: nxscan 1.2s ease-in-out infinite; }
@keyframes nxscan { 0% { top: 6%; } 50% { top: 92%; } 100% { top: 6%; } }
@media (prefers-reduced-motion: reduce) { .scanbox::after { animation: none; top: 50%; } }
.snapflds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mtabs button { flex: none; min-height: 36px; padding: 8px 13px; border-radius: 99px; font-size: 11px; background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.mtabs button[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.trips { display: grid; }
.trip { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.trip:first-child { border-top: 0; padding-top: 0; }
.trip .r { grid-column: 1 / -1; color: var(--ink-3); font-size: 12.5px; }
.stmt { display: grid; font-size: 14px; }
.stmt .sl { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.stmt .sl span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stmt .sl.sub { color: var(--ink-2); padding-left: 12px; }
.stmt .sl.head { font: 600 11px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 14px; }
.stmt .sl.tot { border-top: 1px solid var(--line); font-weight: 600; margin-top: 4px; padding-top: 10px; }
.stmt .sl.net { border-top: 2px solid var(--accent); font-weight: 700; font-size: 17px; margin-top: 8px; padding-top: 12px; }
.stmt .sl.net span:last-child { color: var(--good); }
.stmt .sl.dim span { color: var(--ink-3); }
.kvrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kvrow:first-of-type { border-top: 0; }
.kvrow span { color: var(--ink-3); }
.kvrow b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
nav.tabs button span { font-size: 9.5px; }
body:not(.mkt) header.top .ttl span { display: block !important; }
.snapflds input { width: 100%; min-width: 0; }
.snapflds .f { min-width: 0; }
.wav { width: 40px; height: 40px; border-radius: 20px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; font: 700 15px/1 var(--font-display); flex: none; }

/* Support access: Daniel inside a customer's account */
#supportBar { background: var(--accent); color: var(--accent-ink); }
#supportBar[hidden] { display: none; }
#supportBar .in { max-width: 600px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.3; }
#supportBar .in span { flex: 1 1 180px; }
#supportBar .supback { background: var(--accent-ink); color: var(--accent); border: 0; border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 13px; min-height: 34px; cursor: pointer; }

/* Worker permissions and the activity log */
.permbox { display: grid; gap: 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 12px; margin-block: 6px; }
.permbox h2 { margin-bottom: 4px; }
.switch.locked { opacity: .6; }
.actbtn { display: flex !important; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; min-height: 58px; margin-bottom: 4px; }
.actbtn b { font-weight: 600; font-size: 14.5px; }
.actchips { margin-bottom: 8px; }
.actday { margin: 16px 0 6px; }
.actrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.actrow .small { margin: 0 0 2px; } .actrow .tiny { margin: 0; }
.actrow.hot { border-color: #e0a45a77; background: #e0a45a12; }
.actrow .wav { width: 34px; height: 34px; font-size: 13px; }
.actrow .wav.own { background: var(--accent); color: var(--accent-ink); }

/* Team link and the admin tally */
.linkbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 13px/1.4 var(--font-body, inherit); word-break: break-all; color: var(--ink); margin-bottom: 10px; user-select: all; }
.tally .tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ttile { background: var(--surface-2); border-radius: 10px; padding: 10px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.ttile b { font: 600 24px/1.1 var(--font-display); color: var(--ink); }
.ttile span { font-size: 12.5px; color: var(--ink-2); }
.ttile em { font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
@media (max-width: 360px) { .tally .tgrid { grid-template-columns: repeat(2, 1fr); } }

.feedrow { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.feedrow:first-of-type { border-top: 0; }
.feedrow .small { font-size: 14px; line-height: 1.35; }
.feedrow .tiny { font-size: 12px; line-height: 1.35; color: var(--ink-3); margin-top: 2px !important; }
.feedrow .tag { flex: none; }

/* Tint & PPF */
.three > *, .filmrow > *, .filmrow .row > * { min-width: 0; }
.filmrow .xbtn { flex: none; width: 44px; padding: 0; }
.filmrow { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.filmline { display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; }
.line.small span { font-size: 13.5px; }

/* Vehicle types and ID numbers */
.vtypes .chip { display: inline-flex; align-items: center; gap: 6px; }
.vtypes .chip svg { width: 18px; height: 18px; flex: none; }
.idnum { letter-spacing: .05em; user-select: all; -webkit-user-select: all; }
#bv-vin, #bv-tag { text-transform: uppercase; letter-spacing: .04em; }

/* One box for the service on a ticket: type + service, then film + inches */
.svcbox { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); }
.inchrow { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: end; }
.inchrow > * { min-width: 0; }
.filmsum { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; padding-bottom: 4px; }
.kindh { margin: 14px 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* Computer side menu: keep icons and labels lined up on the left (the phone tab rules above would push them right) */
@media (min-width: 1000px) {
  nav.tabs button { justify-content: flex-start; }
  nav.tabs button span { font-size: 12px; }
}

/* Quote & invoice links: tracking row on a job */
.linkstat { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14px/1.35 var(--font-body); margin-bottom: 10px; }
.linkstat .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.linkstat .ic svg { width: 20px; height: 20px; }
.linkstat b { display: block; font-weight: 600; }
.linkstat .small { color: var(--ink-2); }
.linkstat.hot { border-color: #cdb68a66; }
.linkstat.hot .ic { color: var(--accent); background: #cdb68a1f; }
.linkstat .go { color: var(--ink-3); font-size: 12px; }
.offers { display: grid; gap: 2px; margin-top: 10px; }

/* Vehicle photo & damage notes */
.carcard .ci.pic { overflow: hidden; background: var(--surface-2); }
.carcard .ci.pic img { width: 100%; height: 100%; object-fit: cover; }
.dmgtag { color: var(--warn); display: flex !important; align-items: center; gap: 5px; }
.dmgtag svg, .dmgwarn b svg { width: 15px; height: 15px; flex: none; }
.carpic { margin: 12px 0 4px; }
.carpic .img { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.carpic .img img { width: 100%; height: 100%; object-fit: cover; }
.carpic .row { align-items: center; }
.carpic.empty { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: transparent; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14px/1.35 var(--font-body); }
.carpic.empty svg { width: 28px; height: 28px; color: var(--accent); }
.carpic.empty b { font-weight: 600; }
.carpic.empty span { color: var(--ink-2); font-size: 13px; }
.dmgwarn { border: 1px solid #e3ad6c55; background: #e3ad6c14; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.dmgwarn > b { display: flex; align-items: center; gap: 6px; color: var(--warn); font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.dmgline { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 0; min-height: 0; padding: 6px 0; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14px/1.4 var(--font-body); }
.dmgline + .dmgline { border-top: 1px solid #e3ad6c26; }
.dmgline small { display: block; color: var(--ink-2); font-size: 12px; }
.dmgwarn .dmpics { margin-top: 6px; }
.carrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.carrow + .carrow { border-top: 1px solid var(--line); }
.carrow .thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; padding: 0; flex: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--accent); display: grid; place-items: center; }
.carrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.carrow .thumb.add { border-style: dashed; }
.carrow .thumb svg { width: 22px; height: 22px; }
.dmgnote { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.dmgnote .dmh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13px; }
.dmgnote p { margin: 4px 0 0; font-size: 14.5px; }
.dmgnote .linkbtn { margin-top: 6px; }
.dmpics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dmpic { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; padding: 0; border: 1px solid var(--line); background: var(--surface-2); flex: none; }
.dmpic img { width: 100%; height: 100%; object-fit: cover; }
.dmpics.big { margin: 8px 0 14px; }
.dmpics.big .dmpic, .dmadd { width: 84px; height: 84px; }
.dmpic .x { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #000b; color: #fff; font-size: 17px; line-height: 26px; }
.dmadd { display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed var(--line); border-radius: 10px; background: transparent; color: var(--accent); padding: 0; text-transform: none; letter-spacing: 0; font: 500 12px/1 var(--font-body); }
.dmadd svg { width: 24px; height: 24px; }
.picview { position: fixed; inset: 0; z-index: 200; background: #000e; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.picview img { max-width: 100%; max-height: 78vh; border-radius: 10px; object-fit: contain; }

/* Perks: vendor discounts for members */
@media (max-width: 999px) { nav.tabs .in[data-n="7"] button { font-size: 8.5px; letter-spacing: .03em; padding-inline: 0; } }
.pk-grid { display: grid; gap: 16px; }
.pk-foot { text-align: center; margin: 0; }
@media (min-width: 1000px) { .pk-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: start; } .pk-foot { text-align: left; } }
.perk { display: grid; gap: 12px; }
.pk-top { display: flex; gap: 14px; align-items: center; }
.pk-logo { width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); font: 700 18px/1 var(--font-display); font-stretch: 112%; letter-spacing: .04em; }
.pk-logo.img { background: #fff; border-color: var(--line); overflow: hidden; padding: 6px; }
.pk-logo.img img { width: 100%; height: 100%; object-fit: contain; }
.pk-name { display: block; font: 600 18px/1.2 var(--font-display); font-stretch: 110%; }
.pk-sells { display: block; color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.pk-deal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk-amt { font: 700 30px/1 var(--font-display); font-stretch: 115%; color: var(--accent); letter-spacing: .01em; }
.pk-code { display: flex; align-items: center; gap: 10px; border: 1px dashed #cdb68a66; border-radius: 12px; padding: 8px 8px 8px 14px; }
.pk-code b { flex: 1; font: 600 16px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.pk-note { font-size: 12.5px; color: var(--ink-3); margin: -4px 0 0; }
.perk a.btn svg { width: 15px; height: 15px; }
.pk-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.pk-row + .pk-row { border-top: 1px solid var(--line); }
.pk-row .pk-logo { width: 42px; height: 42px; border-radius: 11px; font-size: 14px; }
.bsheet .pk-logo { width: 44px; height: 44px; border-radius: 11px; font-size: 15px; }
.pk-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.pk-sw { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid transparent; }
.pk-sw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.pk-more { display: flex; gap: 16px; align-items: flex-start; border: 1px dashed #cdb68a55; background: #cdb68a0d; border-radius: 18px; padding: 18px; }
.pk-more b { display: block; font: 600 17px/1.25 var(--font-display); font-stretch: 110%; margin-bottom: 6px; }
.pk-more p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.pk-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #cdb68a1a; display: grid; place-items: center; }
.pk-mark svg { width: 26px; height: 22px; }
@media (min-width: 1000px) { .pk-more { max-width: 760px; } }

/* A new business with no services yet */
.startcard { border-color: #cdb68a66; background: #cdb68a0f; display: grid; gap: 8px; }
.startcard .st-h { font-size: 17px; letter-spacing: .04em; }
.starter { display: grid; gap: 10px; }
.st-item { border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.st-item.on { border-color: #cdb68a88; background: #cdb68a0d; }
.st-item .three { padding: 4px 10px 10px; }
.st-pick { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 10px; color: var(--ink); text-transform: none; letter-spacing: 0; font: 400 14px/1.35 var(--font-body); }
.st-pick b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.st-pick .small { display: block; }
.st-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.st-item.on .st-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.st-box svg { width: 14px; height: 14px; }

/* ================= Polish pass: calmer type, one button style, brighter text, fewer boxes ================= */
:root {
  --ink-2: #b6b9bb;
  --ink-3: #868a8d;
  --line: #24282c;
  --surface-3: #262a2e;
}
body { font-size: 15.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headings: normal capitals, tighter, no wide letter spacing */
h1 { font-size: 30px; font-weight: 700; font-stretch: 100%; text-transform: none; letter-spacing: -.015em; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 600; font-stretch: 100%; text-transform: none; letter-spacing: -.005em; line-height: 1.3; color: var(--ink); }
.bsheet h1 { font-size: 24px; }
.label { font-family: var(--font-body); font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }

/* Header: the business name, plainly */
header.top .ttl b { font-family: var(--font-display); font-stretch: 100%; font-weight: 700; font-size: 16px; letter-spacing: -.005em; text-transform: none; }
header.top .ttl span { font-size: 12px; }
header.top { border-bottom-color: #1b1e21; }

/* Buttons: one gold main button, quiet filled secondary, normal capitals */
button, .btn { font: 600 15px/1.1 var(--font-body); letter-spacing: 0; text-transform: none; border-radius: 12px; min-height: 48px; padding: 13px 18px; }
button.sm, .btn.sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 11px; }
button.primary, .btn.primary, button.gold, a.btn.gold { background: var(--accent); color: var(--accent-ink); }
button.ghost, .btn.ghost { background: var(--surface-2); border: 0; color: var(--ink); }
.card button.ghost, .card .btn.ghost { background: var(--surface-3); }
button.danger { background: transparent; border: 0; color: var(--warn); }
button.quiet { background: transparent; color: var(--accent); min-height: 40px; padding: 8px 2px; justify-content: flex-start; font-size: 14.5px; }
button.iconbtn { background: transparent; color: var(--ink-2); min-height: 40px; width: 40px; padding: 0; border-radius: 50%; }
button.iconbtn svg { width: 20px; height: 20px; }
button.iconbtn:active { background: var(--surface-2); }
.btns { gap: 10px; }

/* Cards: softer edges, a touch more room */
.card { border-color: #1e2225; border-radius: 16px; }
.wrap { gap: 24px; }
.sec { gap: 12px; }

/* Text boxes */
input[type=text], input[type=search], input[type=time], input[type=tel], input[type=email], input[type=password], input[type=date], textarea, select { background: var(--surface); border-color: var(--line); border-radius: 12px; min-height: 48px; font-size: 16px; }
label.f { font-size: 13.5px; color: var(--ink-2); gap: 7px; }
label.f .opt { color: var(--ink-3); font-weight: 400; margin-left: 4px; }

/* View switchers: the picked one is lifted, not a bright white blob */
.seg { background: var(--surface); border: 1px solid #1e2225; border-radius: 12px; padding: 3px; }
.seg button { font-size: 14px; color: var(--ink-2); min-height: 38px; letter-spacing: 0; border-radius: 9px; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); box-shadow: 0 1px 2px #0006; }
.chip { font-size: 14px; }

/* Bottom tabs: readable labels */
nav.tabs { border-top-color: #1b1e21; }
nav.tabs button, nav.tabs .in[data-n] button { font: 500 10.5px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); gap: 5px; padding-inline: 0; }
nav.tabs button span:not(.badge) { font-size: 10.5px; }
nav.tabs button[aria-current="page"] { color: var(--ink); }
nav.tabs button[aria-current="page"] svg { color: var(--accent); }
nav.tabs button[aria-current="page"]::before { display: none; }
nav.tabs .new svg { border-radius: 12px; }
nav.tabs .new[aria-current="page"] svg { color: var(--accent-ink); }
@media (min-width: 1000px) {
  nav.tabs button, nav.tabs .in[data-n] button { font-size: 14px; gap: 14px; padding: 10px 14px; }
  nav.tabs button span:not(.badge) { font-size: 14px; }
  h1 { font-size: 34px; }
}

/* ---------- Jobs ---------- */
.weeknav { gap: 4px; }
.weeknav .wk { display: grid; text-align: center; gap: 1px; }
.weeknav .wk b { font-size: 16px; font-weight: 600; }
.week { gap: 4px; }
.day { background: transparent; border: 0; border-radius: 14px; padding: 9px 0 7px; gap: 4px; }
.day .dn { font: 500 11.5px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.day .dd { font: 600 19px/1 var(--font-display); font-stretch: 100%; }
.day.now .dd { color: var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); }
.day[aria-pressed="true"] .dd { color: var(--accent-ink); }
.jobbox { background: var(--surface); border: 1px solid #1e2225; border-radius: 16px; overflow: hidden; }
.jobbox .jobcard { border: 0; border-radius: 0; background: transparent; }
.jobcard { grid-template-columns: 58px 1fr; gap: 12px; padding: 14px; font-size: 14.5px; border-color: #1e2225; border-radius: 16px; min-height: 0; }
.jobcard .jt b { font: 600 16px/1.1 var(--font-display); font-stretch: 100%; }
.jobcard .jt span { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.jobcard .jn { font-size: 16px; font-weight: 600; }
.jobcard .jb { gap: 4px; }
.jobcard .jb .muted.small { font-size: 13.5px; }
.jaddr { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid #1e2225; color: var(--ink-2); font-size: 14px; line-height: 1.35; text-decoration: none; }
.jaddr svg { width: 17px; height: 17px; flex: none; }
.jaddr svg:first-child { color: var(--ink-3); }
.jaddr svg:last-child { color: var(--accent); width: 19px; height: 19px; }
.jaddr:active { background: var(--surface-2); }
.tag { font: 600 11.5px/1 var(--font-body); padding: 5px 9px; }

/* ---------- Book a job ---------- */
.bookform { display: grid; gap: 26px; }
.fgroup { display: grid; gap: 12px; }
.fgroup + .fgroup { border-top: 1px solid #1b1e21; padding-top: 22px; }
.lineed { background: var(--surface); border-color: #1e2225; border-radius: 16px; padding: 14px; gap: 10px; }
.lineed input[type=text], .lineed select { background: var(--bg); }
.lineed .sznote { margin-top: -4px; }
.svcbox { border: 0; padding: 0; background: transparent; }
.bslot { background: var(--surface); border-color: var(--line); min-height: 44px; padding: 10px 14px; font-size: 15px; border-radius: 12px; }
.totrow { align-items: center; border-top: 1px solid #1b1e21; padding-top: 18px; }
.totrow span { font-size: 15px; color: var(--ink-2); }
.totrow b { font: 700 30px/1 var(--font-display); font-stretch: 100%; }
.menu { background: var(--surface); border: 1px solid #1e2225; border-radius: 16px; overflow: hidden; }
.menu button { width: 100%; justify-content: space-between; background: transparent; border-radius: 0; min-height: 52px; padding: 14px 16px; font-weight: 500; color: var(--ink); }
.menu button + button { border-top: 1px solid #1e2225; }
.menu button svg { color: var(--ink-3); width: 18px; height: 18px; }
.menu button:active { background: var(--surface-2); }

/* ---------- Money ---------- */
.mtabs { gap: 22px; border-bottom: 1px solid #1e2225; padding-bottom: 0; }
.mtabs button, .mtabs button[aria-pressed] { background: transparent; border: 0; border-radius: 0; color: var(--ink-3); font-size: 15px; font-weight: 600; padding: 10px 0 12px; min-height: 0; position: relative; }
.mtabs button[aria-pressed="true"] { color: var(--ink); background: transparent; }
.mtabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.r-money { gap: 18px; }
.profit { gap: 6px; padding: 18px; }
.profit .pl { font-size: 14px; color: var(--ink-2); }
.bignum { font: 700 42px/1.05 var(--font-display); font-stretch: 100%; letter-spacing: -.02em; }
.profit .inout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid #1e2225; }
.profit .inout span, .tiles span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 3px; }
.profit .inout b { font-size: 18px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles > div { background: var(--surface); border: 1px solid #1e2225; border-radius: 14px; padding: 12px; min-width: 0; }
.tiles b { font: 600 19px/1.1 var(--font-display); font-stretch: 100%; white-space: nowrap; }
.bar { grid-template-columns: minmax(0, 132px) 1fr 70px; font-size: 14px; }
.bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .tr { height: 6px; }
.legend { font-size: 13px; }
.lrow { font-size: 15px; padding: 12px 0; }
.lrow .m { font-size: 13px; }
.ledger .linkbtn { color: var(--ink-3); text-decoration: none; margin-left: 4px; }
.ledger a.linkbtn { color: var(--ink-2); }

label.f .optl { color: var(--ink-3); font-weight: 400; }
.seg button { padding-inline: 4px; white-space: nowrap; }
.sec > .row .ghost.sm { flex: none; }

/* ================= Vehicles: pick a saved one, or add a new one with its type and ID numbers ================= */
.vhead { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: -4px; }
.vhead .iconbtn { min-height: 32px; width: 32px; margin: -6px -6px -6px 0; }
.vhead .iconbtn svg { width: 18px; height: 18px; }
.vlab { font-size: 13.5px; color: var(--ink-2); }
.vbox { display: grid; gap: 10px; }
.vpick { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 10px; min-height: 66px; text-align: left; color: var(--ink); font-weight: 400; justify-content: flex-start; }
.vpick:active { border-color: var(--accent); }
.vci { width: 46px; height: 46px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--ink-2); }
.vci img { width: 100%; height: 100%; object-fit: cover; }
.vci svg { width: 26px; height: 26px; }
.vci.add { background: #cdb68a1f; color: var(--accent); }
.vpick .grow, .vrow .grow { min-width: 0; }
.vpick b, .vrow b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.vpick .grow > span, .vrow .grow > span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.3; }
.vrow .grow > span.last { color: var(--accent); }
.vpick > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.vlist { display: grid; gap: 8px; }
.vrow { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid #1e2225; border-radius: 14px; padding: 10px 12px 10px 10px; text-align: left; color: var(--ink); min-height: 0; font-weight: 400; justify-content: flex-start; }
.vrow:active { background: var(--surface-2); }
.vrow.on { border-color: var(--accent); background: #cdb68a10; }
.vrow.add b { color: var(--accent); }
.vchk { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.vchk svg { width: 14px; height: 14px; }
.vtiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.vtiles button { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 10px 0 9px; min-height: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font: 500 11px/1 var(--font-body); letter-spacing: -.01em; color: var(--ink-2); }
.vtiles svg { width: 24px; height: 24px; }
.vtiles button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: #cdb68a14; }
.vtiles button[aria-pressed="true"] svg { color: var(--accent); }
.bsheet .vtiles button { background: var(--surface-2); }
.bsheet .vtiles button[aria-pressed="true"] { background: #cdb68a14; }
.vids { display: grid; gap: 12px; }
.vids .f { min-width: 0; }
.vidlink { justify-self: start; }
@media (min-width: 1000px) { .vtiles button { font-size: 12.5px; padding: 12px 0 11px; } }
.vids input { text-transform: uppercase; }
.vids input::placeholder { text-transform: none; }

/* ================= Quote · Work order · Invoice switch on a job, and the check before moving it ================= */
.stswlab { font-size: 13px; color: var(--ink-3); margin-bottom: -4px; }
.stsw { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.stsw button { min-height: 46px; border-radius: 10px; background: transparent; color: var(--ink-2); font: 600 14.5px/1 var(--font-body); display: flex; gap: 7px; align-items: center; justify-content: center; padding: 0 4px; }
.stsw button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.stsw svg { width: 17px; height: 17px; flex: none; }
.cfm { display: grid; gap: 4px; background: var(--bg); border: 1px solid #1e2225; border-radius: 14px; padding: 6px 14px; }
.cfm > div { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.cfm > div + div { border-top: 1px solid #1e2225; }
.cfm svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.cfm b { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 360px) { .stsw button { font-size: 13px; gap: 5px; } .stsw svg { width: 15px; height: 15px; } }
.vidline { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.vidline .linkbtn { font-size: 13px; }
.vidline .nw { white-space: nowrap; }

/* ================= Back: a bigger handle to pull panels down, and the iPhone edge-swipe arrow ================= */
.grab { width: 46px; height: 5px; background: #41464b; margin: -8px auto 2px; }
.sheet { overscroll-behavior: contain; }
.edgecue { position: fixed; left: -34px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); display: grid; place-items: center; z-index: 300; pointer-events: none; box-shadow: 0 6px 20px #000a; }
.edgecue.ready { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.edgecue svg { width: 20px; height: 20px; }

/* Free trial sign-ups (admin screen) */
.trow { padding: 12px 0; border-top: 1px solid var(--line); }
.trow:first-of-type { border-top: 0; }
.trow a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; word-break: break-all; }
.tdone { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.tdone summary { cursor: pointer; padding: 6px 0; }
.trow .tiny { font-size: 12px; line-height: 1.35; color: var(--ink-3); }

/* ™ after the Nexcoat wordmark */
.tm { font-size: .45em; font-style: normal; font-weight: 600; letter-spacing: 0; margin-left: .1em; vertical-align: super; line-height: 0; opacity: .75; color: inherit; }
.loginbox h1.nxword .tm { font-size: .36em; }

/* Extras */
.xback { margin-bottom: -10px; color: var(--ink-2); text-decoration: none; }
.xhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xtag { font: 600 9.5px/1 var(--font-display); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid #cdb68a66; border-radius: 99px; padding: 5px 8px; flex: none; }
.xlist { gap: 0; padding-block: 4px; }
.xlist .switch { padding-block: 11px; border-bottom: 1px solid var(--line); }
.xlist .switch:last-child { border-bottom: 0; }
/* Damage sign-off (an extra) */
.xso { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin: 10px 0; }
.xso.go { border-color: #cdb68a66; color: var(--ink); min-height: 56px; }
.xso.done { border-color: #8cc4a455; flex-wrap: wrap; }
.xso-t { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.xso-t b { font-size: 14.5px; font-weight: 600; }
.xso.done .xso-t b { color: var(--good); }
.xso-t span { font-size: 13px; color: var(--ink-3); }
.xso-arrow { font-size: 20px; color: var(--accent); }
.xso-b { display: flex; gap: 8px; }
.xso-tip { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); }
.xso-card { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.xso-card > b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.xso-card > b.warn { color: var(--warn); }
.xso-card > b.ok { color: var(--good); }
.xso-card p { margin: 0; }
.xso-note { padding: 8px 0; border-top: 1px solid var(--line); }
.xso-note:first-of-type { border-top: 0; }
.xsig-wrap { display: flex; align-items: center; justify-content: space-between; margin-bottom: -6px; }
.xsig { position: relative; border: 1px dashed #3a3f44; border-radius: 14px; background: #0e1011; aspect-ratio: 3 / 1; min-height: 120px; }
.xsig canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: none; color: var(--ink); cursor: crosshair; border-radius: 14px; }
.xsig i { position: absolute; left: 16px; right: 16px; bottom: 22%; height: 1px; background: #2e3236; pointer-events: none; }
.xsig-show { background: #f4f1ea; color: #121416; border-radius: 14px; padding: 8px 12px; }
.xsig-show svg { display: block; width: 100%; height: auto; }
/* True profit (an extra) */
.xpf { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 4px 14px; }
.xpf .r { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.xpf .r > span:first-child { color: var(--ink-2); min-width: 0; }
.xpf .r small { font-size: 12.5px; }
.xpf .r.tot { border-bottom: 0; align-items: baseline; padding-top: 12px; }
.xpf .r.tot > span:first-child { color: var(--ink); font-weight: 600; }
.xpf .r.tot b { font: 700 24px/1 var(--font-display); color: var(--good); margin-left: 10px; }
.xpf .pct { font-size: 13px; color: var(--ink-3); }
.xpf-notes { border: 1px solid #e3ad6c55; background: #e3ad6c14; border-radius: 12px; padding: 8px 12px; }
.xpf-notes p { margin: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.xcosts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.xcost { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.xcost:last-child { border-bottom: 0; }
.xcost > span:first-child { min-width: 0; }
.xmoney { position: relative; flex: none; width: 110px; }
.xmoney i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); }
.xmoney input[type=text] { padding-left: 24px; text-align: right; }
.xpaycard .xhead h2 { margin: 0; }
.xpay { display: grid; gap: 12px; margin: 4px 0 8px; }
.xpay-r .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.xpay-r .top span:last-child { color: var(--ink-2); white-space: nowrap; }
.xpay-r .track, .xsu .bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.xpay-r .track i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
/* Supplies (an extra) */
.xsu-card { margin-top: 0; }
.xsu-list { padding-block: 4px; gap: 0; }
.xsu { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--ink); min-height: 0; border-radius: 0; }
.xsu:last-child { border-bottom: 0; }
.xsu .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 8px; }
.xsu .top span:last-child { color: var(--ink-2); white-space: nowrap; }
.xsu .top .lowc { color: var(--warn); font-weight: 600; }
.xsu .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.xsu .bar i.low { background: var(--warn); }
.xsu-re { border-color: #cdb68a55; }
.xsu-re > b { font-size: 15px; }
.xsu-sug, .xsu-svcs { display: flex; flex-wrap: wrap; gap: 8px; }
/* Rain check (an extra) */
.xrain { border-color: #9db7d655; background: linear-gradient(180deg, #9db7d612, transparent 70%), var(--surface); }
.xrain-h { display: flex; align-items: flex-start; gap: 12px; }
.xrain-h b { display: block; font-size: 15.5px; font-weight: 600; }
.xrain-h span { display: block; font-size: 13.5px; color: var(--ink-2); }
.xrain-h .xtag { align-self: flex-start; }
.xrain-i { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #9db7d61f; color: #9db7d6; display: grid; place-items: center; }
.xrain-i svg { width: 20px; height: 20px; }
.xrd { display: block; font-size: 10.5px; font-weight: 600; color: #9db7d6; line-height: 1; margin-top: 2px; }
.xrtag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #9db7d6; background: #9db7d61a; border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.xrtag svg { width: 13px; height: 13px; }
.xrain-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #9db7d655; background: #9db7d60f; margin: 10px 0; flex-wrap: wrap; }
.xrain-row .grow { display: flex; flex-direction: column; min-width: 140px; }
.xrain-row b { font-size: 14.5px; font-weight: 600; color: #b9cde6; }
.xrain-row .grow span { font-size: 13px; color: var(--ink-2); }
.xrain-list { display: grid; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.xrain-job { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xrain-job:last-child { border-bottom: 0; }
.xrain-job .grow { display: flex; flex-direction: column; min-width: 0; }
.xrain-job .grow span { font-size: 13px; color: var(--ink-2); }
.day[aria-pressed="true"] .xrd { color: #1f3a5c; }
/* Maintenance plans (an extra) */
.xplan-top { gap: 4px; }
.xbig { font: 700 34px/1.1 var(--font-display); color: var(--ink); }
.xplans { padding-block: 4px; gap: 0; }
.xplan { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; color: var(--ink); min-height: 0; }
.xplan:last-child { border-bottom: 0; }
.xplan .l, .xplan .r { display: flex; flex-direction: column; min-width: 0; }
.xplan .r { align-items: flex-end; flex: none; }
.xplan b { font-size: 15px; font-weight: 600; }
.xplan span span { font-size: 13px; color: var(--ink-3); }
.xplan-next { padding-block: 4px; gap: 0; }
.xpn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; color: var(--ink); min-height: 0; }
.xpn:last-child { border-bottom: 0; }
.xpn .dt { flex: none; width: 44px; height: 48px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.xpn .dt small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.xpn .dt b { font-size: 17px; }
.xpn .grow { display: flex; flex-direction: column; min-width: 0; }
.xpn .grow span { font-size: 13px; color: var(--ink-3); }
.xplan-ms { display: grid; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; margin-bottom: 10px; }
.xpm { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xpm:last-child { border-bottom: 0; }
.xpm .grow { display: flex; flex-direction: column; min-width: 0; }
.xpm .grow span { font-size: 13px; color: var(--ink-3); }
/* Fleet accounts (an extra) */
.xstat { gap: 2px; padding: 12px 14px; }
.xstat span { font-size: 12.5px; color: var(--ink-3); }
.xstat b { font: 600 22px/1.2 var(--font-display); }
.xfl-st .row { align-items: center; }
.xfl-st .row > .grow { display: flex; flex-direction: column; min-width: 0; }
.xvr { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; color: var(--ink); min-height: 0; }
.xvr:last-child { border-bottom: 0; }
.xvr .grow { display: flex; flex-direction: column; min-width: 0; }
.xvr .grow span { font-size: 13px; color: var(--ink-3); }
/* Referral rewards (an extra) */
.xref-list { padding-block: 4px; gap: 0; }
.xref { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0; color: var(--ink); min-height: 0; }
.xref:last-child { border-bottom: 0; }
.xref .av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font: 600 13px/1 var(--font-display); color: var(--ink-2); }
.xref .grow { display: flex; flex-direction: column; min-width: 0; }
.xref .grow span { font-size: 13px; color: var(--ink-3); }
/* Talk to book (an extra) */
.xvo-card { margin: 0 0 4px; }
.xvo-mic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #cdb68a1f; color: var(--accent); display: grid; place-items: center; }
.xvo-mic svg { width: 19px; height: 19px; }
.xvo-top { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 2px; }
.xvo-big { width: 84px; height: 84px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: var(--accent); color: #0a0b0c; display: grid; place-items: center; box-shadow: 0 0 0 10px #cdb68a1f, 0 0 0 22px #cdb68a0d; }
.xvo-big svg { width: 32px; height: 32px; }
.xvo-big[disabled] { opacity: .4; }
.xvo-big.on { animation: xvo-pulse 1.4s ease-in-out infinite; }
@keyframes xvo-pulse { 50% { box-shadow: 0 0 0 14px #cdb68a33, 0 0 0 30px #cdb68a12; } }
@media (prefers-reduced-motion: reduce) { .xvo-big.on { animation: none; } }
.xvo-said { align-self: flex-end; margin-left: auto; max-width: 92%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; padding: 12px 14px; font-size: 15px; }
.xvo-card2 { border: 1px solid #cdb68a55; border-radius: 14px; background: var(--bg); padding: 4px 14px; display: grid; }
.xvo-r { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.xvo-r:last-child { border-bottom: 0; }
.xvo-r > span:first-child { color: var(--ink-3); }
.xvo-r select, .xvo-r input { min-height: 42px; }
.xvo-when { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6px; }
.xvo-r .xmoney { width: 100%; }
.xvo-r { grid-template-columns: 62px minmax(0, 1fr); }
.xvo-when { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr); }
.xvo-r input[type=date], .xvo-r input[type=time] { padding: 8px 6px; font-size: 15px; }
/* Nexcoat Network (an extra) */
.xnet { border-color: #cdb68a55; gap: 10px; }
.xnet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.xnet-t { font: 600 19px/1.25 var(--font-display); }
.xnet-r { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.xnet-r svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.xnet-pay { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); }
.xnet-pay span { color: var(--ink-2); font-size: 14px; }
.xnet-pay b { font: 700 26px/1 var(--font-display); color: var(--good); }
.xnl { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; color: var(--ink); min-height: 0; }
.xnl:last-child { border-bottom: 0; }
.xnl .grow { display: flex; flex-direction: column; min-width: 0; }
.xnl .grow span { font-size: 13px; color: var(--ink-3); }
.xnet-set { display: grid; gap: 10px; padding: 4px 2px; }
.xrules { display: grid; gap: 10px; }
.xrules p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.xrules b { color: var(--ink); }
/* Card payments (an extra) */
.xpay-big { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-size: 16px; }
.xpay-big svg { width: 22px; height: 22px; }
.xpay-row .xvo-mic { background: #8cc4a41f; color: var(--good); }
.xqr { background: #fff; border-radius: 16px; padding: 10px; width: min(280px, 100%); margin: 0 auto; }
.xqr svg { display: block; width: 100%; height: auto; }
.xpay-wait { text-align: center; color: var(--accent); margin: 0; }
.xsq { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #8cc4a414; border: 1px solid #8cc4a455; }
.xsq .grow { display: flex; flex-direction: column; min-width: 0; }
.xsq b { color: var(--good); }

/* Your data: download progress, uploads list, admin file rows, closed account */
.dxbar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dxbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.dxprog { display: grid; gap: 8px; padding: 4px 0; }
.line.dxup { align-items: flex-start; }
.dxup .dxname { display: block; overflow-wrap: anywhere; }
.dxside { display: grid; justify-items: end; gap: 6px; flex: none; }
.dxside button.sm { min-height: 32px; padding: 6px 10px; }
.dxrow { display: flex; align-items: center; gap: 10px; text-align: left; }
.closedacct .tabs { display: none; }
