@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-Regular.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-Medium.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-SemiBold.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700 800; font-display: swap; src: url(/fonts/inter-Bold.woff) format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 800; font-display: swap; src: url(/fonts/interdisplay-ExtraBold.woff) format('woff'); }

/* Same palette as motorlane.uk */
:root {
  --ink: #0c1a2e; --ink-2: #344256; --muted: #657189; --line: #e3e8ef; --bg: #f3f5f9; --card: #fff;
  --navy: #0a1c35; --navy-2: #102a4c; --accent: #0a8f62; --accent-ink: #067049; --accent-soft: #e4f6ee;
  --warn: #b45309; --warn-soft: #fdf3e6; --danger: #c0262d; --danger-soft: #fdeced;
  --r-sm: 10px; --r-md: 14px;
  --shadow: 0 1px 2px rgba(12, 26, 46, .05), 0 2px 10px rgba(12, 26, 46, .05);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Inter Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font: 800 28px/1.15 var(--display); letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #c9d3e3; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 10px 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center;
  font: 800 16px var(--display); color: #fff; }
.brand-name { font: 800 17px var(--display); }
.brand-name span { color: #7fd8b4; font-weight: 600; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm);
  color: #c9d3e3; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav .soon { font-size: 11px; color: #8394ad; font-weight: 500; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--navy-2); font-size: 13px; }
.side-foot strong { display: block; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.side-foot button { margin-top: 8px; background: none; border: 0; color: #9fb0c8; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.main { padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: 980px; width: 100%; min-width: 0; }
.page-head { margin-bottom: 24px; }

/* ---------- cards & checklist ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card > h2 { margin-bottom: 4px; }
.card > .muted:first-of-type { margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; color: transparent; }
.steps li.done .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps strong { display: block; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- forms ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid .full { grid-column: 1 / -1; }
label.field { display: block; font-weight: 600; font-size: 14px; }
label.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=date], textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid #cfd6e1; border-radius: var(--r-sm); background: #fff; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-sm);
  border: 1px solid transparent; font: 600 15px var(--font); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-block { width: 100%; }
.form-foot { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--accent-soft); color: var(--accent-ink); }
.saved { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.hidden { display: none !important; }

/* ---------- sign in / sign up ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--navy); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 30px 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.auth-card .brand { color: var(--ink); padding: 0 0 20px; }
.auth-card .brand-name span { color: var(--accent); }
.auth-card form { display: grid; gap: 14px; }
.auth-card .switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.loading { padding: 48px; text-align: center; color: var(--muted); }


/* ---------- shared bits ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.btn-quiet { background: none; color: var(--danger); margin-left: auto; padding: 11px 6px; }
.btn-quiet:hover { text-decoration: underline; }
.card.flush { padding: 0; overflow: hidden; }
.empty { padding: 40px 24px; text-align: center; margin: 0; color: var(--muted); }
.empty h2 { color: var(--ink); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plate { display: inline-block; background: #f7d117; color: #111; font-weight: 700; letter-spacing: .04em; padding: 2px 8px;
  border-radius: 5px; border: 1px solid #d9b400; font-size: 14px; white-space: nowrap; text-transform: uppercase; }

/* ---------- stock list ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { margin: 0; max-width: 280px; }
.tabs { display: flex; gap: 4px; background: #e8ecf2; padding: 4px; border-radius: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.stock-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 110px 130px; gap: 16px; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.stock-row:first-child { border-top: 0; }
.stock-row:hover { background: #f8fafc; }
.thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e8ecf2; display: grid; place-items: center;
  font-size: 11px; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info, .money, .status { display: flex; flex-direction: column; min-width: 0; }
.info strong { font-weight: 600; }
.info > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { color: var(--ink-2); }
.money { text-align: right; }
.money strong { font-size: 16px; }
.status { align-items: flex-end; gap: 4px; }
.st-available { background: var(--accent-soft); color: var(--accent-ink); }
.st-reserved { background: var(--warn-soft); color: var(--warn); }
.st-sold { background: #e3e8f4; color: var(--navy-2); }

/* ---------- add / edit vehicle ---------- */
.lookup-row { display: grid; grid-template-columns: 160px minmax(0, 260px) auto; gap: 14px; align-items: end; }
.plate-input { background: #f7d117 !important; border-color: #d9b400 !important; font-weight: 700 !important; font-size: 22px !important;
  letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.photo { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #e8ecf2; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-tag { position: absolute; top: 8px; left: 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.photo-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.photo-tools button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(10, 28, 53, .8); color: #fff; cursor: pointer; font-size: 14px; }
.photo-tools button:hover:not([disabled]) { background: var(--navy); }
.photo-tools button[disabled] { opacity: .35; cursor: default; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px; border: 2px dashed #c8d0dc; border-radius: 12px;
  cursor: pointer; text-align: center; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { color: var(--accent-ink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.profit { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.profit div { display: flex; flex-direction: column; }
.profit strong { font-size: 20px; }
.profit .neg { color: var(--danger); }


/* ---------- buttons ---------- */
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd6e1; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-ghost[disabled] { opacity: .5; cursor: default; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a01f25; }
.link-btn { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- invoices ---------- */
.inv-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 140px 110px; gap: 16px; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.inv-row:first-child { border-top: 0; }
.inv-row:hover { background: #f8fafc; }
.inv-no { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto 32px; gap: 12px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; padding-top: 0; }
.line.px { grid-template-columns: minmax(0, 1fr) 150px 32px; }
.px-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr .9fr; gap: 10px; }
.plate-sm { font-size: 16px !important; }
.vat-tag { font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 12px; white-space: nowrap; min-width: 90px; }
.line-rm { width: 32px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; border-radius: 8px; }
.line-rm:hover { background: var(--danger-soft); color: var(--danger); }
.add-lines { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.totals { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; max-width: 520px; margin-left: auto; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals strong { font-size: 18px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pay-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.pay-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.r { text-align: right; }

/* the invoice itself */
.doc { padding: 40px 44px; font-size: 14px; overflow-x: auto; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.doc-seller { font: 800 22px/1.2 var(--display); margin-bottom: 4px; }
.doc-meta { text-align: right; }
.doc-title { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); margin-bottom: 10px; }
.doc-meta dl { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin: 0; justify-content: end; }
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; font-weight: 600; }
.doc-to { margin-bottom: 24px; }
.doc-to strong { display: block; font-size: 15px; }
.doc-lines { width: 100%; border-collapse: collapse; }
.doc-lines th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 8px 6px; }
.doc-lines td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-lines th.r, .doc-lines td.r { text-align: right; white-space: nowrap; }
.doc-totals { margin: 16px 0 0 auto; max-width: 300px; display: grid; gap: 4px; }
.doc-totals div { display: flex; justify-content: space-between; gap: 16px; }
.doc-totals .grand { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.doc-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.doc-foot p { margin: 0 0 8px; }

/* ---------- stock book & VAT ---------- */
.custom-dates { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.custom-dates input { width: auto; margin: 0; }
.toolbar select { width: auto; margin: 0; }
.vat-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.vat-boxes > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.vat-boxes strong { font-size: 20px; }
.box-no { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.book { border-collapse: collapse; width: 100%; font-size: 13px; }
.book th { text-align: left; white-space: nowrap; padding: 10px 12px; background: #f8fafc; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.book td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.book th.r, .book td.r { text-align: right; }

/* ---------- printing: just the invoice ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .side, .no-print, .main > .alert { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card.doc { box-shadow: none; border: 0; padding: 0; margin: 0; }
  .doc-title { color: #000; }
}


/* ---------- website & enquiries ---------- */
.nav .count { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.site-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--warn); }
.site-status.live { border-left-color: var(--accent); }
.site-status h2 { margin-bottom: 2px; }
.site-status p { margin: 0; }
.swatches { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.swatches legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.swatch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 8px; cursor: pointer; font-size: 14px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span::before { content: ''; display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 8px; background: var(--sw); }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-weight: 600; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-green { --sw: #0a8f62; } .sw-blue { --sw: #1f5fbf; } .sw-red { --sw: #c0262d; } .sw-orange { --sw: #c2570a; } .sw-purple { --sw: #6b3fb8; } .sw-black { --sw: #1b2433; }
.slug-input { display: flex; align-items: stretch; margin-top: 6px; max-width: 520px; }
.slug-input input { margin: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.slug-input span { display: flex; align-items: center; padding: 0 12px; background: var(--bg); border: 1px solid #cfd6e1; border-left: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); font-weight: 500; white-space: nowrap; }
.dns { margin-top: 16px; background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.dns table { border-collapse: collapse; margin: 10px 0; }
.dns th, .dns td { text-align: left; padding: 4px 18px 4px 0; }
.dns td:last-child { font-family: ui-monospace, Menlo, monospace; }
.enquiry.done { opacity: .6; }
.enq-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.enq-msg { white-space: pre-wrap; margin: 12px 0; }
.enq-contact { display: flex; gap: 8px; flex-wrap: wrap; }


/* ---------- motorlane listing ---------- */
.how { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.warn-text { color: var(--warn); margin: 6px 0 0; }
.site-status h2 .pill { vertical-align: 3px; margin-left: 6px; }
.missing { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row input { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }


/* ---------- billing ---------- */
.billing-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.billing-bar .btn { padding: 7px 14px; font-size: 14px; }
.plan { max-width: 560px; }
.plan-price { font-size: 18px; margin: 6px 0 14px; }
.plan-price strong { font: 800 34px var(--display); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ticks li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 10px; }


/* ---------- website designs: gallery of mini previews (colours from /_site/templates.css .tpl-<id>) ---------- */
.tpl-family { margin-top: 22px; }
.tpl-family-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tpl { display: flex; flex-direction: column; gap: 4px; }
.tpl label { position: relative; display: block; cursor: pointer; border: 2px solid #e3e8ef; border-radius: 12px; padding: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tpl label:hover { border-color: #b9c3d3; }
.tpl label:has(input:checked) { border-color: #0a8f62; box-shadow: 0 0 0 3px #e4f6ee; }
.tpl label:has(input:focus-visible) { outline: 2px solid #0a8f62; outline-offset: 2px; }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-name { display: block; margin-top: 6px; text-align: center; font-size: 13px; font-weight: 600; color: #0c1a2e; }
.tpl label:has(input:checked) .tpl-name::after { content: ' ✓'; color: #0a8f62; }
.tpl-preview { font-size: 12px; text-align: center; color: #067049; }
.mini { position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: var(--bg); border: 1px solid rgba(0, 0, 0, .07); }
.mini i { display: block; }
.m-top { height: 13%; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8%; background: var(--surface); border-bottom: 1px solid var(--line); }
.m-top i:first-child { width: 30%; height: 28%; background: var(--ink); opacity: .85; border-radius: 2px; }
.m-top i:last-child { width: 18%; height: 42%; background: var(--accent); border-radius: min(var(--radius), 5px); }
.m-hero { position: relative; height: 44%; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 7%; padding: 0 8%; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); }
.m-hero i { height: 9%; border-radius: 2px; background: #fff; }
.m-hero i:nth-child(1) { width: 62%; }
.m-hero i:nth-child(2) { width: 40%; opacity: .6; }
.m-hero i:nth-child(3) { width: 24%; height: 13%; background: var(--accent); }
.m-cars { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; padding: 6% 8%; }
.m-cars i { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: min(var(--radius), 5px); overflow: hidden; }
.m-cars i::before { content: ''; position: absolute; inset: 0 0 45% 0; background: var(--line); }
.m-cars i::after { content: ''; position: absolute; left: 12%; bottom: 14%; width: 45%; height: 12%; background: var(--accent); opacity: .8; border-radius: 1px; }
/* layout shapes */
.fam-showroom .m-top { position: absolute; left: 0; right: 0; background: transparent; border: 0; z-index: 1; }
.fam-showroom .m-top i:first-child { background: #fff; }
.fam-showroom .m-hero { height: 58%; justify-content: flex-end; padding-bottom: 7%; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .6)), radial-gradient(circle at 68% 45%, #9aa6b8, var(--hero-from) 65%); }
.fam-split .m-hero { background: var(--accent-soft); }
.fam-split .m-hero i { background: var(--ink); }
.fam-split .m-hero i:nth-child(1) { width: 42%; }
.fam-split .m-hero i:nth-child(2) { width: 30%; opacity: .4; }
.fam-split .m-hero i:nth-child(3) { width: 18%; background: var(--accent); }
.fam-split .m-hero::after { content: ''; position: absolute; right: 8%; top: 16%; width: 36%; height: 68%; background: linear-gradient(135deg, #b9c2cf, #5b6676); border-radius: min(var(--radius), 6px); border: 3px solid var(--surface); transform: rotate(3deg); }
.fam-minimal .m-hero { background: var(--bg); align-items: center; }
.fam-minimal .m-hero i { background: var(--ink); }
.fam-minimal .m-hero i:nth-child(1) { width: 70%; height: 11%; }
.fam-minimal .m-hero i:nth-child(2) { width: 30%; opacity: .35; }
.fam-minimal .m-hero i:nth-child(3) { width: 74%; height: 16%; background: var(--surface); border: 1px solid var(--line); }
.fam-minimal .m-cars i { border: 0; background: transparent; }
.fam-minimal .m-top i:last-child { background: transparent; border: 1px solid var(--ink); }
.fam-bold .m-top { background: var(--bg); }
.fam-bold .m-hero { background: radial-gradient(circle at 85% 20%, var(--accent-soft), transparent 70%), var(--bg); }
.fam-bold .m-hero i { background: var(--ink); height: 13%; }
.fam-bold .m-hero i:nth-child(1) { width: 78%; }
.fam-bold .m-hero i:nth-child(2) { width: 56%; opacity: 1; }
.fam-bold .m-hero i:nth-child(3) { width: 20%; height: 6%; background: var(--accent); }
.fam-prestige .m-top { background: var(--bg); justify-content: center; }
.fam-prestige .m-top i:last-child { display: none; }
.fam-prestige .m-hero { background: var(--bg); align-items: center; }
.fam-prestige .m-hero i { background: var(--ink); height: 7%; }
.fam-prestige .m-hero i:nth-child(1) { width: 64%; }
.fam-prestige .m-hero i:nth-child(2) { width: 44%; opacity: .5; }
.fam-prestige .m-hero i:nth-child(3) { width: 14%; height: 2%; background: var(--accent); }
.fam-prestige .m-cars i { border-radius: 0; }

/* brand, services */
.brand-row { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.logo-box { width: 180px; height: 90px; border: 1px dashed #cfd6e1; border-radius: 12px; display: grid; place-items: center; padding: 10px; background: #fff; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.accent-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.accent-row input[type=color] { width: 56px; height: 40px; border: 1px solid #cfd6e1; border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 18px; }
.sticky-foot { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
@media (max-width: 1000px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-grid { grid-template-columns: 1fr; } }


/* own domain */
.dns-table td:nth-child(4) { font-family: var(--font); font-weight: 600; }
.dns-table td:nth-child(3) { font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.ok-text { color: var(--accent-ink); }
.domain-state { margin: 10px 0 12px; }
.domain-state p { margin: 0 0 6px; }
.guides { margin-top: 14px; }
.guides summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.guide { margin-top: 12px; }
.guide p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 2px; }
  .brand { padding: 4px 8px 4px 0; margin-right: auto; }
  .nav { display: flex; overflow-x: auto; width: 100%; order: 3; gap: 2px; }
  .nav a { white-space: nowrap; padding: 8px 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav .soon { display: none; }
  .side-foot { margin: 0; padding: 0; border: 0; }
  .side-foot strong { display: none; }
  .side-foot button { margin: 0; }
  .main { padding-top: 22px; }
  .grid, .grid.three { grid-template-columns: 1fr; }
  .stock-row { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .stock-row .thumb { width: 88px; grid-row: span 3; }
  .stock-row .info { grid-column: 2 / 4; }
  .stock-row .money { text-align: left; grid-column: 2; }
  .stock-row .plate { grid-column: 3; grid-row: 2; justify-self: end; }
  .stock-row .status { grid-column: 3; }
  .toolbar input[type=search] { max-width: none; }
  .lookup-row { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .inv-row .info { grid-column: 1 / -1; grid-row: 2; }
  .inv-row .money { text-align: left; }
  .inv-row .status { grid-column: 2; grid-row: 1; }
  .inv-row .money { grid-row: 3; }
  .line, .line.px { grid-template-columns: minmax(0, 1fr) 40px; }
  .line > .amt, .line > .vat, .line > .vat-tag { grid-column: 1; }
  .line > .line-rm { grid-column: 2; grid-row: 1; }
  .px-grid { grid-template-columns: 1fr 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; }
  .doc { padding: 22px 18px; }
  .doc-meta { text-align: left; }
  .doc-meta dl { justify-content: start; }
  h1 { font-size: 24px; }
}
