/* Layout: olive brand band on top, cream working surface below; content in a 1200px column, cards only where an object needs edges. */
:root {
  --bg: #f6f2e9; --surface: #fbf9f4; --surface-2: #f0ebdf; --line: #e4ddcb; --line-2: #d6cdb6;
  --ink: #211e14; --ink-2: #4f493a; --muted: #756f61;
  --brand: #45402f; --brand-ink: #f6f2e9; --brand-2: #5a5440;
  --copper: #c17f4e; --copper-ink: #94562a;
  --primary-bg: #45402f; --primary-ink: #fbf9f4; --primary-hover: #353123;
  --good: #2f6b40; --good-bg: #e2eedf; --warn: #8a5c0c; --warn-bg: #f5e8cc; --bad: #9c3424; --bad-bg: #f6e0da;
  --info: #35566f; --info-bg: #e1e9ee; --action: #8e4f22; --action-bg: #f4e2d2;
  --shadow: 0 1px 2px rgba(33,30,20,.06), 0 4px 16px rgba(33,30,20,.05);
  --f: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 10px; --r-s: 7px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #16140f; --surface: #1f1c15; --surface-2: #28241b; --line: #363124; --line-2: #4a4433;
  --ink: #efe9dc; --ink-2: #cfc6b2; --muted: #a0978a;
  --brand: #2a261b; --brand-ink: #efe9dc; --brand-2: #3a3527;
  --copper: #c98654; --copper-ink: #e0a274;
  --primary-bg: #e3d6b6; --primary-ink: #1c1a13; --primary-hover: #f0e6cc;
  --good: #8cc79c; --good-bg: #1d3124; --warn: #e2b862; --warn-bg: #362b14; --bad: #ec9483; --bad-bg: #3a1f19;
  --info: #9cbcd6; --info-bg: #1c2833; --action: #e8a877; --action-bg: #3a2617;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #16140f; --surface: #1f1c15; --surface-2: #28241b; --line: #363124; --line-2: #4a4433;
  --ink: #efe9dc; --ink-2: #cfc6b2; --muted: #a0978a;
  --brand: #2a261b; --brand-ink: #efe9dc; --brand-2: #3a3527;
  --copper: #c98654; --copper-ink: #e0a274;
  --primary-bg: #e3d6b6; --primary-ink: #1c1a13; --primary-hover: #f0e6cc;
  --good: #8cc79c; --good-bg: #1d3124; --warn: #e2b862; --warn-bg: #362b14; --bad: #ec9483; --bad-bg: #3a1f19;
  --info: #9cbcd6; --info-bg: #1c2833; --action: #e8a877; --action-bg: #3a2617;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); margin: 0; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
body { font-family: var(--f); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 650; }
h4 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 .7em; max-width: 72ch; }
a { color: var(--copper-ink); }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .big { font-size: 20px; font-weight: 700; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); }
.lead { font-size: 16.5px; color: var(--ink-2); }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; }
.stack { display: grid; gap: 10px; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* frame */
.frame { flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.top { background: var(--brand); color: var(--brand-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top-in { max-width: 1240px; margin: 0 auto; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 18px; }
.top.slim .top-in { padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; flex: none; text-decoration: none; }
.wm { font-weight: 700; letter-spacing: .32em; font-size: 14px; color: var(--brand-ink); }
.top-sub { font-size: 12px; color: color-mix(in srgb, var(--brand-ink) 65%, transparent); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav-b { text-decoration: none; background: none; border: 0; color: color-mix(in srgb, var(--brand-ink) 78%, transparent); padding: 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 14px; }
.nav-b:hover { color: var(--brand-ink); background: rgba(255,255,255,.07); }
.nav-b.on { color: var(--brand); background: var(--brand-ink); }
:root[data-theme="dark"] .nav-b.on { color: #1c1a13; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-b.on { color: #1c1a13; } }
.top-r { flex: none; display: flex; align-items: center; gap: 10px; }
.top-r .inp { background: var(--brand-2); color: var(--brand-ink); border-color: transparent; min-width: 180px; height: 34px; padding-block: 4px; }
.who { font-size: 13px; color: color-mix(in srgb, var(--brand-ink) 85%, transparent); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,.07); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.who:hover, .who.on { background: rgba(255,255,255,.14); color: var(--brand-ink); }
.who-p { opacity: .75; }
.main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding-block: 28px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.foot { display: flex; gap: 14px; align-items: center; justify-content: center; padding-block: 18px 22px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot .wm { color: var(--muted); font-size: 11px; }
.as-bar, .leave-bar, .err-bar { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-block: 9px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: 14px; }
.as-bar { background: var(--copper); color: #fff; }
.leave-bar { background: var(--warn-bg); color: var(--warn); }
.err-bar { background: var(--bad-bg); color: var(--bad); }
.frame-c .main { display: grid; place-items: center; min-height: 70vh; }
.gate { max-width: 520px; width: 100%; padding: 28px; display: grid; gap: 12px; text-align: left; }
.gate h1 { font-size: 24px; }

/* page */
.page { display: grid; gap: 18px; }
.page.narrow { max-width: 860px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-h > div:first-child { min-width: 0; display: grid; gap: 6px; }
.page-h p { margin: 0; }
.page-h > select.inp { width: auto; min-width: 120px; }
.back { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13.5px; justify-self: start; }
.back:hover { color: var(--ink); }
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; padding: 26px 26px 24px; background: var(--brand); color: var(--brand-ink); border-radius: var(--r); }
.hero h1 { color: var(--brand-ink); margin: 6px 0 8px; }
.hero .lead { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); margin: 0; }
.hero .eyebrow { color: var(--copper); }
.hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .btn-secondary { background: transparent; color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 35%, transparent); }
.hero .btn-primary { background: var(--brand-ink); color: var(--brand); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid2.at { align-items: start; }
.col { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 880px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; display: grid; gap: 12px; align-content: start; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-h > div:first-child { display: grid; gap: 3px; min-width: 0; }
.card-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-img { width: 100%; max-width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-s); background: var(--surface-2); }
.img-ph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); letter-spacing: .3em; font-weight: 700; font-size: 11px; aspect-ratio: 16/9; border-radius: var(--r-s); width: 100%; }
.admin-panel { border-color: var(--copper); border-width: 1.5px; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
@media (max-width: 760px) { .ap-grid { grid-template-columns: minmax(0, 1fr); } }
.empty { padding: 34px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 8px; justify-items: center; color: var(--ink-2); }
.empty-t { font-weight: 650; color: var(--ink); }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; text-align: left; }
button.stat { cursor: pointer; } button.stat:hover { border-color: var(--line-2); }
.stat-n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: 13.5px; }
.attention { background: var(--action-bg); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.att { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.att strong { color: var(--action); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14.5px; cursor: pointer; border: 1px solid transparent; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary-bg); color: var(--primary-ink); }
.btn-primary:not(:disabled):hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:not(:disabled):hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-ghost-danger { background: transparent; color: var(--bad); }
.btn-ghost-danger:hover { background: var(--bad-bg); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-light { background: #fff; color: #211e14; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sp .7s linear infinite; display: inline-block; }
.spin.big { width: 28px; height: 28px; color: var(--copper); justify-self: center; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.5s; } * { scroll-behavior: auto !important; } }
.link { background: none; border: 0; padding: 0; color: var(--copper-ink); cursor: pointer; text-decoration: underline; font-size: 13.5px; }
.confirm { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.confirm-q { font-size: 13.5px; color: var(--bad); font-weight: 600; }

/* pills */
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-action { background: var(--action-bg); color: var(--action); }

/* forms */
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--copper-ink); }
.hint { font-size: 12.5px; color: var(--muted); }
.err { font-size: 13px; color: var(--bad); font-weight: 600; }
.inp { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
textarea.inp { resize: vertical; min-height: 44px; line-height: 1.45; }
.inp:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 22%, transparent); }
.has-error .inp, .has-error .seg { border-color: var(--bad); }
.inp.num { text-align: right; }
.inp.sm { width: 110px; padding: 5px 8px; font-size: 14px; }
.inp.typed { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 8%, var(--surface)); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.form-grid.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.affix { display: flex; align-items: center; gap: 8px; } .affix span { color: var(--muted); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; }
.check:hover { border-color: var(--line-2); }
.check.on { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 7%, var(--surface)); }
.check.dis { opacity: .55; cursor: not-allowed; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; margin-top: 2px; background: var(--surface); display: grid; place-items: center; }
.check.radio .box { border-radius: 50%; }
.check.on .box { background: var(--copper); border-color: var(--copper); }
.check.on .box::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check.radio.on .box::after { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--copper); outline-offset: 2px; }
.check-body { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-width: 0; }
.o-n { font-weight: 550; } .o-p { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-sub { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 999px; border: 1px solid transparent; max-width: 100%; }
.seg-b { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 550; }
.seg-b.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { width: min(320px, 100%); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.tab.on { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); }
.tab.off { text-decoration: line-through; opacity: .7; }
.tabs.sub .tab { font-size: 13px; padding: 5px 11px; }
.notice { padding: 11px 14px; border-radius: var(--r-s); font-size: 14px; background: var(--info-bg); color: var(--info); }
.notice-good { background: var(--good-bg); color: var(--good); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.err-sum { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-s); padding: 10px 14px; font-size: 13.5px; }
.err-sum ul { margin: 6px 0 0; padding-left: 18px; }
.save { font-size: 13px; color: var(--muted); } .save-ok::before { content: "✓ "; color: var(--good); } .save-bad { color: var(--bad); font-weight: 600; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.mono { white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link { cursor: pointer; } .row-link:hover td { background: var(--surface-2); }
.tbl tr.grp td { background: var(--surface-2); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px 8px; }
.tbl.prices td { padding: 6px 8px; }
.neg { color: var(--bad); }

/* configurator */
.cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cfg-main { display: grid; gap: 14px; min-width: 0; }
.cfg { display: grid; gap: 14px; }
.cfg-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); min-width: 0; }
@media (max-width: 960px) { .cfg-layout { grid-template-columns: minmax(0, 1fr); } .cfg-side { position: static; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 12px; scroll-margin-top: 90px; }
.step-h { display: flex; align-items: center; gap: 10px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-bg); color: var(--primary-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } .model-n { font-size: 13.5px; } }
.model { border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 8px; display: grid; gap: 4px; text-align: left; cursor: pointer; }
.model:hover { border-color: var(--line-2); }
.model.on { border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 18%, transparent); }
.model-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; background: #fff; }
.model .img-ph { aspect-ratio: 16/10; }
.model-n { font-weight: 650; font-size: 14.5px; padding: 2px 2px 0; }
.model-p { font-size: 13px; color: var(--ink-2); padding: 0 2px 2px; font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); } .opts-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.og { display: grid; gap: 8px; } .og-n { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.incl { font-size: 14px; color: var(--ink-2); }
.incl summary { cursor: pointer; color: var(--copper-ink); font-weight: 600; }
.incl ul { margin: 8px 0 0; padding-left: 18px; columns: 2 220px; column-gap: 24px; }
.incl li { break-inside: avoid; margin-bottom: 3px; }
.sum { padding: 16px; gap: 10px; }
.sum-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-s); background: #fff; }
.sum-act { display: grid; gap: 8px; }
.totals { display: grid; gap: 8px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; }
.lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.lines li.adj { color: var(--copper-ink); }
.total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 17px; border-top: 1.5px solid var(--ink); padding-top: 8px; }
.pay { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); padding: 9px 11px; border-radius: var(--r-s); }
.pay div { display: flex; justify-content: space-between; gap: 10px; }
.submit-box { background: var(--surface); border: 1.5px solid var(--copper); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }

/* order detail */
.tl { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tl li { display: grid; gap: 3px; position: relative; padding-top: 18px; font-size: 13px; }
.tl .dot { position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.tl li::before { content: ""; position: absolute; top: 7px; left: 14px; right: -6px; height: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li.done .dot { background: var(--copper); border-color: var(--copper); }
.tl li.done::before { background: var(--copper); }
.tl li.now .dot { border-color: var(--copper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper) 25%, transparent); background: var(--copper); }
.tl li.now .tl-l { font-weight: 700; color: var(--ink); }
.tl-l { color: var(--ink-2); } .tl-d { color: var(--muted); font-size: 12px; }
.tl-cancel { opacity: .5; }
@media (max-width: 720px) { .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } .tl li::before { display: none; } }
.kv { margin: 0; display: grid; gap: 0; }
.kv-r { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv-r:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; } .kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.spec { display: grid; gap: 14px; }
.spec-opts { display: grid; gap: 8px; }
.spec-g ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.spec-g li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.spec-g li span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--copper); border-radius: 2px; margin-right: 9px; vertical-align: middle; }
.spec-gn { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.special { background: var(--action-bg); border-radius: var(--r-s); padding: 10px 14px; }
.special p { margin: 4px 0 0; color: var(--ink); }
.msgs { display: grid; gap: 10px; }
.msg { padding: 10px 12px; border-radius: var(--r-s); max-width: 92%; }
.msg-h { background: var(--surface-2); justify-self: start; }
.msg-p { background: color-mix(in srgb, var(--copper) 12%, var(--surface)); justify-self: end; }
.msg-who { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.msg-t { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg-new { display: grid; gap: 8px; justify-items: end; }
.adj-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 8px; align-items: center; }
.adj-row:has(input:nth-of-type(3)) { grid-template-columns: minmax(0, 1fr) 100px 100px auto; }
@media (max-width: 520px) { .adj-row, .adj-row:has(input:nth-of-type(3)) { grid-template-columns: minmax(0, 1fr) 90px; } }

/* misc */
.news { display: grid; gap: 14px; }
.news-i { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.news-i:last-child { border-bottom: 0; padding-bottom: 0; }
.news-i p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.news-m { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 11px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 14px; }
.toast-bad { background: var(--bad); color: #fff; } .toast-info { background: var(--info); color: #fff; }
.prog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; width: 140px; max-width: 100%; }
.prog span { display: block; height: 100%; background: var(--copper); border-radius: 3px; }
.vbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 190px; align-items: end; }
.vbar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; min-width: 0; }
.vbar-t { display: flex; align-items: flex-end; height: 100%; border-bottom: 1px solid var(--line-2); }
.vbar-f { width: 100%; background: var(--copper); border-radius: 4px 4px 0 0; position: relative; outline: none; }
.vbar-k { font-size: 11px; color: var(--muted); text-align: center; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-t { height: 14px; background: var(--surface-2); border-radius: 0 4px 4px 0; }
.hbar-f { display: block; height: 100%; background: var(--copper); border-radius: 0 4px 4px 0; position: relative; }
.hbar-v { text-align: right; }
[data-tip]:hover::after, [data-tip]:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 4px 8px; border-radius: 5px; font-size: 12px; white-space: nowrap; z-index: 5; pointer-events: none; }
.hbar-f[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.code-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-s); }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reqs li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reqs li:last-child { border-bottom: 0; }
.reqs .inp { min-width: 180px; }
.danger-zone { display: flex; justify-content: flex-end; }
.contact-row { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.spec-row { padding-bottom: 12px; border-bottom: 1px solid var(--line); align-items: end; }
.docs, .contacts, .files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs li, .files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.docs li:last-child, .files li:last-child { border-bottom: 0; }
.bul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.checklist { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.drop { display: block; border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 20px; text-align: center; cursor: pointer; color: var(--ink-2); }
.drop:hover { border-color: var(--copper); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.thumb { display: grid; gap: 4px; font-size: 12.5px; min-width: 0; }
.thumb img, .thumb-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.thumb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-edit { display: grid; gap: 8px; justify-items: start; }
.pl-g { display: grid; gap: 6px; padding-bottom: 10px; }
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 8px 14px; padding-block: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .top-r .inp { min-width: 150px; }
  .main { padding-block: 18px 40px; }
  .hero { padding: 20px 18px; }
  .card, .step { padding: 14px 14px; }
  .kv-r { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* website additions */
.center { text-align: center; }
.between { justify-content: space-between; }
.end-al { align-items: flex-end; }
.end-al .field { flex: 1; min-width: 200px; }
.gate form { display: grid; gap: 12px; }
.gate .btn-primary[type=submit] { justify-self: start; }
.pw { position: relative; display: flex; }
.pw .inp { padding-right: 64px; }
.pw-t { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--copper-ink); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.pw-t:hover { background: var(--surface-2); }
.att-bar { display: flex; gap: 6px; align-items: center; background: var(--action-bg); color: var(--ink); border: 0; border-radius: var(--r); padding: 12px 16px; cursor: pointer; font: inherit; text-align: left; }
.att-bar strong { color: var(--action); }
.prog.behind span { background: var(--bad); }
.invite-row { align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
a.thumb-ph { text-decoration: none; }
.check-body a { color: var(--copper-ink); font-weight: 600; }
.submit-box .check { border-color: var(--line-2); }
@media print { .top, .foot, .as-bar, .toasts { display: none; } }

.top-r .inp { width: auto; }
.who { flex: none; }
.pill { font-family: var(--f); letter-spacing: 0; }
