/* Haulbahn portal — matches haulbahn.com: Geist, black on white, hairline greys. */
:root {
  --ink: #0A0A0A;
  --muted: #52525B;
  --subtle: #71717A;
  --faint: #A1A1AA;
  --line: #EDEDEF;
  --field: #D4D4D8;
  --bg: #FFFFFF;
  --soft: #FAFAFA;
  --ok: #15803D;
  --err: #B91C1C;
  --err-bg: #FEF2F2;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: "tnum"; }

/* frame lines like the website */
.frame { position: relative; flex: 1; display: flex; flex-direction: column; }
.frame::before, .frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.frame::before { left: 48px; }
.frame::after { right: 48px; }

/* header */
.top { height: 72px; flex-shrink: 0; padding: 0 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span { font-size: 20px; font-weight: 600; letter-spacing: -0.035em; }
.top-right { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.langs { display: flex; gap: 10px; font-size: 12px; }
.langs a { color: var(--faint); }
.langs a.on { color: var(--ink); }
.top-link { color: var(--muted); }

/* auth split */
.split { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; z-index: 1; }
.pane { padding: 72px 96px 56px; display: flex; flex-direction: column; justify-content: center; }
.form-wrap { width: 100%; max-width: 420px; }
.side { border-left: 1px solid var(--line); padding: 40px 72px 40px 40px; display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow: hidden; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
h1 { font-size: 44px; line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; margin: 18px 0 14px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 32px; }

/* form */
form { display: flex; flex-direction: column; gap: 18px; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.section-label:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label-row { font-size: 14px; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; font-weight: 400; color: var(--muted); }
.label-row a:hover { color: var(--ink); }
.hint { font-size: 12px; color: var(--subtle); }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  height: 46px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
.pw { position: relative; }
.pw input { padding-right: 72px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.pw button:hover { color: var(--ink); background: var(--soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; width: 100%; transition: opacity .15s; }
.btn:hover { opacity: .88; color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--field); width: auto; height: 42px; font-size: 15px; padding: 0 18px; }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.alt a { color: var(--ink); font-weight: 500; }
.alt a:hover { color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.notice.err { background: var(--err-bg); color: var(--err); border: 1px solid #FECACA; }
.notice.ok { background: #F0FDF4; color: var(--ok); border: 1px solid #BBF7D0; }
.notice.info { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* side panel */
.side-title { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; max-width: 460px; margin: 0; }
.map-box { position: relative; width: 100%; max-width: min(620px, calc((100vh - 400px) * 1.107)); min-width: 280px; aspect-ratio: 620 / 560; }
.map-scale { position: absolute; left: 0; top: 0; width: 620px; height: 560px; transform-origin: 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 18px 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat b { font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 400; font-size: 24px; letter-spacing: -0.03em; }
.stat span { font-size: 13px; line-height: 1.45; color: var(--subtle); }

/* map animation (from homepage) */
.flow { stroke-dasharray: 3 7; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.truck { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,.12); offset-rotate: 0deg; animation: move 10s linear infinite; }
@keyframes move { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.pulse { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow, .truck, .pulse { animation: none; } }

/* footer */
.foot { padding: 22px 96px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--subtle); position: relative; z-index: 1; background: var(--bg); }

/* dashboard */
.dash { flex: 1; padding: 64px 96px; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-content: start; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card h2 { font-size: 22px; letter-spacing: -0.03em; font-weight: 500; margin: 14px 0 10px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #D97706; }
.badge.active .dot { background: var(--ok); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 14px 16px; font-size: 15px; margin: 18px 0 0; }
.kv dt { color: var(--subtle); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.inline-form { display: inline; }

/* responsive */
@media (max-width: 1100px) {
  .pane, .top, .foot, .dash { padding-left: 56px; padding-right: 56px; }
  .frame::before { left: 24px; } .frame::after { right: 24px; }
}
@media (max-width: 920px) {
  .split, .dash { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .pane { padding-top: 48px; justify-content: flex-start; }
  .form-wrap { margin: 0 auto; }
}
@media (max-width: 560px) {
  .frame::before, .frame::after { display: none; }
  .top { padding: 0 16px; height: 64px; }
  .top-link { display: none; }
  .pane, .dash { padding: 36px 16px 40px; }
  .foot { padding: 18px 16px; flex-direction: column; gap: 6px; }
  h1 { font-size: 34px; }
  .row2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .kv dd { margin-bottom: 10px; }
}

/* ---------- portal app ---------- */
.tabs { display: flex; gap: 4px; padding: 0 96px; border-bottom: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 14px 14px 13px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.subtabs { display: flex; gap: 20px; margin: 4px 0 28px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 0; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.count { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; text-align: center; }

.page { flex: 1; padding: 56px 96px 72px; position: relative; z-index: 1; width: 100%; }
.page.narrow { max-width: 880px; }
.h1-sm { font-size: 34px; letter-spacing: -0.04em; margin: 14px 0 12px; }
.h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 500; margin: 0; }
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--ink); }

.btn.auto { width: auto; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.danger { color: var(--err); border-color: #FECACA; }
.btn.danger:hover { color: var(--err); border-color: var(--err); }
.card.cta { background: var(--soft); }

.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-size: 15px; }
.row-link + .row-link { border-top: 1px solid var(--line); }
.row-link:hover { background: var(--soft); color: var(--ink); }
.row-main { min-width: 0; }
.row-meta { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: #BBF7D0; background: #F0FDF4; }
.badge.warn { color: #B45309; border-color: #FDE68A; background: #FFFBEB; }
.badge.muted .dot { background: var(--faint); }
.badge { white-space: nowrap; }

/* form controls */
select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; width: 100%;
}
select { height: 46px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 9px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--field); border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .15s; user-select: none; }
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10,10,10,.15); }
.req-form, .option-form { gap: 20px; }
.inline-row { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.inline-row select { height: 34px; width: auto; font-size: 14px; background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px; }

/* options */
.options-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 32px 0 18px; }
.options { display: flex; flex-direction: column; gap: 24px; }
.option { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.option-media { position: relative; border-right: 1px solid var(--line); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; background: var(--soft); }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; scroll-snap-align: start; display: block; }
.option-media { display: flex; flex-direction: column; }
.media-wrap { position: sticky; top: 0; }
.gallery.empty { align-items: center; justify-content: center; color: var(--faint); font-size: 14px; aspect-ratio: 4 / 3; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(10,10,10,.72); color: #fff; font-size: 11px; padding: 5px 9px; border-radius: 999px; pointer-events: none; }
.option-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.option-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.option-num { font-size: 13px; color: var(--subtle); margin-right: 4px; }
.option h2 { font-size: 26px; letter-spacing: -0.035em; font-weight: 500; margin: 0; }
.option-sub { margin: -6px 0 0; font-size: 13px; color: var(--subtle); }
.option-hl { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 4px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column; gap: 2px; }
.specs dt { font-size: 12px; color: var(--subtle); }
.specs dd { margin: 0; font-size: 14px; }
.costs { display: flex; flex-direction: column; gap: 8px; }
.costs .eyebrow { margin-bottom: 4px; }
.cost-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cost-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--ink); font-size: 15px; font-weight: 500; }
.cost-total .mono { font-size: 24px; letter-spacing: -0.03em; }
.saving { margin: 0; font-size: 14px; color: var(--ok); }
.searching { display: flex; flex-direction: column; align-items: flex-start; margin-top: 28px; background: var(--soft); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21,128,61,.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(21,128,61,0); } }

/* admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--subtle); font-size: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: underline; text-underline-offset: 2px; }
.table .btn { text-decoration: none; }
.cost-preview { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; }
.copy-field { font-size: 12px !important; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.thumb img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
input[type=file] { font: inherit; font-size: 14px; }
.admin-grid .kv { grid-template-columns: 96px 1fr; font-size: 14px; }

@media (max-width: 1100px) {
  .tabs, .page { padding-left: 56px; padding-right: 56px; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .option { grid-template-columns: minmax(0, 1fr); }
  .option-media { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .tabs { padding: 0 8px; }
  .page { padding: 32px 16px 48px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .option-body { padding: 20px 18px; }
  .row-link { flex-direction: column; align-items: flex-start; gap: 8px; }
  .top .inline-form .btn { height: 36px; padding: 0 12px; font-size: 14px; }
  .top-right .top-link { display: none; }
}

/* ---------- market analysis ---------- */
.option-analysis { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.option-analysis:empty { display: none; }
.analysis > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 28px; }
.analysis > summary::-webkit-details-marker { display: none; }
.analysis > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); line-height: 1; }
.analysis[open] > summary::after { content: "–"; }
.analysis > summary:hover { background: var(--soft); }
.analysis > :not(summary) { margin-left: 28px; margin-right: 28px; }
.analysis > :last-child { margin-bottom: 28px; }
.verdict { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.v-great { background: #DCFCE7; color: #166534; }
.v-good { background: #ECFCCB; color: #3F6212; }
.v-fair { background: #FEF9C3; color: #854D0E; }
.v-high { background: #FEE2E2; color: #991B1B; }
.ma-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 4px; }
.ma-gauge { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.ma-big { font-size: 26px; letter-spacing: -0.03em; font-weight: 500; }
.gauge { width: 100%; max-width: 300px; margin: 6px 0 4px; }
.g-lbl { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; fill: var(--muted); text-anchor: middle; }
.ma-stats { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.ma-stats div { display: flex; flex-direction: column; gap: 4px; }
.ma-stats .wide { grid-column: 1 / -1; }
.ma-stats dt { font-size: 12px; color: var(--subtle); }
.ma-stats dd { margin: 0; font-size: 18px; }
.ma-stats .wide dd { font-size: 13px; }
.chart { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.s-grid { stroke: var(--line); stroke-width: 1; }
.s-tick { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; fill: var(--subtle); }
.s-trend { stroke: #F97316; stroke-width: 2; }
.s-local { fill: #A1A1AA; fill-opacity: .55; }
.s-de { fill: none; stroke: #71717A; stroke-width: 1.5; }
.s-me { fill: var(--ok); stroke: #fff; stroke-width: 3; }
.s-cross { stroke: var(--ok); stroke-width: 1; stroke-dasharray: 3 4; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -8px; vertical-align: middle; }
.lg-local { background: #A1A1AA; }
.lg-de { border: 1.5px solid #71717A; }
.lg-me { background: var(--ok); }
.lg-trend { width: 14px; height: 2px; border-radius: 0; background: #F97316; }
.comp-table { margin-top: 16px; max-height: 420px; overflow: auto; }
.comp-table .table { min-width: 560px; }
.comp-table td { vertical-align: middle; }
.mkt { display: inline-block; font-size: 11px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.comps-input { font-size: 13px !important; }

/* ---------- booking ---------- */
.book { display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.book-car { display: flex; gap: 16px; align-items: center; }
.book-car img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cost-line.annual { padding: 14px 16px; border-radius: 10px; background: var(--soft); align-items: center; gap: 16px; }
.invite-form { max-width: 620px; }
.invite-form input { flex: 1; height: 38px; }

@media (max-width: 920px) {
  .ma-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .analysis > summary { padding: 16px 18px; }
  .analysis > :not(summary) { margin-left: 18px; margin-right: 18px; }
  .book { padding: 20px 16px; }
  .invite-form { flex-direction: column; align-items: stretch; }
}

/* ---------- back office ---------- */
.bo-tag { font-size: 11px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; margin-left: 4px; }
.bo-auth { max-width: 520px; }
.steps { margin: 0 0 24px; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.steps b { color: var(--ink); font-weight: 500; }
.qr { margin: 12px 0 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: block; width: fit-content; background: #fff; }
.qr svg { display: block; width: 200px; height: 200px; }
.code-input { font-size: 24px !important; letter-spacing: 0.3em; text-align: center; height: 56px !important; }

/* ---------- guided questionnaire ---------- */
.wizard { gap: 0; }
.wizard .step { display: flex; flex-direction: column; gap: 20px; padding: 8px 0 28px; }
.wizard .step[hidden] { display: none; }
.wizard:not(.wz-on) .step { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.step-head { display: flex; align-items: baseline; gap: 12px; }
.step-num { font-size: 13px; color: var(--subtle); }
.step-lead { margin: -10px 0 0; font-size: 15px; }
.wz-progress { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 24px; scroll-margin-top: 16px; }
.wz-label { font-size: 12px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.wz-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wz-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 20px; }
.wz-nav .btn.ghost { height: 50px; }
.big-input { font-size: 24px !important; height: 60px !important; letter-spacing: -0.01em; }
.review { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--soft); }
.review-title { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.review-list { grid-template-columns: 170px 1fr; font-size: 14px; }
.review-list dd { display: flex; justify-content: space-between; gap: 12px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.link-btn:hover { color: var(--ink); }

/* ---------- brand helper ---------- */
.bp-root { display: flex; flex-direction: column; gap: 18px; }
.bp-label { font-size: 14px; }
.bp-suggest { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: #F0FDF4; border: 1px solid #BBF7D0; }
.chip-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 14px; border: 1px solid #86EFAC; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; }
.chip-btn small { font-size: 12px; font-weight: 400; color: var(--ok); }
.chip-btn:hover { border-color: var(--ok); }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bp-brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border: 1px solid var(--field); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.bp-brand:hover { border-color: var(--ink); }
.bp-brand.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.bp-brand b { font-size: 15px; font-weight: 500; }
.bp-badge { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; }
.bp-fit { font-size: 12px; color: var(--faint); }
.bp-fit.ok { color: var(--ok); }
.bp-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.bp-ranked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bp-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bp-item-head { display: flex; align-items: center; gap: 12px; }
.bp-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.bp-item-title { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bp-item-title b { font-size: 16px; font-weight: 500; }
.bp-actions { display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--muted); cursor: pointer; }
.icon-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.model-card { position: relative; display: flex; cursor: pointer; }
.model-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mc-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border: 1px solid var(--field); border-radius: 10px; transition: border-color .15s, background .15s; }
.model-card:hover .mc-body { border-color: var(--ink); }
.model-card input:checked + .mc-body { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }
.model-card input:focus-visible + .mc-body { box-shadow: 0 0 0 3px rgba(10,10,10,.15); }
.model-card.dim .mc-body { opacity: .55; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-top b { font-size: 14px; font-weight: 500; }
.mc-top .badge { font-size: 11px; padding: 2px 8px; }
.mc-prices { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--muted); }
.mc-ee { color: var(--faint); }
.mc-tags { font-size: 12px; color: var(--subtle); }
@media (max-width: 560px) {
  .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mc-body { padding: 9px 10px; gap: 3px; }
  .mc-sil svg { max-width: 84px; }
  .mc-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mc-top b { font-size: 13px; }
  .mc-prices { font-size: 11px; }
  .mc-tags { font-size: 11px; }
  .bp-item { padding: 12px; }
  .bp-item-head { flex-wrap: wrap; }
  .bp-item-title .hint { font-size: 12px; }
  .review-list { grid-template-columns: 1fr; }
  .wz-nav .btn { flex: 1; }
}
.bp-all > summary { cursor: pointer; font-size: 14px; list-style: none; padding: 4px 0; }
.bp-all > summary::-webkit-details-marker { display: none; }
.bp-all > summary::before { content: "+ "; color: var(--muted); }
.bp-all[open] > summary::before { content: "– "; }
.bp-all > .bp-grid { margin-top: 12px; }
.bp-item > .link-btn { align-self: flex-start; }
.mc-sil { display: block; color: var(--ink); margin: 2px 0 4px; }
.mc-sil svg { display: block; width: 100%; max-width: 120px; height: auto; }
.mc-sil .b { fill: #27272A; }
.mc-sil .g { fill: #fff; opacity: .9; }
.mc-sil .w { fill: #27272A; stroke: #fff; stroke-width: 2.5; }
.mc-sil .h { fill: #A1A1AA; }
.model-card.dim .mc-sil .b, .model-card.dim .mc-sil .w { fill: #A1A1AA; }
.model-card input:checked + .mc-body .mc-sil .b, .model-card input:checked + .mc-body .mc-sil .w { fill: #0A0A0A; }
.bp-tile { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.bp-brand.on .bp-tile { background: var(--ink); color: #fff; border-color: var(--ink); }
.bp-tile.sm { width: 30px; height: 30px; margin: 0; font-size: 13px; }
.bp-tile.logo { background: #fff; padding: 4px; }
.bp-tile.logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.bp-brand.on .bp-tile.logo { background: #fff; border-color: var(--ink); }
.brand-admin { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ba-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 96px; gap: 16px; align-items: center; padding: 12px 16px; }
.ba-row + .ba-row { border-top: 1px solid var(--line); }
.ba-logo { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.ba-logo img { max-width: 40px; max-height: 40px; object-fit: contain; }
.ba-logo .bp-tile { margin: 0; border: 0; }
.ba-name { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 720px) { .ba-row { grid-template-columns: 48px minmax(0, 1fr); } .ba-row form { grid-column: 1 / -1; } }
.draft-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: #FFFBEB; border: 1px solid #FDE68A; }
.draft-bar > div { display: flex; flex-direction: column; gap: 4px; }
.row-actions { display: flex; gap: 6px; align-items: center; }
@media (max-width: 720px) { .draft-bar { flex-direction: column; align-items: stretch; } }
.draft-bar .btn { white-space: nowrap; height: 44px; padding: 0 18px; font-size: 15px; }
.draft-bar > form { flex-shrink: 0; }
