/* All Tech Tuning — File Portal */
:root {
  --ink: #1E1E1E;
  --ink-2: #525252;
  --ink-3: #767676;
  --alloy: #ECECEC;
  --alloy-2: #DADADA;
  --panel: #FFFFFF;
  --rule: #CFCFCF;
  --rule-soft: #E4E4E4;
  --red: #E00000;
  --red-ink: #B00000;
  --red-wash: #FDEAEA;
  --teal: #1F7F86;
  --teal-wash: #E1F1F1;
  --amber: #C98512;
  --amber-wash: #FBF0DC;
  --green: #2E7D4F;
  --green-wash: #E2F2E8;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-panel: 6px;
  --r-ctl: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--alloy); color: var(--ink);
  font: 400 15px/1.55 var(--body); font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red-ink); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 .9em; max-width: 72ch; }
small, .muted { color: var(--ink-2); }
.tiny { font-size: 13px; color: var(--ink-3); }
:focus-visible { outline: 3px solid #2C7DA0; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 20px 0; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--body); padding: 12px 18px; min-height: 44px;
  border-radius: var(--r-ctl); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; background: var(--red); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--red-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--panel); border-color: var(--ink-3); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #2E2E2E; }
.btn.small { padding: 8px 12px; min-height: 36px; font-size: 14px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red-ink); font: inherit; text-decoration: underline; cursor: pointer; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 500; font-size: 14px; margin-bottom: 5px; }
label.field > span em { font-style: normal; color: var(--ink-3); font-weight: 400; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: 400 15px/1.4 var(--body); color: var(--ink);
  padding: 10px 12px; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #2C7DA0; outline: none; box-shadow: 0 0 0 3px rgba(44,125,160,.2); }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }

.alert { padding: 12px 14px; border-radius: var(--r-ctl); margin: 0 0 16px; border-left: 4px solid; background: var(--panel); }
.alert.err { border-color: var(--red); background: var(--red-wash); }
.alert.ok { border-color: var(--green); background: var(--green-wash); }
.alert.info { border-color: var(--teal); background: var(--teal-wash); }
.alert.warn { border-color: var(--amber); background: var(--amber-wash); }

/* ---------- status chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-quote_pending { background: var(--amber-wash); color: #8A5A07; }
.st-quoted { background: var(--red-wash); color: var(--red-ink); }
.st-pending { background: var(--amber-wash); color: #8A5A07; }
.st-in_progress { background: var(--teal-wash); color: var(--teal); }
.st-awaiting_customer { background: var(--red-wash); color: var(--red-ink); }
.st-completed { background: var(--green-wash); color: var(--green); }
.st-cancelled { background: var(--alloy); color: var(--ink-3); }
.open-chip { background: var(--green-wash); color: var(--green); }
.closed-chip { background: var(--alloy-2); color: var(--ink-2); }
.badge-fit { font-size: 12px; font-weight: 600; color: var(--teal); background: var(--teal-wash); padding: 1px 7px; border-radius: 3px; }
.fitting.ready { border: 2px solid var(--red); }
.fit-list { margin: 0; padding-left: 22px; }
.fit-list li { margin-bottom: 12px; }
.fit-list li::marker { font-weight: 700; color: var(--red); }
.fit-list p { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-2); }
.badge-off { font-size: 12px; font-weight: 600; color: #8A5A07; background: var(--amber-wash); padding: 1px 7px; border-radius: 3px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); vertical-align: middle; }

/* ---------- panels & tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding: 8px 10px; white-space: nowrap; }
td { border-bottom: 1px solid var(--rule-soft); padding: 11px 10px; vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #F6F6F6; }
td > b:first-child { white-space: nowrap; }
td .sub { display: block; font-size: 13px; color: var(--ink-3); }
.num { text-align: right; }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); }
.empty h4 { color: var(--ink); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

/* info aside: the "essential info" between windows */
.info { background: var(--ink); color: #DDDDDD; border-radius: var(--r-panel); padding: 20px 22px; font-size: 14px; }
.info h4 { color: #fff; }
.info ul, .info ol { margin: 0 0 12px; padding-left: 18px; }
.info li { margin-bottom: 7px; }
.info li::marker { color: #E9A23B; }
.info strong { color: #fff; font-weight: 600; }
.info a { color: #FF9E9E; }
.info + .info { margin-top: 14px; }
.info.light { background: var(--panel); color: var(--ink); border: 1px solid var(--rule-soft); }
.info.light h4 { color: var(--ink); }
.info.light strong { color: var(--ink); }
.info.light li::marker { color: var(--red); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #CFCFCF; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 0 8px 22px; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-sub { font-size: 12px; color: #9A9A9A; margin-top: 4px; padding-left: 2px; }
.side .brand { flex-direction: column; align-items: flex-start; gap: 0; }
.side .brand-logo { height: auto; width: 100%; max-width: 200px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: #9A9A9A; margin-top: 3px; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: var(--r-ctl); color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 7px; }
.nav-label { font-size: 12px; color: #888888; padding: 18px 10px 6px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.side-foot .credits-line { display: flex; justify-content: space-between; align-items: baseline; color: #fff; margin-bottom: 10px; }
.side-foot .credits-line b { font-family: var(--display); font-size: 24px; }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.notice-bar { background: var(--amber-wash); border: 1px solid #EBD3A6; color: #6B4706; padding: 10px 14px; border-radius: var(--r-ctl); margin-bottom: 18px; font-size: 14px; }
.topbar { display: none; }
.bottomnav { display: none; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cols > aside { position: sticky; top: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 14px 16px; text-decoration: none; color: inherit; }
.stat b { display: block; font-family: var(--display); font-size: 34px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-2); }
a.stat:hover { border-color: var(--rule); }
.balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: #fff; border-radius: var(--r-panel); padding: 20px 22px; margin-bottom: 20px; flex-wrap: wrap; }
.balance .big { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: .9; }
.balance .lbl { color: #ABABAB; font-size: 14px; }
.hours { width: 100%; font-size: 14px; }
.hours td { padding: 5px 0; border: 0; }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 600; color: inherit; }
.info:not(.light) .hours tr.today td { color: #fff; }

/* ---------- wizard ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; counter-reset: st; list-style: none; padding: 0; }
.steps li { counter-increment: st; padding: 10px 12px 9px; border-top: 4px solid var(--alloy-2); font-size: 14px; color: var(--ink-3); font-weight: 500; }
.steps li::before { content: counter(st) '. '; font-weight: 600; }
.steps li.done { border-color: var(--ink-2); color: var(--ink-2); }
.steps li.on { border-color: var(--red); color: var(--ink); font-weight: 600; }
.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; align-items: start; border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 13px 14px; cursor: pointer; background: #fff; }
.choice label:hover { border-color: var(--ink-3); }
.choice label:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #FFF8F8; }
.choice input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--red); }
.choice .nm { font-weight: 600; }
.choice .ds { grid-column: 2 / 4; font-size: 13.5px; color: var(--ink-2); }
.choice .cr { font-weight: 600; font-size: 14px; white-space: nowrap; }
.choice.opts { grid-template-columns: 1fr 1fr; }
.drop { border: 2px dashed var(--rule); border-radius: var(--r-panel); padding: 30px 20px; text-align: center; background: #FAFAFA; cursor: pointer; }
.drop { display: block; position: relative; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
label.btn:focus-within { outline: 3px solid #2C7DA0; outline-offset: 2px; }
.drop:focus-within { outline: 3px solid #2C7DA0; outline-offset: 2px; }
.drop.over { border-color: var(--red); background: var(--red-wash); }
.drop svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--ink-3); }
.filepill { display: flex; align-items: center; gap: 12px; border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 12px 14px; background: #fff; }
.filepill b { word-break: break-all; }
.costbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule-soft); margin-top: 18px; padding-top: 16px; }
.costbar .total { font-family: var(--display); font-size: 28px; font-weight: 700; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed var(--rule-soft); }

/* ---------- file detail ---------- */
.track { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 4px; }
.track div { position: relative; padding-top: 20px; font-size: 13.5px; color: var(--ink-3); }
.track div::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 4px; background: var(--alloy-2); }
.track div::after { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--alloy-2); border: 2px solid #fff; }
.track div.done::before, .track div.done::after { background: var(--green); }
.track div.now { color: var(--ink); font-weight: 600; }
.track div.now::after { background: var(--red); }
.track div.now::before { background: linear-gradient(90deg, var(--green) 0 14px, var(--alloy-2) 14px); }
.track div.done { color: var(--ink-2); }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl a, .dl .na { display: block; border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.dl a:hover { border-color: var(--ink-3); }
.dl a.ready { border-color: var(--green); background: var(--green-wash); }
.dl .na { color: var(--ink-3); background: #FAFAFA; border-style: dashed; }
.dl b { display: block; }
.dl span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px 10px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 8px; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.msg time { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.msg.them { background: var(--alloy); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.msg.me time { color: #ABABAB; }
.msg.sys { align-self: center; background: none; color: var(--ink-3); font-size: 13px; padding: 2px; text-align: center; }
.compose { display: flex; gap: 10px; margin-top: 10px; align-items: flex-end; }
.compose textarea { min-height: 48px; height: 48px; }

/* ---------- packages ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pack { border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.pack .cr { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.pack .nm { font-weight: 600; }
.pack .pr { font-size: 20px; font-weight: 600; margin-top: 8px; }
.pack .per { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.pack .save { font-size: 13px; color: var(--green); font-weight: 600; min-height: 1.4em; }
.pack .btn { margin-top: auto; }

/* ---------- public site ---------- */
.site-head { border-bottom: 1px solid #333; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 48px); background: var(--ink); color: #fff; }
.site-head .brand { padding: 0; }
.site-head nav { display: flex; gap: 22px; align-items: center; }
.site-head nav a:not(.btn) { color: #CFCFCF; text-decoration: none; font-weight: 500; }
.site-head nav a:not(.btn):hover { color: #fff; }
.hero { background: var(--ink); color: #fff; border-bottom: 6px solid var(--red); padding: 40px clamp(16px, 4vw, 48px) 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: .95; margin-bottom: 18px; }
.hero p.lead { font-size: 18px; color: #CFCFCF; max-width: 48ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero .ctas .ghost { color: #fff; border-color: #4D4D4D; }
.hero .ctas .ghost:hover { background: rgba(255,255,255,.06); }
.hero-facts { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: #ABABAB; }
.hero-facts b { display: block; color: #fff; font-size: 16px; }

.map { background: #141414; border: 1px solid #333333; border-radius: var(--r-panel); padding: 16px; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.map-title { font-size: 13.5px; color: #ABABAB; }
.map-title b { color: #fff; font-weight: 600; display: block; font-size: 15px; }
.seg { display: inline-flex; border: 1px solid #444444; border-radius: var(--r-ctl); overflow: hidden; }
.seg button { background: none; border: 0; color: #ABABAB; font: 600 13px/1 var(--body); padding: 8px 12px; cursor: pointer; min-height: 34px; }
.seg button.on { background: #fff; color: var(--ink); }
.map-grid { display: grid; grid-template-columns: 46px repeat(8, 1fr); gap: 2px; font-size: 12px; }
.map-grid .ax { color: #7A7A7A; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; }
.map-grid .axx { color: #7A7A7A; text-align: center; padding-top: 4px; }
.map-grid .c { color: #141414; font-weight: 600; text-align: center; padding: 7px 0; border-radius: 2px; transition: background-color .5s ease; }
.map-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: #7A7A7A; }
.map-foot b { color: #fff; font-size: 15px; }

.band { padding: 64px clamp(16px, 4vw, 48px); }
.band.white { background: var(--panel); }
.band-in { max-width: 1160px; margin: 0 auto; }
.band h2 { margin-bottom: 10px; }
.band .intro { color: var(--ink-2); font-size: 17px; margin-bottom: 30px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: p; }
.process li { counter-increment: p; padding: 0 22px 0 0; }
.process li::before { content: counter(p); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.process h3 { font-size: 21px; }
.process p { color: var(--ink-2); font-size: 14.5px; }
.price-table td, .price-table th { padding: 12px 10px; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tools span { border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 7px 12px; font-weight: 500; font-size: 14px; background: #fff; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
details.faq { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--ink-3); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.site-foot { background: var(--ink); color: #ABABAB; padding: 36px clamp(16px, 4vw, 48px); font-size: 14px; }
.site-foot .band-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot a { color: #CFCFCF; }

.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 380px); gap: 28px; justify-content: center; align-items: start; padding: 48px 16px; }
.auth-wrap .panel { padding: 28px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h3 { margin-top: 26px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-ctl); z-index: 99; font-weight: 500; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.demo-bar { background: #2C7DA0; color: #fff; font-size: 13.5px; padding: 7px 14px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.demo-bar button { background: #fff; color: #1d5a74; border: 0; border-radius: 3px; font: 600 13px/1 var(--body); padding: 6px 10px; cursor: pointer; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 60px; display: flex; justify-content: center; color: var(--ink-3); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font: 500 14.5px/1 var(--body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--red); font-weight: 600; }
.tabs button .n { color: var(--ink-3); font-weight: 400; margin-left: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > aside { position: static; }
  .hero { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .price-cols, .three { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: minmax(0, 460px); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; }
  .topbar .brand-logo { height: 34px; }
  .topbar .brand-sub { display: none; }
  .topbar .cr { font-size: 14px; color: #CFCFCF; text-decoration: none; }
  .topbar .cr b { color: #fff; font-family: var(--display); font-size: 20px; }
  .main { padding: 20px 14px 96px; }
  .bottomnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--rule); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 9px; font-size: 11.5px; color: var(--ink-2); text-decoration: none; font-weight: 500; position: relative; }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--red); }
  .bottomnav a .count { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10.5px; border-radius: 99px; padding: 0 5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid2, .grid3, .choice.opts, .dl { grid-template-columns: 1fr; }
  .panel { padding: 18px 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .steps li { font-size: 0; padding: 6px 0 0; }
  .steps li::before { font-size: 13px; }
  .steps li.on { font-size: 13px; }
  .process { grid-template-columns: 1fr; }
  .site-head nav a:not(.btn) { display: none; }
  .site-head .brand-logo { height: 34px; }
  .site-head .brand-sub { display: none; }
  .hero { padding-top: 28px; gap: 32px; }
  .map-grid { grid-template-columns: 34px repeat(8, 1fr); font-size: 10.5px; }
  .map-grid .c { padding: 6px 0; }
  .msg { max-width: 92%; }
  .hide-sm { display: none; }
  .balance .big { font-size: 44px; }
  .wiz-nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 1080px) { [data-faqgrid] { grid-template-columns: 1fr !important; } }

/* file library + importer */
.libtable tr.grp td { background: var(--alloy); font-family: var(--display); font-weight: 700; font-size: 18px; padding: 8px 10px; }
.libedit { background: #FAFAFA; border: 1px solid var(--rule-soft); border-radius: var(--r-ctl); padding: 14px; }
.optchips { display: flex; flex-wrap: wrap; gap: 0 14px; }
.optchips .check { font-size: 13.5px; }
.optchips .check input { width: 17px; height: 17px; }
.imp-list { display: grid; gap: 10px; max-height: 70vh; overflow-y: auto; padding-right: 2px; }
.imp { border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 12px 14px; background: #fff; }
.imp.off { opacity: .5; }
.imp-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.imp-files { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.botpanel { border: 2px solid var(--teal); }
@media (max-width: 760px) { .imp-files { grid-template-columns: 1fr; } }

/* round 1: upload extras */
.lbl { display: block; font-weight: 500; font-size: 14px; margin-bottom: 5px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: #fff; cursor: pointer; font-weight: 500; font-size: 14px; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: var(--red-wash); }
.tile:has(input:focus-visible) { outline: 3px solid #2C7DA0; outline-offset: 2px; }
.chipbtn { font: 500 13px/1 var(--body); border: 1px solid var(--rule); background: #fff; border-radius: 99px; padding: 5px 10px; cursor: pointer; margin: 4px 2px 0 0; }
.chipbtn:hover { border-color: var(--ink-3); }
.alert.instant { border-color: #1E9E5A; background: #E6F6EC; }
.badge-ready { display: inline-block; font-size: 12px; font-weight: 600; color: #146C3E; background: #DDF3E5; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.btn.go { background: #1E9E5A; }
.btn.go:hover { background: #167A45; }
.reg-box { background: #FAFAFA; border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 14px; margin-bottom: 20px; }
.reg-row { display: flex; gap: 10px; flex-wrap: wrap; }
.plate { display: flex; align-items: stretch; border: 2px solid #1E1E1E; border-radius: 6px; overflow: hidden; background: #F6C700; flex: 1; min-width: 200px; max-width: 320px; }
.plate .gb { background: #003399; color: #fff; font: 700 12px/1 var(--body); display: flex; align-items: flex-end; padding: 6px 7px; }
.plate input { border: 0; background: transparent; font: 700 24px/1 'Arial Narrow', var(--display); letter-spacing: .06em; text-transform: uppercase; text-align: center; color: #111; min-height: 46px; box-shadow: none !important; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal { background: var(--panel); border-radius: 10px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--rule-soft); }
.modal-head h3 { margin: 0 0 4px; }
.modal-body { padding: 14px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid var(--rule-soft); flex-wrap: wrap; }
.combo { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 11px 12px; margin-bottom: 8px; cursor: pointer; }
.combo.on { border-color: #1E9E5A; box-shadow: inset 0 0 0 1px #1E9E5A; background: #F2FBF5; }
.combo input { accent-color: #1E9E5A; width: 18px; height: 18px; }
.combo .cr { font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) { .combo { grid-template-columns: 22px 1fr; } .combo .badge-ready, .combo .cr { grid-column: 2; } }

/* round 2: file page */
.file-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.file-head h1 { margin: 2px 0 4px; font-size: clamp(28px, 4vw, 40px); }
.make-badge { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 18px/1 var(--display); letter-spacing: .02em; flex: none; border: 3px solid var(--red); }
.track-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.track-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--amber-wash); color: #8A5A07; font-weight: 700; }
.track-ic.completed { background: var(--green-wash); color: var(--green); }
.track-ic.awaiting_customer { background: var(--red-wash); color: var(--red-ink); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); background: var(--green-wash); padding: 3px 9px; border-radius: 99px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.track4 { grid-template-columns: repeat(4, 1fr); }
.ready-box { border: 1px solid var(--green); background: var(--green-wash); border-radius: var(--r-ctl); padding: 12px 14px; display: grid; gap: 8px; }
.ready-box select { min-height: 38px; padding: 6px 10px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.spec { background: var(--panel); border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.spec b { font-size: 16px; }
.optrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--panel); border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 10px 14px; margin-top: 10px; }
.optrow .tiny { margin-right: 6px; }
.opt-chip { font-size: 13px; font-weight: 600; background: var(--red-wash); color: var(--red-ink); padding: 3px 10px; border-radius: 99px; }
.gains .grow { margin-bottom: 14px; }
.gnum { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.gnum b { font-size: 36px; }
.gplus { font-weight: 700; font-size: 13px; color: var(--green); background: var(--green-wash); padding: 1px 8px; border-radius: 99px; }
.gbar { height: 8px; background: var(--alloy-2); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.gbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber) 0%, var(--green) 100%); border-radius: 99px; }
.tl-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-tools input { flex: 1; min-width: 180px; min-height: 38px; }
.seg2 { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-ctl); overflow: hidden; flex-wrap: wrap; }
.seg2 button { background: #fff; border: 0; border-right: 1px solid var(--rule-soft); padding: 8px 11px; font: 500 13.5px/1 var(--body); cursor: pointer; color: var(--ink-2); }
.seg2 button:last-child { border-right: 0; }
.seg2 button.on { background: var(--ink); color: #fff; }
.seg2 .n { opacity: .7; font-size: 12px; }
.tl-file { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--rule); border-radius: var(--r-ctl); padding: 9px 12px; background: #FAFAFA; font-size: 14px; }
.tl-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--alloy); display: flex; align-items: center; justify-content: center; flex: none; }
.tl-file .btn { margin-left: auto; }
.att { margin-top: 6px; display: grid; gap: 4px; }
.att a { color: inherit; font-size: 13.5px; text-decoration: underline; }
.attach { position: relative; width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: var(--r-ctl); cursor: pointer; font-size: 18px; background: #fff; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } .track4 div { font-size: 11.5px; } .make-badge { width: 46px; height: 46px; font-size: 15px; } }
.dl .ready-box a.btn { display: inline-flex; color: #fff; padding: 8px 12px; border: 0; background: #1E9E5A; }

/* round 3: dashboard */
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.sbit { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--rule-soft); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; }
.sbit i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sbit.ok i { background: #1E9E5A; box-shadow: 0 0 0 3px rgba(30,158,90,.18); }
.sbit.off i { background: var(--red); }
.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.dash-top .balance { margin: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.attn { margin: 0; }
.count-pill { background: var(--amber); color: #fff; font-weight: 700; font-size: 12px; border-radius: 99px; padding: 1px 8px; }
.att-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule-soft); color: inherit; text-decoration: none; font-size: 14px; }
.att-row:first-of-type { border-top: 0; }
.att-row:hover .att-go { text-decoration: underline; }
.att-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-wash); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--teal); }
.att-ic.quoted { background: var(--red-wash); color: var(--red-ink); }
.att-ic.awaiting_customer { background: var(--amber-wash); color: #8A5A07; }
.att-go { color: var(--red-ink); font-weight: 600; font-size: 13.5px; }
.rw-num { font-family: var(--display); font-size: 28px; }
.rw-num b { font-size: 40px; }
.rw-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.rw-tiers div { border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 8px; text-align: center; display: flex; flex-direction: column; }
.rw-tiers div b { font-family: var(--display); font-size: 22px; }
.rw-tiers div.hit { border-color: #1E9E5A; background: #E6F6EC; }
.cf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.cf-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cf-stage { border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cf-empty { border: 1px dashed var(--rule); border-radius: var(--r-panel); padding: 22px; text-align: center; }
.dyno { width: 100%; height: auto; background: #141414; border-radius: var(--r-panel); }
.dyno .grid line { stroke: #2A2A2A; }
.dyno path { fill: none; stroke-width: 3; stroke-linecap: round; }
.dyno .c0 { stroke: #8A8A8A; } .dyno .c1 { stroke: #E9A23B; } .dyno .c2 { stroke: #E00000; }
.dyno text { font: 600 11px var(--body); }
.dyno .ax { fill: #7A7A7A; } .dyno .l0 { fill: #8A8A8A; } .dyno .l1 { fill: #E9A23B; } .dyno .l2 { fill: #FF5A5A; }
.iconbtn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn .count { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 5px; }
.side-tools { display: flex; gap: 8px; padding: 14px 8px 0; margin-top: 12px; }
.notif { position: fixed; top: 64px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.25); z-index: 70; }
.notif-list { overflow-y: auto; }
.notif-list a { display: block; padding: 11px 14px; border-bottom: 1px solid var(--rule-soft); color: inherit; text-decoration: none; font-size: 14px; }
.notif-list a.new { background: var(--red-wash); }
.notif-list a:hover { background: var(--alloy); }
.shiftbox { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
@media (min-width: 761px) { .notif { left: 250px; right: auto; top: auto; bottom: 24px; } }
@media (max-width: 760px) { .dash-top, .cf-res { grid-template-columns: 1fr; } .cf-grid { grid-template-columns: 1fr 1fr; } .shiftbox { align-items: flex-start; } }

/* dark mode */
:root[data-theme=dark] {
  --ink: #ECECEC; --ink-2: #B3B3B3; --ink-3: #8C8C8C; --alloy: #121212; --alloy-2: #2C2C2C; --panel: #1C1C1C;
  --rule: #3A3A3A; --rule-soft: #2A2A2A; --red-wash: #3A1414; --teal-wash: #12302F; --amber-wash: #3A2C10; --green-wash: #12301F;
  color-scheme: dark;
}
:root[data-theme=dark] body { background: var(--alloy); }
:root[data-theme=dark] input[type=text], :root[data-theme=dark] input[type=url], :root[data-theme=dark] input[type=email], :root[data-theme=dark] input[type=password], :root[data-theme=dark] input[type=number], :root[data-theme=dark] input[type=tel], :root[data-theme=dark] input[type=search], :root[data-theme=dark] select, :root[data-theme=dark] textarea,
:root[data-theme=dark] .choice label, :root[data-theme=dark] .tile, :root[data-theme=dark] .drop, :root[data-theme=dark] .filepill, :root[data-theme=dark] .dl a, :root[data-theme=dark] .dl .na, :root[data-theme=dark] .pack,
:root[data-theme=dark] .imp, :root[data-theme=dark] .tl-file, :root[data-theme=dark] .seg2 button, :root[data-theme=dark] .reg-box, :root[data-theme=dark] .libedit, :root[data-theme=dark] .chipbtn, :root[data-theme=dark] .attach, :root[data-theme=dark] .tools span, :root[data-theme=dark] .btn.ghost { background: #232323; color: var(--ink); }
:root[data-theme=dark] .seg2 button.on { background: var(--ink); color: #111; }
:root[data-theme=dark] .side, :root[data-theme=dark] .topbar, :root[data-theme=dark] .balance, :root[data-theme=dark] .info:not(.light), :root[data-theme=dark] .site-head, :root[data-theme=dark] .hero, :root[data-theme=dark] .site-foot, :root[data-theme=dark] .msg.me { background: #0E0E0E; color: #DDD; }
:root[data-theme=dark] .msg.me { color: #fff; }
:root[data-theme=dark] .info:not(.light) h4, :root[data-theme=dark] .info:not(.light) strong { color: #fff; }
:root[data-theme=dark] .bottomnav { background: #161616; }
:root[data-theme=dark] tr.click:hover td, :root[data-theme=dark] .libedit, :root[data-theme=dark] .tl-file { background: #202020; }
:root[data-theme=dark] .alert.ok, :root[data-theme=dark] .alert.instant, :root[data-theme=dark] .badge-ready, :root[data-theme=dark] .rw-tiers div.hit, :root[data-theme=dark] .combo.on, :root[data-theme=dark] .ready-box, :root[data-theme=dark] .dl a.ready { background: #12301F; color: #BFF0D2; }
:root[data-theme=dark] .alert.err, :root[data-theme=dark] .choice label:has(input:checked), :root[data-theme=dark] .tile:has(input:checked), :root[data-theme=dark] .notif-list a.new { background: #3A1414; }
:root[data-theme=dark] .alert.warn { background: #3A2C10; color: #F5D9A6; }
:root[data-theme=dark] .alert.info { background: #12302F; color: #BFE6E3; }
:root[data-theme=dark] .notice-bar { background: #3A2C10; color: #F5D9A6; border-color: #5A4415; }
:root[data-theme=dark] .msg.them { background: #262626; }
:root[data-theme=dark] .make-badge { background: #000; }
:root[data-theme=dark] .demo-bar button { color: #1d5a74; }
:root[data-theme=dark] a { color: #FF7A7A; }
:root[data-theme=dark] .nav a, :root[data-theme=dark] .bottomnav a, :root[data-theme=dark] .att-row, :root[data-theme=dark] .notif-list a, :root[data-theme=dark] .stat, :root[data-theme=dark] .dl a { color: inherit; }
:root[data-theme=dark] .btn { color: #fff; }
:root[data-theme=dark] .btn.ghost { color: var(--ink); }
:root[data-theme=dark] .modal { background: #1C1C1C; }
:root[data-theme=dark] .st-pending, :root[data-theme=dark] .st-quote_pending { color: #F5C66B; }
:root[data-theme=dark] .st-in_progress { color: #7FD6D0; }
:root[data-theme=dark] .st-awaiting_customer, :root[data-theme=dark] .st-quoted { color: #FF8A8A; }
:root[data-theme=dark] .st-completed { color: #7FE0A6; }
:root[data-theme=dark] .att-go { color: #FF8A8A; }
.badge-tuner { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--alloy); padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.badge-ready.fast { background: var(--teal-wash); color: var(--teal); }
.combo { display: block; padding: 0; }
.combo-top { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 11px 12px; cursor: pointer; }
.combo-top input { accent-color: #1E9E5A; width: 18px; height: 18px; }
.combo-top .cr { font-weight: 600; font-size: 14px; white-space: nowrap; }
.combo-opts { padding: 0 12px 12px 44px; }
.optpick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 99px; padding: 5px 10px; margin: 6px 6px 0 0; font-size: 13px; cursor: pointer; background: var(--panel); }
.optpick.r { border-color: #8FD3AC; }
.optpick:has(input:checked) { background: #1E9E5A; color: #fff; border-color: #1E9E5A; }
.optpick input { width: 15px; height: 15px; accent-color: #fff; margin: 0; }
.modal-status { margin: 0 20px; padding: 10px 12px; border-radius: var(--r-ctl); font-weight: 600; font-size: 14px; background: var(--alloy); }
.modal-status.instant { background: #E6F6EC; color: #146C3E; }
.modal-status.fast { background: var(--teal-wash); color: var(--teal); }
@media (max-width: 760px) { .combo-top { grid-template-columns: 22px 1fr auto; } .combo-top .cr { grid-column: 2; } .combo-opts { padding-left: 12px; } }
:root[data-theme=dark] .modal-status.instant { background: #12301F; color: #BFF0D2; }

/* ===== Portal v2: ATT brand + Velocity-style layout ===== */
:root { --blue: #2563EB; --blue-wash: #E6EEFD; --violet: #7C3AED; --plate: #F7D117; }
.body-col { min-width: 0; }
/* sidebar: coloured icon tiles */
.side { overflow-y: auto; }
.nav a { padding: 7px 8px; gap: 12px; font-size: 14.5px; }
.nav a.on { background: rgba(255,255,255,.09); box-shadow: inset 3px 0 0 var(--red); }
.tile-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.tile-ic svg { width: 17px !important; height: 17px !important; opacity: 1 !important; }
.t-red { background: #E00000; } .t-green { background: #16A34A; } .t-orange { background: #EA580C; } .t-amber { background: #D97706; }
.t-violet { background: #7C3AED; } .t-cyan { background: #0891B2; } .t-pink { background: #DB2777; } .t-blue { background: #2563EB; } .t-teal { background: #0D9488; } .t-grey { background: #525252; }
.side-foot { display: flex; flex-direction: column; gap: 8px; }
.side-foot .me { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; min-width: 0; }
.side-foot .me > span { display: flex; flex-direction: column; min-width: 0; }
.side-foot .me .tiny { color: #A3A3A3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-tools { padding: 2px 0 0; margin: 0; }
.side-link { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: #C5CDD4; font: 500 13.5px var(--body); padding: 4px 0; cursor: pointer; text-decoration: none; text-align: left; }
.side-link svg { width: 16px; height: 16px; }
.side-link:hover { color: #fff; }
.ava { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E00000, #7C1010); color: #fff; font: 700 14px var(--body); border: 2px solid rgba(255,255,255,.15); }
.ava.xl { width: 84px; height: 84px; font-size: 28px; border-color: var(--rule-soft); }
/* page bar: tuner status, balance, send */
.pbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 6px; }
.tstat { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.tstat i { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.tstat.off i { background: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.tstat b { color: var(--ink); }
.balpill { background: var(--ink); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.balpill b { font-family: var(--display); font-size: 19px; margin-right: 2px; }
.phead { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; flex-wrap: wrap; }
.phead h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.phead p { margin: 4px 0 0; color: var(--ink-2); }
.back { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; font: 600 14px var(--body); cursor: pointer; color: var(--ink); }
.back:hover { border-color: var(--ink-3); }
.picban { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--rule-soft); border-left: 4px solid var(--red); border-radius: var(--r-panel); padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.picban p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; color: var(--ink-2); }
.picban p b { color: var(--ink); }
/* stat cards */
.scards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.scard { position: relative; border-radius: 12px; padding: 16px 18px 14px; color: #fff; text-decoration: none; display: flex; flex-direction: column; min-height: 118px; overflow: hidden; box-shadow: 0 6px 18px -10px rgba(0,0,0,.45); transition: transform .15s; }
.scard:hover { transform: translateY(-2px); }
.scard b { font: 700 46px/1 var(--display); margin-top: 6px; }
.sc-l { font-size: 14px; font-weight: 600; opacity: .95; }
.sc-s { font-size: 12.5px; opacity: .85; margin-top: auto; padding-top: 6px; }
.sc-ic { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.sc-ic svg { width: 21px; height: 21px; }
.sc-bal { background: linear-gradient(135deg, #E00000, #8F0000); }
.sc-prog { background: linear-gradient(135deg, #2563EB, #1E3A8A); }
.sc-ready { background: linear-gradient(135deg, #16A34A, #14532D); }
.sc-msg { background: linear-gradient(135deg, #F59E0B, #C2410C); }
.dash2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.dash2 .carfinder { margin: 0; }
/* file rows */
.regplate { display: inline-block; background: var(--plate); color: #111; font: 700 13px/1 'Arial Narrow', Arial, sans-serif; letter-spacing: .06em; padding: 5px 7px; border-radius: 3px; border: 1px solid #C9A800; white-space: nowrap; vertical-align: middle; }
.frows { display: flex; flex-direction: column; gap: 6px; }
.frow { display: grid; grid-template-columns: 84px minmax(0, 2.2fr) minmax(0, 1.6fr) 104px 150px 16px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); border-left: 4px solid transparent; background: var(--alloy); }
.frow:not(.fhead):hover { filter: brightness(.97); }
.fhead { background: none; font-size: 12px; font-weight: 600; color: var(--ink-3); padding-top: 0; padding-bottom: 0; }
.fr-ref { font: 600 12px/1.2 ui-monospace, monospace; color: var(--ink-3); }
.fr-car { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fr-car .make-badge { width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
.fr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fr-name .sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.fr-work { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-date { font-size: 13px; color: var(--ink-2); }
.fr-st { display: flex; align-items: center; gap: 6px; }
.fr-go { color: var(--ink-3); font-size: 20px; }
.tone-done { background: #E3F5EA; border-left-color: #16A34A; }
.tone-work { background: var(--blue-wash); border-left-color: var(--blue); }
.tone-reply { background: var(--amber-wash); border-left-color: var(--amber); }
.tone-wait { background: #EEF0F3; border-left-color: #94A3B8; }
.tone-void { background: #F1F1F1; border-left-color: #A3A3A3; color: var(--ink-3); }
.ftools { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ftools input[type=search] { max-width: 280px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button { border: 1px solid var(--rule); background: var(--panel); border-radius: 99px; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer; color: var(--ink); }
.pills button.on { background: var(--red); border-color: var(--red); color: #fff; }
.pills .n { opacity: .7; font-weight: 500; margin-left: 2px; }
/* shop strip */
.shopstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 170px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.sitem { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--rule-soft); border-radius: 10px; padding: 8px; background: var(--panel); }
.simg { aspect-ratio: 1; border-radius: 6px; background: var(--alloy); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-3); }
.simg img { width: 100%; height: 100%; object-fit: cover; }
.simg svg { width: 32px; height: 32px; }
.snm { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sitem b { color: var(--red-ink); }
/* file page */
.fh1 { font-size: clamp(24px, 3vw, 34px) !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fh1 .regplate { font-size: 17px; padding: 6px 9px; }
.h-sub { font-weight: 500; color: var(--ink-2); font-size: .7em; }
.fgrid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(250px, 320px); gap: 16px; align-items: start; }
.fmid > .panel + .panel { margin-top: 16px; }
.fside > * + * { margin-top: 14px; }
.panel.dark { background: #1A1A1A; color: #E5E5E5; border-color: #000; }
.panel.dark h3 { color: #fff; }
.panel.dark .tiny { color: #A3A3A3; }
.det-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dt { background: #262626; border-radius: 8px; padding: 8px 10px; min-width: 0; }
.dt > span { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 600; color: #A3A3A3; margin-bottom: 3px; }
.dt b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.dt b.mono { font-family: ui-monospace, monospace; font-size: 12.5px; }
.dt b.unk { color: #8A8A8A; font-style: italic; font-weight: 500; }
.dt-make .make-badge { width: 26px; height: 26px; font-size: 10px; border-width: 2px; }
.copy { background: #3B3B3B; color: #E5E5E5; border: 0; border-radius: 4px; font: 600 10.5px var(--body); padding: 1px 6px; cursor: pointer; }
.dt-times { font-size: 12.5px; color: #A3A3A3; margin: 12px 0 8px; }
.dt-work { border-top: 1px solid #333; padding-top: 10px; }
.dt-work b { font-family: var(--display); font-size: 22px; color: #fff; }
.panel.dark .opt-chip { background: #333; color: #fff; }
.fbox-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--rule-soft); border-radius: 8px; text-decoration: none; color: var(--ink); margin-top: 8px; min-width: 0; }
.fbox-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fbox-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fbox-row.hot { border: 2px solid #16A34A; background: #E3F5EA; }
.fb-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.fb-ic svg, .fb-go svg { width: 18px; height: 18px; }
.fbox-row.hot .fb-ic { background: #16A34A; }
.fb-go { color: var(--ink-3); }
.fb-head { font: 700 18px var(--display); display: flex; align-items: center; gap: 8px; }
.fb-head.sm { font-size: 14px; color: var(--ink-3); margin-top: 14px; font-family: var(--body); font-weight: 600; }
.ecu-h { display: flex; align-items: center; gap: 8px; color: #A3A3A3; font-size: 13px; }
.ecu-h svg { width: 16px; height: 16px; }
.ecu h3 { color: #FF6B6B !important; font-size: 20px; margin: 8px 0 10px; }
.ecu-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ecu-list li { border: 1px solid #16A34A; border-radius: 8px; padding: 10px 12px; background: rgba(22,163,74,.06); }
.ecu-list.light li { border-color: var(--rule-soft); background: var(--alloy); }
.ecu-list .eo { font-weight: 700; margin-right: 8px; }
.ecu-list p { margin: 6px 0 0; font-size: 13.5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; vertical-align: 1px; }
.tag.unplug { background: #FDE2E2; color: #B00000; }
.tag.keep { background: #DCFCE7; color: #166534; }
/* balance */
.bal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.hist { display: flex; flex-direction: column; }
.hrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); }
.hrow > span { display: flex; flex-direction: column; }
.hamt { text-align: right; }
.hamt b { font-size: 16px; }
.hamt b.plus { color: #16A34A; }
.balcard .bigbal { font: 700 56px/1 var(--display); margin: 4px 0; }
.balcard .bigbal span { font-size: 20px; color: var(--ink-3); }
.topups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topups .btn { flex-direction: column; gap: 2px; min-height: 58px; }
.topups .btn b { font: 700 22px/1 var(--display); }
.topups .btn span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.bal-grid aside > * + * { margin-top: 14px; }
/* invoice */
.invoice-page { max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; }
.inv-tools { display: flex; justify-content: space-between; margin-bottom: 14px; }
.invoice { background: #fff; color: #1E1E1E; padding: 36px; border-radius: 6px; border: 1px solid var(--rule-soft); }
.invoice header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid var(--red); padding-bottom: 18px; background: #1E1E1E; margin: -36px -36px 24px; padding: 24px 36px; color: #fff; border-radius: 6px 6px 0 0; }
.invoice header h1 { color: #fff; margin: 0; font-size: 34px; }
.invoice header > div { text-align: right; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.inv-parties .tiny { display: block; }
.invoice table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.invoice th, .invoice td { padding: 10px 6px; border-bottom: 1px solid #E4E4E4; text-align: left; }
.invoice .num { text-align: right; }
.invoice tfoot td { border: 0; }
.invoice tr.tot td { font-weight: 700; font-size: 18px; border-top: 2px solid #1E1E1E; }
@media print { body { background: #fff; } .inv-tools, .demo-bar, .toast { display: none !important; } .invoice-page { padding: 0; } .invoice { border: 0; } .invoice header { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* log viewer */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--rule); border-radius: 10px; cursor: pointer; text-align: center; }
.drop.over { border-color: var(--red); background: var(--red-wash); }
.drop-ic svg { width: 30px; height: 30px; color: var(--red); }
.logch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 120px; overflow-y: auto; }
.logch label { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; border: 1px solid var(--rule); border-radius: 99px; padding: 4px 10px; cursor: pointer; }
.logch label.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.logch input { margin: 0; }
.logsvg { width: 100%; height: auto; background: #141414; border-radius: 8px; touch-action: none; }
.logsvg .grid line { stroke: #2E2E2E; }
.logsvg .ax { fill: #8A8A8A; font: 12px var(--body); }
.logsvg .cursor { stroke: #fff; stroke-dasharray: 3 3; }
.loglegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; }
.loglegend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
/* fault codes */
.dtcs { display: flex; flex-direction: column; gap: 10px; }
.dtc { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 8px; }
.dtc p { margin: 4px 0 0; font-size: 14px; }
.dcode { font: 700 16px ui-monospace, monospace; background: var(--ink); color: #fff; padding: 6px 9px; border-radius: 6px; flex: none; }
/* wiki */
.wiki-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.wcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.wcard svg { width: 24px; height: 24px; color: var(--red); margin-bottom: 4px; }
.wcard + .wcard { margin-top: 0; }
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 8px; }
.btiles a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 8px; background: var(--alloy); text-decoration: none; color: var(--ink); }
.btiles a b { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.btiles a:hover { background: var(--alloy-2); }
.wecu { border: 1px solid var(--rule-soft); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.wecu summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wecu .ecu-list { margin-top: 10px; }
.scrim { display: none; }
/* responsive */
@media (max-width: 1240px) { .fgrid { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); } .fside { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; } .fside > * + * { margin-top: 0; } }
@media (max-width: 1100px) { .frow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 130px 16px; } .fr-ref, .fr-date { display: none; } .fhead span:nth-child(1), .fhead span:nth-child(4) { display: none; } }
@media (max-width: 980px) { .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash2, .bal-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .side { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .scrim[hidden] { display: none; }
  .topbar .iconbtn { color: #fff; }
  .topbar .iconbtn svg { width: 22px; height: 22px; }
  .pbar .balpill { display: none; }
}
@media (max-width: 860px) {
  .fgrid { grid-template-columns: 1fr; }
  .fside { display: flex; flex-direction: column; }
  .wiki-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .frow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .fhead { display: none; }
  .fr-work { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .fr-st { grid-column: 2; grid-row: 1 / 3; }
  .fr-go { display: none; }
  .scard b { font-size: 38px; }
  .scard { min-height: 104px; padding: 13px 14px; }
  .sc-ic { width: 32px; height: 32px; right: 10px; top: 10px; }
  .sc-ic svg { width: 17px; height: 17px; }
  .pbar { justify-content: space-between; }
  .pbar .btn { padding: 9px 12px; min-height: 38px; font-size: 14px; }
  .invoice { padding: 20px; } .invoice header { margin: -20px -20px 20px; padding: 18px 20px; flex-direction: column; } .invoice header > div { text-align: left; } .inv-parties { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .scard, .side { transition: none; } .scard:hover { transform: none; } }
/* dark theme */
:root[data-theme=dark] .frow { background: #1F1F1F; }
:root[data-theme=dark] .tone-done { background: #11261A; } :root[data-theme=dark] .tone-work { background: #121C33; } :root[data-theme=dark] .tone-reply { background: #2A2010; } :root[data-theme=dark] .tone-wait { background: #1E2127; } :root[data-theme=dark] .tone-void { background: #1A1A1A; }
:root[data-theme=dark] .fhead { background: none; }
:root[data-theme=dark] .balpill { background: #000; }
:root[data-theme=dark] .back, :root[data-theme=dark] .pills button, :root[data-theme=dark] .sitem, :root[data-theme=dark] .picban { background: #1F1F1F; color: var(--ink); }
:root[data-theme=dark] .pills button.on { background: var(--red); color: #fff; }
:root[data-theme=dark] .fbox-row.hot { background: #11261A; }
:root[data-theme=dark] .btiles a, :root[data-theme=dark] .ecu-list.light li, :root[data-theme=dark] .simg { background: #1F1F1F; }
.fr-car .make-badge { font-size: 9px; letter-spacing: 0; }
.fr-car .regplate { flex: none; }
label:has(> .file-input), .drop, .attach { position: relative; overflow: hidden; }
.panel.dark .optrow { background: none; border: 0; padding: 0; margin: 8px 0 0; }
.tl-file > div { min-width: 0; overflow-wrap: anywhere; }
.btiles a .tiny { white-space: nowrap; }
.dtiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fgrid > * { min-width: 0; }
@media (max-width: 860px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fr-car { grid-column: 1 / -1; }
  .fr-work { grid-row: 2; grid-column: 1; }
  .fr-st { grid-row: 2; grid-column: 2; }
  .sc-ic { display: none; }
}
/* no red text: links and highlights in ink (white on dark panels) */
a, .linkbtn { color: var(--ink); text-decoration-color: rgba(0,0,0,.35); }
a:hover, .linkbtn:hover { text-decoration-color: currentColor; }
.att-go, .sitem b { color: var(--ink); }
.ecu h3 { color: #fff !important; }
.bottomnav a.on { color: var(--ink); font-weight: 700; }
.panel.dark a, .info:not(.light) a, .site-foot a, .side a { color: #fff; }
:root[data-theme=dark] a, :root[data-theme=dark] .linkbtn { text-decoration-color: rgba(255,255,255,.4); }
:root[data-theme=dark] a, :root[data-theme=dark] .linkbtn { color: var(--ink); }
.st-quoted, .st-awaiting_customer { background: #FFEDD5; color: #9A3412; }
.tag.unplug { background: #FFEDD5; color: #9A3412; }
.codeform { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.codeform .field { margin: 0; }
.dtc-b { min-width: 0; }
.dtc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ftag { font-size: 12px; font-weight: 600; background: var(--alloy); color: var(--ink-2); padding: 2px 8px; border-radius: 99px; }
.ftag.b { background: var(--blue-wash); color: #1E3A8A; }
.ftag.ok { background: var(--green-wash); color: var(--green); }
.code-help { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.missrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.missrow > span:first-child { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 760px) { .codeform, .code-help { grid-template-columns: 1fr; } }
:root[data-theme=dark] .ftag { background: #262626; }
.ac { position: relative; }
.aclist { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); z-index: 30; max-height: 320px; overflow-y: auto; }
.aclist li { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.aclist li b { font-family: ui-monospace, monospace; flex: none; min-width: 70px; }
.aclist li span { flex: 1; min-width: 0; color: var(--ink-2); }
.aclist li em { font-style: normal; font-size: 11.5px; font-weight: 600; background: var(--alloy); padding: 1px 7px; border-radius: 99px; color: var(--ink-2); flex: none; }
.aclist li.on, .aclist li:hover { background: var(--alloy); }
.aclist li.on b, .aclist li:hover b { color: var(--ink); }
/* site admin */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--rule-soft); border-radius: var(--r-panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.kpi b { font: 700 32px/1.1 var(--display); }
.statsvg { width: 100%; height: auto; }
.statsvg rect { fill: var(--ink); }
.statsvg rect:hover { fill: var(--red); }
.statsvg .gl { stroke: var(--rule-soft); }
.statsvg .ax { fill: var(--ink-3); font: 11px var(--body); }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 8px; align-items: center; margin: 7px 0; font-size: 14px; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar i { display: block; height: 10px; border-radius: 5px; background: var(--ink); }
.hbar b { text-align: right; }
.qlinks { display: flex; flex-direction: column; gap: 6px; }
.faqrow { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.faqrow input { font-weight: 600; }
.faqrow textarea { min-height: 64px; }
.faqrow .linkbtn { justify-self: start; }
.panel.paused { border: 2px solid var(--amber); background: var(--amber-wash); }
.savebar { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.actlog { display: flex; flex-direction: column; }
.act { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.act > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.act-t { color: var(--ink-3); font-size: 13px; }
.act.warn b { color: #9A3412; }
.about { max-width: 70ch; color: var(--ink-2); white-space: pre-line; }
.nav-label { margin-top: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .act { grid-template-columns: 1fr; gap: 2px; } }
:root[data-theme=dark] .statsvg rect { fill: #E5E5E5; } :root[data-theme=dark] .hbar i { background: #E5E5E5; }
.side-compact .nav a { padding: 4px 8px; font-size: 14px; }
.side-compact .tile-ic { width: 27px; height: 27px; border-radius: 7px; }
.side-compact .tile-ic svg { width: 15px !important; height: 15px !important; }
.side-compact .nav-label { margin-top: 10px; }
.mtable td { vertical-align: top; }
.mtable tr.mok td { background: #E3F5EA; }
.mk { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.mk.y { background: #16A34A; } .mk.n { background: #A3A3A3; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; }
.pct { font: 700 18px var(--display); } .pct.y { color: #166534; } .pct.n { color: var(--ink-3); }
:root[data-theme=dark] .mtable tr.mok td { background: #11261A; }
.mtable td.num:last-child { white-space: nowrap; }
