:root {
  --brand: #206536;
  --brand-dark: #164a27;
  --brand-soft: rgba(32,101,54,.10);
  --ink: #1b1b1f;
  --ink-2: #4a4a52;
  --muted: #6f6f78;
  --line: #e4e4e8;
  --bg: #f4f4f6;
  --card: #ffffff;
  --ok: #1a8f4c;
  --warn: #b7791f;
  --red: #c0271b;
  --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: 30px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: inherit; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
[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[type=number], 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 var(--brand-soft); }
textarea { resize: vertical; }
.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; text-decoration: none; display: inline-block; }
.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%; text-align: center; }
.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); }
.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; }

/* ---- 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; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-mark { font-weight: 800; font-size: 16px; color: var(--brand-dark); }
.brand-sub { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.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-dark); background: var(--brand-soft); }
.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; }

/* ---- 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; }
.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); }

/* ---- Home ---- */
.hero { max-width: 720px; margin-bottom: 30px; }
.hero .muted { font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, transform .1s; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 6px; }
.tile-go { font-weight: 700; font-size: 13px; color: var(--brand-dark); margin-top: auto; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } }

.info-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; max-width: 720px; }
.thankyou-card { text-align: center; max-width: 480px; margin: 40px auto; }
.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; }

/* ---- Sign / product grid ---- */
.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: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-img .placeholder-tag { position: absolute; top: 8px; left: 8px; background: rgba(27,27,31,.82); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-weight: 700; font-size: 15px; }
.card-cat { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-dark); }
.card-row { display: flex; gap: 8px; }
.card-row select { flex: 1; padding: 9px 8px; font-size: 13px; }
.card-price { font-weight: 700; font-size: 16px; }
.card-price small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.card-price.tbc { color: var(--warn); font-weight: 600; font-size: 13px; }
.price-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #fff5dd; color: #7a5200; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #cfcfd6; border-radius: 9px; overflow: hidden; background: #fff; }
.qty select { border: 0; padding: 9px 8px; font-weight: 700; font-size: 14px; }
.btn-add { margin-left: auto; flex: 1 1 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; }

/* ---- Custom print form ---- */
.custom-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .custom-layout { grid-template-columns: 1fr; } }
.custom-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.field { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field.span-2 { grid-column: span 2; }
.sqm-readout { font-weight: 700; font-size: 15px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; display: inline-block; }
.sqm-readout.oversize { color: var(--red); background: #fdecec; }
.area-note { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.cf-rush-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.cf-rush-label input { width: auto; accent-color: var(--brand); }
.custom-price { border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; }
.custom-price .row { display: flex; justify-content: space-between; padding: 2px 0; }
.custom-price .total { font-weight: 800; font-size: 17px; }
.custom-side { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.custom-side ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }

/* ---- Print your own: upload-first flow (SC-20260914-03) ---- */
.cf-dropzone { border: 2px dashed #cfcfd6; border-radius: 10px; padding: 18px 14px; text-align: center; background: var(--bg); transition: border-color .15s, background .15s; }
.cf-dropzone.drag-over { border-color: var(--brand); background: var(--brand-soft); }
.cf-dropzone input[type=file] { width: 100%; }
.cf-dropzone-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.cf-progress { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.cf-progress-bar { height: 100%; width: 0%; background: var(--brand); transition: width .15s; }

.cf-preview-block { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.cf-size-top { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 360px; }
.cf-size-top label { margin-bottom: 4px; }
.cf-size-top input { max-width: 140px; text-align: center; }
.cf-dim-line-h { height: 1px; background: var(--muted); width: 100%; max-width: 300px; margin-top: 6px; position: relative; }
.cf-dim-line-h::before, .cf-dim-line-h::after { content: ''; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--muted); }
.cf-dim-line-h::before { left: 0; } .cf-dim-line-h::after { right: 0; }
.cf-stage-row { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; margin-top: 8px; }
.cf-stage { position: relative; width: min(100%, 320px); aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f0f0f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.cf-stage canvas { max-width: 100%; max-height: 100%; display: block; }
.cf-eps-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 13px; color: var(--muted); background: var(--bg); }
.cf-cutline { position: absolute; border: 2px dashed rgb(255,0,127); border-radius: 2px; pointer-events: none; }
.cf-cutline-label { position: absolute; left: 4px; bottom: 4px; font-size: 10px; color: rgb(255,0,127); background: rgba(255,255,255,.85); padding: 1px 5px; border-radius: 4px; pointer-events: none; }
.cf-size-side { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.cf-dim-line-v { width: 1px; align-self: stretch; background: var(--muted); position: relative; min-height: 60px; }
.cf-dim-line-v::before, .cf-dim-line-v::after { content: ''; position: absolute; left: -3px; height: 1px; width: 7px; background: var(--muted); }
.cf-dim-line-v::before { top: 0; } .cf-dim-line-v::after { bottom: 0; }
.cf-size-side input { max-width: 90px; text-align: center; }
.cf-lock-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cf-lock-btn { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid #cfcfd6; border-radius: 999px; padding: 6px 12px; background: #fff; cursor: pointer; color: var(--ink-2); }
.cf-lock-btn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.cf-unlock-link { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; }
.cf-bleed-block { margin-top: 4px; }
.cf-bleed-check { margin-top: 8px; }
.cf-blur-block { margin-top: 4px; padding: 10px 12px; border-radius: 9px; background: var(--bg); }
.cf-blur-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.cf-blur-badge.green { background: #e6f6ec; color: var(--ok); }
.cf-blur-badge.amber { background: #fff5dd; color: var(--warn); }
.cf-blur-badge.red { background: #fdecec; color: var(--red); }
.cf-blur-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

@media (max-width: 560px) {
  .cf-stage { width: min(100%, 220px); }
  .cf-size-top, .cf-size-top input { max-width: 100%; }
  .cf-size-side input { max-width: 76px; }
}

/* ---- 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: var(--brand-soft); }
.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; }
@media (max-width: 600px) { .delivery-opts { grid-template-columns: 1fr; } }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
@media (max-width: 600px) { .addr-grid { grid-template-columns: 1fr; } .addr-grid .span-2 { grid-column: span 1; } }

/* ---- Cart / checkout layout ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.cart-item img { width: 64px; height: 48px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.cart-item-swatch, .cart-line-swatch { width: 64px; height: 48px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: .03em; }
.cart-line-swatch { width: 56px; height: 42px; font-size: 10px; }
.cart-item .name { font-weight: 700; font-size: 14px; }
.cart-item .sub { font-size: 12px; color: var(--muted); }
.cart-item .price-col { text-align: right; }
.cart-item .price-col .line-total { font-weight: 700; }
.cart-item .remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.cart-summary, aside.cart-summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.summary-lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-lines .row { display: flex; justify-content: space-between; }
.summary-lines .total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.discount-note { font-size: 12px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 6px; padding: 6px 8px; }

/* ---- 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(420px, 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: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 56px; height: 42px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.cart-line .name { font-weight: 600; font-size: 13px; }
.cart-line .sub { font-size: 11.5px; color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }

/* ---- Lightbox & toast ---- */
.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); }

.site-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: #fff; }
.site-footer a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .topbar-inner { gap: 10px; padding: 0 12px; height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .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%; }
  .chips { justify-content: flex-start; }
}

/* ---- Account menu (SC-20260914-02) ---- */
.account-menu { position: relative; }
.account-btn { display: flex; align-items: center; gap: 4px; font: inherit; font-weight: 600; font-size: 14px; background: var(--brand-soft); color: var(--brand-dark); border: 0; border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.account-btn:hover { background: #d8ecdf; }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); min-width: 170px; display: flex; flex-direction: column; padding: 6px; z-index: 35; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; 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: var(--bg); }

/* ---- Modal (sign-in) ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,20,30,.45); z-index: 50; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 32px)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 51; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px; }
.signin-step { display: flex; flex-direction: column; gap: 12px; }

/* ---- Order status badges ---- */
.status-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.status-pending_payment { background: #fff5dd; color: #7a5200; }
.status-paid { background: #e6f0ff; color: #1a4f9b; }
.status-in_production { background: #f0e8ff; color: #5a2fa8; }
.status-ready { background: #fff0d6; color: #a85b00; }
.status-shipped { background: #e6f6ec; color: #16693a; }
.status-cancelled { background: #fdecec; color: #9b1c1c; }

/* ---- Your orders ---- */
.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; }
.order-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-card-head .order-number { font-weight: 800; font-size: 15px; }
.order-card-head .order-date { color: var(--muted); font-size: 13px; }
.order-card-head .order-total { margin-left: auto; font-weight: 800; }
.order-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.order-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.order-line img, .order-line .cart-item-swatch { width: 56px; height: 42px; }
.price-changed-note { font-size: 12px; color: var(--warn); background: #fff5dd; border-radius: 6px; padding: 5px 8px; margin-top: 4px; }

/* ---- Admin ---- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 800px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat-tile .stat-value { font-size: 26px; font-weight: 800; }
.stat-tile .stat-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-toolbar input[type=search] { max-width: 280px; }
.admin-toolbar select { max-width: 200px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .clickable { cursor: pointer; color: var(--brand-dark); font-weight: 600; text-decoration: underline; background: none; border: 0; font: inherit; padding: 0; }
.status-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-back { margin-bottom: 14px; }
.spec-line { font-size: 11px; color: var(--muted); margin-top: 2px; }
.spec-line-check { color: var(--warn); font-weight: 700; }

@media (max-width: 700px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 6px solid var(--bg); padding: 10px 0; }
  .admin-table td { border-bottom: 0; padding: 4px 12px; }
  .admin-table td::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
}

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); }
