/* ACP4U Parts (web) — navy / orange, same look as the desktop app */
:root {
  --navy-950: #081627; --navy-900: #0B1F35; --navy-800: #0F2741; --navy-700: #1E3A5F; --navy-600: #2B4C78;
  --navy-200: #C9D4E3; --navy-100: #E3EAF3; --navy-50: #F3F6FA;
  --orange: #F57C1F; --orange-600: #E06A10; --orange-100: #FFF1E6; --orange-50: #FFF8F1;
  --text: #1F2937; --muted: #64748B; --line: #DCE3EC; --card: #FFFFFF; --bg: #EEF2F7;
  --ok: #15803D; --ok-bg: #DCFCE7; --danger: #DC2626; --danger-bg: #FDECEC; --warn: #B45309; --warn-bg: #FEF3C7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 39, 65, .06), 0 10px 30px rgba(15, 39, 65, .07);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 2px 0 0; color: var(--navy-800); line-height: 1.3; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--navy-800); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2::before { content: ""; width: 5px; height: 18px; border-radius: 4px; background: var(--orange); flex-shrink: 0; }
code { background: var(--navy-50); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; color: var(--navy-800); }
.mono { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; letter-spacing: .3px; }
.upper { text-transform: uppercase; }
.inline { display: inline; margin: 0; }
.plain { margin: 0; padding-left: 18px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; color: #fff; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); box-shadow: 0 2px 14px rgba(8, 22, 39, .28); }
.topbar::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--orange), #FFB066 50%, var(--orange)); }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brand-name { font-weight: 700; font-size: 16px; }
.logo { display: inline-block; font-weight: 900; font-size: 20px; letter-spacing: .5px; background: #fff; color: var(--navy-800); border-radius: 11px; padding: 1px 11px; line-height: 1.45; box-shadow: inset 0 -3px 0 var(--orange); }
.logo span { color: var(--orange); }
.logo.big { font-size: 28px; padding: 3px 16px; background: var(--navy-800); color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; gap: 6px; color: #D6E2F0; padding: 7px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
.nav-gap { flex: 1; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; padding: 6px 12px; border-radius: 10px; font-size: 13px; }
.tbtn:hover { background: rgba(255, 255, 255, .15); }
.menu-btn { display: none; margin-left: auto; }

/* ---------- layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 20px; }
.wrap.narrow { max-width: 860px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 4px 0 26px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #E6ECF3; margin-bottom: 20px; }
.card.pad, .pad { padding: 18px 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head .sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pill { display: inline-block; white-space: nowrap; background: var(--navy-100); color: var(--navy-700); font-weight: 700; font-size: 11.5px; border-radius: 999px; padding: 1px 10px; margin: 1px 2px 1px 0; vertical-align: middle; }
.pill.owner { background: var(--orange-100); color: var(--orange-600); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
h1 .pill { font-size: 12px; }

/* ---------- messages ---------- */
.flash { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; border: 1px solid; }
.flash.ok { background: var(--ok-bg); border-color: #A7E3BC; color: #14532D; }
.flash.err { background: var(--danger-bg); border-color: #F6C4C4; color: #991B1B; }

/* ---------- stats ---------- */
/* the order list's status bar: one tab = one status page; the colour comes from the status (--c) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stats.compact { margin: 6px 0 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: block; background: var(--card); border: 1px solid #E6ECF3; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; color: inherit; text-decoration: none !important; border-top: 4px solid var(--c, var(--navy-200)); }
.stat b { display: block; font-size: 24px; font-weight: 800; color: var(--navy-800); line-height: 1.25; }
.stat span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.stat:hover { border-color: var(--navy-200); border-top-color: var(--c, var(--navy-200)); }
.stat.on { border-color: var(--c, var(--navy-700)); box-shadow: 0 0 0 1.5px var(--c, var(--navy-700)), 0 8px 22px rgba(15, 39, 65, .12); }
.stat.on b { color: var(--c, var(--navy-800)); }
.stat.on span { color: var(--navy-800); font-weight: 700; }
.st-wait { --c: var(--orange); }
.card-head h2 { color: var(--c, var(--navy-800)); }
.card-head h2::before { background: var(--c, var(--orange)); }

/* ---------- toolbar & buttons ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 22px 16px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; max-width: 460px; }
.search svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; border: 1.5px solid var(--line); background: var(--navy-50); border-radius: 11px; padding: 8px 12px 8px 38px; outline: none; }
.search input:focus, .fsel:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(245, 124, 31, .15); }
.fsel { border: 1.5px solid var(--line); background: var(--navy-50); border-radius: 11px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--navy-700); outline: none; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid transparent; border-radius: 12px; padding: 8px 16px; font-weight: 600; font-size: 14px; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(245, 124, 31, .28); }
.btn.primary:hover { background: var(--orange-600); }
.btn.light { background: #fff; border-color: var(--line); color: var(--navy-700); }
.btn.light:hover { border-color: var(--navy-200); background: var(--navy-50); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--navy-50); color: var(--navy-700); }
.btn.danger-light { background: #fff; border-color: #F6C4C4; color: var(--danger); }
.btn.danger-light:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 4px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { background: var(--navy-700); color: #fff; font-weight: 600; font-size: 12.5px; padding: 10px 10px; text-align: left; white-space: nowrap; border-bottom: 3px solid var(--orange); }
.tbl th.ph { background: var(--orange); border-bottom-color: var(--orange-600); }
.tbl td { padding: 10px; vertical-align: middle; border-bottom: 1px solid #E8EDF4; }
.tbl tbody tr:nth-child(even) td { background: #F8FAFD; }
.tbl tbody tr:hover td { background: var(--orange-50); }
.tbl tr.dim td { opacity: .55; }
.tbl td .sub { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tbl td.part, dd.part { color: #9A3412; font-weight: 600; }
.tbl td.part { max-width: 300px; }
.tbl td.part a { color: inherit; }
.tbl td.date { white-space: nowrap; font-size: 12.5px; }
.tbl td.acts { white-space: nowrap; text-align: right; }
.tbl td.perms { max-width: 420px; }
.rn { display: inline-block; min-width: 38px; text-align: center; padding: 3px 8px; border-radius: 9px; background: var(--navy-100); color: var(--navy-800); font-weight: 800; text-decoration: none !important; }
a.rn:hover { background: var(--navy-800); color: #fff; }
.thumbs { display: flex; gap: 5px; flex-wrap: wrap; }
.th { display: block; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; border: 1.5px solid var(--line); background: var(--navy-50); }
.th:hover { border-color: var(--orange); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prices { min-width: 200px; }
.qlist { display: flex; flex-direction: column; gap: 2px; }
.qline { font-size: 12.5px; line-height: 1.5; }
.qline .who { font-weight: 700; color: var(--navy-700); }
.qline .who::after { content: ":"; }
.addq { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--orange-600); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; color: var(--navy-800); font-size: 15px; margin-bottom: 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; }
.hidden-c { font-size: 12.5px; }

/* ---------- tags ---------- */
.ptag { display: inline-block; margin-top: 2px; border-radius: 999px; padding: 0 9px; font-size: 11.5px; font-weight: 700; line-height: 1.8; background: var(--c); color: var(--fg, #fff); vertical-align: middle; }
.sttag { display: inline-block; border-radius: 999px; padding: 1px 11px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
/* in the order of STATUSES: New, In process, Waiting for payment, Waiting for shipping, Shipped, Done, Cancelled */
.st-0 { --c: #1D4ED8; --bg: #DBEAFE; }
.st-1 { --c: #B45309; --bg: #FEF3C7; }
.st-2 { --c: #7C3AED; --bg: #EDE9FE; }
.st-3 { --c: #BE185D; --bg: #FCE7F3; }
.st-4 { --c: #0E7490; --bg: #CFFAFE; }
.st-5 { --c: #15803D; --bg: #DCFCE7; }
.st-6 { --c: #4B5563; --bg: #E5E7EB; }
.st-other { --c: #334155; --bg: #E2E8F0; }
.sttag { color: var(--c); background: var(--bg); }
.stsel { appearance: none; -webkit-appearance: none; border: 1.5px solid transparent; border-radius: 999px; padding: 4px 28px 4px 12px; font-weight: 700; font-size: 12.5px; color: var(--c); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; outline: none; }
.stsel:hover, .stsel:focus-visible { border-color: var(--c); }
.stsel.saving { opacity: .6; }
.stock { display: inline-block; border-radius: 999px; padding: 0 8px; font-size: 11.5px; font-weight: 700; line-height: 1.8; }
.stock-in_stock { background: var(--ok-bg); color: var(--ok); }
.stock-on_order { background: var(--warn-bg); color: var(--warn); }
.stock-out { background: var(--danger-bg); color: var(--danger); }

/* ---------- details ---------- */
.facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.facts dd { margin: 0; word-break: break-word; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); background: var(--navy-50); }
.gallery a:hover { border-color: var(--orange); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.quote.mine { border-color: var(--orange); background: var(--orange-50); }
.quote-head { margin-bottom: 6px; display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.quote-del { margin-left: auto; }
.quote-del .btn.sm { padding: 3px 8px; min-height: 0; }
.quote-grid { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px 10px; font-size: 13.5px; }
.quote-grid span { color: var(--muted); }
.quote-grid .total { color: var(--navy-800); font-size: 15px; }
.note { margin: 8px 0 0; font-size: 13px; color: #334155; background: var(--navy-50); border-radius: 8px; padding: 6px 10px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 22px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide, .form-actions.wide { grid-column: 1 / -1; }
.field.span2 { grid-column: span 2; }
.field > span { font-size: 13px; font-weight: 600; color: var(--navy-700); }
.field > span i { color: var(--orange); font-style: normal; }
.field > span em, .field em { color: var(--muted); font-weight: 400; font-style: normal; font-size: 12px; }
.field input, .field textarea, .field select, .other-input, .auth-card input, .upload-box input[type=file], textarea.code {
  width: 100%; border: 1.5px solid var(--line); background: #FBFCFE; border-radius: 11px; padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .field select:focus, .other-input:focus, .auth-card input:focus {
  border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(245, 124, 31, .15); }
.field.check { flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 10px; }
.field.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.hint { font-size: 12px; color: var(--muted); }
.other-input { margin-top: 8px; max-width: 280px; }
textarea.code { font-family: Consolas, monospace; font-size: 12.5px; margin-bottom: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* radio chips: platform & status */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; color: var(--navy-700); border-radius: 999px; padding: 5px 13px 5px 9px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.chip:hover { border-color: var(--c); }
.chip.on, .chip:has(input:checked) { background: var(--c); border-color: var(--c); color: var(--fg, #fff); box-shadow: 0 3px 10px rgba(15, 39, 65, .15); }
.chip.on i, .chip:has(input:checked) i { background: var(--fg, #fff); }
.chip:has(input:focus-visible) { outline: 3px solid rgba(245, 124, 31, .4); }
.chip.st { --fg: #fff; }

/* photo slots */
.pslots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin-bottom: 22px; }
.pslot { position: relative; aspect-ratio: 1 / 1; min-width: 0; border-radius: 14px; border: 2px dashed var(--navy-200); background: var(--navy-50); overflow: hidden; }
.pslot:hover, .pslot.drag { border-color: var(--orange); background: var(--orange-50); }
.pfile { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.pempty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--navy-600); font-size: 12.5px; font-weight: 600; }
.pslot.filled { border-style: solid; border-color: var(--line); background: #fff; }
.pslot.filled .pview img { display: block; }
.pslot.filled .pempty { display: none; }
.pn { position: absolute; top: 7px; left: 7px; background: var(--navy-800); color: #fff; font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 7px; display: none; place-items: center; z-index: 2; }
.px { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; border: 0; background: rgba(220, 38, 38, .92); color: #fff; font-size: 18px; line-height: 1; display: none; place-items: center; z-index: 2; }
.pslot.filled .pn, .pslot.filled .px { display: grid; }
.pslot.busy::after { content: "Processing…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .8); font-weight: 700; color: var(--navy-700); }

/* admins */
.presets { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.perm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.perm { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; }
.perm:hover { border-color: var(--navy-200); }
.perm:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.perm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.perm span { display: flex; flex-direction: column; }
.perm small { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* import */
.upload-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border: 2px dashed var(--navy-200); border-radius: 16px; padding: 30px 20px; background: var(--navy-50); color: var(--navy-600); }
.upload-box p { margin: 0; color: var(--text); }
.upload-box input[type=file] { max-width: 420px; background: #fff; }

/* installer & sign-in */
.install-page { background: linear-gradient(160deg, var(--bg), #E2E9F2); min-height: 100vh; }
.install-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 20px; }
.install-head h1 { margin: 0; }
.install-head p { margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { border-radius: 10px; padding: 7px 12px; background: var(--navy-50); }
.checks li b { display: inline-block; width: 18px; }
.checks li small { display: block; color: var(--muted); margin-left: 22px; }
.checks li.ok b { color: var(--ok); }
.checks li.bad { background: var(--danger-bg); }
.checks li.bad b { color: var(--danger); }
.checks li.warn { background: var(--warn-bg); }
.checks li.warn b { color: var(--warn); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 20% 10%, #24476F 0, transparent 45%), linear-gradient(140deg, var(--navy-950), var(--navy-700)); }
.auth-card { width: min(380px, 100%); background: #fff; border-radius: 22px; padding: 30px 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); text-align: center; border-top: 5px solid var(--orange); }
.auth-card h1 { font-size: 19px; margin: 16px 0 2px; }
.auth-card p { margin: 0 0 16px; font-size: 13px; }
.auth-card input { margin-bottom: 10px; text-align: left; }
.auth-card .flash { text-align: left; }

/* photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5, 14, 26, .92); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #E2E8F0; font-size: 13.5px; text-align: center; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-x { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* "working…" cover for long actions */
.busy-cover { position: fixed; inset: 0; z-index: 80; background: rgba(8, 22, 39, .55); display: grid; place-items: center; }
.busy-cover div { background: #fff; border-radius: 16px; padding: 22px 28px; font-weight: 700; color: var(--navy-800); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.busy-cover div::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; border: 4px solid var(--navy-100); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.errbox { white-space: pre-wrap; word-break: break-word; background: var(--danger-bg); color: #991B1B; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.place { font-size: 12.5px; color: var(--navy-600); margin-top: 2px; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(8, 22, 39, .3); border-left: 5px solid #22C55E; }
.toast.err { border-left-color: #F87171; background: #3B1219; }

/* ---------- camera, photos with prices, VIN ---------- */
.photo-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.pslots.q3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; margin-bottom: 6px; }
.cam { position: fixed; inset: 0; z-index: 80; background: rgba(5, 14, 26, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.cam video { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 14px; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.cam-hint { margin: 0; color: #CBD5E1; font-size: 13.5px; text-align: center; }
.cam-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qphotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qph { position: relative; width: 78px; height: 78px; }
.qph > a:first-child { display: block; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: var(--navy-50); }
.qph > a:first-child:hover { border-color: var(--orange); }
.qph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qph .dl { position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(15, 39, 65, .88); color: #fff; }
.qph .dl:hover { background: var(--orange); text-decoration: none; }
.qcam { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--navy-600); white-space: nowrap; }
.tbl td.vin { white-space: nowrap; font-size: 13px; }
.fab { display: none; }

/* ---------- notifications ---------- */
.bell { position: relative; order: 3; padding: 6px 9px; }
.bell.on { background: rgba(255, 255, 255, .2); }
.bell-n { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--navy-800); }
.notes { background: #FFFBEB; border: 1.5px solid #FCD9A8; border-left: 5px solid var(--orange); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; box-shadow: var(--shadow); }
.notes-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--orange-600); }
.notes-head b { color: var(--navy-800); }
.notes-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.notes ul, .note-list { list-style: none; margin: 8px 0 0; padding: 0; }
.notes li, .note-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed #F3D9B5; font-size: 13.5px; line-height: 1.5; }
.note-list li { padding: 10px 22px; border-top: 1px solid #EDF1F6; }
.note-list li.unread { background: #FFFBEB; }
.note-list li:not(.unread) { color: var(--muted); }
.note-text { min-width: 0; }
.note-order { font-weight: 800; }
.note-car { color: #9A3412; }
.note-detail { display: inline-block; background: #fff; border: 1px solid #F3D9B5; border-radius: 7px; padding: 0 7px; font-size: 12.5px; color: var(--navy-700); }
.note-text time { font-size: 12px; white-space: nowrap; }
.note-x { flex-shrink: 0; border: 0; background: transparent; color: var(--muted); font-size: 19px; line-height: 1; width: 28px; height: 28px; border-radius: 8px; }
.note-x:hover { background: rgba(15, 39, 65, .08); color: var(--navy-800); }
.notes-more { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; }

/* ---------- reports (daily / monthly) ---------- */
.report-bar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 16px; }
.seg { display: inline-flex; background: var(--navy-50); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg a { padding: 6px 18px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--navy-700); text-decoration: none !important; }
.seg a.on { background: var(--navy-800); color: #fff; box-shadow: 0 2px 8px rgba(15, 39, 65, .2); }
.report-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.report-pick { display: flex; gap: 6px; align-items: center; margin: 0; }
.report-pick input { border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 10px; background: #fff; font-size: 14px; color: var(--navy-800); }
.rcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.rcard { min-width: 0; background: var(--card); border: 1px solid #E6ECF3; border-left: 4px solid var(--navy-200); border-radius: 14px; box-shadow: var(--shadow); padding: 11px 15px; }
.rcard span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.rcard b { display: block; font-size: 21px; font-weight: 800; color: var(--navy-800); line-height: 1.3; overflow-wrap: anywhere; }
.rcard i { display: block; font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }
.rcard.good { border-left-color: var(--ok); }
.rcard.good b { color: var(--ok); }
.rcard.share { border-left-color: #0F766E; }
.rcard.share b { color: #0F766E; }
.rtbl th.num, .rtbl td.num { text-align: right; white-space: nowrap; }
.rtbl tfoot td { font-weight: 800; color: var(--navy-800); background: var(--orange-50); border-top: 2px solid var(--orange); }
.rtbl .part-sub { color: #9A3412; font-weight: 600; }
.bar-cell { position: relative; min-width: 170px; }
.bar { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); height: 22px; max-width: calc(100% - 20px); border-radius: 6px; background: linear-gradient(90deg, #FFD9B8, var(--orange)); opacity: .4; }
.bar-v { position: relative; font-weight: 700; white-space: nowrap; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.rsplit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.rsplit .facts-h { margin-top: 10px; }
.rline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #E8EDF4; font-size: 13.5px; }
.rline b { color: var(--navy-800); }
.center-note { text-align: center; margin: -4px 0 20px; }

/* ---------- Export Excel ---------- */
.head-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.export-form h2 { margin-top: 4px; }
.export-form .form-grid { margin-bottom: 14px; }
.export-count { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; padding: 10px 14px; border-radius: 12px; background: var(--navy-50); border: 1px solid #E4EAF2; }
.export-count b { font-size: 17px; color: var(--navy-800); }
.export-count .btn { margin-left: auto; }
.sheet-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.pick:hover { border-color: var(--navy-200); }
.pick:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.pick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); flex-shrink: 0; }
.pick b { display: block; color: var(--navy-800); }
.pick i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.photo-pick { margin-bottom: 6px; }
.photo-pick .chip { --c: var(--navy-700); }

/* ---------- clocks (top bar strip + Settings → Clocks) ---------- */
.clockbar { max-width: 1320px; margin: 0 auto; padding: 0 20px 8px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.clock { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); font-size: 12.5px; line-height: 1.7; white-space: nowrap; color: #D6E2F0; }
.clock svg { color: var(--orange); flex-shrink: 0; }
.clock b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.clock time { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.clock i { font-style: normal; font-size: 11.5px; color: #9FB3CB; }
.clock-edit { color: #9FB3CB; font-size: 14px; padding: 0 4px; border-radius: 7px; text-decoration: none !important; }
.clock-edit:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.clock-rows { display: grid; gap: 10px; margin-bottom: 8px; }
.clock-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.5fr) 92px; gap: 10px 14px; align-items: end; padding: 10px 12px; border: 1px solid #E6ECF3; border-radius: 12px; background: var(--navy-50); }
.clock-n { width: 28px; height: 28px; margin-bottom: 7px; border-radius: 9px; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-weight: 800; font-size: 13px; }
.clock-now { margin-bottom: 9px; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- customer price, profit and shares ---------- */
.sale-box { border: 1.5px solid #A7E3BC; background: #F3FCF6; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.sale-box .quote-grid { grid-template-columns: 112px minmax(0, 1fr); }
.sale-box p { margin: 6px 0 0; }
.profit { color: var(--ok); }
.loss { color: var(--danger); }
.share-amount { color: #0F766E; font-weight: 800; }
.share-box { border: 1.5px solid #99E0D6; background: #F0FDFA; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.share-box b:first-child { display: block; color: #0F766E; }
.pill.sold { background: var(--ok-bg); color: var(--ok); }
.sold-line { display: block; margin-top: 4px; font-size: 12.5px; color: var(--navy-700); text-decoration: none !important; }
.sold-line b { color: var(--navy-800); }
.sold-line .profit, .sold-line .loss { font-weight: 800; margin-left: 2px; }

/* ---------- all details of a request (order page + list) ---------- */
.facts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.facts-h { margin: 4px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.dtable th, .dtable td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid #EDF1F6; word-break: break-word; }
.dtable tr:last-child th, .dtable tr:last-child td { border-bottom: 0; }
.dtable th { width: 42%; color: var(--muted); font-weight: 600; font-size: 13px; background: var(--navy-50); border-radius: 0; }
.dtable td.part { color: #9A3412; font-weight: 600; }
.info-note { margin: 0 0 4px; white-space: normal; }
.kvs { display: flex; flex-wrap: wrap; gap: 3px 6px; margin-top: 5px; font-weight: 400; }
.kv { display: inline-flex; align-items: baseline; gap: 4px; background: var(--navy-50); border: 1px solid #E4EAF2; border-radius: 7px; padding: 0 7px; font-size: 12px; line-height: 1.7; color: var(--text); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.kv i { font-style: normal; color: var(--muted); }
.kv b { font-weight: 700; color: var(--navy-800); }
.info-line { margin-top: 5px; font-size: 12.5px; font-weight: 400; color: #334155; line-height: 1.45; }
.info-line i { font-style: normal; font-weight: 700; color: var(--muted); margin-right: 3px; }
.more-details { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--navy-600); }
.refused { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--danger); white-space: normal; max-width: 300px; }

/* ---------- API keys & documentation ---------- */
.keybox { border: 2px solid var(--orange); background: var(--orange-50); }
.copyrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.copyrow input { flex: 1 1 300px; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; background: #fff; }
.codewrap { position: relative; }
.codewrap .copy { position: absolute; top: 8px; right: 8px; opacity: .85; }
.codewrap .copy:hover { opacity: 1; }
pre.code { background: var(--navy-950); color: #E3EAF3; border-radius: 12px; padding: 12px 14px; padding-right: 74px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; margin: 0 0 14px; }
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; font-family: Consolas, "Cascadia Mono", "Courier New", monospace; white-space: pre; }
.doc { line-height: 1.65; }
.doc h1 { margin: 0 0 10px; }
.doc h2 { margin: 26px 0 10px; }
.doc h3 { margin: 18px 0 8px; font-size: 15px; color: var(--navy-800); }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 4px; }
.doc code { overflow-wrap: anywhere; }
.doc td code { overflow-wrap: normal; }
.doc .table-wrap { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--navy-50); color: var(--navy-700); font-size: 12.5px; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perm-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .wrap { padding: 14px 12px; }
  .topbar-in { padding: 8px 12px; }
  .menu-btn { display: inline-flex; order: 2; margin-left: 8px; }
  .bell { order: 1; margin-left: auto; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 6px; }
  .notes-acts { margin-left: 0; width: 100%; }
  .nav.open { display: flex; }
  .nav-gap { display: none; }
  .nav form .tbtn { width: 100%; justify-content: center; }
  .card-head, .toolbar { padding-left: 14px; padding-right: 14px; }
  .card.pad, .pad { padding: 14px; }
  .search { max-width: none; flex-basis: 100%; }
  .pslots { gap: 7px; }
  .pempty span { display: none; }
  .pn { width: 18px; height: 18px; font-size: 10.5px; top: 4px; left: 4px; border-radius: 6px; }
  .px { width: 22px; height: 22px; font-size: 15px; top: 4px; right: 4px; border-radius: 7px; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tbody { padding: 12px; }
  .tbl tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 6px 12px; background: #fff; }
  .tbl tbody tr:nth-child(even) td, .tbl tbody tr:hover td { background: transparent; }
  .tbl td { border: 0; border-bottom: 1px dashed #E8EDF4; padding: 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; max-width: none !important; }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; font-weight: 600; flex-shrink: 0; text-align: left; }
  .tbl td.acts { justify-content: flex-end; }
  .tbl td:not([data-l])::before { content: none; }
  .thumbs { justify-content: flex-end; }
  .lightbox { padding: 60px 10px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .tbl td.perms { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }

  /* phones: 16px text in fields stops iPhones from zooming in on every tap */
  input, select, textarea, .fsel, .stsel { font-size: 16px; }
  h1 { font-size: 20px; }
  .page-head { margin-bottom: 12px; }
  .card { margin-bottom: 14px; border-radius: 14px; }
  /* status counts: one row to swipe through */
  .stats { display: flex; overflow-x: auto; gap: 8px; margin: 0 -12px 14px; padding: 2px 12px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 auto; min-width: 108px; padding: 8px 12px; scroll-snap-align: start; }
  .stat b { font-size: 19px; }
  .stats.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 14px; padding: 0; overflow: visible; }
  /* filters: search on its own line, the drop-downs two by two */
  .toolbar { gap: 8px; }
  .toolbar .fsel { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 9px 10px; }
  .toolbar select[name="brand"] { flex-basis: 100%; }
  .facts-2 { grid-template-columns: minmax(0, 1fr); }
  .tbl td .kvs { justify-content: flex-end; }
  .toolbar .btn { flex: 1 1 auto; }
  /* buttons big enough for a thumb */
  .btn { min-height: 42px; }
  .btn.sm { min-height: 36px; padding: 5px 12px; }
  .form-actions .btn { flex: 1 1 auto; }
  .tbl td.acts { flex-wrap: wrap; gap: 6px; }
  .quote-del .btn.sm { padding: 6px 10px; }
  .stsel { padding: 6px 30px 6px 14px; }
  .hide-sm { display: none !important; }
  /* order list: one compact card per order, number and status on top */
  .orders-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 12px; }
  .orders-tbl td { grid-column: 1 / -1; }
  .orders-tbl td[data-l="Order"] { grid-column: 1; grid-row: 1; border-bottom: 0; justify-content: flex-start; }
  .orders-tbl td[data-l="Status"] { grid-column: 2; grid-row: 1; border-bottom: 0; justify-content: flex-end; }
  .orders-tbl td[data-l="Order"]::before, .orders-tbl td[data-l="Status"]::before { content: none; }
  .orders-tbl .rn { font-size: 15px; padding: 4px 10px; }
  .orders-tbl .th { width: 52px; height: 52px; }
  /* floating "New order" button */
  .fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(245, 124, 31, .45); text-decoration: none !important; }
  .fab:active { transform: translateY(1px); }
  .foot { padding-bottom: 92px; }
  .doc td:first-child { white-space: normal; }
  pre.code { font-size: 11.5px; padding-right: 14px; }
  .codewrap { display: flex; flex-direction: column; }
  .codewrap .copy { position: static; align-self: flex-end; margin-bottom: 6px; }
  /* export: the count and its button on two lines */
  .export-count .btn { margin-left: 0; }
  .head-acts { width: 100%; }
  .head-acts .btn.light { flex: 1 1 auto; }
  /* reports: cards two by two, tables as cards, totals as one more card */
  .report-nav { margin-left: 0; width: 100%; }
  .report-pick { flex: 1 1 auto; }
  .report-pick input { flex: 1 1 auto; min-width: 0; padding: 7px 10px; }
  .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .rcard { padding: 9px 12px; }
  .rcard b { font-size: 18px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .bar { display: none; }
  .bar-cell { min-width: 0; }
  .rtbl tfoot { display: block; padding: 0 12px 12px; }
  .rtbl tfoot td { border-top: 0; background: transparent; }
  .rtbl tfoot tr { background: var(--orange-50); border-color: #FCD9A8; }
  /* "Day by day" and the small lists stay small tables on a phone (31 cards would be far too long) */
  .days-tbl, .mini { display: table; font-size: 12.5px; }
  .days-tbl thead, .mini thead { display: table-header-group; }
  .days-tbl tbody, .mini tbody { display: table-row-group; padding: 0; }
  .days-tbl tr, .mini tr { display: table-row; border: 0; padding: 0; margin: 0; }
  .days-tbl th, .days-tbl td, .mini th, .mini td { display: table-cell; width: auto; padding: 7px 6px; border-bottom: 1px solid #EDF1F6; text-align: right; }
  .days-tbl th:first-child, .days-tbl td:first-child, .mini th:first-child, .mini td:first-child { text-align: left; white-space: normal; }
  .days-tbl td::before, .mini td::before { content: none; }
  .days-tbl td:last-child, .mini td:last-child { border-bottom: 1px solid #EDF1F6; }
  .days-tbl th:nth-child(6), .days-tbl td:nth-child(6) { display: none; }
  /* clocks: one row of three under the logo */
  .clockbar { padding: 0 12px 7px; justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
  .clock { flex: 1 1 0; min-width: 0; justify-content: center; padding: 2px 8px; gap: 5px; }
  .clock-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .clock-row .field:last-of-type { grid-column: 1 / -1; }
  .clock-now { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .form-grid, .form-grid.two { grid-template-columns: minmax(0, 1fr); }
  .field.span2 { grid-column: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .facts dd { margin-bottom: 8px; }
  .brand-name { display: none; }
  .pslots:not(.q3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lightbox img { max-height: calc(100vh - 190px); }
  .clock svg, .clock i { display: none; }
  .clock { flex-direction: column; gap: 0; line-height: 1.25; padding: 3px 6px; border-radius: 10px; }
  .clock b { font-size: 11px; max-width: 100%; }
  .clock time { font-size: 13.5px; }
}
