:root {
  --bg: #0f1216; --panel: #171b21; --panel2: #13171c; --line: #262c35; --line2: #222831;
  --text: #e8ebef; --muted: #9aa3ae; --dim: #8b95a1; --soft: #b4bcc6;
  --ref: #4f9dff; --cmp: #f08a24; --cmp-l: #f5a65a; --purple: #c58cff;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --head: 'Space Grotesk', Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 Inter, system-ui, sans-serif; }
a { color: var(--muted); } a:hover { color: var(--text); }
button { font: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 14px 28px; border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 700; font-size: 18px; }
.mainnav { display: flex; gap: 18px; }
.mainnav a { text-decoration: none; }
.mainnav a.on { color: var(--text); }
.mainnav a[aria-disabled="true"] { pointer-events: none; opacity: .5; }
.top-right { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; border: 1px solid #2f3641; border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--line); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 16px; border: 1px solid #2f3641; background: transparent; color: var(--text); cursor: pointer; font-weight: 500; text-decoration: none; }
.btn.primary { background: var(--ref); color: #0b1220; border-color: var(--ref); font-weight: 600; }
.btn.ghost { color: var(--muted); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.active { border-color: var(--cmp); color: var(--cmp-l); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ref); outline-offset: 2px; }

main { max-width: 1440px; margin: 0 auto; padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* analysis */
.titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.titlebar h1 { font-size: 30px; }
.tabs { display: flex; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; font-weight: 500; }
.tabs button.on { color: var(--text); border-bottom-color: var(--ref); font-weight: 600; }
.tabs button:disabled { opacity: .45; cursor: default; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.laplist { flex: 1 1 270px; max-width: 320px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.laplist .head { display: flex; justify-content: space-between; padding: 4px 12px 10px; }
.lap { display: grid; grid-template-columns: 22px 34px 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.lap input { position: absolute; opacity: 0; pointer-events: none; }
.lap .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #4a5361; display: inline-flex; align-items: center; justify-content: center; }
.lap.sel .box { border: 0; }
.lap:hover { background: #1d222a; }
.lap:has(input:focus-visible) { outline: 2px solid var(--ref); }
.lap .n { color: var(--muted); }
.lap .tm { font-family: var(--mono); font-size: 15px; }
.lap .gap { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.lap.off { cursor: default; color: var(--dim); }
.lap.off .tm { color: var(--dim); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.center { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-family: var(--mono); font-size: 24px; }
.stat .s { font-size: 12px; color: var(--dim); }
.mapbox { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--soft); align-items: center; }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.map { width: 100%; height: auto; max-height: 480px; touch-action: none; }
.map.picking { cursor: crosshair; }
.side { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.side .panel { display: flex; flex-direction: column; gap: 12px; }
.loss { padding: 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.loss:hover { border-color: #3a424e; }
.loss .t { display: flex; justify-content: space-between; align-items: baseline; }
.loss .t b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.loss .t span { font-family: var(--mono); color: var(--cmp-l); font-size: 15px; }
.loss p { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.5; }
.sectab { display: grid; gap: 8px 12px; font-family: var(--mono); font-size: 13px; }
.purple { color: var(--purple); }
.traces { display: flex; flex-direction: column; gap: 14px; }
.traces .bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.trace { display: flex; flex-direction: column; gap: 6px; }
.trace .lbl { display: flex; justify-content: space-between; }
.plot { position: relative; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; cursor: crosshair; user-select: none; touch-action: pan-y; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.readout { position: absolute; top: 4px; right: 8px; font-family: var(--mono); font-size: 12px; display: flex; gap: 10px; pointer-events: none; background: rgba(19,23,28,.85); padding: 2px 6px; border-radius: 4px; }
.cmark { position: absolute; top: 4px; font-size: 11px; color: var(--dim); pointer-events: none; transform: translateX(4px); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.grid td { font-family: var(--mono); }
.scroll-x { overflow-x: auto; }
textarea.notes { width: 100%; min-height: 260px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; resize: vertical; }

/* sessions */
.sessions-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sessions-head h1 { font-size: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.card:hover { border-color: #3a424e; color: var(--text); }
.card svg { width: 100%; height: 140px; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .nums { display: flex; gap: 18px; font-family: var(--mono); font-size: 14px; }
.card h3 { font-size: 18px; }
.drop { border: 1.5px dashed #3a424e; border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.drop.over { border-color: var(--ref); background: #121b27; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* forms + dialogs */
.dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: min(480px, 94vw); }
.dialog::backdrop { background: rgba(5,7,10,.7); }
.dialog form { display: flex; flex-direction: column; gap: 14px; }
.dialog p { margin: 0; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.field input { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.error { color: #ff8f7a; min-height: 1em; }
.login { max-width: 380px; margin: 10vh auto; }
.login form { display: flex; flex-direction: column; gap: 14px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #262c35; color: var(--text); padding: 10px 16px; border-radius: 8px; z-index: 10; }

@media (max-width: 700px) {
  .top { padding: 12px 16px; gap: 12px; }
  main { padding: 16px; }
  .laplist, .side { max-width: none; }
  .titlebar h1, .sessions-head h1 { font-size: 24px; }
}

/* header driver switcher */
.menu-wrap { position: relative; }
.driver-btn { display: flex; align-items: center; gap: 10px; background: transparent; color: var(--text); border: 1px solid #2f3641; border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 13px; cursor: pointer; }
.avatar { border-radius: 50%; background: #23324a; color: #9cc6ff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--head); flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 220px; z-index: 5; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.menu button { background: none; border: 0; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 6px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.menu button:hover, .menu button.on { background: #1d222a; }
.menu hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 0; width: 100%; }

/* garage */
.profile { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.profile h1 { font-size: 30px; }
.kpis { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-family: var(--mono); font-size: 22px; font-weight: 400; }
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.car { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; color: var(--text); cursor: pointer; font: inherit; position: relative; }
.car.on { background: #16263b; border: 1.5px solid var(--ref); }
.car .photo { height: 120px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 12px; gap: 8px; overflow: hidden; }
.car .photo img { width: 100%; height: 100%; object-fit: cover; }
.car .nm { font-family: var(--head); font-weight: 600; font-size: 18px; }
.car .sub { font-size: 13px; color: var(--muted); }
.car .cnt { display: flex; gap: 18px; font-size: 13px; color: var(--soft); flex-wrap: wrap; }
.car .cnt b { font-family: var(--mono); color: var(--text); font-weight: 500; }
.car .edit { position: absolute; top: 22px; right: 22px; }
.addcar { background: transparent; border: 1.5px dashed #3a424e; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font: inherit; min-height: 220px; cursor: pointer; }
.addcar:hover { border-color: var(--ref); color: var(--text); }
.trackrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px; color: var(--text); font: inherit; cursor: pointer; width: 100%; }
.trackrow:hover { background: #1d222a; }
.trackrow.on { background: #16263b; }
.trackrow svg { width: 44px; height: 36px; }
.tracklist { flex: 1 1 300px; max-width: 380px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.trackpanel { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hint { font-size: 12px; color: var(--dim); }

/* upload dialog */
.filebox { border: 1.5px dashed #3a424e; border-radius: 10px; padding: 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; position: relative; }
.filebox:focus-within { outline: 2px solid var(--ref); }
.filebox input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fb-text #fb-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-text .muted { font-size: 12px; }
.fb-change { margin-left: auto; color: var(--muted); font-size: 13px; }
.field select { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit; }
.trackfound { background: var(--panel2); border: 1px solid #2e4a6b; border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; color: var(--text); }
.lap-group { padding: 10px 12px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line2); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.lap-group button { background: none; border: 0; color: var(--ref); font: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; padding: 0; }

/* users page */
.chip { font-size: 12px; font-weight: 600; border: 1px solid; border-radius: 6px; padding: 3px 8px; font-family: Inter, sans-serif; }
table.users td { vertical-align: middle; }
table.users tr.sel { background: #122a2a; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; padding: 4px 0; }
.linkbtn:hover { color: var(--text); }
.acc-row { display: grid; grid-template-columns: 1fr 70px 80px; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line2); }
.acc-row input { width: 18px; height: 18px; accent-color: #3cc8b4; justify-self: center; }

/* video tab */
.bar-track { width: 100%; max-width: 640px; height: 8px; border-radius: 4px; background: #222831; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ref); transition: width .3s; }
.vbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; }
.vrow { display: flex; flex-wrap: wrap; gap: 16px; }
.vplayer { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.vbox { position: relative; aspect-ratio: 16/9; background: #05070a; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.vbox video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vnone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; text-align: center; padding: 20px; }
.hud { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px; align-items: flex-end; pointer-events: none; }
.hud-b { background: rgba(11,13,16,.82); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.hud-b span { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.hud-b b { font-size: 26px; font-weight: 400; }
.vctl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; }

/* debrief tab */
.dchange { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; }
.dchip { width: 44px; height: 44px; border-radius: 10px; background: #2e2112; color: var(--cmp-l); display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; }
.dtext { color: #c9d0d8; line-height: 1.6; }
.dlist { margin: 0; padding-left: 18px; color: #c9d0d8; line-height: 1.7; }
.ask { max-width: 420px; }
.askbox { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.askbox .q { align-self: flex-end; max-width: 85%; background: #16263b; border-radius: 12px 12px 4px 12px; padding: 10px 12px; line-height: 1.5; }
.askbox .a { max-width: 92%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px 12px 12px 4px; padding: 10px 12px; line-height: 1.55; color: #c9d0d8; white-space: pre-wrap; }
.pill { background: transparent; color: var(--soft); border: 1px solid #2f3641; border-radius: 999px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.pill:hover { color: var(--text); border-color: #3a424e; }
.askform { display: flex; gap: 8px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; }
.askform input { flex: 1; background: transparent; border: 0; color: var(--text); font: inherit; outline: none; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* settings */
.unit-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line2); }
/* setup sheet */
.dialog.wide { width: min(900px, 96vw); }
.setup { display: flex; flex-direction: column; gap: 18px; }
.stepper { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; white-space: nowrap; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #3a424e; font-weight: 600; }
.step.cur { color: var(--text); font-weight: 600; } .step.cur .dot { background: var(--ref); border-color: var(--ref); color: #0b1220; }
.step.done .dot { background: #3cc8b4; border-color: #3cc8b4; color: #0b1220; }
.sline { flex: 1 1 12px; min-width: 12px; height: 1px; background: #2f3641; }
.sfield { display: flex; flex-direction: column; gap: 8px; }
.sfield summary { cursor: pointer; color: var(--soft); }
.sgrid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.sgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.slabel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.sinput { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 11px; font: inherit; min-width: 0; width: 100%; box-sizing: border-box; }
.slabel .sinput { padding: 8px 6px; }
.seg.bal { flex-wrap: wrap; }
.seg.bal button { padding: 8px 10px; }
.srow { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line2); font-size: 13px; }
.carpick rect[data-pick]:hover { fill: #3a6fb5; }
/* track editor */
.te-row { display: grid; grid-template-columns: 30px 1fr 1fr; gap: 8px; align-items: center; }

/* actions, comments, public bar */
.titlebar .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pubbar { font-size: 12px; color: #3cc8b4; }
.cmt { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); }
.cmt.reply { margin-left: 34px; border-top: 0; padding-top: 0; }
.cmt.flash { background: #122a2a; border-radius: 8px; }
.cbody { color: #c9d0d8; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cpin { width: 26px; height: 26px; border-radius: 50%; background: #3cc8b4; color: #0b1220; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
/* printable report */
.report-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.report { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.rpage { width: 816px; max-width: 100%; min-height: 1056px; box-sizing: border-box; background: #fff; color: #141821; padding: 44px 48px; display: flex; flex-direction: column; gap: 16px; font-size: 12px; border-radius: 4px; }
.rpage h1 { font-size: 24px; color: #141821; margin: 2px 0; }
.rhead { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #141821; padding-bottom: 12px; gap: 16px; }
.rbrand { font-family: var(--head); font-weight: 700; font-size: 13px; color: #2f6fd6; }
.rlogo { max-width: 140px; max-height: 60px; object-fit: contain; }
.rmuted { color: #4a5361; }
.rstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rstats div { border: 1px solid #e3e6ea; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.rstats span { font-size: 9px; color: #6b7684; text-transform: uppercase; letter-spacing: .05em; }
.rstats b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.rrow { display: flex; gap: 18px; }
.rbox { flex: 1; border: 1px solid #e3e6ea; border-radius: 8px; padding: 8px; }
.rbox svg { width: 100%; height: auto; }
.rh2 { font-family: var(--head); font-size: 14px; }
.rloss { border-left: 3px solid #f08a24; padding: 3px 10px; }
.rorange { font-family: var(--mono); color: #c4610f; }
.rtable { width: 100%; border-collapse: collapse; margin-top: 6px; }
.rtable th { text-align: left; padding: 4px 6px; border-bottom: 1px solid #141821; font-size: 9px; color: #6b7684; text-transform: uppercase; }
.rtable td { padding: 4px 6px; border-bottom: 1px solid #e3e6ea; font-family: var(--mono); font-size: 10.5px; }
.rtable td.rb { color: #7a3fc4; font-weight: 600; }
.rtrace { width: 100%; border: 1px solid #e3e6ea; border-radius: 6px; }
.rfoot { margin-top: auto; display: flex; justify-content: space-between; color: #6b7684; font-size: 10px; border-top: 1px solid #e3e6ea; padding-top: 8px; }
@media print {
  @page { size: letter; margin: 0; }
  body, html { background: #fff !important; }
  .top, .noprint, .toast { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .report { gap: 0; }
  .rpage { width: 8.5in; min-height: 11in; border-radius: 0; break-after: page; padding: 0.55in 0.6in; }
  .rpage:last-child { break-after: auto; }
}

/* car page */
.carlink { font-size: 13px; color: var(--ref); text-decoration: none; }
.inlineform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inlineform .sinput { width: auto; flex: 1 1 140px; }
/* phone timer */
.timer { display: flex; justify-content: center; }
.tcard { width: min(440px, 100%); min-height: 70vh; display: flex; flex-direction: column; gap: 14px; }
.tbig { background: var(--panel2); border: 1px solid var(--line2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tgrid div { background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.tgrid b { font-size: 22px; font-weight: 400; }
.tlaps div { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 4px; border-bottom: 1px solid #1b2027; }
