/* =============================================================================
   MERIDIAN MOTOR HOUSE — admin panel
   ============================================================================= */

:root {
  --night: #0e1a1f; --night-2: #132228; --night-3: #1b2d34; --night-4: #24393f;
  --ivory: #f2efe8; --paper: #fbfaf7; --bg: #f4f1ea; --card: #fffefb; --sand: #e7e2d7;
  --ink: #10181c; --ink-2: #39464c; --steel: #5b686e; --chrome: #a9b6bc; --chrome-2: #d5dde0;
  --accent: #e9b44c; --accent-ink: #1b1306; --accent-soft: rgba(233, 180, 76, .16);
  --red: #c2273a; --green: #2c8a5a; --blue: #2f6fb3;
  --line: #e3ddd0; --line-2: #cfc7b8; --line-dark: rgba(213, 221, 224, .13);
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 28, .05), 0 8px 24px -14px rgba(16, 24, 28, .25);
  --shadow-lg: 0 30px 70px -20px rgba(8, 14, 17, .45);
  --ease: cubic-bezier(.2, .75, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --side: 264px;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; font-stretch: 118%; font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--steel); }
.small { font-size: .9rem; } .tiny { font-size: .8125rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font-weight: 650; font-size: .9375rem; text-decoration: none; white-space: nowrap; position: relative; overflow: hidden; transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { --bg: var(--accent); --fg: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { --bg: var(--night); --fg: #fff; }
.btn-danger { --bg: transparent; --fg: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.btn-danger:hover { --bg: var(--red); --fg: #fff; border-color: var(--red); }
.btn-danger.solid { --bg: var(--red); --fg: #fff; border-color: var(--red); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); display: inline-grid; place-items: center; color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s; flex: none; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.icon-btn.on { color: #b7801a; border-color: var(--accent); background: var(--accent-soft); }
.icon-btn.on svg path { fill: currentColor; }
.link { background: none; border: 0; padding: 0; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- forms ---------- */
.f { display: grid; gap: 6px; min-width: 0; align-content: start; }
.f > label, .f > .lbl { font-size: .875rem; font-weight: 650; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.f > label small, .f > .lbl small { font-weight: 500; color: var(--steel); }
.f .hint { font-size: .8125rem; color: var(--steel); }
.inp { width: 100%; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff; padding: 0 12px; font-size: .9375rem; transition: border-color .2s, box-shadow .2s; }
textarea.inp[rows="2"] { min-height: 70px; }
textarea.inp[rows="3"] { min-height: 92px; }
textarea.inp { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310181c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(16, 24, 28, .07); }
.inp.bad, .f.bad .inp { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent); }
.f .err { display: none; font-size: .8125rem; color: var(--red); font-weight: 600; }
.f.bad .err { display: block; }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--steel); font-weight: 650; pointer-events: none; }
.prefix > .inp { padding-left: 30px; }
.suffix { position: relative; }
.suffix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--steel); font-weight: 600; pointer-events: none; font-size: .875rem; }
.suffix > .inp { padding-right: 46px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.span2 { grid-column: span 2; } .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9375rem; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 5px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; transition: background-color .15s, border-color .15s; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:indeterminate { background: var(--ink); border-color: var(--ink); }
.check input:indeterminate::after { content: ""; width: 10px; height: 2px; background: #fff; }
/* switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 650; font-size: .9375rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .25s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease-out); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
/* segmented */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--sand); }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 14px; border-radius: 7px; font-weight: 650; font-size: .875rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 28, .14); }
.seg .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.available { background: var(--green); } .dot.reserved { background: var(--blue); } .dot.sold { background: var(--red); } .dot.hidden { background: var(--chrome); }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: var(--night); transition: opacity .35s; }
.boot.gone { opacity: 0; pointer-events: none; }
.boot i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: spin .8s linear infinite; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--night); }
.login-art { position: relative; overflow: hidden; color: var(--ivory); padding: 44px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(70% 60% at 50% 58%, #26383f 0%, #13232a 55%, #0b1519 100%); isolation: isolate; }
.login-art::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 140px; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(220, 235, 240, .14) 9% 9.8%, transparent 9.8% 18%); filter: blur(10px); mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.login-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.login-brand svg { width: 40px; height: 40px; }
.login-brand b { display: block; font-stretch: 125%; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 1.1rem; line-height: 1; }
.login-brand small { display: block; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--chrome); margin-top: 5px; font-weight: 600; }
.login-copy { padding: 28px 0 12px; }
.login-art h2 { font-size: clamp(2.2rem, 1.3rem + 2.2vw, 3.3rem); line-height: 1.02; max-width: 9em; margin: 0 0 14px; font-stretch: 125%; }
.login-art p { color: var(--chrome-2); max-width: 30em; }
.login-car { position: relative; margin: 18px auto 0; width: min(100%, 620px); }
.login-car img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: carIn 1.4s var(--ease-out) both .15s; }
.login-car::after { content: ""; position: absolute; left: 50%; bottom: 2%; width: 90%; height: 30%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 180, 76, .12), transparent); z-index: -1; animation: fadeIn 1.2s both .4s; }
@keyframes carIn { from { opacity: 0; transform: translateX(-6%) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.login-feats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--chrome); font-size: .875rem; font-weight: 600; margin-top: 18px; }
.login-feats span { display: inline-flex; gap: 8px; align-items: center; }
.login-feats svg { width: 16px; height: 16px; color: var(--accent); }
.login-panel { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.login-card { width: min(440px, 100%); display: grid; gap: 16px; animation: cardIn .8s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.login-card h1 { margin: 0; font-size: 2.1rem; }
.login-card > p { margin: -8px 0 4px; color: var(--steel); }
.pw { position: relative; }
.pw .inp { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; border-radius: 6px; color: var(--steel); display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 19px; height: 19px; }
.login-err { margin: 0; padding: 11px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--red) 10%, transparent); color: #8f1a2a; font-weight: 600; font-size: .9rem; }
.login-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.login-card .btn-block { min-height: 50px; font-size: 1rem; }
.demo { border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 16px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), #f3d48c, var(--accent)); }
.demo-head { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.demo-head svg { width: 18px; height: 18px; color: #c48a19; }
.demo p { margin: 0; font-size: .875rem; color: var(--steel); }
.demo-creds { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--night); color: var(--ivory); animation: credIn .5s var(--ease-out); }
@keyframes credIn { from { opacity: 0; transform: translateY(-6px); } }
.demo-creds div { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; font-size: .875rem; }
.demo-creds span { color: var(--chrome); font-size: .78rem; font-weight: 600; }
.demo-creds code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86rem; color: #fff; overflow-wrap: anywhere; }
.demo-creds button { border: 0; background: rgba(255, 255, 255, .08); color: var(--chrome-2); width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.demo-creds button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.demo-creds button svg { width: 15px; height: 15px; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-actions .btn { flex: 1 1 auto; }
.mode-note { margin: 0; font-size: .8125rem; color: var(--steel); text-align: center; }
.mode-note a { font-weight: 650; }
.login.out { animation: loginOut .45s var(--ease) forwards; }
@keyframes loginOut { to { opacity: 0; transform: scale(1.01); } }

/* ---------- app shell ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); animation: fadeIn .5s; }
.side { position: sticky; top: 0; height: 100vh; background: var(--night); color: var(--chrome-2); display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; overflow-y: auto; z-index: 60; }
.side-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 4px 8px 10px; color: var(--ivory); }
.side-brand svg { width: 36px; height: 36px; flex: none; }
.side-brand b { display: block; font-stretch: 125%; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 1rem; line-height: 1.05; }
.side-brand small { display: block; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 4px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--chrome-2); position: relative; transition: background-color .2s, color .2s; }
.side-nav a svg { width: 19px; height: 19px; opacity: .8; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-nav a[aria-current="page"] svg { opacity: 1; color: var(--accent); }
.pill-n { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .75rem; font-weight: 750; display: grid; place-items: center; color: var(--chrome-2); }
.pill-n.hot { background: var(--accent); color: var(--accent-ink); }
.pill-n:empty { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-view { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; text-decoration: none; font-weight: 650; font-size: .9rem; border: 1px solid var(--line-dark); color: var(--ivory); transition: border-color .2s, background-color .2s; }
.side-view:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.side-view svg { width: 18px; height: 18px; }
.side-view svg:last-child { margin-left: auto; width: 15px; height: 15px; opacity: .6; }
.mode { font-size: .78rem; line-height: 1.4; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, .04); color: var(--chrome); }
.mode b { display: flex; align-items: center; gap: 7px; color: var(--ivory); font-size: .8125rem; margin-bottom: 2px; }
.mode b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mode.live b::before { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62, 207, 142, .2); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid var(--line-dark); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; text-transform: uppercase; }
.me b { display: block; font-size: .8125rem; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.me button { border: 0; background: none; padding: 0; color: var(--chrome); font-size: .8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.me button:hover { color: #fff; }
.me button svg { width: 14px; height: 14px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
#view { padding: clamp(20px, 3vw, 40px); outline: none; max-width: 1360px; width: 100%; }
.page { animation: pageIn .45s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.page-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-top h1 { margin: 0; }
.page-top p { margin: 6px 0 0; color: var(--steel); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 650; color: var(--steel); text-decoration: none; margin-bottom: 10px; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: clamp(18px, 2vw, 24px); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.card-head h2 svg { width: 20px; height: 20px; color: #b7801a; }
.card-head p { margin: 4px 0 0; font-size: .875rem; color: var(--steel); }
.stack { display: grid; gap: 18px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 18px; display: grid; gap: 4px; position: relative; overflow: hidden; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; animation: pageIn .5s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.kpi span { font-size: .8125rem; font-weight: 650; color: var(--steel); display: flex; align-items: center; gap: 8px; }
.kpi span svg { width: 16px; height: 16px; }
.kpi b { font-stretch: 118%; font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.1; }
.kpi small { color: var(--steel); font-size: .8125rem; }
.kpi.dark { background: var(--night); color: var(--ivory); box-shadow: none; }
.kpi.dark span, .kpi.dark small { color: var(--chrome); }
.kpi.dark::after { content: ""; position: absolute; right: -60px; top: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.kpi.hot b { color: #b7801a; }
.dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.welcome h1 { margin: 0; }
.welcome p { margin: 4px 0 0; color: var(--steel); }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--night); color: var(--ivory); margin-bottom: 18px; animation: pageIn .5s var(--ease-out); }
.banner > svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.banner p { margin: 0; color: var(--chrome-2); font-size: .9rem; }
.banner code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(255, 255, 255, .08); padding: 2px 7px; border-radius: 5px; color: #fff; font-size: .85rem; }
.banner .x { margin-left: auto; border: 0; background: none; color: var(--chrome); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.banner .x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.banner .x svg { width: 16px; height: 16px; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo li a, .todo li > div { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 9px; text-decoration: none; font-size: .9375rem; }
.todo li a:hover { background: var(--ivory); }
.todo .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: #9a6a10; flex: none; }
.todo .ic.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.todo .ic svg { width: 18px; height: 18px; }
.todo b { display: block; font-weight: 650; }
.todo span { font-size: .8125rem; color: var(--steel); }
.todo .go { margin-left: auto; color: var(--steel); width: 16px; height: 16px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 90px 1fr 34px; gap: 10px; align-items: center; font-size: .875rem; font-weight: 600; }
.bar i { display: block; height: 10px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.bar i b { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--ink); transform-origin: left; animation: grow .9s var(--ease-out) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.bar span:last-child { text-align: right; color: var(--steel); }
.mini-list { display: grid; }
.mini-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini-list a:last-child { border-bottom: 0; }
.mini-list a:hover b { text-decoration: underline; }
.mini-list b { font-weight: 650; display: block; font-size: .9375rem; }
.mini-list span { font-size: .8125rem; color: var(--steel); }
.empty { text-align: center; padding: 34px 16px; color: var(--steel); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 8px; color: var(--chrome); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

/* tags / chips */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.tag.available { background: color-mix(in srgb, var(--green) 14%, transparent); color: #1d6a43; }
.tag.reserved { background: color-mix(in srgb, var(--blue) 14%, transparent); color: #245a96; }
.tag.sold { background: color-mix(in srgb, var(--red) 12%, transparent); color: #9c1e30; }
.tag.hidden { background: var(--sand); color: var(--steel); }
.tag.new { background: var(--accent); color: var(--accent-ink); }
.tag.contacted { background: color-mix(in srgb, var(--blue) 14%, transparent); color: #245a96; }
.tag.closed { background: var(--sand); color: var(--steel); }

/* ---------- inventory table ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--steel); pointer-events: none; }
.search .inp { padding-left: 38px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 10px; background: var(--sand); }
.tabs button { border: 0; background: transparent; height: 34px; padding: 0 12px; border-radius: 7px; font-weight: 650; font-size: .85rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.tabs button em { font-style: normal; font-size: .75rem; color: var(--steel); font-weight: 700; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 28, .14); }
.tbl-wrap { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .75rem; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; padding: 12px 12px; border-bottom: 1px solid var(--line); background: #faf8f3; white-space: nowrap; }
.tbl td.c-km, .tbl td.c-added, .tbl td.c-price { white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9375rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .2s; animation: rowIn .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }
.tbl tbody tr:hover { background: #fbf9f4; }
.tbl tbody tr.sel { background: color-mix(in srgb, var(--accent) 9%, #fff); }
.tbl tbody tr.dragging { opacity: .4; }
.tbl tbody tr.drop-above td { box-shadow: inset 0 2px 0 var(--accent); }
.tbl tbody tr.drop-below td { box-shadow: inset 0 -2px 0 var(--accent); }
.tbl .c-chk { width: 44px; } .tbl .c-grip { width: 30px; padding-right: 0; }
.grip { color: var(--chrome); cursor: grab; display: grid; place-items: center; width: 24px; height: 34px; border: 0; background: none; padding: 0; }
.grip svg { width: 18px; height: 18px; stroke-width: 3.2; }
.grip:hover { color: var(--ink); }
.no-drag .grip { opacity: .25; cursor: not-allowed; }
.car-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; text-decoration: none; }
.thumb { width: 76px; aspect-ratio: 3 / 2; border-radius: 7px; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #233740, #101d22); flex: none; position: relative; color: rgba(213, 221, 224, .5); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 80%; }
.car-cell b { display: block; font-weight: 700; line-height: 1.25; }
.car-cell span { font-size: .8125rem; color: var(--steel); }
.car-cell:hover b { text-decoration: underline; }
.price-cell b { font-weight: 750; }
.price-cell s { display: block; font-size: .78rem; color: var(--steel); }
.st-sel { height: 34px; border-radius: 999px; border: 1.5px solid var(--line-2); padding: 0 30px 0 12px; font-size: .8125rem; font-weight: 700; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310181c' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; cursor: pointer; }
.st-sel.available { border-color: color-mix(in srgb, var(--green) 50%, transparent); color: #1d6a43; }
.st-sel.reserved { border-color: color-mix(in srgb, var(--blue) 50%, transparent); color: #245a96; }
.st-sel.sold { border-color: color-mix(in srgb, var(--red) 45%, transparent); color: #9c1e30; }
.st-sel.hidden { color: var(--steel); }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; }
.row-acts .icon-btn { width: 34px; height: 34px; }
.bulk { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: var(--r); background: var(--night); color: var(--ivory); margin-bottom: 12px; box-shadow: var(--shadow-lg); animation: pageIn .35s var(--ease-out); }
.bulk b { margin-right: auto; font-size: .9375rem; }
.bulk .btn-ghost { --fg: var(--ivory); border-color: rgba(255, 255, 255, .22); }
.bulk .btn-ghost:hover { border-color: #fff; }
.bulk .btn-danger { --fg: #ff9a8a; border-color: rgba(255, 154, 138, .4); }
.tbl-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: .8125rem; color: var(--steel); border-top: 1px solid var(--line); background: #faf8f3; flex-wrap: wrap; }

/* ---------- vehicle editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.editor .stack { min-width: 0; }
.aside-sticky { position: sticky; top: 20px; display: grid; gap: 14px; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 26px 16px; text-align: center; transition: border-color .2s, background-color .2s; cursor: pointer; display: grid; justify-items: center; gap: 6px; background: #fcfbf8; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 30px; height: 30px; color: #b7801a; }
.drop b { font-size: 1rem; }
.drop span { font-size: .8125rem; color: var(--steel); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: #e9e4d9; box-shadow: 0 0 0 1px var(--line); animation: pageIn .35s var(--ease-out); }
.photo .ph { position: relative; aspect-ratio: 3 / 2; background: radial-gradient(80% 70% at 50% 40%, #233740, #101d22); color: rgba(213, 221, 224, .5); display: grid; place-items: center; cursor: grab; }
.photo .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph svg { width: 70%; }
.photo.dragging { opacity: .4; }
.photo.over { box-shadow: 0 0 0 3px var(--accent); }
.photo .cover { position: absolute; left: 8px; top: 8px; z-index: 2; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; }
.photo .p-acts { position: absolute; right: 6px; top: 6px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.photo:hover .p-acts, .photo:focus-within .p-acts { opacity: 1; }
.photo .p-acts button { width: 30px; height: 30px; border-radius: 7px; border: 0; background: rgba(14, 26, 31, .82); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.photo .p-acts button:hover { background: var(--night); }
.photo .p-acts button.del:hover { background: var(--red); }
.photo .p-acts svg { width: 15px; height: 15px; }
.photo .alt { width: 100%; border: 0; border-top: 1px solid var(--line); background: #fff; padding: 8px 10px; font-size: .8rem; }
.photo .alt:focus { outline: none; background: #fffdf6; }
.photo.busy .ph::after { content: ""; position: absolute; inset: 0; background: rgba(14, 26, 31, .55); }
.photo.busy .ph::before { content: ""; position: absolute; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.url-add { display: flex; gap: 8px; margin-top: 12px; }
.url-add .inp { flex: 1; }
.tags-in { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff; min-height: 44px; cursor: text; }
.tags-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(16, 24, 28, .07); }
.tags-in .t { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 10px; border-radius: 6px; background: var(--ivory); font-size: .85rem; font-weight: 600; animation: pageIn .25s var(--ease-out); }
.tags-in .t button { width: 22px; height: 22px; border: 0; background: none; border-radius: 4px; display: grid; place-items: center; color: var(--steel); }
.tags-in .t button:hover { background: var(--sand); color: var(--red); }
.tags-in .t svg { width: 13px; height: 13px; }
.tags-in input { flex: 1; min-width: 160px; border: 0; outline: none; background: transparent; height: 30px; padding: 0 4px; font-size: .9rem; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sugg button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.sugg button:hover { border-style: solid; border-color: var(--ink); }
.savebar { position: sticky; bottom: 0; z-index: 30; margin: 22px calc(-1 * clamp(20px, 3vw, 40px)) calc(-1 * clamp(20px, 3vw, 40px)); padding: 14px clamp(20px, 3vw, 40px); background: rgba(244, 241, 234, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.savebar .state { margin-right: auto; font-size: .875rem; color: var(--steel); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.savebar .state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.savebar.dirty .state i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
/* preview card */
.pv-label { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: 8px; }
.pv-label svg { width: 15px; height: 15px; }
.pv { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.pv-media { position: relative; aspect-ratio: 3 / 2; background: radial-gradient(80% 70% at 50% 40%, #233740, #101d22); color: rgba(213, 221, 224, .5); display: grid; place-items: center; overflow: hidden; }
.pv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-media > svg { width: 70%; }
.pv-badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 5px; flex-wrap: wrap; }
.pv-badges span { height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; background: rgba(251, 250, 247, .94); color: var(--ink); }
.pv-badges .b-new { background: var(--accent); color: var(--accent-ink); }
.pv-badges .b-drop { background: var(--red); color: #fff; }
.pv-badges .b-res { background: var(--blue); color: #fff; }
.pv-badges .b-sold { background: var(--ink); color: #fff; }
.pv-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.pv-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pv-title b { font-stretch: 118%; font-weight: 750; font-size: 1.05rem; line-height: 1.2; }
.pv-title span { color: var(--steel); font-weight: 650; font-size: .875rem; }
.pv-trim { margin: -4px 0 0; color: var(--steel); font-size: .875rem; min-height: 1.2em; }
.pv-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.pv-specs span { height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ivory); font-size: .75rem; font-weight: 650; color: var(--ink-2); display: inline-flex; align-items: center; }
.pv-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.pv-price { display: flex; gap: 8px; align-items: baseline; }
.pv-price b { font-stretch: 112%; font-weight: 800; font-size: 1.35rem; }
.pv-price s { color: var(--steel); font-size: .85rem; }
.pv-mo { font-size: .8rem; color: var(--steel); }
.pv-mo b { color: var(--ink); }
.facts { display: grid; gap: 8px; font-size: .875rem; }
.facts div { display: flex; justify-content: space-between; gap: 10px; }
.facts span { color: var(--steel); }
.facts b { font-weight: 650; text-align: right; }

/* ---------- enquiries ---------- */
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.inbox-list { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; max-height: calc(100vh - 220px); overflow-y: auto; }
.msg { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: background-color .2s; animation: rowIn .35s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.msg:hover { background: #faf8f3; }
.msg[aria-current="true"] { background: color-mix(in srgb, var(--accent) 10%, #fff); }
.msg[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.msg .av { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); text-transform: uppercase; }
.msg.is-new .av { background: var(--accent); color: var(--accent-ink); }
.msg b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.is-new b { font-weight: 800; }
.msg time { font-size: .75rem; color: var(--steel); white-space: nowrap; }
.msg p { grid-column: 2 / -1; margin: 0; font-size: .8125rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .tag { justify-self: start; }
.detail { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: clamp(18px, 2vw, 28px); position: sticky; top: 20px; animation: pageIn .35s var(--ease-out); }
.detail-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head h2 { font-size: 1.6rem; margin: 6px 0 2px; }
.detail-head p { margin: 0; color: var(--steel); font-size: .875rem; }
.reply { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.kv > div { display: contents; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.kv dt { color: var(--steel); font-weight: 600; }
.kv dd { font-weight: 600; overflow-wrap: anywhere; }
.quote { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ivory); white-space: pre-line; font-size: .9375rem; }
.detail-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; }

/* ---------- website / settings ---------- */
.sub-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.sub-nav a { height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: .875rem; background: var(--card); }
.sub-nav a:hover { border-color: var(--ink); }
.sub-nav svg { width: 16px; height: 16px; }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; transition: transform .2s var(--ease); }
.sw::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, rgba(255, 255, 255, .5), transparent 45%, rgba(0, 0, 0, .25)); }
.sw:hover { transform: translateY(-2px); }
.sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.color-in { display: flex; gap: 8px; align-items: center; }
.color-in input[type="color"] { width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; background: #fff; cursor: pointer; }
.color-in .inp { width: 120px; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; }
.sec-row { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.sec-row:first-of-type { border-top: 0; padding-top: 0; }
.sec-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sec-row-head b { font-size: 1rem; }
.sec-row.off > :not(.sec-row-head) { opacity: .45; pointer-events: none; }
.img-pick { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.img-pick .ph { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #233740, #101d22); position: relative; display: grid; place-items: center; color: var(--chrome); font-size: .8rem; font-weight: 650; }
.img-pick .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-pick .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-pv { border-radius: var(--r); overflow: hidden; background: radial-gradient(70% 70% at 64% 46%, #26383f, #0b1519); color: var(--ivory); padding: 22px; position: relative; min-height: 220px; display: grid; align-content: center; }
.hero-pv.photo { background-size: cover; background-position: center; }
.hero-pv.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 19, 22, .85), rgba(10, 19, 22, .3)); }
.hero-pv > * { position: relative; z-index: 1; max-width: 62%; }
.hero-pv .k { font-size: .66rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hero-pv h3 { font-size: 1.7rem; font-stretch: 125%; margin: 0 0 8px; line-height: 1.02; }
.hero-pv p { font-size: .8rem; color: var(--chrome-2); margin: 0 0 12px; }
.hero-pv .b { display: flex; gap: 6px; }
.hero-pv .b span { height: 28px; padding: 0 10px; border-radius: 5px; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink); }
.hero-pv .b span + span { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, .35); }
.hero-pv .car { position: absolute; right: -4%; bottom: 8%; width: 58%; max-width: none; z-index: 0; }
.hours-ed { display: grid; gap: 8px; }
.hours-ed .h-row { display: grid; grid-template-columns: 1fr 1fr auto auto auto; gap: 8px; align-items: center; animation: pageIn .3s var(--ease-out); }
.terms-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.terms-pick label { position: relative; }
.terms-pick input { position: absolute; opacity: 0; pointer-events: none; }
.terms-pick span { height: 36px; min-width: 60px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: .85rem; cursor: pointer; background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.terms-pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.terms-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--ivory); font-size: .875rem; color: var(--ink-2); display: flex; gap: 10px; }
.note svg { width: 18px; height: 18px; flex: none; color: #b7801a; margin-top: 1px; }
.note.warn { background: color-mix(in srgb, var(--red) 8%, #fff); }
.note.warn svg { color: var(--red); }
.danger-zone { box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent), var(--shadow); }

/* ---------- toasts & dialogs ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .45s var(--ease-out); pointer-events: auto; max-width: min(420px, calc(100vw - 40px)); }
.toast svg { width: 18px; height: 18px; color: #3ecf8e; flex: none; }
.toast.err svg { color: #ff8a7a; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.dlg-wrap { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(6, 11, 13, .55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.dlg { width: min(440px, 100%); background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); animation: dlgIn .35s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg h2 { font-size: 1.3rem; }
.dlg p { color: var(--ink-2); }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.scrim { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .aside-sticky { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .inbox { grid-template-columns: 1fr; }
  .detail { position: static; }
  .inbox-list { max-height: 420px; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 24px 20px 28px; min-height: auto; }
  .login-art h2 { font-size: 2rem; }
  .login-car { margin: 0 auto; width: min(520px, 100%); }
  .login-feats { display: none; }
  .login-art .login-copy p { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-100%); visibility: hidden; transition: transform .4s var(--ease-out), visibility 0s .4s; box-shadow: var(--shadow-lg); }
  body.side-open .side { transform: none; visibility: visible; transition: transform .4s var(--ease-out), visibility 0s; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(6, 11, 13, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  body.side-open .scrim { opacity: 1; visibility: visible; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; height: 60px; padding: 0 14px; background: var(--night); color: var(--ivory); }
  .topbar b { font-stretch: 118%; font-weight: 800; letter-spacing: .03em; }
  .topbar .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: var(--ivory); }
  .topbar .icon-btn:last-child { margin-left: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* table → cards */
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; }
  .tbl td { padding: 0; border: 0; }
  .tbl td.c-grip { display: none; }
  .tbl td.c-car { grid-column: 2 / -1; }
  .tbl td.c-price { grid-column: 2; }
  .tbl td.c-km, .tbl td.c-added { display: none; }
  .tbl td.c-status { grid-column: 3; justify-self: end; }
  .tbl td.c-feat { grid-column: 1; grid-row: 3; }
  .tbl td.c-acts { grid-column: 2 / -1; grid-row: 3; }
  .car-cell { min-width: 0; }
  .savebar { margin-left: -20px; margin-right: -20px; margin-bottom: -20px; padding-left: 20px; padding-right: 20px; }
  .img-pick { grid-template-columns: 140px 1fr; }
  .hero-pv > * { max-width: 100%; }
  .hero-pv .car { opacity: .35; }
}
@media (max-width: 600px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kpi b { font-size: 1.5rem; }
  .kv { grid-template-columns: 110px 1fr; }
  .img-pick { grid-template-columns: 1fr; }
  .hours-ed .h-row { grid-template-columns: 1fr 1fr auto; }
  .hours-ed .h-row .mv { display: none; }
  .toasts { left: 14px; right: 14px; bottom: 14px; justify-items: stretch; }
  .search { max-width: none; }
  .page-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
