/* AS Performance Inventory Control v3.6 — theme matched to the AS Performance mockups */
:root {
  --bg: #050d12;
  --bg2: #071219;
  --panel: #0a171e;
  --panel2: #0d1d26;
  --line: #16303a;
  --line2: #1f3d49;
  --cyan: #1cc0ec;
  --cyan2: #0e93c4;
  --text: #eef5f8;
  --muted: #8ea6b1;
  --muted2: #6d8792;
  --green: #22d98a;
  --amber: #f6b829;
  --red: #ff4655;
  --blue: #2f9cff;
  --side: 256px;
  --r: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: var(--font); font-size: 14px; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.3px; margin: 0; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
svg.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* brand block */
.brandBlock { display: grid; justify-items: start; gap: 8px; }
.logoImg { display: block; width: 100%; max-width: 230px; height: auto; }
.tagline { letter-spacing: 4.2px; font-size: 10px; white-space: nowrap; color: #b9cad1; padding-left: 4px; }

/* buttons */
.primary {
  border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 700; color: #fff; letter-spacing: .3px;
  background: linear-gradient(135deg, #22c8f2, var(--cyan2)); box-shadow: 0 6px 18px #0ea5d433;
}
.primary.big { padding: 14px; font-size: 16px; }
.primary:disabled, .btnIn:disabled, .btnOut:disabled { opacity: .55; cursor: wait; }
.ghost { border: 1px solid var(--line2); background: var(--panel); border-radius: 8px; padding: 10px 16px; color: #dbe7ec; font-weight: 600; }
.ghost.small { padding: 6px 11px; font-size: 13px; }
.iconBtn { border: 0; background: none; color: #dbe7ec; width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; border-radius: 8px; }
.linkBtn { background: none; border: 0; color: var(--cyan); padding: 0; text-align: left; text-decoration: underline; font-size: 13px; }

/* forms */
label { display: grid; gap: 7px; color: #a9bcc4; font-size: 12px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted2); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 8px; background: #061118; color: #fff;
  padding: 11px 13px; outline: none; font-size: 16px;
}
select { cursor: pointer; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cad1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
option { background: #0a171e; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px #1cc0ec22; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #dce8ec; }
label.check input { width: 20px; height: 20px; accent-color: var(--cyan); }
.formMsg { min-height: 1em; margin: 0; color: #a9bcc4; font-size: 14px; }
.formMsg.error { color: #ff7681; }
.formMsg.success { color: var(--green); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.loginHero { position: absolute; inset: 0; background: linear-gradient(180deg, #050d12cc, #050d12 70%), url('img/hero.jpg') center top / cover no-repeat; }
.loginCard {
  position: relative; width: min(420px, 100%); display: grid; gap: 16px; padding: 30px 28px;
  border: 1px solid var(--line2); border-radius: 16px; background: #0a171ee8; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px #000c;
}
.loginCard h1 { font-size: 26px; }
.loginCard .sub { margin: 6px 0 0; color: var(--muted); }
.loginFoot { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- shell */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; padding: 26px 0 22px;
  background: linear-gradient(180deg, #08141b, #050d12); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto;
}
.side .brandBlock { padding: 0 22px 22px; }
#nav { display: grid; gap: 2px; margin-top: 6px; }
#nav button {
  border: 0; background: transparent; color: #fff; padding: 13px 22px; text-align: left; position: relative;
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center;
}
#nav button .ic { font-size: 26px; stroke-width: 1.6; }
#nav b { display: block; font-size: 15px; font-weight: 700; }
#nav small { display: block; color: #a8bcc5; font-size: 12px; margin-top: 3px; line-height: 1.3; }
#nav button:hover { background: #0d1f28; }
#nav button.active { background: linear-gradient(90deg, #0f4a62, #0b2a36 70%, transparent); }
#nav button.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cyan); }
#nav button.soon { opacity: .55; cursor: default; }
#nav .soonTag { font-size: 9px; letter-spacing: 1px; border: 1px solid var(--line2); border-radius: 4px; padding: 1px 5px; margin-left: 6px; color: var(--muted); vertical-align: 2px; }
.sideFoot { margin-top: auto; padding: 24px 28px 0; display: grid; gap: 8px; letter-spacing: 6px; font-size: 11px; color: #b9cad1; }
.sideFoot small { letter-spacing: 0; margin-top: 18px; color: var(--muted); }

.page { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: none; }
.hero { position: relative; height: 232px; overflow: hidden; border-bottom: 1px solid var(--line); }
.heroImg { position: absolute; inset: 0; background: url('img/hero-e92-e46.jpg') center 55% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #050d12 0, #050d1200 22%, #050d1200 70%, #050d12 100%), linear-gradient(0deg, #050d12f0 0, #050d1200 45%); }
.hashtag { position: absolute; right: 30px; top: 22px; z-index: 2; font-size: 24px; font-weight: 800; font-style: italic; letter-spacing: .5px; }
.hashtag::first-letter { color: var(--cyan); }
.crumbs { position: absolute; left: 30px; bottom: 18px; z-index: 2; font-size: 11px; letter-spacing: 3px; color: #d5e2e7; }
.statusbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 10px 26px;
  border-bottom: 1px solid var(--line); background: #071118;
}
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.live.down { color: var(--red); } .live.down .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.liveSub { color: #b9cad1; font-size: 13px; padding-right: 16px; border-right: 1px solid var(--line2); }
.userMenu { position: relative; }
.userBtn { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 4px; font-size: 14px; }
.userBtn .ic { font-size: 26px; }
.userBtn .chev .ic { font-size: 16px; }
.userPop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; padding: 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); box-shadow: 0 20px 50px #000b; display: grid; gap: 8px; }
.who { padding: 6px 8px; }
.who b, .who small { display: block; }
.who small { color: var(--muted); margin-top: 3px; text-transform: capitalize; }
.menuItem { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 9px 8px; border-radius: 8px; text-align: left; }
.menuItem:hover { background: #12303c; }
main { width: 100%; max-width: 1320px; padding: 22px 26px 24px; flex: 1; }
footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 26px 22px; border-top: 1px solid var(--line);
  color: #b9cad1; letter-spacing: 3px; font-size: 11px;
}
footer b { font-weight: 500; letter-spacing: 4px; }

.panel { border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), #08141a); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.panelHead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panelHead h2 { margin: 0; }
.panelHead small { color: var(--muted); }
.viewHead { margin: 4px 0 18px; }
.viewHead p { margin: 6px 0 0; color: var(--muted); }
.phoneOnly { display: none !important; }

/* ------------------------------------------------------------ dashboard */
.dashHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.titleBlock p { margin: 4px 0 0; color: #b9cad1; font-size: 16px; }
.filters { display: flex; gap: 10px; align-items: center; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.filters select { width: auto; min-width: 132px; height: 44px; font-size: 14px; padding-top: 0; padding-bottom: 0; background-color: var(--panel); }
.filters .ghost { height: 44px; padding: 0 22px; }
.search {
  display: grid; grid-template-columns: 42px 1fr 36px; align-items: center; height: 44px; flex: 1 1 340px; max-width: 460px;
  border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: #fff;
}
.search > span { display: grid; place-items: center; font-size: 20px; color: #dce8ec; }
.search input { border: 0; background: transparent; height: 100%; padding: 0; box-shadow: none; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { height: 100%; border: 0; background: transparent; color: var(--muted); font-size: 20px; }

/* product line tabs (Springs / Lowering Links / Wheel Spacers) */
.lineTabs { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.lineTabs::-webkit-scrollbar { display: none; }
.lineTab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: #dbe7ec; font-weight: 600; white-space: nowrap; }
.lineTab small { font-size: 12px; color: var(--muted); background: var(--bg2); border-radius: 999px; padding: 2px 8px; }
.lineTab:hover { border-color: var(--cyan2); }
.lineTab.on { background: var(--cyan); border-color: var(--cyan); color: #00151d; }
.lineTab.on small { background: rgba(0,0,0,.18); color: #00151d; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.tile {
  display: flex; align-items: center; gap: 16px; padding: 16px; text-align: left; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel), #08141a);
}
button.tile:hover { border-color: var(--line2); }
.tile.active { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.tileIcon { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; flex: none; }
.tileIcon .ic { stroke-width: 2; }
.tile small { display: block; font-size: 12px; letter-spacing: .6px; color: #c7d6dc; text-transform: uppercase; }
.tile b { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; }
.t-cyan .tileIcon { background: #0e4a63; color: #3fd0ff; } .t-cyan b { color: #fff; }
.t-green .tileIcon { background: #0c4a35; color: var(--green); } .t-green b { color: #fff; }
.t-amber .tileIcon { background: #5a4410; color: var(--amber); } .t-amber b { color: var(--amber); }
.t-red .tileIcon { background: #5a1820; color: var(--red); } .t-red b { color: var(--red); }
.t-blue .tileIcon { background: #0f3560; color: var(--blue); } .t-blue b { color: var(--blue); }

/* brand cards */
.brandsPanel { margin-bottom: 16px; }
.brandRow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.brandCard {
  position: relative; height: 128px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: #fff;
  text-align: left; padding: 0; background: #081218;
}
.brandCard .bImg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .3s; }
.brandCard .bImg.placeholder { background: radial-gradient(ellipse at 80% 30%, #12394a 0, #0a1a22 55%, #061016); }
.brandCard .bImg.placeholder::after { content: ''; position: absolute; right: -6px; top: 10px; width: 92px; height: 108px; background: url('img/spring.jpg') center / cover; opacity: .42; border-radius: 8px; mix-blend-mode: lighten; }
.brandCard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #050d12f2 8%, #050d1288 55%, #050d1222); }
.brandCard:hover .bImg { transform: scale(1.04); }
.brandCard:hover, .brandCard.active { border-color: var(--cyan); }
.brandCard.active { box-shadow: inset 0 0 0 1px var(--cyan); }
.brandCard .bText { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: grid; gap: 4px; }
.brandCard .bName { font-size: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .4px; }
.brandCard.customCard { border-color: var(--cyan2); }
.brandCard.customCard .bImg { background: radial-gradient(ellipse at 80% 20%, #1cc0ec44 0, #0b2230 55%, #061016); }
.brandCard.customCard .cIcon { position: absolute; right: 14px; top: 16px; width: 96px; z-index: 2; opacity: .9; }
.brandCard.customCard .cIcon svg { width: 100%; height: auto; fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.brandCard.customCard .bKits { color: var(--cyan); }
.freightPick { display: grid; gap: 8px; margin: 14px 0 4px; }
.freightPick > b { font-size: 13px; color: #dce8ec; }
.freightPick label.check { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: #061118; }
.freightPick label.check:has(input:checked) { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.freightPick .fAmt { margin-left: auto; font-weight: 800; color: #fff; }
.payBox { margin-top: 14px; border: 1px solid var(--cyan); border-radius: 12px; padding: 16px; background: #0b2230; display: grid; gap: 10px; }
.payBox h3 { margin: 0; font-size: 17px; }
.payNow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.payTag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .4px; border-radius: 99px; padding: 3px 9px; }
.payTag.paid { background: #0c4a35; color: var(--green); }
.payTag.due { background: #5a4410; color: var(--amber); }
.payTag.other { background: #1f3d49; color: #dce8ec; }
.doFilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--cyan2); background: #0b2230; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.brandCard .bMeta { font-size: 12px; color: #c7d6dc; display: flex; gap: 10px; flex-wrap: wrap; }
.brandCard .bMeta .s-low { color: var(--amber); } .brandCard .bMeta .s-out { color: var(--red); }
.brandCard .bKits { color: var(--cyan); font-weight: 700; }

/* inventory table */
.tablePanel { padding: 0; overflow: hidden; }
.tableCrumb { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tableCrumb h3 { margin: 0; font-size: 18px; font-style: italic; text-transform: uppercase; }
.tableCrumb small { color: var(--muted); }
.tableScroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.inv th {
  text-align: left; font-size: 11px; letter-spacing: 1px; font-weight: 600; color: #c7d6dc; text-transform: uppercase;
  padding: 12px 10px; background: #0b1a22; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.inv th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; display: inline-flex; gap: 6px; align-items: center; text-transform: inherit; }
.inv th button .ic { font-size: 13px; opacity: .6; }
.inv th button.sorted { color: var(--cyan); } .inv th button.sorted .ic { opacity: 1; }
.inv td { padding: 6px 10px; height: 44px; border-bottom: 1px solid #10252e; font-size: 13.5px; white-space: nowrap; }
.inv td.c-app { white-space: normal; min-width: 170px; line-height: 1.3; }
.inv tr.invRow { cursor: pointer; }
.inv tr.invRow:hover td { background: #0c2029; }
.inv td.thumb { width: 66px; padding: 0; vertical-align: middle; }
.thumbImg { width: 66px; height: 100%; min-height: 44px; background: #11181c url('img/spring.jpg') center / cover; display: block; }
.inv .pn { color: var(--cyan); font-weight: 700; }
.inv td.num { font-variant-numeric: tabular-nums; }
.inv td.go { width: 36px; color: #dbe7ec; font-size: 18px; }
.st { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.st i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.s-ok { color: var(--green); } .s-low { color: var(--amber); } .s-order { color: var(--blue); } .s-out { color: var(--red); }
.inv tr.groupRow td { background: #08151b; height: 38px; border-bottom: 1px solid var(--line); }
.groupRow .gName { font-weight: 800; font-style: italic; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.groupRow .gMeta { color: var(--muted); margin-left: 10px; font-size: 12px; }
.groupRow button { margin-left: 10px; }
.inv .price { font-weight: 700; }
.inv .muted { color: var(--muted); }
.tableFoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: #c7d6dc; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; align-items: center; }
.pager button { min-width: 34px; height: 34px; border-radius: 6px; border: 0; background: none; color: #dbe7ec; }
.pager button.on { background: var(--cyan2); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { color: var(--muted); padding: 34px 12px; text-align: center; white-space: normal; }

.bottomPanels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quickActions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa {
  display: grid; grid-template-columns: 46px 1fr 20px; gap: 14px; align-items: center; text-align: left; padding: 12px 14px;
  border: 1px solid var(--line2); border-radius: 10px; background: #0b1b23; color: #fff;
}
.qa:hover { border-color: var(--cyan); }
.qa .qi { width: 46px; height: 46px; border-radius: 9px; background: #0e2c39; color: var(--cyan); display: grid; place-items: center; font-size: 24px; }
.qa b, .qa small { display: block; }
.qa small { color: #a8bcc5; margin-top: 3px; font-size: 12px; }
.qa .ic.chev { font-size: 18px; color: #dbe7ec; }
.activity { display: grid; }
.actRow { display: grid; grid-template-columns: 34px 120px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #10252e; font-size: 13px; }
.actRow:last-child { border-bottom: 0; }
.actIcon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 17px; background: #0e2c39; }
.a-in { color: var(--green); background: #0c3a2c; } .a-out { color: var(--red); background: #4a1820; } .a-adj { color: var(--cyan); }
.actRow .when { color: var(--muted); white-space: nowrap; }
.actRow .who2 { color: var(--muted); }

/* phone action grid */
.actionGrid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.act {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 10px; min-height: 120px; align-content: center;
  border: 1px solid var(--line2); border-radius: 14px; background: linear-gradient(180deg, #0d1d26, #0a171e); color: #fff;
}
.act .ic { font-size: 34px; stroke-width: 1.6; }
.act b { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.act small { color: #a8bcc5; font-size: 11px; }
.act.hot { background: linear-gradient(160deg, #1aa9d6, #0b5f80); border-color: #4cd6ff; box-shadow: 0 10px 30px #0ea5d455; }
.act.hot small { color: #e3f6fd; }
.act.wide { grid-column: 1 / -1; min-height: 96px; }
.act.soon { opacity: .6; }

/* ----------------------------------------------------------- kit sheet */
.backdrop { position: fixed; inset: 0; background: #000b; z-index: 80; }
.sheet {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto;
  background: var(--bg2); border-left: 1px solid var(--line2); padding: 22px 22px 40px; box-shadow: -30px 0 80px #000c;
}
.sheetClose { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 32px; color: #fff; width: 44px; height: 44px; z-index: 2; }
.sheetTop { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; margin-right: 34px; }
.kitImg { width: 112px; height: 112px; border-radius: 12px; background: #11181c url('img/spring.jpg') center / cover; border: 1px solid var(--line2); }
.pill { display: inline-block; color: var(--cyan); font-weight: 800; font-size: 17px; }
.sheet h2, .scanCard h2 { font-size: 21px; margin: 4px 0 4px; line-height: 1.2; }
.kitMeta { color: #a8bcc5; font-size: 14px; }
.badge { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 700; margin-top: 8px; }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: #08141a; }
.stats div { text-align: center; padding: 12px 6px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; font-weight: 800; }
.stats small { display: block; font-size: 11px; letter-spacing: .6px; color: #c7d6dc; text-transform: uppercase; margin-top: 2px; }
.stats .c-green b { color: var(--green); } .stats .c-blue b, .stats .c-blue small { color: var(--blue); } .stats .c-amber b { color: var(--amber); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.prices div { background: #08141a; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.prices small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.prices b { font-size: 15px; }
.move { display: grid; gap: 12px; margin-bottom: 18px; }
.moveFields { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 10px; }
.moveFields label { font-size: 12px; }
.staffBox { border: 1px solid var(--line2); border-radius: 8px; background: #061118; padding: 11px 13px; font-size: 16px; color: #dce8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moveBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btnIn, .btnOut { height: 58px; border: 0; border-radius: 10px; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .6px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btnIn { background: linear-gradient(135deg, #20c98a, #0f9f6a); }
.btnOut { background: linear-gradient(135deg, #ff4b5a, #e3303f); }
.btnIn .ic, .btnOut .ic { font-size: 22px; stroke-width: 2.6; }
.setRow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sheetSection { margin-bottom: 18px; display: grid; gap: 8px; }
.sheetSection h3 { margin: 0; font-size: 12px; letter-spacing: 2px; color: #a7c3cd; }
dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 14px; }
dt { color: #9db6c0; }
dd { margin: 0; word-break: break-word; }
.fitList { margin: 0; padding-left: 18px; color: #cfe0e6; display: grid; gap: 4px; font-size: 14px; }
.warnBox { border: 1px solid #f6b82955; background: #f6b82912; color: #ffd68a; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* --------------------------------------------------------------- scan */
.scanHead { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.scanLayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.camera { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3.3; border: 1px solid var(--line2); }
.reader { position: absolute; inset: 0; }
.reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.reader > div, .reader canvas, #reader__dashboard, #reader__scan_region img { display: none !important; }
.reader #reader__scan_region { display: block !important; height: 100%; }
.frame { position: absolute; inset: 22% 14%; pointer-events: none; }
.frame i { position: absolute; width: 34px; height: 34px; border: 3px solid #3fd3ff; filter: drop-shadow(0 0 6px #1cc0ec); }
.frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.laser { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 22%; } 50% { top: 78%; } }
.camHint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 13px; color: #e3eef2; text-shadow: 0 1px 4px #000; }
#scanMsg { margin: 10px 2px; }
.manual { display: grid; gap: 10px; }
.manual label { font-size: 15px; color: #fff; font-weight: 700; }
.manualRow { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.manualRow .primary { padding: 0 26px; letter-spacing: 1px; }
.scanCard .sheetTop { margin-right: 0; grid-template-columns: 110px 1fr; }
.scanEmpty { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 40px 18px; }
.scanEmpty .ic { font-size: 48px; color: #3a6170; }
.nextBtn { width: 100%; }

/* forms + tables in other views */
.form { max-width: 1000px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 .wide { grid-column: 1 / -1; }
.formActions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.formActions .formMsg { margin-right: auto; }
.list th, .list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #12323c; vertical-align: middle; font-size: 14px; }
.list th { color: #9db6c0; font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.list td select { padding: 7px 30px 7px 10px; font-size: 13px; min-width: 150px; }
.list tr.clickable { cursor: pointer; }
.list tr.clickable:hover td { background: #0c2029; }
.skeleton { height: 120px; border-radius: 10px; background: linear-gradient(90deg, #0a171e, #10252f, #0a171e); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: #0b2a36; border: 1px solid var(--cyan); color: #fff; border-radius: 10px; padding: 12px 18px;
  box-shadow: 0 20px 50px #000c; max-width: calc(100% - 32px); font-weight: 600;
}
.toast.error { border-color: var(--red); background: #2a0b10; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1360px) {
  .inv th:nth-child(5), .inv td:nth-child(5) { display: none; }
}
@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .tile:nth-child(n+4) { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .bottomPanels { grid-template-columns: 1fr; }
  .scanLayout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --side: 286px; }
  .phoneOnly { display: grid !important; }
  .desktopOnly { display: none !important; }
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 30px 0 80px #000c; }
  .side.open { transform: none; }
  .navScrim { position: fixed; inset: 0; background: #000a; z-index: 45; }
  .page { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40;
    padding: 10px 14px calc(10px) 16px; background: #050d12f2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .topbar .logoImg { width: 190px; }
  .hero { display: none; }
  .statusbar { padding: 8px 16px; justify-content: space-between; }
  .liveSub { border: 0; padding: 0; margin-right: auto; font-size: 12px; }
  .userBtn b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding: 16px 14px 18px; }
  h1 { font-size: 27px; }
  .titleBlock p { font-size: 14px; color: var(--muted); }
  .filters { justify-content: stretch; }
  .search { flex: 1 1 100%; max-width: none; }
  .filters select { flex: 1; min-width: 0; }
  .filters .ghost { padding: 0 14px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles .tile:nth-child(5) { display: none; }
  .tile { display: block; padding: 14px; border-radius: 12px; }
  .tile .tileIcon { display: none; }
  .tile b { font-size: 30px; margin: 0 0 4px; }
  .tile small { font-size: 12px; color: #e3eef2; }
  .t-cyan b { color: #3fd0ff !important; } .t-green b { color: var(--green) !important; }
  .tile.t-amber b { color: #ff9a3c; }
  .tiles .tile { display: flex; flex-direction: column-reverse; align-items: flex-start; }
  .brandRow { grid-auto-columns: 46%; margin: 0 -14px; padding: 0 14px 6px; }
  .brandCard { height: 112px; }
  .brandCard .bName { font-size: 17px; }
  .bottomPanels .panel:first-child { display: none; }
  /* table becomes stacked cards */
  .inv thead { display: none; }
  .inv, .inv tbody { display: block; }
  .inv tr.invRow { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto auto; column-gap: 12px; padding: 10px 12px; border-bottom: 1px solid #10252e; }
  .inv tr.invRow td { display: none; height: auto; padding: 0; border: 0; white-space: normal; }
  .inv tr.invRow td.thumb { display: block; grid-row: 1 / 4; width: 64px; }
  .inv tr.invRow td.thumb .thumbImg { width: 64px; height: 64px; border-radius: 8px; }
  .inv tr.invRow td.c-pn { display: block; grid-column: 2; }
  .inv tr.invRow td.c-app { display: block; grid-column: 2; font-weight: 700; }
  .inv tr.invRow td.c-ch { display: block; grid-column: 2; color: var(--muted); font-size: 13px; }
  .inv tr.invRow td.c-stock { display: block; grid-column: 3; grid-row: 1; text-align: right; font-size: 20px; font-weight: 800; }
  .inv tr.invRow td.c-status { display: block; grid-column: 3; grid-row: 2 / 4; text-align: right; font-size: 12px; align-self: end; }
  .inv tr.invRow td.c-price { display: block; grid-column: 3; grid-row: 2; text-align: right; }
  .inv tr.groupRow { display: block; }
  .inv tr.groupRow td { display: block; height: auto; padding: 10px 12px; }
  .tableFoot { padding: 12px; }
  .actRow { grid-template-columns: 32px 1fr auto; }
  .actRow .what { grid-column: 2; }
  .actRow .pnA { grid-column: 2; }
  .grid2 { grid-template-columns: 1fr; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .moveFields { grid-template-columns: 90px 1fr; }
  .moveFields .staffWrap { grid-column: 1 / -1; }
  .sheet { top: auto; max-height: 92vh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; padding: 18px 16px calc(30px + env(safe-area-inset-bottom)); }
  .sheetTop { grid-template-columns: 84px 1fr; }
  .kitImg { width: 84px; height: 84px; }
  .scanHead h1 { font-size: 22px; flex: 1; text-align: center; margin-right: 42px; }
  footer { display: none; }
}

/* purchase orders */
.poHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.poHead h2 { margin: 0; }
.poHint { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.poTable td input { width: 90px; padding: 8px 10px; font-size: 15px; }
.poTable tr.need td:first-child { box-shadow: inset 3px 0 var(--amber); }
.poMeta { margin-top: 16px; }
.muted { color: var(--muted); }

/* edit mode */
.sheetTools { display: flex; gap: 8px; margin: 14px 0 4px; }
.editForm { display: grid; gap: 14px; margin-top: 14px; }
.editForm .grid2 { gap: 12px; }
.editForm h3 { margin: 6px 0 0; font-size: 12px; letter-spacing: 2px; color: #a7c3cd; }
.fitRow { display: grid; grid-template-columns: 1fr 1fr 0.8fr 0.8fr 1.4fr 96px 36px; gap: 6px; align-items: center; }
.fitRow input, .fitRow select { padding: 8px 9px; font-size: 13px; }
.fitRow .del { border: 1px solid var(--line2); background: none; color: var(--red); border-radius: 8px; height: 36px; }
.fitHead { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.editActions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; position: sticky; bottom: -40px; background: var(--bg2); padding: 12px 0; }
.editActions .formMsg { margin-right: auto; }
@media (max-width: 900px) {
  .fitRow { grid-template-columns: 1fr 1fr; }
  .fitRow .fitNotes { grid-column: 1 / -1; }
  .fitHead { display: none; }
}

/* dealer ordering */
.cartTotals { display: grid; justify-content: end; gap: 6px; margin-top: 14px; font-size: 14px; }
.cartTotals div { display: grid; grid-template-columns: 180px 120px; text-align: right; }
.cartTotals .grand { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line2); padding-top: 8px; }
.cartTotals .grand span:last-child { color: var(--cyan); }
.orderBox { border: 1px solid var(--line2); border-radius: 10px; background: #08141a; padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.orderTop { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.orderTop b.no { font-size: 16px; color: var(--cyan); }
.orderTop .total { margin-left: auto; font-weight: 800; font-size: 16px; }
.orderTop select { width: auto; padding: 7px 30px 7px 10px; font-size: 13px; }
.orderBox table td, .orderBox table th { padding: 6px 8px; font-size: 13px; }
.airTag { display: inline-block; font-size: 11px; font-weight: 700; color: #ffd68a; border: 1px solid #f6b82966; border-radius: 99px; padding: 2px 8px; margin-left: 6px; }
.orderBlock { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: #041219; margin-bottom: 18px; }
.orderBlock h3 { margin: 0; font-size: 12px; letter-spacing: 2px; color: #a7c3cd; }
.orderBlock .qtyRow { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: end; }
.cartBadge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--cyan2); color: #fff; font-size: 11px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 900px) { .cartTotals div { grid-template-columns: 1fr 110px; } .cartTotals { justify-content: stretch; } }

/* dealer application */
.loginFoot a, .applyIntro a { color: var(--cyan); }
.apply { min-height: 100vh; position: relative; padding: 40px 20px; }
.applyWrap { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.applyIntro { display: grid; gap: 18px; padding-top: 10px; }
.applyIntro h1 { font-size: 36px; line-height: 1.1; }
.applyIntro .sub { color: #c7d6dc; font-size: 16px; margin: 0; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { border-left: 3px solid var(--cyan); padding: 4px 0 4px 14px; display: grid; gap: 3px; }
.perks span { color: var(--muted); font-size: 14px; }
.applyCard { width: 100%; }
.applyCard h2 { margin: 0 0 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* B2B credit application + guarantee */
.applyWrap--form { grid-template-columns: 1fr; max-width: 880px; gap: 24px; }
.applyWrap--form .applyIntro h1 { font-size: 32px; }
.applyChoice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.applyChoice > div { border: 1px solid var(--line2); border-radius: 12px; background: #0a171ecc; padding: 14px 16px; display: grid; gap: 4px; }
.applyChoice span { color: var(--muted); font-size: 14px; }
.applyChoice a { color: var(--cyan); font-weight: 600; }
.creditForm { width: 100%; gap: 22px; padding: 28px; }
.creditForm fieldset { border: 0; margin: 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.creditForm fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.creditForm legend { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: #fff; padding: 0; margin-bottom: 14px; }
.creditForm legend > span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: #00151d; display: grid; place-items: center; font-size: 13px; flex: none; }
.creditForm .hint { margin: 0; color: var(--muted); font-size: 13px; }
.creditForm .hint a { color: var(--cyan); }
.repeatList { display: grid; gap: 12px; }
.repeatItem { border: 1px solid var(--line2); border-radius: 10px; padding: 14px; background: #061118; display: grid; gap: 10px; }
.repeatItem .rhead { display: flex; justify-content: space-between; align-items: center; color: #dce8ec; font-weight: 700; font-size: 13px; }
.termsBox { max-height: 320px; overflow-y: auto; border: 1px solid var(--line2); border-radius: 10px; background: #f7f9fa; color: #111; padding: 16px 18px; font-size: 13.5px; line-height: 1.5; }
.termsBox h2 { font-size: 14px; margin: 14px 0 4px; color: #111; }
.termsBox p { margin: 0 0 6px; }
.termsBox .cl { display: grid; grid-template-columns: 38px 1fr; gap: 4px; }
.termsBox .cl span:first-child { color: #555; font-weight: 700; }
.termsBox .warn { border: 2px solid #b00; padding: 8px 10px; font-weight: 700; }
.acks { display: grid; gap: 10px; }
.acks label.check, label.check.ackStrong { align-items: flex-start; font-weight: 500; line-height: 1.4; }
.acks label.check input, label.check.ackStrong input { margin-top: 1px; flex: none; }
.acks label.check.locked { opacity: .55; }
.sigWrap { display: grid; gap: 6px; }
.sigHead { display: flex; justify-content: space-between; color: #a9bcc4; font-size: 12px; font-weight: 600; }
.sigPad { width: 100%; height: 130px; background: #fff; border-radius: 10px; border: 2px dashed #8ea6b1; touch-action: none; cursor: crosshair; }
.sigPad.signed { border-style: solid; border-color: var(--cyan); }
.recordBox { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #c7d6dc; display: grid; gap: 4px; word-break: break-all; }
.liability { border: 2px solid var(--red); border-radius: 10px; padding: 12px 14px; color: #ffd6da; background: #2a0b10; display: grid; gap: 4px; font-size: 14px; }
.liability b { color: #fff; letter-spacing: .5px; }
.appCard details { border-top: 1px solid var(--line); padding-top: 8px; }
.appCard summary { cursor: pointer; color: var(--cyan); font-size: 13px; font-weight: 600; }
.appCard .sigImg { background: #fff; border-radius: 6px; max-width: 260px; height: auto; display: block; }
.appCard pre { white-space: pre-wrap; margin: 0; font: inherit; }
.gtLink { display: flex; gap: 8px; align-items: center; }
.gtLink input { font-size: 12px; padding: 8px 10px; }
@media (max-width: 700px) {
  .applyChoice { grid-template-columns: 1fr; }
  .creditForm { padding: 20px 16px; }
  .applyWrap--form .applyIntro h1 { font-size: 26px; }
}
.appCard { border: 1px solid var(--line2); border-radius: 10px; background: #08141a; padding: 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.appCard .top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.appCard .top b { font-size: 16px; }
.appCard .actions { display: flex; gap: 8px; justify-content: flex-end; }
.appCard dl { grid-template-columns: 130px 1fr; font-size: 13px; }
.navBadge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--amber); color: #111; font-size: 11px; margin-left: 6px; vertical-align: 1px; font-weight: 800; }
@media (max-width: 900px) {
  .applyWrap { grid-template-columns: 1fr; gap: 22px; }
  .applyIntro h1 { font-size: 28px; }
  .apply { padding: 24px 14px; }
}

/* custom-spec lowering links (dealer portal) */
.customPanel { margin-bottom: 16px; padding: 20px; display: grid; gap: 14px; border-color: var(--cyan2); background: linear-gradient(135deg, #0b2230, var(--panel)); }
.customPanel h2 { margin: 0; }
.customPanel .sub { margin: 0; color: var(--muted); }
.customGrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.customForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customForm .wide { grid-column: 1 / -1; }
.linkDiagram { background: #061118; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; }
.linkDiagram svg { width: 100%; height: auto; display: block; }
.customPrice { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.customPrice b { font-size: 22px; color: #fff; }
.customActions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btoTag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #00151d; background: var(--cyan); border-radius: 99px; padding: 2px 8px; }
@media (max-width: 900px) { .customGrid { grid-template-columns: 1fr; } }

.axles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.customForm fieldset.axle { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; background: #061118; }
.customForm fieldset.axle legend { padding: 0 6px; font-weight: 800; color: var(--cyan); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 560px) { .axles { grid-template-columns: 1fr; } }

.vehGrid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; }
.vehGrid label:last-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .vehGrid { grid-template-columns: 1fr 1fr; } .vehGrid label:nth-child(3) { grid-column: 1 / -1; } }

.adjRow { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 18px; color: #a9bcc4; font-size: 12px; font-weight: 600; }
.adjRow > span { grid-column: 1 / -1; }
.adjRow label.check { font-size: 14px; gap: 6px; }
.nonRefund { border: 1px solid #b8860b; background: #2a2108; color: #ffe7a6; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.nonRefund b { color: #ffd166; }
.nonRefund label.check { color: #fff; font-weight: 600; align-items: flex-start; }

/* ---- wheel spacers price list ---- */
.spFilters { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.6fr; gap: 12px; }
.spFilters label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8aa); display: flex; flex-direction: column; gap: 6px; }
.spKit { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.spKit > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.spKit > summary::-webkit-details-marker { display: none; }
.spKit[open] > summary { border-bottom: 1px solid var(--line); }
.spThumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #0b1a20; }
.spTitle { font-weight: 700; line-height: 1.3; }
.spTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.spTag { font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted, #8aa); }
.spFrom { text-align: right; white-space: nowrap; }
.spFrom b { display: block; font-size: 18px; color: var(--cyan); }
.spFrom small { color: var(--muted, #8aa); }
.spVars { padding: 6px 14px 14px; }
.spVars input[type=number] { width: 70px; padding: 6px 8px; font-size: 14px; }
.spPoa { color: var(--muted, #8aa); font-size: 13px; }
@media (max-width: 900px) { .spFilters { grid-template-columns: 1fr 1fr; } .spSearch { grid-column: 1 / -1; } .spKit > summary { grid-template-columns: 48px 1fr; } .spThumb { width: 48px; height: 48px; } .spFrom { grid-column: 2; text-align: left; } }
.spEdit { display: inline-flex; gap: 6px; align-items: center; }
.spEdit input { width: 96px; padding: 6px 8px; font-size: 14px; }
.spBulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px 0; }
.spBulk input { width: 140px; padding: 6px 8px; font-size: 14px; }
.spHeadRow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.payRow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* order progress (from the order board) */
.stageBox { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line, #24343c); border-radius: 10px; }
.stageHead { font-size: 13px; margin-bottom: 8px; }
.stageBar { list-style: none; display: flex; gap: 4px; margin: 0 0 6px; padding: 0; }
.stageBar li { flex: 1; min-width: 0; font-size: 11px; color: #8aa0a8; }
.stageBar li i { display: block; height: 5px; border-radius: 3px; background: #24343c; margin-bottom: 5px; }
.stageBar li.done i { background: var(--green, #2fd38a); }
.stageBar li.now i { background: var(--cyan, #22c3e6); }
.stageBar li.now { color: inherit; font-weight: 700; }
.stageBar li.warn i { background: var(--amber, #f2b233); }
.stageBar li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stageNote.cancelled { margin-top: 10px; color: var(--red, #ff6b6b); font-weight: 700; font-size: 13px; }
.stageBox .back { color: var(--amber, #f2b233); }
@media (max-width: 600px) { .stageBar li span { white-space: normal; font-size: 10px; } }
.spStock { color: var(--green, #2fd38a); font-weight: 700; white-space: nowrap; }

/* ---- welcome dashboard ---- */
#view-dashboard.homeMode > :not(#home):not(#actionGrid):not(#tiles) { display: none !important; }
.home { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.homeHero { position: relative; min-height: 150px; border-radius: var(--r, 14px); overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.homeHeroImg { position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, #0f3a4a 0%, #0a1d25 45%, #071319 100%); }
.homeHeroText { position: relative; padding: 28px 30px; max-width: 640px; }
.homeKicker { letter-spacing: .22em; font-size: 11px; color: var(--cyan); font-weight: 700; }
.homeHeroText h1 { margin: 8px 0 6px; font-size: 34px; line-height: 1.1; }
.homeHeroText p { margin: 0; color: #c7d6dc; }
.homeAbout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.homeAbout h2 { margin: 0 0 8px; font-size: 18px; }
.homeAbout p { margin: 0; color: #b9c9cf; line-height: 1.6; }
.homeAboutTag { font-weight: 800; font-style: italic; font-size: 22px; color: var(--cyan); text-align: right; white-space: nowrap; }
.homeAboutTag small { display: block; font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--muted, #8aa); margin-top: 6px; text-transform: uppercase; }
.homeCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.homeCard { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r, 14px); border: 1px solid var(--line); background: var(--panel); color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.homeCard:hover { border-color: var(--cyan2, #22c3e6); transform: translateY(-2px); }
.homeCard .hcIcon svg { width: 30px; height: 30px; stroke: var(--cyan); }
.homeCard b { font-size: 18px; }
.homeCard p { margin: 0; color: #b9c9cf; font-size: 14px; line-height: 1.5; flex: 1; }
.homeCard .hcMeta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted, #8aa); }
.homeCard .hcGo { color: var(--cyan); font-weight: 700; }
.homeGrid { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.homeGrid h2 { margin: 0 0 12px; font-size: 16px; }
.homeStat { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.homeStat:last-child { border-bottom: 0; }
.homeStat b { font-size: 22px; color: var(--cyan); }
.homeOrder { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.homeOrder:last-of-type { border-bottom: 0; }
.homeOrder .kitMeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.homeHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  .homeCards, .homeGrid, .homeAbout { grid-template-columns: 1fr; }
  .homeAboutTag { text-align: left; }
  .homeHeroText { padding: 20px; } .homeHeroText h1 { font-size: 26px; }
  .homeOrder { grid-template-columns: auto 1fr auto; } .homeOrder .hoTotal { display: none; }
}
