:root {
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --bg: #f7f8fb;
  --card: #fff;
  --red: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 4px 6px -2px rgba(16, 24, 40, .05), 0 12px 24px -4px rgba(16, 24, 40, .1);
  --font: "Noto Sans Thai", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--gray-900); }
p { margin: 0; }
a { color: var(--blue-700); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 6px;
}
main:focus { outline: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue-700); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 8px; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-900); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wm-name { font-family: "Inter", var(--font); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--blue-900); }
.wm-hai { color: var(--blue-600); }
.wm-th { font-size: 11px; font-weight: 600; color: var(--gray-500); margin-top: 3px; letter-spacing: .02em; }
.site-footer .wm-name { font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--gray-300); border-radius: 999px; padding: 2px; background: #fff; }
.lang-toggle button {
  font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--gray-600);
  padding: 4px 10px; border-radius: 999px; cursor: pointer; min-height: 30px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--blue-700); color: #fff; }
.lang-toggle button:not([aria-pressed="true"]):hover { background: var(--gray-100); }

.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-900);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-name { font-size: 14px; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 11px 18px; min-height: 44px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-900); }
.btn-secondary { background: #fff; color: var(--gray-900); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-success { background: #15803d; color: #fff; }
.btn-success:hover { background: #166534; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-google { background: #fff; color: var(--gray-900); border-color: var(--gray-300); }
.btn-google:hover { background: var(--gray-100); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite; flex: none; display: inline-block;
}
.spinner.dark { border-color: var(--gray-300); border-top-color: var(--blue-700); }
.spinner.lg { width: 36px; height: 36px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } * { scroll-behavior: auto !important; } }

/* ---------- Layout bits ---------- */
main { min-height: 60vh; padding-bottom: 56px; }
.section { padding-top: 48px; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: 26px; letter-spacing: -.01em; }
.section-head p { color: var(--gray-600); margin-top: 6px; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200);
  padding: 24px;
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 8px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--gray-200); padding-bottom: 48px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: 30px; letter-spacing: -.02em; color: var(--blue-900); }
.hero p.lead { margin-top: 14px; font-size: 17px; color: var(--gray-600); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-art { display: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 16px; }
.step-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; }
.step-icon svg { width: 26px; height: 26px; }
.step-num { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-700); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.step h3 { font-size: 17px; }
.step p { color: var(--gray-600); font-size: 15px; margin-top: 4px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 16px; }
.price-card { text-align: left; }
.price-card .label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gray-700); }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.swatch.bw { background: linear-gradient(135deg, #111827 50%, #9ca3af 50%); }
.swatch.color { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444); border-radius: 50%; }
.price-amount { font-size: 36px; font-weight: 700; color: var(--blue-900); margin-top: 8px; letter-spacing: -.02em; font-family: "Inter", var(--font); }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--gray-500); letter-spacing: 0; font-family: var(--font); }
.price-note { margin-top: 14px; color: var(--gray-600); font-size: 14px; }

/* ---------- Upload ---------- */
.upload-card { padding: 24px; }
.upload-card h3 { font-size: 20px; margin-bottom: 16px; }
.signin-box { text-align: center; padding: 16px 0 8px; }
.signin-box .big-icon { width: 56px; height: 56px; color: var(--blue-700); background: var(--blue-50); border-radius: 50%; padding: 14px; margin-bottom: 12px; }
.signin-box h4 { font-size: 18px; margin: 0 0 6px; }
.signin-box p { color: var(--gray-600); max-width: 460px; margin: 0 auto 18px; }

.dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius); background: var(--bg);
  padding: 28px 16px; text-align: center; transition: border-color .15s, background .15s;
}
.dropzone.dragover { border-color: var(--blue-600); background: var(--blue-50); }
.dropzone svg.dz-icon { width: 44px; height: 44px; color: var(--blue-700); margin-bottom: 8px; }
.dropzone .dz-title { font-weight: 600; }
.dropzone .dz-sub { color: var(--gray-600); margin-top: 4px; }
.linkish { background: none; border: 0; font: inherit; color: var(--blue-700); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.dz-hint { font-size: 13px; color: var(--gray-500); margin-top: 8px; }
.file-picked { display: flex; align-items: center; gap: 12px; text-align: left; }
.file-picked .file-ic { width: 40px; height: 40px; background: var(--blue-50); color: var(--blue-700); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.file-picked .file-ic svg { width: 22px; height: 22px; }
.file-meta { min-width: 0; flex: 1; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-size { font-size: 13px; color: var(--gray-500); }

.options { display: grid; gap: 18px; margin-top: 20px; }
.field > .field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--gray-700); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; cursor: pointer; font-size: 20px; color: var(--gray-700); display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover:not(:disabled) { background: var(--gray-100); }
.stepper button:disabled { color: var(--gray-300); cursor: not-allowed; }
.stepper button svg { width: 18px; height: 18px; }
.stepper input { width: 64px; height: 44px; border: 0; border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; background: #fff; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.segmented { display: inline-flex; border: 1px solid var(--gray-300); border-radius: 10px; padding: 3px; background: var(--gray-100); gap: 2px; }
.segmented button { font: inherit; font-weight: 600; font-size: 15px; border: 0; background: transparent; color: var(--gray-700); padding: 8px 18px; min-height: 40px; border-radius: 8px; cursor: pointer; }
.segmented { background: #fff; }
.segmented button { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-600); }
.segmented button .seg-check { display: none !important; }
.segmented button .seg-check { width: 18px; height: 18px; flex: none; }
.segmented button[aria-checked="true"] { background: var(--blue-700); color: #fff; box-shadow: var(--shadow); }
.segmented button[aria-checked="true"] .seg-check { display: inline-flex !important; }
.segmented button[aria-checked="true"] .swatch { display: none; }
.segmented button:not([aria-checked="true"]):hover { background: var(--gray-100); color: var(--gray-900); }
.rate-line { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--gray-700); background: var(--gray-100); border: 1px solid var(--gray-200); }
.rate-line:empty { display: none; }
.rate-line strong { color: var(--gray-900); }
.rate-line.is-color { background: #fdf4ff; border-color: #f0abfc; }
.breakdown { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--gray-100); color: var(--gray-700); font-size: 14px; }
.breakdown .bd-min { margin-top: 4px; color: var(--gray-600); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-700); flex: none; cursor: pointer; }
.check .check-t { font-weight: 600; }
.check .check-n { font-size: 14px; color: var(--gray-600); }

.form-actions { margin-top: 24px; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--blue-50); color: var(--blue-900); border: 1px solid var(--blue-100); }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert .alert-body { flex: 1; min-width: 0; }
.alert .alert-body strong { display: block; }

.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.summary dt { color: var(--gray-600); }
.summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--gray-200); margin-top: 16px; padding-top: 16px; }
.summary .total span:first-child { font-weight: 600; }
.summary .total-amt { font-size: 32px; font-weight: 700; color: var(--blue-900); font-family: "Inter", var(--font); letter-spacing: -.02em; }
.summary .actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.summary .actions .btn-primary { flex: 1 1 240px; }
.summary .later { font-size: 14px; color: var(--gray-500); margin-top: 12px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-awaiting_payment { background: #fef3c7; color: #92400e; }
.badge-paid { background: #dbeafe; color: #1e40af; }
.badge-printed { background: #dcfce7; color: #166534; }
.badge-collected { background: #e5e7eb; color: #374151; }

/* ---------- Orders list ---------- */
.page-head { padding-top: 32px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; letter-spacing: -.01em; }
.order-list { display: grid; gap: 12px; }
.order-row { display: grid; gap: 10px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; padding: 18px 20px; }
.order-row:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.order-row .or-file { font-weight: 600; overflow-wrap: anywhere; }
.order-row .or-sub { color: var(--gray-600); font-size: 14px; }
.order-row .or-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.order-row .or-amount { font-weight: 700; font-family: "Inter", var(--font); }
.order-row .or-date { color: var(--gray-500); font-size: 13px; }
.order-row .or-go { color: var(--blue-700); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.order-row .or-go svg { width: 16px; height: 16px; }

.empty { text-align: center; padding: 48px 16px; }
.empty svg { width: 56px; height: 56px; color: var(--gray-300); margin-bottom: 12px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--gray-600); margin: 6px 0 18px; }
.center-load { display: flex; justify-content: center; padding: 64px 0; }

/* ---------- Order detail ---------- */
.detail { max-width: 720px; margin: 0 auto; padding-top: 24px; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--gray-600); text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 4px; }
.back:hover { color: var(--blue-700); }
.back svg { width: 16px; height: 16px; }
.detail .card { margin-top: 12px; }
.detail h1 { font-size: 22px; overflow-wrap: anywhere; }
.detail-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.release { text-align: center; padding: 32px 16px; background: linear-gradient(180deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); border-radius: var(--radius); margin-top: 20px; }
.release .rl { font-size: 14px; font-weight: 600; color: var(--blue-900); text-transform: uppercase; letter-spacing: .08em; }
.release-code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(40px, 15vw, 84px); font-weight: 700; letter-spacing: .22em; padding-left: .22em;
  color: var(--blue-900); line-height: 1.15; margin: 10px 0; user-select: all;
}
.release .rh { color: var(--gray-700); max-width: 440px; margin: 0 auto 14px; }
.waiting { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); margin-top: 20px; }
.waiting strong { display: block; }
.waiting small { color: var(--gray-600); font-size: 14px; }
.waiting .spinner { border-color: var(--blue-100); border-top-color: var(--blue-700); }

.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.timeline li { text-align: center; font-size: 12px; color: var(--gray-500); position: relative; padding-top: 28px; line-height: 1.3; }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gray-200); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--gray-200); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--gray-900); font-weight: 600; }
.timeline li.done::before, .timeline li.done::after { background: var(--blue-700); }
.timeline li.current::before { box-shadow: 0 0 0 4px var(--blue-100); }
.timeline .tl-time { display: block; font-weight: 400; color: var(--gray-500); font-size: 11px; }

.kv { margin: 20px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; border-top: 1px solid var(--gray-200); padding-top: 16px; }
.kv dt { color: var(--gray-600); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 16px; }
.stat .sl { color: var(--gray-600); font-size: 14px; }
.stat .sv { font-size: 28px; font-weight: 700; color: var(--blue-900); font-family: "Inter", var(--font); letter-spacing: -.02em; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 24px 0 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-200); overflow-x: auto; overflow-y: hidden; margin: 24px 0 16px; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--gray-600); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--gray-900); }
.tabs button[aria-selected="true"] { color: var(--blue-700); border-bottom-color: var(--blue-700); }
.search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search label { font-weight: 600; font-size: 14px; }
.search input { font: inherit; font-family: ui-monospace, Consolas, monospace; letter-spacing: .2em; width: 150px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; }
.search input:focus { outline: 3px solid var(--blue-100); border-color: var(--blue-600); }
.search input::placeholder { letter-spacing: 0; font-family: var(--font); }
.admin-note { font-size: 13px; color: var(--gray-500); }
.a-order { display: grid; gap: 14px; padding: 18px 20px; transition: box-shadow .3s, border-color .3s; }
.a-order.highlight { border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); }
.a-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.a-file { font-weight: 600; overflow-wrap: anywhere; }
.a-cust { color: var(--gray-600); font-size: 14px; overflow-wrap: anywhere; }
.a-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 22px; letter-spacing: .15em; color: var(--blue-900); background: var(--blue-50); padding: 2px 10px; border-radius: 8px; }
.a-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; background: var(--gray-100); color: var(--gray-700); padding: 3px 10px; border-radius: 6px; font-weight: 500; }
.tag.color { background: #fdf2f8; color: #9d174d; }
.a-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.a-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.a-paid { font-size: 13px; color: var(--gray-500); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gray-200); background: #fff; padding: 28px 0; color: var(--gray-600); font-size: 14px; }
.footer-inner { display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand svg { width: 28px; height: 28px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--gray-900); color: #fff; padding: 12px 14px 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 480px; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.toast.error { background: #991b1b; }
.toast button { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; opacity: .8; display: inline-flex; border-radius: 6px; }
.toast button:hover { opacity: 1; }
.toast button svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
  .header-inner { row-gap: 4px; }
  .nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .nav { scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .user-chip .btn { padding: 6px 8px; }
  .header-right { gap: 8px; }
  .user-name { display: none; }
  .btn-signin-label-long { display: none; }
}
@media (min-width: 640px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .options { grid-template-columns: repeat(2, 1fr); }
  .options .full { grid-column: 1 / -1; }
  .order-row { grid-template-columns: 1fr auto; align-items: center; }
  .order-row .or-right { text-align: right; display: grid; gap: 6px; justify-items: end; }
}
@media (min-width: 900px) {
  .hero h1 { font-size: 42px; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-art { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .section { padding-top: 64px; }
  .upload-layout { display: grid; grid-template-columns: 1fr; }
  .a-order { grid-template-columns: 1fr; }
}
