/* Label Lab front end styles, v2: full-screen click-through app shell. Per SPEC-UI.md "App shell".
   No page scroll, ever: html/body are locked to the viewport, every screen fills the stage and any
   overflow is handled by one internal scroll region per screen (never the document). */
:root {
  --bar-h: 56px;
  --brick: #070c10;
  --panel-bg: rgba(13, 20, 27, .88);
  --panel-border: #3ee6d6;
  --teal: #3ee6d6;
  --blue: #2f7dff;
  --magenta: #e23cf0;
  --purple: #6a2ce0;
  --lime: #9be62a;
  --ink: #eef3f6;
  --muted: #9fb0bb;
  --input-bg: #101a22;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --panel-shadow: 0 0 0 1px rgba(62, 230, 214, .25), 0 10px 40px rgba(0, 0, 0, .5);
  --font: 'Poppins', -apple-system, 'Segoe UI', Arial, sans-serif;
  --accent-ring: rgba(62, 230, 214, .45);
  --err: #ff8a8a; --err-bg: rgba(255, 90, 90, .14);
  --warn: #ffcf6b; --warn-bg: rgba(255, 191, 61, .14);
  --ok: #8cf0a8; --ok-bg: rgba(107, 224, 138, .14);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; background: var(--brick); overscroll-behavior: none; }
body { font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; color: var(--ink); }
h1 { font-size: 26px; font-weight: 900; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 10px; }
a { color: inherit; }
.muted { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
[hidden] { display: none !important; }
.grad-text { background-image: linear-gradient(90deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- inputs & buttons ---- */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=search], input[type=tel], input[type=number], input:not([type]), textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid rgba(159, 176, 187, .35); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5f7480; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-ring); outline-offset: 1px; border-color: var(--teal);
}
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--teal); height: 20px; padding: 0; background: none; border: 0; }
.btn { font: inherit; font-weight: 700; font-size: 14px; border: 1px solid transparent; border-radius: var(--pill); padding: 11px 20px; cursor: pointer; background: #fff; color: #10151a; transition: transform .05s, box-shadow .15s, filter .15s; text-decoration: none; display: inline-block; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--lime); color: #10230a; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(155,230,42,.35); }
.btn-secondary { background: linear-gradient(90deg, var(--purple), var(--magenta)); color: #fff; }
.btn-secondary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: rgba(62,230,214,.1); }
.btn-link { background: none; color: var(--muted); padding: 6px; text-decoration: underline; font-weight: 500; border: 0; cursor: pointer; font-size: 13px; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.icon-btn { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.msg { margin-top: 10px; padding: 9px 11px; border-radius: 8px; font-size: 13px; background: var(--err-bg); color: var(--err); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.badge-indicative { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--warn-bg); color: var(--warn); padding: 3px 8px; border-radius: var(--pill); margin-left: 6px; vertical-align: middle; }
.reason-box { font-size: 13.5px; font-weight: 600; color: var(--err); background: var(--err-bg); border-radius: 10px; padding: 9px 11px; margin-top: 4px; }
.reason-box.tbc { color: var(--warn); background: var(--warn-bg); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; margin: 0; color: var(--ink); }
.checkbox-row input { width: auto; accent-color: var(--lime); }

/* ==================================================================================
   App shell
   ================================================================================== */
#app {
  height: 100vh; height: 100dvh; display: grid; grid-template-rows: var(--bar-h) 1fr;
  background-image: url('/images/brand/brick-tile.png'); background-repeat: repeat; background-size: 520px auto; background-color: var(--brick);
}
.topbar {
  background: linear-gradient(90deg, #2a1470 0%, #6a2ce0 45%, #b52fe6 75%, #e23cf0 100%);
  border-bottom: 1px solid var(--teal); box-shadow: 0 1px 14px rgba(62,230,214,.35);
  display: flex; align-items: center; gap: 14px; padding: 0 16px; min-width: 0; z-index: 30;
}
.topbar-brand { display: flex; align-items: center; flex: none; }
.topbar-brand img { height: 34px; width: auto; display: block; }
.topbar-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; overflow: hidden; }
.topbar-title { color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-pills { display: flex; align-items: center; gap: 6px; }
.step-pills .pill { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35); }
.step-pills .pill.done { background: var(--teal); border-color: var(--teal); color: #08201d; }
.step-pills .pill.current { background: var(--lime); border-color: var(--lime); color: #10230a; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.topbar .cart-btn { display: flex; align-items: center; gap: 7px; font: inherit; font-weight: 700; font-size: 13px; background: var(--lime); color: #10230a; border: 0; border-radius: var(--pill); padding: 8px 14px; cursor: pointer; }
.topbar .cart-btn:hover { filter: brightness(1.06); }
.badge { background: #10151a; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }
.topbar .btn-signin { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--pill); padding: 7px 14px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.topbar .btn-signin:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.account-menu { position: relative; }
.account-btn { display: flex; align-items: center; gap: 4px; font: inherit; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 9px; padding: 8px 11px; cursor: pointer; max-width: 140px; }
.account-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #0d141b; border: 1px solid var(--teal); border-radius: 10px; box-shadow: var(--panel-shadow); min-width: 165px; display: flex; flex-direction: column; padding: 6px; z-index: 45; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; text-align: left; font: inherit; font-size: 13.5px; font-weight: 500; padding: 9px 10px; border-radius: 7px; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.account-dropdown a:hover, .account-dropdown button:hover { background: rgba(62,230,214,.12); }

#stage { position: relative; min-height: 0; padding: 14px; overflow: hidden; }
.screen { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.screen[hidden] { display: none; }

/* ---- panels & cards ---- */
.panel { background: var(--panel-bg); border: 2px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.tile { background: var(--input-bg); border: 2px solid rgba(159,176,187,.25); border-radius: var(--radius-sm); cursor: pointer; padding: 8px; text-align: center; transition: border-color .12s, box-shadow .12s; color: var(--ink); }
.tile:hover { border-color: rgba(62,230,214,.55); }
.tile.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; margin-bottom: 4px; background: rgba(255,255,255,.04); border-radius: 8px; }
.tile .tile-name { font-size: 12px; font-weight: 700; }
.tile .tile-note { font-size: 10.5px; color: var(--muted); margin-top: 2px; display: block; }

/* ==================================================================================
   Home screen
   ================================================================================== */
.screen-home { align-items: center; justify-content: space-between; flex-direction: column; }
.screen-home .home-wrap { flex: 1; justify-content: center; }
.home-wrap { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 8px; }
.home-footer { flex: none; width: 100%; background: var(--teal); color: #052a27; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(13px, 2.2vh, 20px); padding: clamp(8px, 1.6vh, 16px) 12px; border-top: 2px solid #8ff3ea; box-shadow: 0 -6px 30px rgba(62,230,214,.25); }
/* The big logo hangs from the middle of the top bar on the home screen only. */
.topbar { position: relative; }
.topbar-hanging { display: none; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 40; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
.topbar-hanging img { height: clamp(96px, 22vh, 170px); width: auto; display: block; }
body[data-route="home"] .topbar-hanging { display: block; }
body[data-route="home"] .topbar-brand, body[data-route="home"] .topbar-title { visibility: hidden; }
body[data-route="home"] .home-wrap { padding-top: clamp(56px, 16vh, 130px); }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
@media (max-width: 700px), (max-height: 620px) { .choice-cards { grid-template-columns: 1fr; } }
.choice-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 16px; gap: 8px; }
.choice-card img { width: 100%; max-height: clamp(70px, 16vh, 150px); object-fit: contain; background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px; }
.choice-card h2 { color: var(--teal); font-size: 18px; }
.choice-card p { color: var(--muted); font-size: 12.5px; margin: 0; }
.home-links { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.ghost-link { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12.5px; padding: 2px; }
.ghost-link:hover { color: #fff; }
.home-sep { color: var(--muted); }

/* ==================================================================================
   Wizard (custom / service)
   ================================================================================== */
.wizard { display: grid; grid-template-columns: 62% 1fr; gap: 14px; height: 100%; min-height: 0; }
@media (max-width: 899px) { .wizard { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; } }

.wizard-viewer { min-height: 0; display: flex; flex-direction: column; padding: 14px; gap: 8px; }
.viewer-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; border-radius: var(--radius-sm); overflow: hidden; background: repeating-conic-gradient(#111a22 0% 25%, #17222c 0% 50%) 50% / 22px 22px; }
.viewer-stage canvas { max-width: 100%; max-height: 100%; display: block; }
.viewer-caption { text-align: center; font-size: 12px; color: var(--muted); margin: 0; min-height: 15px; }
.viewer-toggle { position: absolute; top: 10px; right: 10px; display: flex; background: rgba(7,12,16,.72); border: 1px solid var(--teal); border-radius: var(--pill); overflow: hidden; z-index: 3; }
.viewer-toggle button { font: inherit; font-size: 11.5px; font-weight: 700; border: 0; background: none; color: var(--muted); padding: 6px 12px; cursor: pointer; }
.viewer-toggle button.active { background: var(--teal); color: #06201c; }
.viewer-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.viewer-badges .dpi-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--pill); }
.dpi-badge.green { background: var(--ok-bg); color: var(--ok); }
.dpi-badge.amber { background: var(--warn-bg); color: var(--warn); }
.dpi-badge.red { background: var(--err-bg); color: var(--err); }

.wizard-panel { min-height: 0; display: flex; flex-direction: column; }
.wizard-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.wizard-panel-body::-webkit-scrollbar { width: 8px; }
.wizard-panel-body::-webkit-scrollbar-thumb { background: rgba(62,230,214,.35); border-radius: 4px; }
.wizard-step h2 { margin-bottom: 2px; }
.wizard-step-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.wizard-panel-foot { border-top: 1px solid rgba(62,230,214,.25); padding: 10px 18px 14px; flex: none; }
.wizard-nav { display: flex; gap: 10px; }
.wizard-nav .btn { flex: 1; }
.step-reason { font-size: 12.5px; color: var(--err); background: var(--err-bg); border-radius: 8px; padding: 7px 10px; margin: 0 0 8px; }
.step-reason.tbc { color: var(--warn); background: var(--warn-bg); }

.field { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.material-grid-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-row { display: flex; align-items: flex-end; gap: 8px; }
.size-cell { flex: 1 1 0; min-width: 0; }
.size-x { padding-bottom: 11px; font-weight: 700; color: var(--muted); }
.lock-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.lock-btn { font: inherit; font-size: 11.5px; font-weight: 700; border: 1px solid rgba(159,176,187,.35); border-radius: var(--pill); padding: 5px 10px; background: var(--input-bg); cursor: pointer; color: var(--ink); }
.lock-btn[aria-pressed="true"] { background: rgba(155,230,42,.15); border-color: var(--lime); color: var(--lime); }
.quick-sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.qty-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.qty-chip { font: inherit; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: var(--pill); border: 1px solid rgba(159,176,187,.35); background: var(--input-bg); color: var(--ink); cursor: pointer; }
.qty-chip.active { background: var(--lime); color: #10230a; border-color: var(--lime); }
.finish-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.finish-opt { font: inherit; font-size: 12.5px; font-weight: 700; padding: 8px 13px; border-radius: var(--pill); border: 1.5px solid rgba(159,176,187,.35); background: var(--input-bg); color: var(--ink); cursor: pointer; }
.finish-opt.active { background: rgba(62,230,214,.15); border-color: var(--teal); color: var(--teal); }
.dropzone { border: 2px dashed rgba(159,176,187,.4); border-radius: 12px; padding: 16px; text-align: center; background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.drag-over { border-color: var(--lime); background: rgba(155,230,42,.08); }
.dropzone input[type=file] { width: 100%; }
.dropzone-hint { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.progress { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; width: 0%; background: var(--lime); transition: width .15s; }
.field-group { border: 1px solid rgba(62,230,214,.25); border-radius: 12px; padding: 12px 14px; }
.field-group > label:first-child { margin-bottom: 8px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.checklist-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.checklist-row input[type=text] { flex: 1; padding: 6px 8px; font-size: 12.5px; }
.checklist-row .reorder-btn { background: none; border: 1px solid rgba(159,176,187,.35); color: var(--muted); border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: 11px; }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); box-shadow: 0 0 0 1.5px rgba(159,176,187,.35); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2.5px var(--teal); }
.swatch[data-bg="#ffffff"] { border-color: rgba(10,15,20,.45); }
.radio-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .radio-opts { grid-template-columns: 1fr; } }
.radio-opt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid rgba(159,176,187,.35); border-radius: 10px; padding: 9px 11px; cursor: pointer; font-weight: 500; margin: 0; }
.radio-opt:has(input:checked) { border-color: var(--teal); background: rgba(62,230,214,.08); }
.radio-opt input { margin-top: 3px; accent-color: var(--teal); }
.radio-opt span { display: flex; flex-direction: column; line-height: 1.3; }
.radio-opt small { color: var(--muted); font-weight: 500; font-size: 11.5px; margin-top: 2px; }

.price-panel { border-top: 1px solid rgba(62,230,214,.25); padding-top: 10px; font-size: 13.5px; }
.price-panel .row { display: flex; justify-content: space-between; padding: 3px 0; }
.price-panel .row.total { font-weight: 800; font-size: 16px; border-top: 1px solid rgba(62,230,214,.25); margin-top: 6px; padding-top: 7px; }
.price-panel .note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.supply-note { font-weight: 700; font-size: 12px; color: var(--teal); background: rgba(62,230,214,.1); border-radius: 8px; padding: 6px 9px; display: inline-block; }
.discount-note { font-size: 11.5px; color: var(--lime); background: rgba(155,230,42,.1); border-radius: 6px; padding: 5px 8px; }

.summary-card { display: flex; gap: 12px; align-items: flex-start; }
.summary-thumb { width: 90px; height: 68px; border-radius: 10px; overflow: hidden; flex: none; background: rgba(255,255,255,.05); }
.summary-thumb canvas, .summary-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.summary-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.summary-list b { color: var(--ink); }

/* ==================================================================================
   Cart / checkout / thanks / orders / account (all use .wizard-like two column layout)
   ================================================================================== */
.screen-cart .wizard, .screen-checkout .wizard { grid-template-columns: 1fr 360px; }
@media (max-width: 899px) { .screen-cart .wizard, .screen-checkout .wizard { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } }
.list-panel { min-height: 0; display: flex; flex-direction: column; padding: 16px 18px; }
.list-panel h2 { margin-bottom: 10px; flex: none; }
.list-panel-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.list-panel-body::-webkit-scrollbar { width: 8px; }
.list-panel-body::-webkit-scrollbar-thumb { background: rgba(62,230,214,.35); border-radius: 4px; }
.cart-line { background: rgba(255,255,255,.03); border: 1px solid rgba(62,230,214,.18); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.cart-line-swatch { width: 52px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--purple), var(--magenta)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10px; letter-spacing: .03em; }
.cart-line .name { font-weight: 700; font-size: 13.5px; }
.cart-line .sub { font-size: 11.5px; color: var(--muted); }
.cart-line .remove { background: none; border: 0; color: var(--muted); font-size: 11.5px; cursor: pointer; text-decoration: underline; padding: 3px 0; }
.cart-line .price-col { text-align: right; font-weight: 700; font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.summary-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; overflow-y: auto; }
.summary-lines { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.summary-lines .row { display: flex; justify-content: space-between; }
.summary-lines .total { font-weight: 800; font-size: 16px; border-top: 1px solid rgba(62,230,214,.25); padding-top: 8px; margin-top: 4px; }
.checkout-form-panel { min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.checkout-form-panel::-webkit-scrollbar, .summary-panel::-webkit-scrollbar { width: 8px; }
.checkout-form-panel::-webkit-scrollbar-thumb, .summary-panel::-webkit-scrollbar-thumb { background: rgba(62,230,214,.35); border-radius: 4px; }

.screen-thanks { align-items: center; justify-content: center; }
.thankyou-card { max-width: 460px; width: 100%; text-align: center; padding: 30px 26px; margin: 0 auto; }
.done-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 28px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }

.screen-orders .list-panel, .screen-account .list-panel { padding: 16px 18px; }
.order-card { background: rgba(255,255,255,.03); border: 1px solid rgba(62,230,214,.18); border-radius: 12px; padding: 14px 16px; }
.order-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(62,230,214,.2); }
.order-card-head .order-number { font-weight: 800; font-size: 14px; }
.order-card-head .order-date { color: var(--muted); font-size: 12.5px; }
.order-card-head .order-total { margin-left: auto; font-weight: 800; }
.order-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: var(--muted); margin: -3px 0 10px; }
.order-lines { display: flex; flex-direction: column; gap: 8px; }
.order-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.status-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill); }
.status-pending_payment { background: var(--warn-bg); color: var(--warn); }
.status-paid { background: rgba(47,125,255,.15); color: #8fc0ff; }
.status-in_production { background: rgba(106,44,224,.2); color: #c9a9ff; }
.status-ready { background: var(--warn-bg); color: var(--warn); }
.status-shipped { background: var(--ok-bg); color: var(--ok); }
.status-cancelled { background: var(--err-bg); color: var(--err); }

.account-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; overflow-y: auto; padding-right: 4px; }
@media (max-width: 700px) { .account-layout { grid-template-columns: 1fr; } }
.account-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.address-card { border: 1px solid rgba(62,230,214,.2); border-radius: 10px; padding: 11px 13px; }
.address-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.address-label { font-weight: 700; font-size: 13px; }
.badge-default { font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--lime); background: rgba(155,230,42,.12); border-radius: var(--pill); padding: 2px 8px; }
.address-lines { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.address-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.address-actions button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
.address-actions button[data-addr-delete] { color: var(--err); }
.account-address-form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(62,230,214,.2); margin-top: 10px; padding-top: 12px; }

/* ---- modal (sign in / how it works) ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2,4,6,.6); z-index: 50; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; z-index: 51; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(62,230,214,.25); }
.modal-body { padding: 18px 20px; }
.signin-step { display: flex; flex-direction: column; gap: 10px; }
.howitworks-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.howitworks-step { display: flex; gap: 10px; align-items: flex-start; }
.howitworks-step .step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: #10230a; font-weight: 800; display: grid; place-items: center; flex: none; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #10151a; border: 1px solid var(--teal); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 13.5px; z-index: 80; box-shadow: var(--panel-shadow); }

input[type=file] { font-size: 12.5px; color: var(--ink); }
input[type=file]::file-selector-button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border: 1px solid rgba(159,176,187,.35); border-radius: 8px; background: var(--input-bg); color: var(--ink); cursor: pointer; margin-right: 10px; }

/* ---- draggable logo handle (service labels, "our layout" mode) ---- */
.logo-handle { position: absolute; border: 1.5px dashed var(--teal); cursor: move; touch-action: none; background: rgba(62,230,214,.06); }
.logo-handle .resize-grip { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 2px solid #06201c; cursor: nwse-resize; }

/* ---- draggable / resizable numbering box (custom labels step 2+ and service labels) ---- */
.num-handle { position: absolute; border: 1.5px dashed transparent; cursor: move; touch-action: none; }
.num-handle:hover { background: rgba(155,230,42,.08); }
.num-handle .resize-grip { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 2px solid #10230a; cursor: nwse-resize; }

/* ---- rotate button (service labels viewer) ---- */
.viewer-rotate { position: absolute; top: 10px; left: 10px; z-index: 3; }
.rotate-btn { font: inherit; font-size: 11.5px; font-weight: 700; background: rgba(7,12,16,.72); border: 1px solid var(--teal); color: var(--ink); border-radius: var(--pill); padding: 6px 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.rotate-btn:hover { background: rgba(62,230,214,.18); }

@media (max-width: 640px) {
  .topbar { gap: 6px; padding: 0 8px; }
  .topbar-brand img { height: 26px; }
  .topbar-title { display: none; }
  .topbar-center { gap: 4px; }
  .step-pills { gap: 4px; flex: none; }
  .step-pills .pill { width: 19px; height: 19px; font-size: 10px; }
  .topbar-right { gap: 6px; }
  .topbar .btn-signin { padding: 6px 9px; font-size: 11.5px; }
  .topbar .cart-btn { padding: 7px 9px; }
  .topbar .cart-btn span:not(.badge) { display: none; }
  .account-btn { max-width: 90px; padding: 7px 8px; }
  #stage { padding: 8px; }
}
