:root {
  --bg: #E9EDEB;
  --panel: #FFFFFF;
  --ink: #15212B;
  --muted: #5A6872;
  --line: #D3DAD7;
  --line-soft: #E6EBE9;
  --brand: #0E6B5B;
  --brand-ink: #0A4E43;
  --brand-wash: #E3F1EE;
  --mark: #F3C22B;
  --bad: #BF3E2B;
  --bad-wash: #FBEDEA;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --din: "DIN Alternate", "Bahnschrift", "DIN Condensed", "Helvetica Neue", Arial, sans-serif;
  --r: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.6 var(--sans);
}
h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; letter-spacing: .01em; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
.num { font-family: var(--din); font-variant-numeric: tabular-nums; font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* top bar */
.bar {
  display: flex; align-items: center; gap: 20px;
  height: 52px; padding: 0 24px; background: var(--ink); color: #fff;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: .12em; }
.cat { position: relative; min-width: 0; }
.cat-button {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; cursor: pointer; max-width: 100%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 4px; color: #fff; font-size: 13px;
}
.cat-button:hover, .cat-button[aria-expanded="true"] { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.cat-label { color: #B9C4CB; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.22); white-space: nowrap; }
#catPath { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 7px; height: 7px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg) translateY(-2px); flex: none; }
.cat-menu {
  position: absolute; left: 0; top: 42px; z-index: 20; width: 620px; max-width: calc(100vw - 28px);
  display: grid; grid-template-columns: 150px 1fr; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(21,33,43,.55); overflow: hidden;
}
.cat-menu[hidden] { display: none; }
.cat-groups { background: #F1F4F3; border-right: 1px solid var(--line); padding: 6px 0; }
.cat-group { display: block; width: 100%; text-align: left; padding: 9px 16px; border: 0; background: none; cursor: pointer; font-size: 14px; border-left: 3px solid transparent; }
.cat-group:hover { background: #E6EBE9; }
.cat-group.is-on { background: #fff; border-left-color: var(--brand); font-weight: 600; }
.cat-subs { padding: 14px 18px 16px; min-height: 250px; }
.cat-sub { margin-bottom: 14px; }
.cat-sub-name { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.cat-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; }
.cat-item.is-on { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.cat-item.is-soon { color: #6F7C84; border-style: dashed; }
.cat-item.is-soon:hover { border-color: var(--muted); }
.cat-item em { font-style: normal; font-size: 11px; color: #9AA6AC; }
/* which service the seller is using */
.svc { display: inline-flex; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; overflow: hidden; flex: none; }
.svc button { border: 0; background: transparent; color: #C9D2D8; font-size: 13px; padding: 6px 14px; cursor: pointer; border-right: 1px solid rgba(255,255,255,.28); white-space: nowrap; }
.svc button:last-child { border-right: 0; }
.svc button:hover { color: #fff; }
.svc button.is-on { background: #fff; color: var(--ink); font-weight: 600; }
.engine { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #B9C4CB; white-space: nowrap; }
.engine .dot { width: 8px; height: 8px; border-radius: 50%; background: #7B8891; flex: none; }
.engine.ok .dot { background: #3FCB9B; }
.engine.bad .dot { background: #F0705A; }
.engine.bad { color: #F6B5A9; }

/* steps */
.steps { display: flex; background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 24px; }
.step {
  display: flex; align-items: center; gap: 10px; padding: 14px 28px 12px 0; margin-right: 28px;
  background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; color: var(--muted); font-size: 14px;
}
.step .num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid currentColor; font-size: 14px; line-height: 1;
}
.step.is-current { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.step.is-current .num { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.is-done .num { background: var(--brand-wash); border-color: var(--brand); color: var(--brand-ink); }

/* layout */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding: 20px 24px 60px; max-width: 1320px; margin: 0 auto; align-items: start; }
.stage { min-width: 0; }
.block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; margin-bottom: 14px; }
.block.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.block.two.one-col { grid-template-columns: 1fr; }
.block.two > [hidden] { display: none; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; max-width: 62em; }
.block .hint:last-child { margin: 12px 0 0; }
.notice { background: #FFF7DA; border: 1px solid #EBD489; border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.error { color: var(--bad); background: var(--bad-wash); border-radius: var(--r); padding: 10px 14px; margin-top: 12px; font-size: 13px; }

/* product info */
.info { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px 20px; }
.field { display: block; }
.field.wide { grid-column: 1 / -1; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field > span small { margin-left: 8px; font-size: 12px; color: #8B979E; }
.field input { width: 100%; padding: 8px 11px; border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; }
.field input:focus { border-color: var(--brand); outline: 2px solid var(--brand-wash); }

/* upload */
.upload { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 132px; padding: 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed #9FB0AB; border-radius: var(--r); background: #F6F9F8;
}
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-wash); }
.drop strong { font-weight: 600; }
.drop span { color: var(--muted); font-size: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: 104px; }
.thumb img { width: 104px; height: 104px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; background: #fff; }
.thumb.is-main img { border: 2px solid var(--brand); }
.thumb .tag { position: absolute; left: 0; top: 0; background: var(--brand); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 4px 0 4px 0; }
.thumb .x { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(21,33,43,.72); color: #fff; cursor: pointer; line-height: 20px; padding: 0; font-size: 13px; }
.thumb .make-main { display: block; width: 100%; margin-top: 4px; background: none; border: 0; color: var(--brand-ink); font-size: 12px; cursor: pointer; padding: 0; text-align: center; }
.thumb .busy { position: absolute; inset: 0 0 auto 0; height: 104px; display: grid; place-items: center; background: rgba(255,255,255,.78); font-size: 12px; border-radius: 4px; }
.thumb.is-failed .busy { color: var(--bad); padding: 6px; text-align: center; }
.guide { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; }
.guide li { margin-bottom: 6px; }
.guide li::marker { color: var(--brand); }

textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; resize: vertical; line-height: 1.55;
}
textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-wash); }

/* recognition */
.recog { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0 14px; font-size: 13px; color: var(--muted); }
.recog.is-error { color: var(--bad); }
.recog-done { color: var(--brand-ink); }
.recog.is-running { display: block; padding: 12px 14px; margin-bottom: 12px; background: var(--brand-wash); border: 1px solid #B5D8D0; border-radius: 4px; }
.recog-bar { height: 4px; background: #C4DFD9; border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.recog-bar i { display: block; width: 34%; height: 100%; background: var(--brand); border-radius: 2px; animation: recog-run 1.3s ease-in-out infinite; }
@keyframes recog-run { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.recog-bar i.fill { width: 0; animation: none; transition: width .5s linear; }   /* fills as the reading goes on */
.recog-text { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.recog-text b { color: var(--brand-ink); font-size: 14px; }
.feat-form.is-waiting { opacity: .4; pointer-events: none; }
.thumb.is-scanning::after {   /* a light band sweeping over each photo while it is being read */
  content: ""; position: absolute; left: 0; top: 0; width: 104px; height: 104px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0, rgba(14,107,91,.0) 38%, rgba(14,107,91,.45) 50%, rgba(14,107,91,0) 62%, transparent 100%);
  background-size: 100% 220%; animation: scan 1.6s linear infinite;
}
@keyframes scan { from { background-position: 0 120%; } to { background-position: 0 -20%; } }
@media (prefers-reduced-motion: reduce) {
  .recog-bar i { animation: none; width: 100%; opacity: .5; }
  .thumb.is-scanning::after { animation: none; background: rgba(14,107,91,.18); }
}

/* feature form */
.feat-form { border-top: 1px solid var(--line-soft); }
.feat-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.feat-label { color: var(--muted); font-size: 13px; line-height: 1.4; }
.feat-label small { display: block; color: #9A6B00; font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; }
.chip.is-on { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.chip.part { padding: 0; cursor: default; overflow: hidden; }
.part-name { border: 0; background: none; padding: 4px 12px; cursor: pointer; font-weight: inherit; }
.qty-box { display: inline-flex; align-items: center; border-left: 1px solid var(--brand); align-self: stretch; }
.qty-box button { border: 0; background: none; width: 26px; align-self: stretch; cursor: pointer; font-size: 15px; line-height: 1; color: var(--brand-ink); }
.qty-box button:hover { background: #CDE6E0; }
.qty-box b { min-width: 16px; text-align: center; font-size: 14px; }
.chips.add { margin-top: 8px; align-items: center; }
.add-label { color: var(--muted); font-size: 12px; margin-right: 2px; }
.chip.ghost { border-style: dashed; color: var(--muted); font-size: 12px; padding: 3px 10px; }
.chip.ghost:hover { border-color: var(--brand); color: var(--brand-ink); border-style: solid; }
.chips .none { color: #9AA6AC; font-size: 13px; }
.chip.part .part-name { cursor: default; }
.qty-box .del { border-left: 1px solid var(--brand); color: var(--muted); }
.drop-attr { display: block; border: 0; background: none; padding: 0; color: var(--muted); font-size: 11px; cursor: pointer; text-decoration: underline; }
.drop-attr:hover { color: var(--bad); }
.feat-input.short { width: 150px; max-width: 150px; padding: 4px 10px; font-size: 13px; }
.feat-input { width: 100%; max-width: 420px; padding: 6px 10px; border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; }
.feat-input:focus { border-color: var(--brand); outline: 2px solid var(--brand-wash); }

/* platform */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #B8C3BF; border-radius: 4px; cursor: pointer; background: #fff; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick.is-on { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.platform-note { margin-top: 10px; padding: 9px 12px; background: #FFF7DA; border: 1px solid #EBD489; border-radius: 4px; font-size: 13px; max-width: 62em; }
.rules { display: grid; grid-template-columns: 96px 1fr; margin: 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.rules dt, .rules dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.rules dt { color: var(--muted); }

/* image types */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid #B8C3BF; border-radius: 4px; cursor: pointer; background: #fff; align-items: flex-start; }
.type input { margin: 4px 0 0; accent-color: var(--brand); width: 15px; height: 15px; flex: none; }
.type b { display: block; font-weight: 600; }
.type small { color: var(--muted); font-size: 12px; line-height: 1.5; display: block; }
.type.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.type.is-off { background: #F3F5F4; border-style: dashed; cursor: not-allowed; color: #8B979E; }
.type.is-off small { color: #8B979E; }
.type .soon { font-size: 11px; font-weight: 400; margin-left: 6px; }

/* scenes */
.scenes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.scenes.rec { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scene.is-white .set { background: #fff; border-bottom: 1px solid var(--line-soft); }
.scene.is-white .set::before { display: none; }
.scene.is-white .set .accent { background: #C9CFCD; height: 14%; bottom: 46%; }
.scenes[hidden], .list[hidden] { display: none; }
/* suggested for the chosen platform, and the rest behind "more" */
.rec-for { margin-left: 10px; padding: 1px 8px; border-radius: 3px; background: var(--brand-wash); color: var(--brand-ink); font-size: 12px; font-weight: 400; vertical-align: 2px; }
.rec-for:empty { display: none; }
.more-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 4px 0; border: 0; background: none; color: var(--brand-ink); font-size: 13px; cursor: pointer; }
.more-toggle:hover { text-decoration: underline; }
.more-toggle em { font-style: normal; color: var(--ink); background: var(--brand-wash); padding: 0 8px; border-radius: 3px; }
.more-toggle .caret { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -3px; }
.more-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 3px; }
.choice .more { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.scene { border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; cursor: pointer; padding: 0; text-align: left; overflow: hidden; }
.scene.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.set { position: relative; height: 84px; background: linear-gradient(to bottom, var(--wall) 0 64%, var(--floor) 64% 100%); }
.set::before { /* light from the window side */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,.42), rgba(255,255,255,0) 55%);
}
.set i { position: absolute; }
.set .accent { left: 12%; bottom: 36%; width: 12%; height: 38%; background: var(--accent); border-radius: 2px 2px 0 0; }
.set .top { left: 34%; right: 12%; bottom: 44%; height: 5px; background: #4A3225; border-radius: 1px; }
.set .leg-a, .set .leg-b { bottom: 14%; width: 4px; height: 31%; background: #1E2327; }
.set .leg-a { left: 39%; } .set .leg-b { right: 17%; }
.scene-text { padding: 8px 10px 10px; }
.scene-text b { display: block; font-size: 13px; font-weight: 600; }
.scene-text small { color: var(--muted); font-size: 12px; line-height: 1.45; display: block; }

.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.views .opt { flex-direction: column; gap: 2px; align-items: flex-start; }
.views .opt[hidden] { display: none; }

/* option lists */
.list { display: grid; gap: 6px; }
.opt { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border: 1px solid #B8C3BF; border-radius: 4px; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.opt b { font-weight: 600; white-space: nowrap; }
.opt small { color: var(--muted); font-size: 12px; }
.opt.is-on { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand); }
.check { display: flex; gap: 10px; margin-top: 12px; cursor: pointer; align-items: flex-start; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; margin-top: 4px; }
.check small { display: block; color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid #B8C3BF; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.seg button { width: 52px; height: 36px; border: 0; background: #fff; cursor: pointer; font-family: var(--din); font-weight: 700; font-size: 16px; border-right: 1px solid #B8C3BF; }
.seg button:last-child { border-right: 0; }
.seg button.is-on { background: var(--brand); color: #fff; }

/* buttons */
.next { display: flex; justify-content: flex-end; gap: 10px; margin: 18px 0 0; align-items: center; }
.next.left { justify-content: flex-start; }
.btn { padding: 8px 18px; border: 1px solid #9CA9A5; border-radius: 4px; background: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.big { padding: 11px 30px; font-size: 15px; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.estimate { color: var(--muted); font-size: 13px; }

/* plan */
.plan { border: 1px solid var(--line); border-radius: 4px; }
.plan-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.plan-row:last-child { border-bottom: 0; }
.plan-row > b { font-weight: 600; }
.plan-what { font-size: 13px; }
.plan-what small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; min-height: 1.6em; }
.plan-what small.plan-note { color: #8A5A00; min-height: 0; }
.link { border: 0; background: none; padding: 0; margin-left: 10px; color: var(--brand-ink); font-size: 13px; cursor: pointer; text-decoration: underline; }
.plan-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 64px; justify-content: flex-end; }
.plan-qty .seg { margin: 0; }
.plan-qty .seg button { width: 40px; height: 32px; font-size: 15px; }
.plan-qty .num { font-size: 20px; color: var(--ink); }
/* the seller's own words, and how they were read */
.ask { margin-top: 18px; }
.ask[hidden] { display: none; }
.ask-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ask-label small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 10px; }
.plan-ref, .group-ref { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; background: #fff; vertical-align: middle; margin-right: 10px; }
.group-ref { width: 32px; height: 32px; margin: 0; align-self: center; }
#cloneForm.is-waiting { opacity: .5; pointer-events: none; }
#cloneForm:empty { border-top: 0; }
.chip.is-off { color: var(--muted); background: #fff; border-style: dashed; text-decoration: line-through; }
.read-room { font-size: 13px; line-height: 1.6; }

/* what the system read, thing by thing: cards the seller can correct by picking from lists */
.said { margin-top: 4px; font-size: 12px; color: var(--muted); }
.said summary { cursor: pointer; width: max-content; }
.said summary:hover { color: var(--brand-ink); }
.said p { margin-top: 4px; padding: 8px 10px; background: #F6F8F7; border-radius: 4px; color: var(--ink); line-height: 1.7; }
.things { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.thing { border-bottom: 1px solid var(--line-soft); }
.thing:last-child { border-bottom: 0; }
.thing-head { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; }
.thing-what { flex: 1 1 auto; min-width: 0; }
.thing-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.thing-name b { font-size: 14px; }
.thing-where { color: var(--muted); font-size: 12px; }
.thing-where::before { content: "在 "; }
.thing .tag { font-size: 11px; line-height: 1.5; padding: 0 6px; border-radius: 3px; background: #FBF1CF; color: #6B4E00; }
.thing-said { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.thing-acts { display: flex; gap: 6px; flex: none; }
.thing.is-off .thing-what { opacity: .45; }
.thing.is-off .thing-name b { text-decoration: line-through; }
.thing.is-open { background: #F6F9F8; box-shadow: inset 3px 0 0 var(--brand); }
.thing-edit { padding: 2px 10px 12px 13px; }
.pick-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); align-items: start; }
.pick-name { color: var(--muted); font-size: 12px; line-height: 26px; }
.picks { display: flex; flex-wrap: wrap; gap: 5px; }
.pick { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 9px; border: 1px solid #B8C3BF; border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; }
.pick:hover:not(:disabled) { border-color: var(--ink); }
.pick.is-on { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.pick:disabled { opacity: .4; cursor: not-allowed; }
.pick.quiet { border-style: dashed; color: var(--muted); }
.pick span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(21, 33, 43, .28); flex: none; }
/* the places, drawn as the product seen from the front: the shelf above, the top below */
.place-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-start; }
.place-grid { display: grid; grid-template-columns: auto minmax(0, 168px); gap: 4px 8px; align-items: center; }
.place-level { color: var(--muted); font-size: 12px; text-align: right; }
.place-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: #EEF2F0; }
.place-cells .pick { justify-content: center; border-color: transparent; background: #fff; }
.place-cells .pick.is-on { border-color: var(--brand); }
.pick-note { flex: 1 1 100%; color: #7A5A00; font-size: 12px; }
.thing-foot { display: flex; justify-content: flex-end; gap: 6px; padding-top: 9px; border-top: 1px dashed var(--line); }
.thing-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.thing-add.is-open { display: block; padding: 10px; border: 1px dashed #9CA9A5; border-radius: var(--r); background: #fff; }
.thing-add.is-open p { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.thing-add .chip:disabled { opacity: .5; cursor: not-allowed; }
.thing-count { color: var(--muted); font-size: 12px; }
.thing-count.is-full { color: #7A5A00; }
.things-box > .none { color: #9AA6AC; font-size: 13px; }
@media (max-width: 560px) {
  .thing-head { flex-direction: column; }
  .thing-acts { align-self: flex-end; }
  .pick-row { grid-template-columns: 1fr; gap: 4px; }
  .pick-name { line-height: 1.4; }
}
#cloneForm [hidden] { display: none; }
.kind { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 13px; }
.kind[hidden] { display: none; }
.kind > span { color: var(--muted); }
.kind small { color: var(--muted); font-size: 12px; }
.kind .ver button:disabled { opacity: .5; cursor: default; }
#cloneForm textarea { width: 100%; line-height: 1.6; }
#cloneForm.info { grid-template-columns: 1fr 1fr; }
.read { margin-top: 8px; font-size: 13px; }
.read:empty { display: none; }
.read p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.read dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); margin: 0; padding: 8px 14px; background: #F4F7F6; border-radius: 4px; }
.read dt { color: var(--muted); padding: 3px 0; }
.read dd { margin: 0; padding: 3px 0; }

/* results */
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.results-head h2 { margin: 0; }
.group { margin-top: 18px; }
.group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.group-head b { font-weight: 600; font-size: 14px; }
.group-head span { color: var(--muted); font-size: 13px; }
.group-head { flex-wrap: wrap; }
.group-head .group-sub { color: var(--ink); }
.group-head .btn { margin-left: auto; }
.group + .group { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.card.is-rejected { opacity: .55; }
.shot { position: relative; aspect-ratio: 1; background: #EEF1F0; display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.shot .wait { color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.shot .wait b { display: block; font-family: var(--din); font-size: 30px; color: var(--ink); line-height: 1.2; }
.shot .wait b:empty { display: none; }
.shot .label { position: absolute; left: 8px; top: 8px; background: rgba(21,33,43,.8); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 3px; }
.card.is-running .shot { background: repeating-linear-gradient(-45deg, #EEF1F0 0 12px, #E5EAE8 12px 24px); background-size: 200% 100%; animation: slide 1.6s linear infinite; }
@keyframes slide { to { background-position: -34px 0; } }
@media (prefers-reduced-motion: reduce) { .card.is-running .shot { animation: none; } }
.checks { list-style: none; margin: 0; padding: 10px 12px 4px; font-size: 12px; display: grid; gap: 3px; }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--brand); font-weight: 700; width: 12px; flex: none; }
.checks li.fail { color: var(--bad); }
.checks li.fail::before { content: "✕"; color: var(--bad); }
.checks li.note { color: var(--muted); }
.checks li.note::before { content: "·"; color: var(--muted); }
.card-actions { display: flex; gap: 6px; padding: 8px 12px 12px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; text-align: center; }
.card .fail-msg { padding: 10px 12px 14px; color: var(--bad); font-size: 13px; }
.shot .hd-tag { position: absolute; right: 8px; top: 8px; background: var(--mark); color: var(--ink); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; }

/* HD upgrade strip under a scene card */
.hd-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 10px; border-top: 1px dashed var(--line); background: #F7F9F8; overflow: hidden; }
.hd-row small { color: var(--muted); font-size: 12px; line-height: 1.4; flex: 1; }
.hd-row .btn { flex: none; background: #fff; }
.hd-row.is-bad small { color: var(--bad); }
.hd-row.is-busy small { color: var(--brand-ink); }
.hd-row .num { font-size: 15px; color: var(--ink); }
.hd-bar { position: absolute; left: 0; top: 0; height: 2px; width: 34%; background: var(--brand); animation: recog-run 1.3s ease-in-out infinite; }
.ver { display: inline-flex; flex: none; border: 1px solid #9CA9A5; border-radius: 4px; overflow: hidden; }
.ver button { border: 0; background: #fff; padding: 3px 12px; font-size: 12px; cursor: pointer; border-right: 1px solid #9CA9A5; }
.ver button:last-child { border-right: 0; }
.ver button.is-on { background: var(--brand); color: #fff; font-weight: 600; }

/* large view */
.has-lightbox { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(13,20,26,.94); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #fff; font-size: 13px; }
.lb-bar b { font-weight: 600; }
.lb-bar .num { color: #9FB0AB; font-weight: 400; }
.lb-gap { flex: 1; }
.lb-bar .btn { background: transparent; color: #fff; border-color: #6F7F88; }
.lb-bar .btn:hover { border-color: #fff; }
.lb-bar .btn.primary { background: var(--brand); border-color: var(--brand); }
.lb-close { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px 2px 10px; }
.lb-body { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; min-height: 0; }
.lb-stage { overflow: auto; display: grid; place-items: center; min-height: 0; padding: 0 0 16px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 76px); display: block; background: #fff; cursor: zoom-in; }
.lb-stage img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lb-nav { border: 0; background: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; opacity: .75; }
.lb-nav:hover { opacity: 1; }
.lb-nav:disabled { opacity: .15; cursor: default; }
@media (prefers-reduced-motion: reduce) { .hd-bar { animation: none; } }

/* shot sheet */
.sheet {
  position: sticky; top: 16px; background: #FFFDF4; border: 1px solid #D9D2B4; border-radius: 2px;
  padding: 0 18px 16px; box-shadow: 0 1px 0 #CFC8AB, 0 6px 18px -12px rgba(21,33,43,.35);
}
.sheet::before { /* punched edge, like a studio job ticket */
  content: ""; display: block; height: 14px; margin: 0 -18px;
  background: radial-gradient(circle at 9px -2px, var(--bg) 6px, transparent 6.5px) 0 0 / 18px 14px repeat-x;
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding: 6px 0 8px; }
.sheet-head h2 { margin: 0; font-size: 16px; letter-spacing: .2em; }
.sheet-head .num { font-size: 13px; color: var(--muted); font-weight: 400; }
.sheet-rows { margin: 0; display: grid; grid-template-columns: 68px 1fr; font-size: 13px; }
.sheet-rows dt, .sheet-rows dd { margin: 0; padding: 8px 0; border-bottom: 1px dashed #CFC8AB; }
.sheet-rows dt { color: var(--muted); }
.sheet-rows dd.empty { color: #A39E88; }
.sheet-rows dd img { width: 44px; height: 44px; object-fit: cover; border: 1px solid #D9D2B4; margin-right: 4px; vertical-align: top; background: #fff; }
.sheet-total { display: flex; align-items: baseline; gap: 6px; padding-top: 12px; font-size: 13px; }
.sheet-total b { font-size: 26px; line-height: 1; background: linear-gradient(transparent 58%, var(--mark) 58%); padding: 0 3px; }

@media (max-width: 980px) {
  .work { grid-template-columns: 1fr; padding: 14px 14px 40px; }
  .sheet { position: static; }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block.two, .upload, .types, .info { grid-template-columns: 1fr; }
  .views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-row { grid-template-columns: 1fr; gap: 8px; }
  .plan-qty { justify-content: flex-start; }
  .lb-body { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .feat-row { grid-template-columns: 1fr; gap: 6px; }
  .bar { padding: 0 14px; gap: 12px; }
  .cat-label { display: none; }
  .cat-menu { grid-template-columns: 110px 1fr; }
  .steps { padding: 0 14px; overflow-x: auto; }
  .step { padding-right: 14px; margin-right: 14px; white-space: nowrap; }
}

/* Scene replication: the reference photo, large, beside what was read from it */
.ref-compare { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 22px; align-items: start; }
.ref-compare.no-ref { grid-template-columns: minmax(0, 1fr); }
.ref-big { margin: 0; position: sticky; top: 12px; }
.ref-big button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; cursor: zoom-in; }
.ref-big button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ref-big img { display: block; width: 100%; height: auto; }
.ref-big figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.ref-side { min-width: 0; }
.ref-side .feat-row { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
.ref-zoom { position: fixed; inset: 0; z-index: 30; border: 0; padding: 16px; background: rgba(13,20,26,.94); display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 8px; cursor: zoom-out; }
.ref-zoom img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; background: #fff; }
.ref-zoom span { color: #C9D2D8; font-size: 12px; }
@media (max-width: 980px) {
  .ref-compare { grid-template-columns: minmax(0, 1fr); }
  .ref-big { position: static; }
}

/* Signing in */
body.signed-out > *:not(.login):not(.bar) { display: none !important; }
body.signed-out .bar > *:not(.brand) { display: none !important; }
.login { min-height: calc(100vh - 52px); display: grid; place-items: start center; padding: 9vh 16px 40px; }
.login[hidden], .who[hidden] { display: none; }      /* `display` above would otherwise override the hidden attribute */
.login-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 22px; display: grid; gap: 14px; }
.login-card h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .12em; }
.login-lead { margin: -8px 0 4px; color: var(--muted); }
.login-card .btn { padding: 10px 18px; margin-top: 2px; }
.login-card .btn:disabled { opacity: .6; cursor: default; }
.login-card .error { margin: 0; }
.login-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.who { display: flex; align-items: center; gap: 10px; margin-left: 18px; font-size: 12px; color: #B9C4CB; white-space: nowrap; }
.who button { border: 1px solid #4A5963; background: transparent; color: #DCE3E7; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.who button:hover { border-color: #DCE3E7; }
.who button:focus-visible { outline: 2px solid #DCE3E7; outline-offset: 2px; }
