:root {
  --brand: #005098;      /* Hygiene Tech navy (logo) */
  --brand-dark: #003c74;
  --accent: #00a0c8;     /* Hygiene Tech cyan (logo tagline) */
  --accent-soft: #e6f5fa;
  --rush: #d9640a;
  --red: #c8102e;

  --ink: #1b1b1f;
  --ink-2: #4a4a52;
  --muted: #6f6f78;
  --line: #e4e4e8;
  --bg: #f4f4f6;
  --card: #ffffff;
  --ok: #1a8f4c;
  --warn: #b7791f;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(20,20,30,.06);
  --shadow-lg: 0 20px 60px rgba(20,20,30,.22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: inherit; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.fineprint { font-size: 12px; color: #a0a0a8; margin-top: 28px; text-align: center; }
[hidden] { display: none !important; }

/* ---- Inputs & buttons ---- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=search], input[type=tel], input:not([type]), textarea, select {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #cfcfd6; border-radius: 9px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,80,152,.14); }
textarea { resize: vertical; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 9px; padding: 11px 18px; cursor: pointer; background: #fff; color: var(--ink); transition: background .15s, transform .05s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: #cfcfd6; }
.btn-ghost:hover { background: #fff; }
.btn-link { background: none; color: var(--muted); padding: 8px; text-decoration: underline; font-weight: 500; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.icon-btn { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.stack > * + * { margin-top: 14px; }
.msg { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: #fdecec; color: #9b1c1c; }
.msg.ok { background: #e6f6ec; color: #16693a; }
.msg.warn { background: #fff5dd; color: #7a5200; }

/* ---- Login ---- */
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,80,152,.16), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(0,160,200,.14), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 36px 34px 26px; box-shadow: var(--shadow-lg); }
.login-logo { width: 230px; display: block; margin: 0 0 22px; }
.login-card h1 { margin-bottom: 6px; }
.login-card .muted { margin-bottom: 22px; }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.brand img { height: 34px; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab { text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab:hover { background: var(--bg); color: var(--ink); }
.tab.active { color: var(--brand); background: rgba(0,80,152,.08); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.cart-btn { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; }
.cart-btn:hover { background: #000; }
.badge { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-email { font-size: 13px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Page ---- */
.page { max-width: 1280px; margin: 0 auto; padding: 32px 24px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .muted { margin: 6px 0 0; max-width: 560px; }
.filters { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.filters .tf-toggle { align-self: flex-end; }
.filters input { width: 280px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid #d5d5dc; background: #fff; color: var(--ink-2); cursor: pointer; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Time frame toggle ---- */
.tf-toggle { display: inline-flex; border: 1px solid #cfcfd6; border-radius: 9px; overflow: hidden; background: #fff; }
.tf { font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.tf small { font-weight: 500; font-size: 11px; color: var(--muted); }
.tf.active { background: var(--ink); color: #fff; }
.tf.active small { color: #ccc; }
.tf[data-tf=rush].active { background: var(--rush); }
.cart-tf { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cart-tf .tf-toggle { transform: scale(.92); transform-origin: right center; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-hint { font-size: 12px; color: var(--muted); }
.price-hint.break { color: #7a5200; }

/* ---- Product grid ---- */
.card-img.no-img { cursor: default; background: linear-gradient(135deg, #ececef, #dcdcdf); }
.img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: #8a8a92; font-weight: 700; letter-spacing: .08em; }
.img-placeholder small { font-weight: 500; letter-spacing: 0; font-size: 12px; }
.img-mini { width: 72px; height: 48px; border-radius: 6px; background: #e4e4e8; }
.review-row .img-mini { width: 64px; height: 42px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.card.in-cart { border-color: var(--brand); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); cursor: zoom-in; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .sku { position: absolute; top: 10px; left: 10px; background: rgba(27,27,31,.85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; }
.card-img .zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.9); border-radius: 6px; font-size: 11px; font-weight: 600; padding: 4px 8px; color: var(--ink-2); }
.card-body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.min-hint { font-size: 12px; color: var(--muted); }
.btn-danger { color: var(--red); border-color: #f0c2c5; }
.btn-danger:hover { background: var(--accent-soft, #fdecec); }
.card-title { font-weight: 700; font-size: 15px; }
.card-desc { font-size: 12.5px; color: var(--muted); flex: 1; }
.card-price { font-weight: 700; font-size: 15px; }
.card-price small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.card-price.poa { color: var(--muted); font-weight: 500; font-size: 13px; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.card-foot select { flex: 1; padding: 9px 10px; font-size: 14px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #cfcfd6; border-radius: 9px; overflow: hidden; background: #fff; }
.qty-sel { border: 0; background: none; overflow: visible; gap: 6px; align-items: center; }
.qty-sel select { width: auto; min-width: 74px; padding: 9px 8px; font-size: 14px; font-weight: 700; }
.qty-sel input[data-qty-custom] { width: 62px; border: 1px solid #cfcfd6; border-radius: 9px; text-align: center; padding: 8px 4px; font-weight: 700; }
.qty button { font: inherit; font-size: 18px; width: 30px; border: 0; background: #fff; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--bg); }
.qty input { width: 46px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; padding: 8px 4px; font-weight: 700; }
.qty input:focus { box-shadow: none; }
.btn-add { margin-left: auto; white-space: nowrap; padding: 10px 12px; font-size: 14px; }
.btn-add.added { background: var(--ok); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ---- Drawer ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,20,30,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.cart-total .muted { font-weight: 500; font-size: 13px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cart-line .name { font-weight: 600; font-size: 14px; }
.cart-line .sub { font-size: 12px; color: var(--muted); }
.cart-line .qty input { width: 44px; }
.cart-line .remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }

/* ---- Modals ---- */
.modal { position: fixed; inset: 0; background: rgba(20,20,30,.5); z-index: 50; display: grid; place-items: center; padding: 20px; overflow: auto; }
.modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 680px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal-card.small { max-width: 460px; padding: 36px 32px; text-align: center; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 22px 22px; overflow: auto; }
.review-items { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.review-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-row:last-child { border-bottom: 0; }
.review-row img { width: 64px; height: 42px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }
.review-row .q { font-weight: 700; }
.review-row .p { color: var(--muted); min-width: 70px; text-align: right; }
.review-total { display: flex; justify-content: flex-end; gap: 12px; padding: 10px 12px; background: var(--bg); font-weight: 700; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.span-2 { grid-column: span 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions.center { justify-content: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: #e6f6ec; color: var(--ok); font-size: 32px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 16px; }

/* ---- Delivery options ---- */
.delivery-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cfcfd6; border-radius: 9px; padding: 10px 12px; cursor: pointer; font-weight: 500; margin: 0; }
.delivery-opt:has(input:checked) { border-color: var(--brand); background: #eef6fb; }
.delivery-opt input { margin-top: 3px; accent-color: var(--brand); }
.delivery-opt span { display: flex; flex-direction: column; line-height: 1.3; }
.delivery-opt small { color: var(--muted); font-weight: 500; }
.delivery-note { margin-top: 8px; }
.addr-book { margin-top: 12px; }
.addr-book-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addr-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cfcfd6; border-radius: 9px; padding: 10px 12px; cursor: pointer; margin: 0; font-weight: 500; font-size: 13px; line-height: 1.35; }
.addr-card:has(input:checked) { border-color: var(--brand); background: #eef6fb; }
.addr-card input { margin-top: 2px; accent-color: var(--brand); }
.addr-card b { display: block; font-size: 14px; }
.addr-card.new { align-items: center; color: var(--ink-2); }
@media (max-width: 600px) { .addr-book-list { grid-template-columns: 1fr; } }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.addr-grid .field label { margin-bottom: 4px; }
@media (max-width: 600px) { .addr-grid { grid-template-columns: 1fr; } .addr-grid .span-2 { grid-column: span 1; } }
.review-line { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 14px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .delivery-opts { grid-template-columns: 1fr; } }

/* ---- Orders ---- */
.orders { display: flex; flex-direction: column; gap: 14px; }
.order { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 12px; }
.order-num { font-weight: 800; font-size: 17px; }
.order-meta { color: var(--muted); font-size: 13px; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef0ff; color: #3a43b8; text-transform: capitalize; }
.status.complete { background: #e6f6ec; color: var(--ok); }
.status.cancelled { background: #f1f1f3; color: var(--muted); }
.status.in_shopvox { background: #fff5dd; color: #7a5200; }
.order-head .btn { margin-left: auto; }
.order-head .btn + .btn { margin-left: 0; }
.order-items { display: flex; flex-wrap: wrap; gap: 10px; }
.order-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 6px 6px; font-size: 13px; }
.order-item img { width: 56px; height: 36px; object-fit: cover; border-radius: 4px; }
.order-item b { font-size: 14px; }
.order-notes { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: #fff8e1; border-left: 3px solid #f5b400; padding: 8px 12px; border-radius: 6px; white-space: pre-wrap; }

/* ---- Lightbox & toast ---- */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,14,.88); z-index: 60; display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 36px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 70; box-shadow: var(--shadow-lg); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .topbar-inner { gap: 10px; padding: 0 12px; height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand img { height: 28px; }
  .brand span { display: none; }
  .user-email { display: none; }
  .user-menu .btn { padding: 7px 10px; }
  .cart-btn { margin-left: auto; padding: 8px 12px; }
  .cart-btn span:not(.badge) { display: none; }
  .tabs { order: 10; width: 100%; margin-left: 0; }
  .tab { flex: 1; text-align: center; padding: 8px 6px; white-space: nowrap; }
  .page { padding: 20px 14px 80px; }
  .filters { align-items: stretch; width: 100%; }
  .filters input { width: 100%; }
  .chips { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .review-row { grid-template-columns: 56px 1fr auto; }
  .review-row .p { display: none; }
}

/* "Something missing?" tile */
.card-feedback { display: flex; align-items: stretch; cursor: pointer; border: 2px dashed #cfcfd6; background: #fbfbfc; box-shadow: none; }
.card-feedback:hover { border-color: var(--brand); background: #fff; }
.card-feedback .fb-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 18px; }
.card-feedback .fb-icon { font-size: 28px; }
.card-feedback .card-desc { flex: 1; }
.card-feedback .btn { pointer-events: none; }
input[type=file] { font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border: 1px solid #cfcfd6; border-radius: 8px; background: #fff; cursor: pointer; margin-right: 10px; }
input[type=file]::file-selector-button:hover { border-color: var(--brand); color: var(--brand); }

/* ===== Hygiene Tech additions ===== */
.link { color: var(--brand); font-weight: 600; font-size: 13px; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Home */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.hero h2 { font-size: 30px; }
.hero .muted { margin: 8px 0 0; max-width: 640px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.tile { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid transparent; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 14px 34px rgba(0,60,116,.14); border-color: var(--brand); }
.tile-icon { height: 132px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #0072b8 70%, var(--accent)); color: #fff; }
.tile-icon svg { width: 64px; height: 64px; }
.tile[data-tile=panels] .tile-icon { background: linear-gradient(135deg, #003c74, var(--brand) 60%, #0072b8); }
.tile[data-tile=collateral] .tile-icon { background: linear-gradient(135deg, #0072b8, var(--accent) 70%, #5ccbe6); }
.tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.tile-desc { color: var(--muted); font-size: 14px; flex: 1; }
.tile-cta { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 6px; }
.home-row { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; }
.home-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; }
.home-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.home-card-head h3 { font-size: 17px; }
.home-card-head .muted { margin: 4px 0 0; font-size: 13px; }
.archive-search { display: flex; gap: 8px; }
.archive-search input { flex: 1; }
.archive-results { margin-top: 12px; font-size: 14px; }
.archive-results .empty-note { color: var(--muted); font-size: 13px; padding: 8px 0 0; }
.recent-orders { display: flex; flex-direction: column; gap: 8px; }
.recent-order { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.recent-order .num { font-weight: 800; color: var(--brand); }
.recent-order .sum { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-order .btn { padding: 6px 10px; }

/* Panels */
.panel-intro { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.dropzone { border: 2px dashed #bfc9d6; border-radius: 16px; background: #fff; padding: 48px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dropzone-soon { border-style: dashed; opacity: .85; }
.dz-icon { font-size: 40px; color: var(--brand); line-height: 1; }
.dz-title { font-weight: 800; font-size: 18px; }
.dz-desc { color: var(--muted); font-size: 14px; max-width: 520px; }
.panel-rules { background: var(--accent-soft); border-radius: 16px; padding: 18px 20px; }
.panel-rules h3 { font-size: 15px; margin-bottom: 8px; color: var(--brand-dark); }
.panel-rules ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.footer { background: var(--brand-dark); color: #dbe7f3; margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; gap: 24px; font-size: 13px; }
.footer-logo { height: 46px; }
.footer-sub { opacity: .8; margin-top: 4px; }
.footer a { color: #fff; }
.page { min-height: calc(100vh - 64px - 100px); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr; }
  .home-row { grid-template-columns: 1fr; }
  .panel-intro { grid-template-columns: 1fr; }
  .hero h2 { font-size: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Labels (Phase 2) ===== */
.tile-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.tile-ctas .tile-cta { margin-top: 0; text-decoration: none; }
.tile-ctas .tile-cta:hover { text-decoration: underline; }
a.tile-icon { text-decoration: none; }
.page-switch { display: flex; gap: 10px; margin-bottom: 18px; }
.page-switch a { flex: 1; max-width: 320px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; border: 2px solid #d5dde6; background: #fff; text-decoration: none; color: var(--ink-2); }
.page-switch a small { font-size: 12px; color: var(--muted); font-weight: 500; }
.page-switch a b { font-size: 15px; }
.page-switch a.active { border-color: var(--brand); background: var(--accent-soft); color: var(--brand-dark); }
.page-switch a:hover:not(.active) { border-color: #9fb9d4; }
.card-spec { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.card-spec span { background: var(--bg); border-radius: 6px; padding: 2px 7px; }
.card-warn { font-size: 12px; color: #8a1c1c; background: #fdecec; border-radius: 6px; padding: 6px 8px; }
.card.no-art .card-img { background: #eef3f8; }
.card.no-art .card-img img { transform: none !important; }
.card-img .zoom.soft { background: rgba(0,80,152,.08); color: var(--brand); }
.flag { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; margin-left: 6px; vertical-align: middle; cursor: help; }
.flag.sm { width: 15px; height: 15px; font-size: 10px; margin-left: 4px; }
.card-price.guessed { color: var(--red); }
.card-price.poa .flag { margin-left: 4px; }
.cart-group { margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cart-group-head { padding: 8px 12px 10px; background: var(--bg); font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.cart-group-head .cart-group-label { font-weight: 700; color: var(--ink-2); font-size: 13px; }
.cart-group-head .cart-group-moq { color: var(--muted); }
.cart-group-head.short .cart-group-moq { color: #8a5200; font-weight: 600; }
.cart-group-head.ok .cart-group-moq { color: var(--ok); font-weight: 600; }
.cart-group-head .bar { height: 5px; background: #e2e6ec; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.cart-group-head .bar i { display: block; height: 100%; background: #e2a23c; border-radius: 3px; transition: width .2s; }
.cart-group-head.ok .bar i { background: var(--ok); }
.cart-group .cart-line { padding: 10px 12px; }
.cart-group .cart-line:last-child { border-bottom: 0; }
.cart-line.short .name { color: #8a5200; }
.cart-line .sub.warn { color: #8a5200; }
.cart-issues { background: #fff5dd; color: #7a5200; border-radius: 8px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.review-note { padding: 10px 12px; font-size: 13px; color: var(--ink-2); background: #fdecec; }
.price-line .price-hint { align-self: center; }
@media (max-width: 600px) { .page-switch { flex-direction: column; } .page-switch a { max-width: none; } }

/* ===== Panels (Phase 3) ===== */
.panel-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; margin-bottom: 24px; }
.panel-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.dropzone { cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--accent-soft); }
.dropzone:focus { outline: 3px solid rgba(0,80,152,.25); }
.panel-uploads { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.pfile { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px 18px; }
.pfile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pfile-actions { display: flex; align-items: center; gap: 10px; }
.pfile-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 12px; }
.pfile-fields .field.span-2 { grid-column: span 2; }
.pfile-fields input { padding: 9px 11px; font-size: 14px; }
.pfile-hint { margin: 6px 0 12px; }
.pfile-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ppages { display: flex; flex-direction: column; gap: 12px; }
.ppage { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfd; }
.ppage.asking { border-color: #ff2d95; box-shadow: 0 0 0 3px rgba(255,45,149,.12); }
.ppage-preview { position: relative; background: #e9edf2; border-radius: 8px; overflow: hidden; cursor: zoom-in; display: grid; place-items: center; min-height: 160px; }
.ppage-preview canvas { max-width: 100%; height: auto; display: block; }
.ppage-preview canvas.art { position: relative; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ppage-preview canvas.overlay { position: absolute; inset: 0; margin: auto; z-index: 2; pointer-events: none; }
.ppage-preview canvas.overlay.flash { animation: cutflash 1s ease-in-out infinite; }
@keyframes cutflash { 0%, 100% { opacity: 1; } 50% { opacity: .12; } }
.ppage-badge { position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(27,27,31,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }
.ppage-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ppage-title { font-size: 15px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.checks li { padding: 6px 10px 6px 30px; border-radius: 8px; position: relative; line-height: 1.35; }
.checks li::before { content: ''; position: absolute; left: 10px; top: 8px; width: 13px; height: 13px; border-radius: 50%; }
.checks li.ok { background: #e6f6ec; color: #16693a; }
.checks li.ok::before { background: var(--ok); box-shadow: inset 0 0 0 3px #e6f6ec; }
.checks li.warn { background: #fff5dd; color: #7a5200; }
.checks li.warn::before { background: #e2a23c; }
.checks li.bad { background: #fdecec; color: #9b1c1c; }
.checks li.bad::before { background: var(--red); }
.checks li.info { background: var(--bg); color: var(--ink-2); }
.checks li.info::before { background: #b5bcc7; }
.checks li.ask { background: #ffe7f2; color: #8a1053; font-weight: 600; }
.checks li.ask::before { background: #ff2d95; animation: cutflash 1s ease-in-out infinite; }
.cut-prompt { display: flex; gap: 8px; flex-wrap: wrap; }
.ack { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.ack input { margin-top: 2px; accent-color: var(--brand); }
.ppage-controls { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.ppage-controls select, .ppage-controls input { padding: 9px 10px; font-size: 14px; }
.ppage-controls .field label { margin-bottom: 4px; }
.ppage-price { font-size: 14px; line-height: 1.4; }
.ppage-foot { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.pill.ok { background: #e6f6ec; color: #16693a; }
.pill.warn { background: #fff5dd; color: #7a5200; }
.panel-rates { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.panel-rates table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.panel-rates th { text-align: right; font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 4px 8px; }
.panel-rates th:first-child { text-align: left; }
.panel-rates td { padding: 6px 4px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.panel-rates td:first-child { text-align: left; white-space: normal; font-weight: 600; }
.panel-rates td small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.panel-rates .hint { margin-top: 8px; }
.panel-archive { margin-top: 8px; }
.arch-group { margin-top: 14px; }
.arch-customer { font-weight: 800; font-size: 14px; color: var(--brand-dark); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-soft); }
.arch-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.arch-thumb img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.arch-title { font-weight: 700; font-size: 14px; }
.arch-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.arch-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.arch-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.arch-actions .btn { text-decoration: none; }
.cart-group.panels .cart-group-head { background: var(--accent-soft); }
.cart-group.panels .cart-group-head .bar i { background: var(--brand); }
.cart-group.panels .cart-group-head .cart-group-moq { color: var(--brand-dark); }
.cart-line img { object-fit: cover; }
@media (max-width: 960px) {
  .panel-layout { grid-template-columns: 1fr; }
  .panel-side { position: static; }
  .pfile-fields { grid-template-columns: 1fr 1fr; }
  .ppage { grid-template-columns: 1fr; }
  .arch-row { grid-template-columns: 72px 1fr; }
  .arch-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ===== Business card builder ===== */
.cards-builder { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px 22px; margin-bottom: 22px; }
.cb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.cb-head h3 { font-size: 20px; margin-bottom: 4px; }
.cb-head .muted { margin: 0; max-width: 620px; font-size: 14px; }
.cb-head .pill { margin-left: 4px; vertical-align: middle; }
.cb-tabs { display: inline-flex; border: 1px solid #cfcfd6; border-radius: 10px; overflow: hidden; background: #fff; flex-shrink: 0; }
.cb-tabs button { font: inherit; font-weight: 600; font-size: 13px; padding: 9px 14px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; }
.cb-tabs button.active { background: var(--brand); color: #fff; }
.cb-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }
.cb-form { display: flex; flex-direction: column; gap: 12px; }
.cb-form .field label { margin-bottom: 4px; }
.cb-form input { padding: 9px 11px; font-size: 14px; }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req { color: var(--red); }
.cb-fixed { font-size: 12.5px; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 8px 10px; line-height: 1.4; }
.cb-qty-label { margin: 4px 0 -6px; }
.cb-qty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cb-qty-opt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid #cfcfd6; border-radius: 9px; padding: 9px 10px; cursor: pointer; margin: 0; font-weight: 500; }
.cb-qty-opt.active { border-color: var(--brand); background: var(--accent-soft); }
.cb-qty-opt input { margin-top: 3px; accent-color: var(--brand); }
.cb-qty-opt span { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.cb-qty-opt small { color: var(--muted); font-weight: 600; font-size: 12px; }
.cb-qty-opt small.guessed { color: var(--red); }
.cb-qty-opt small .flag { margin-left: 4px; width: 15px; height: 15px; font-size: 10px; }
.cb-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.cb-actions .muted { font-size: 12.5px; }
.cb-preview { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cb-card { position: relative; background: #e9edf2; border-radius: 10px; padding: 12px; }
.cb-card canvas { display: block; max-width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0,0,0,.25); background: #fff; }
.cb-card.cb-empty { width: 100%; max-width: 420px; min-height: 160px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.cb-side { position: absolute; top: -8px; left: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.cb-preview .hint { margin: 0; }
.cb-drop { padding: 28px 20px; }
.cart-group.cards .cart-group-head { background: #f0f4ff; }
@media (max-width: 900px) { .cb-layout { grid-template-columns: 1fr; } .cb-qty { grid-template-columns: 1fr; } }
