/* Indespension brand (Brand Guidelines v1.1)
   Dark Blue #202945 · Bright Red #e73843 · Metal Grey #d8dfe1
   Tamba Sans Bold Italic for headlines/labels (tracking -45) · Tamba Sans Light body · Arial fallback
   Red underscore "device" has a 10° slant. Checkerplate pattern as background texture. */
@font-face { font-family: 'Tamba Sans'; src: url(brand/TambaSans-Light.otf) format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Tamba Sans'; src: url(brand/TambaSans-BoldItalic.otf) format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --blue: #202945; --blue-2: #2b3558; --red: #e73843; --red-dark: #c92b36; --grey: #d8dfe1; --grey-2: #eef1f2; --white: #fff;
  --ink: var(--blue); --muted: #56607c; --line: #cfd6d9;
  --ok: #1d7a45; --warn: #a35b00;
  --head: 'Tamba Sans', Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(32, 41, 69, .06), 0 8px 24px -12px rgba(32, 41, 69, .18);
  --slant: polygon(var(--s, 8px) 0, 100% 0, calc(100% - var(--s, 8px)) 100%, 0 100%);
  /* checkerplate: alternating raised bars, drawn so it tiles */
  --plate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='%23fff' fill-opacity='.13'%3E%3Crect x='4' y='9' width='16' height='4.5' rx='2' transform='rotate(-38 12 11)'/%3E%3Crect x='26' y='29' width='16' height='4.5' rx='2' transform='rotate(-38 34 31)'/%3E%3Crect x='26' y='9' width='16' height='4.5' rx='2' transform='rotate(52 34 11)'/%3E%3Crect x='4' y='29' width='16' height='4.5' rx='2' transform='rotate(52 12 31)'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 16px/1.55 'Tamba Sans', Arial, sans-serif; background: var(--grey); color: var(--ink); -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 700; font-style: italic; letter-spacing: -0.02em; }
h1, h2, h3, h4, label.q, th, .pill, button, .btn, .eyebrow, .num { font-family: var(--head); font-weight: 700; font-style: italic; letter-spacing: -0.045em; }
.in { position: relative; display: inline-block; }
.in::after { content: ''; position: absolute; left: -.02em; right: .08em; bottom: -.08em; height: .14em; background: var(--red); transform: skewX(-10deg); }
[hidden] { display: none !important; }

/* ---------- hero ---------- */
.hero, .topbar, .done { position: relative; overflow: hidden; background: var(--blue); color: var(--white); isolation: isolate; }
.plate { position: absolute; inset: 0 0 0 auto; width: min(46%, 560px); background: var(--plate) 0 0 / 44px 44px, var(--blue-2); z-index: -1;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.plate::before { content: ''; position: absolute; left: 0; bottom: 18%; width: 34%; height: 18px; background: var(--red); transform: skewX(-10deg) translateX(-30%); }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 26px 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero .hero-inner h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; max-width: none; }
.hero .logo { height: 26px; flex-shrink: 0; }
.intro { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.intro.err { color: var(--red); font-weight: 700; font-style: italic; }
.nav { display: flex; align-items: center; gap: 14px; margin-bottom: 38px; }
.logo { height: 28px; width: auto; display: block; }
.nav-tag { font: 700 italic 13px var(--head); letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.6); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 15px; letter-spacing: .01em; text-transform: uppercase; }
.hero h1, .done h1 { margin: 0; font-size: clamp(36px, 6.2vw, 68px); line-height: .98; max-width: 13ch; }
.lede { margin: 18px 0 0; max-width: 54ch; font-size: 17px; color: rgba(255,255,255,.82); }
.lede.err { color: #ffb3b8; }

.hero-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.8); }
.who span { font: 700 italic 15px var(--head); letter-spacing: -0.02em; color: #fff; }
button.link { clip-path: none; background: none; padding: 4px 2px; color: rgba(255,255,255,.75); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { background: none; color: #fff; }

/* ---------- admin nav (admins only) ---------- */
.admin-nav { display: flex; gap: 4px; margin-left: auto; }
.admin-nav button { --s: 6px; background: rgba(255,255,255,.1); color: #fff; font-size: 15px; padding: 9px 18px; }
.admin-nav button:hover { background: rgba(255,255,255,.2); }
.admin-nav button[aria-pressed=true] { background: var(--red); }
.admin-nav .count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--red); font-size: 12px; text-align: center; }
.admin-nav button[aria-pressed=true] .count { color: var(--red); }
.admin-view { padding-bottom: 60px; }
body.view-admin .progress, body.view-admin #layout, body.view-admin .mobile-bar, body.view-admin #done { display: none !important; }

/* ---------- sign in ---------- */
.signin { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 20px; background: var(--blue); overflow: auto; isolation: isolate; }
.signin .plate { width: 50%; }
.signin-card { width: min(420px, 100%); background: var(--white); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  display: grid; gap: 4px; animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.signin-card .logo { height: 24px; margin-bottom: 18px; }
.signin-card h2 { margin: 0; font-size: 34px; line-height: 1; }
.signin-card .help { margin: 10px 0 14px; }
.signin-card label.q { margin-top: 10px; }
.signin-card button { margin-top: 18px; justify-self: start; }
body.signed-out .progress, body.signed-out .layout, body.signed-out .mobile-bar { visibility: hidden; }

/* ---------- the depot's own submissions ---------- */
.mine { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.mine h4 { margin: 0 0 10px; font-size: 18px; }
.mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mine li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; }
.mine img, .mine .ph { width: 64px; aspect-ratio: var(--crop, 1.22); object-fit: cover; border-radius: 3px; background: var(--grey); display: block; }
.mine b { display: block; font-size: 14px; line-height: 1.2; margin-bottom: 4px; }
.mine .why { margin: 6px 0 0; padding: 6px 8px; background: #fdecee; border-radius: 3px; color: var(--red); font-size: 13px; line-height: 1.35; }
select.locked { pointer-events: none; background: var(--grey-2); color: var(--muted); }
.select:has(select.locked)::after { display: none; }

/* ---------- progress ---------- */
.progress { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.progress-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.progress-text { font-size: 14px; white-space: nowrap; min-width: 120px; }
.bar { flex: 1; height: 10px; background: var(--grey-2); clip-path: var(--slant); --s: 3px; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.ready .bar i { background: var(--ok); }

/* ---------- layout ---------- */
.layout { max-width: 1180px; margin: 0 auto; padding: 24px 20px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.side { position: sticky; top: 64px; display: grid; gap: 16px; }
main { max-width: 1180px; margin: 0 auto; padding: 20px; }

/* ---------- sections ---------- */
.sec { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 24px; margin-bottom: 18px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.num { position: relative; font-size: 44px; line-height: .8; color: var(--blue); padding-bottom: 8px; }
.num::after { content: ''; position: absolute; left: 0; right: 4px; bottom: 0; height: 6px; background: var(--red); transform: skewX(-10deg); }
.sec-head h2 { margin: 0 0 6px; font-size: 24px; line-height: 1; }
.sec.bad { box-shadow: var(--shadow), inset 4px 0 0 var(--red); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.field { grid-column: span 6; min-width: 0; scroll-margin-top: 90px; }
.w-half { grid-column: span 3; } .w-third { grid-column: span 2; }

label.q { display: block; font-size: 16px; margin-bottom: 7px; }
.req { color: var(--red); }
.help { color: var(--muted); font-size: 14px; margin: 6px 0 0; line-height: 1.4; }
input[type=text], input[type=number], input[type=password], select, textarea {
  width: 100%; font: 400 16px/1.3 Arial, sans-serif; color: var(--blue); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 4px;
  background: var(--white); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
input::placeholder, textarea::placeholder { color: #9aa3b5; }
input:hover, select:hover, textarea:hover { border-color: #aab4ba; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 41, 69, .12); }
input.upper { text-transform: uppercase; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 4px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.affix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 41, 69, .12); }
.affix input { border: 0; box-shadow: none !important; min-width: 0; }
.affix .pre, .affix .post { display: flex; align-items: center; padding: 0 12px; font: 700 italic 15px var(--head); color: var(--muted); background: var(--grey-2); }
.affix .pre { border-right: 1px solid var(--line); } .affix .post { border-left: 1px solid var(--line); }

/* choice tiles */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.many { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.choices label { position: relative; display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 48px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 4px; cursor: pointer; user-select: none; text-align: center; background: var(--white);
  font: 700 italic 16px var(--head); letter-spacing: -0.03em; transition: border-color .15s, background .15s, color .15s, transform .1s; }
.choices label:hover { border-color: var(--blue); }
.choices label:active { transform: scale(.98); }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--blue); color: var(--white); }
.choices label:has(input:checked)::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; background: var(--red); transform: skewX(-10deg); }
.choices label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(231, 56, 67, .35); }

.field.bad input, .field.bad select, .field.bad textarea, .field.bad .affix, .field.bad .choices label { border-color: var(--red); }
.err { color: var(--red); font: 700 italic 14px var(--head); letter-spacing: -0.02em; margin-top: 6px; }
.err:empty { display: none; }

/* ---------- buttons: the slanted device shape ---------- */
button, .btn { --s: 7px; font-size: 15px; padding: 10px 22px; border: 0; border-radius: 0; background: var(--blue); color: var(--white); cursor: pointer;
  clip-path: var(--slant); transition: background .15s, transform .1s; white-space: nowrap; }
button:hover { background: var(--blue-2); }
button:active { transform: translateY(1px); }
button.primary { --s: 9px; background: var(--red); font-size: 18px; padding: 13px 32px; }
button.primary:hover { background: var(--red-dark); }
button.big { --s: 12px; font-size: 22px; padding: 16px 44px; }
button.secondary { background: var(--grey); color: var(--blue); }
button.secondary:hover { background: #c3ccd0; }
button.ghost { background: rgba(255,255,255,.92); color: var(--blue); }
button.danger { background: #fdecee; color: var(--red); }
button.danger:hover { background: #f9d3d7; }
button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; transform: none; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 0; }

/* ---------- photos ---------- */
.photo-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cam-open { --s: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 40px; font-size: 20px; }
.cam-open svg { width: 40px; height: 40px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 34px 16px; border: 2px dashed #b6c0c5; border-radius: var(--radius); background: var(--grey-2); color: var(--blue); transition: border-color .15s, background .15s, padding .2s; position: relative; }
.drop:hover, .drop.over { border-color: var(--red); background: #fff5f6; }
.drop svg { width: 46px; height: 46px; color: var(--red); margin-bottom: 4px; }
.drop-title { font: 700 italic 22px var(--head); letter-spacing: -0.045em; }
.drop-sub { font-size: 14px; color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { border-color: var(--blue); }
.drop.compact { flex-direction: row; gap: 12px; padding: 14px 16px; }
.drop.compact svg { width: 30px; height: 30px; margin: 0; }
.drop.compact .drop-title { font-size: 18px; }
.drop.compact .drop-sub { display: none; }
.drop.busy { opacity: .6; pointer-events: none; }
.crop-hint { margin-top: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs figure { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: var(--blue); }
.thumbs figure.main { grid-column: span 2; grid-row: span 2; box-shadow: 0 0 0 3px var(--red); }
.thumbs img { width: 100%; height: 100%; aspect-ratio: var(--crop, 1.22); object-fit: cover; display: block; cursor: pointer; transition: transform .25s, opacity .2s; }
.thumbs figure:hover img { transform: scale(1.03); opacity: .92; }
.thumbs button { position: absolute; --s: 5px; padding: 4px 12px; font-size: 13px; }
.thumbs .remove { top: 6px; right: 6px; }
.thumbs .adjust { left: 6px; bottom: 6px; }
.thumbs .first { left: 6px; top: 6px; opacity: 0; transition: opacity .15s; }
.thumbs figure:hover .first, .thumbs .first:focus-visible { opacity: 1; }
.badge { position: absolute; left: 0; top: 10px; padding: 4px 14px 4px 10px; background: var(--red); color: #fff; font: 700 italic 13px var(--head); letter-spacing: -0.02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ---------- website preview ---------- */
.preview { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.preview-label { background: var(--blue); color: rgba(255,255,255,.75); padding: 8px 14px; font: 700 italic 12px var(--head); letter-spacing: .04em; text-transform: uppercase; }
.pv-img { aspect-ratio: var(--crop, 1.22); background: var(--grey-2); display: grid; place-items: center; overflow: hidden; }
.pv-img span { color: var(--muted); font-size: 14px; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .35s ease; }
.pv-body { padding: 14px 16px 18px; }
.pv-cond { display: inline-block; background: var(--red); color: #fff; font: 700 italic 12px var(--head); padding: 3px 12px; text-transform: uppercase; letter-spacing: .02em;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); margin-bottom: 8px; }
.pv-body h3 { margin: 0; font-size: 22px; line-height: 1.05; }
.pv-price { margin-top: 8px; font: 700 italic 30px var(--head); letter-spacing: -0.045em; color: var(--red); }
.pv-specs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-specs li { background: var(--grey-2); border-radius: 3px; padding: 4px 9px; font-size: 13px; }
.pv-specs li span { color: var(--muted); }
.pv-depot { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.pv-depot:empty { display: none; }
.todo { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.todo h4 { margin: 0 0 8px; font-size: 18px; }
.todo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.todo a { display: inline-block; padding: 4px 10px; border-radius: 3px; background: #fdecee; color: var(--red); font: 700 italic 13px var(--head); text-decoration: none; letter-spacing: -0.02em; }
.todo a:hover { background: var(--red); color: #fff; }
.todo .ok { color: var(--ok); font: 700 italic 15px var(--head); }
.todo.all-done { box-shadow: var(--shadow), inset 4px 0 0 var(--ok); }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- done ---------- */
.done { min-height: 100vh; display: flex; align-items: center; }
.done .plate { width: 52%; }
.done-inner { max-width: 1180px; width: 100%; margin: 0 auto; padding: 40px 20px; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.done h1 { font-size: clamp(54px, 10vw, 120px); }
.ref { margin: 26px 0 28px; color: rgba(255,255,255,.7); font-size: 15px; }
.sku { display: inline-block; margin-left: 8px; background: rgba(255,255,255,.1); color: #fff; padding: 6px 14px; font: 700 italic 18px var(--head); letter-spacing: -0.02em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
body.submitted .hero, body.submitted .progress, body.submitted .layout, body.submitted .mobile-bar { display: none !important; }

/* ---------- in-app camera ---------- */
.camera { position: fixed; inset: 0; z-index: 40; background: #000; color: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-frame { position: absolute; pointer-events: none; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .55); transition: all .2s; }
.cam-frame i { position: absolute; width: 26px; height: 26px; border: 4px solid var(--red); }
.cam-frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.cam-frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; }
.cam-frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; }
.cam-frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-rotate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: rgba(32, 41, 69, .9); padding: 24px; z-index: 2; }
.cam-rotate svg { width: 96px; height: 96px; color: #fff; animation: tilt 1.8s ease-in-out infinite; }
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.cam-rotate b { font: 700 italic 26px var(--head); letter-spacing: -0.045em; }
.cam-rotate span { color: rgba(255,255,255,.75); }
.cam-bar { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
/* portrait-shaped screen: bars top and bottom */
.cam-top { left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.cam-bottom { left: 0; right: 0; bottom: 0; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cam-icon { --s: 0px; clip-path: none; width: 46px; height: 46px; border-radius: 50%; padding: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; display: grid; place-items: center; }
.cam-icon svg { width: 22px; height: 22px; }
.cam-icon[aria-pressed=true] { background: #ffd23f; color: #000; }
.cam-count { font: 700 italic 18px var(--head); letter-spacing: -0.03em; background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 20px; }
.shutter { clip-path: none; width: 78px; height: 78px; padding: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.4), 0 0 0 8px #fff; flex-shrink: 0; }
.shutter:hover { background: #f1f1f1; }
.shutter:active { transform: scale(.92); background: var(--red); }
.shutter:disabled { opacity: .35; }
.cam-last { clip-path: none; width: 64px; height: 52px; padding: 0; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; border: 2px solid rgba(255,255,255,.7); }
.cam-last:empty { visibility: hidden; }
.cam-last img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-done { --s: 8px; background: var(--red); font-size: 18px; padding: 12px 22px; min-width: 64px; }
.cam-msg { position: absolute; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translate(-50%, -8px); z-index: 4; margin: 0; padding: 8px 16px; border-radius: 20px;
  background: rgba(0,0,0,.7); font: 700 italic 15px var(--head); letter-spacing: -0.02em; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.cam-msg.show { opacity: 1; transform: translate(-50%, 0); }
/* landscape-shaped screen: controls in a column on the right, like a real camera */
@media (orientation: landscape) {
  .cam-bottom { left: auto; right: 0; top: 0; bottom: 0; flex-direction: column-reverse; justify-content: center; gap: 22px;
    padding: 0 calc(18px + env(safe-area-inset-right)) 0 18px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.55)); }
  .cam-top { flex-direction: row; top: 0; bottom: auto; left: 0; right: 0; justify-content: space-between; padding: 12px calc(120px + env(safe-area-inset-right)) 12px calc(12px + env(safe-area-inset-left)); }
  .cam-msg { top: 16px; }
}

/* ---------- crop editor ---------- */
.cropper { position: fixed; inset: 0; z-index: 30; background: rgba(20, 26, 46, .86); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s ease; }
.crop-box { background: var(--white); border-radius: var(--radius); padding: 20px; width: min(780px, 100%); max-height: 100%; overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.crop-box h2 { margin: 0 0 2px; font-size: 26px; }
.crop-frame { position: relative; width: min(100%, calc((100dvh - 260px) * var(--crop, 1.22))); aspect-ratio: var(--crop, 1.22); overflow: hidden; background: var(--blue);
  cursor: grab; touch-action: none; user-select: none; margin: 12px auto 14px; border-radius: 3px; }
.crop-frame.dragging { cursor: grabbing; }
.crop-frame::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--red); pointer-events: none; border-radius: 3px; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)),
    linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5));
  background-size: 1px 100%, 1px 100%, 100% 1px, 100% 1px; background-repeat: no-repeat;
  background-position: 33.333% 0, 66.666% 0, 0 33.333%, 0 66.666%; opacity: 0; transition: opacity .2s; }
.crop-frame.dragging .crop-grid, .crop-frame:hover .crop-grid { opacity: 1; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 italic 16px var(--head); letter-spacing: -0.045em; }
.crop-zoom input { flex: 1; accent-color: var(--red); height: 28px; }

/* ---------- admin ---------- */
.topbar .bar-inner { max-width: 1280px; margin: 0 auto; padding: 16px 20px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 26px; }
.topbar .grow { flex: 1; }
.topbar .plate { width: 30%; }
main.wide { max-width: 1280px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.login { max-width: 420px; margin: 60px auto; padding: 28px; }
.login h2 { margin: 0 0 4px; font-size: 28px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .grow { flex: 1; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { --s: 6px; background: var(--white); color: var(--blue); font-size: 16px; padding: 10px 20px; box-shadow: var(--shadow); }
.tabs button:hover { background: var(--grey-2); }
.tabs button[aria-pressed=true] { background: var(--blue); color: #fff; }
.tabs .count { display: inline-block; min-width: 24px; margin-left: 6px; padding: 0 7px; border-radius: 10px; background: var(--grey); color: var(--blue); font-size: 13px; text-align: center; }
.tabs button[aria-pressed=true] .count { background: var(--red); color: #fff; }
.export-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.export-bar .sel { font: 700 italic 16px var(--head); letter-spacing: -0.03em; }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grey-2); vertical-align: middle; }
th { background: var(--blue); color: #fff; position: sticky; top: 0; font-size: 14px; }
tbody tr { cursor: pointer; transition: background .1s; }
tbody tr:hover td { background: #f6f8f9; }
tr.sel td { background: #fdf0f1; }
tr.open td { background: #eef1f6; }
td .thumb { width: 74px; aspect-ratio: var(--crop, 1.22); object-fit: cover; border-radius: 3px; display: block; background: var(--grey); }
td .title { font: 700 italic 15px var(--head); letter-spacing: -0.03em; }
td .sub { color: var(--muted); font-size: 13px; }
td .price { font: 700 italic 16px var(--head); letter-spacing: -0.03em; }
.pill { display: inline-block; padding: 3px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; background: var(--grey); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.pill.pending { background: #ffe9c2; color: #8a4b00; } .pill.approved { background: #d5f0df; color: var(--ok); }
.pill.rejected { background: var(--red); color: #fff; } .pill.exported { background: var(--blue); color: #fff; }
.mono { font-family: Consolas, ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 0; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.detail-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-head h2 { margin: 0; font-size: 26px; line-height: 1.05; }
.detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.detail .field { grid-column: auto; }
.detail .full { grid-column: 1 / -1; }
.topbar .plate::before { display: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.photos img { width: 100%; aspect-ratio: var(--crop, 1.22); object-fit: cover; border-radius: 3px; display: block; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.topbar .who span { color: #fff; }
.note { background: #fff7e6; border-radius: 4px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: minmax(0, 1fr); }
  .preview { display: grid; grid-template-columns: 140px minmax(0, 1fr); }
  .preview-label { grid-column: 1 / -1; }
  .pv-img { aspect-ratio: auto; min-height: 100%; }
  .pv-body { padding: 10px 14px 12px; }
  .pv-body h3 { font-size: 18px; } .pv-price { font-size: 22px; margin-top: 4px; }
  .pv-specs { display: none; }
  .todo { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-inner { padding: 16px 16px 18px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-right { order: -1; }
  .admin-nav { margin-left: 0; width: 100%; }
  .admin-nav button { flex: 1; padding: 9px 8px; font-size: 14px; }
  .hero .logo { height: 22px; }
  .hero-right { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
  .who { font-size: 13px; }
  .signin { place-items: start center; padding-top: 40px; }
  .plate { width: 30%; }
  .pv-img span { font-size: 12px; padding: 0 8px; text-align: center; }
  .lede { font-size: 16px; }
  .progress-inner { padding: 8px 16px; }
  .progress-text { min-width: 0; font-size: 13px; }
  .layout { padding: 16px 16px 110px; gap: 16px; }
  .sec { padding: 18px 16px 20px; margin-bottom: 14px; }
  .num { font-size: 36px; }
  .sec-head h2 { font-size: 21px; }
  .w-half, .w-third { grid-column: span 6; }
  .preview { grid-template-columns: 112px minmax(0, 1fr); }
  .submit-row button { display: none; }
  .mobile-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(32, 41, 69, .96); backdrop-filter: blur(8px); color: #fff; }
  .mobile-bar span { flex: 1; font: 700 italic 16px var(--head); letter-spacing: -0.03em; }
  .mobile-bar button { --s: 8px; font-size: 17px; padding: 12px 26px; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .photo-actions { grid-template-columns: minmax(0, 1fr); }
  .cam-open { flex-direction: row; gap: 12px; padding: 18px 24px; font-size: 21px; }
  .cam-open svg { width: 32px; height: 32px; }
  .drop, .drop.compact { flex-direction: row; gap: 12px; padding: 14px 16px; text-align: left; }
  .drop svg { width: 30px; height: 30px; margin: 0; flex-shrink: 0; }
  .drop .drop-title { font-size: 18px; }
  .drop .drop-sub { display: none; }
  .thumbs .adjust, .thumbs .remove, .thumbs .first { padding: 7px 12px; font-size: 14px; }
  .crop-box { padding: 14px; }
  .crop-zoom input { height: 36px; }
  .thumbs .first { opacity: 1; }
  .detail { grid-template-columns: minmax(0, 1fr); }
}
