:root {
  --ink: #151b20;
  --muted: #68737b;
  --paper: #f7f5e9;
  --card: rgba(255, 255, 252, .94);
  --line: rgba(21, 27, 32, .13);
  --green: #557c12;
  --green-2: #6d9817;
  --lime: #ffe500;
  --gold: #f2c900;
  --yellow: #f2c900;
  --steel: #5f6b75;
  --yellow-soft: #fff8bf;
  --red: #b7443a;
  --shadow: 0 16px 44px rgba(21, 27, 32, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 88% 2%, rgba(255,229,0,.18), transparent 30%), var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(255, 211, 0, .42); outline-offset: 2px; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(2px); opacity: .34; z-index: -1; pointer-events: none; }
.ambient-one { width: 360px; height: 360px; background: #ffe500; top: -190px; right: -130px; }
.ambient-two { width: 290px; height: 290px; background: #9aa4ab; bottom: 10%; left: -210px; }

.topbar {
  height: 74px;
  padding: 12px max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 27, 32, .95);
  backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(255, 229, 0, .72);
}
.brand { border: 0; background: none; display: flex; align-items: center; gap: 11px; padding: 0; cursor: pointer; text-align: left; }
.brand-mark { width: 52px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: rgba(255,229,0,.08); border: 1px solid rgba(255,229,0,.18); }
.brand-mark img { width: 63px; height: 63px; object-fit: contain; transform: scale(1.12); }
.brand strong { display: block; color: white; letter-spacing: -.02em; }
.brand small { display: block; color: #aeb7bd; font-size: 11px; margin-top: 1px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.connection-pill { height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; background: rgba(255,255,255,.07); color: #c7ced2; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.connection-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(255,229,0,.13); }
.connection-pill b { color: #fff; font-size: 10px; letter-spacing: .03em; text-transform: none; }
.connection-pill.offline i { background: var(--gold); }
.avatar-button { height: 39px; border: 0; border-radius: 12px; padding: 0 14px; background: var(--lime); color: var(--ink); box-shadow: 0 5px 16px rgba(0,0,0,.24); font-size: 13px; font-weight: 850; cursor: pointer; }

.app-shell { width: min(1160px, 100%); margin: 0 auto; padding: 22px 16px 110px; }
.hero { position: relative; min-height: 250px; padding: 26px 2px 25px; overflow: hidden; }
.hero > *:not(.hero-mascot) { position: relative; z-index: 1; }
.hero-mascot { display: none; position: absolute; z-index: 0; right: -18px; top: -75px; width: 370px; height: 370px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(21,27,32,.2)); }
.eyebrow { margin: 0 0 9px; color: var(--green-2); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.hero h1, .page-title h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hero h1 { max-width: 720px; font-size: clamp(39px, 8vw, 72px); }
.hero h1 em { color: #7da913; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,213,0,.65); text-decoration-thickness: .13em; text-underline-offset: .08em; }
.hero-copy { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 640px; margin: 16px 0 0; }
.step-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.step { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); padding: 12px; min-height: 74px; }
.step span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.step strong { font-size: 12px; display: block; }

.workspace { display: grid; gap: 16px; }
.summary-panel { order: -1; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.panel-pad { padding: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.panel-head h2, .panel-head h3 { margin: 0; letter-spacing: -.025em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.count-badge { flex: none; border-radius: 99px; background: #fff5ad; color: #554b00; padding: 7px 10px; font-size: 12px; font-weight: 800; }

.deck-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 12px; scrollbar-width: none; }
.deck-tabs::-webkit-scrollbar { display: none; }
.deck-tab, .add-deck { white-space: nowrap; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 10px 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
.deck-tab.active { border-color: var(--green); background: var(--green); color: white; }
.add-deck { border-style: dashed; color: var(--green); }
.deck-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.mini-button { border: 0; border-radius: 10px; background: #edf0eb; padding: 8px 11px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.mini-button.danger { color: var(--red); background: #f8eae7; }

.import-box { position: relative; background: linear-gradient(145deg, #151b20, #252e35); color: white; padding: 18px; border-radius: 18px; box-shadow: inset 0 3px 0 var(--lime); }
.import-box h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.import-box > p { color: #aebdb7; font-size: 13px; margin: 0 0 15px; line-height: 1.45; }
.import-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 13px; }
.import-switch button { flex: 1; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.06); color: #aebdb7; padding: 9px; font-size: 12px; font-weight: 750; cursor: pointer; }
.import-switch button.active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.import-pane textarea, .import-pane input { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.07); color: white; padding: 13px; }
.import-pane textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.import-pane input::placeholder, .import-pane textarea::placeholder { color: #81908b; }
.import-file-option { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.import-file-option span { color: #b7c1bd; font-size: 11px; font-weight: 750; }
.import-file-option .button { display: grid; place-items: center; margin: 0; cursor: pointer; }
.import-pane .button { margin-top: 10px; }
.format-hint { display: block; color: #81908b; font-size: 11px; margin-top: 8px; }
.token-empty { display: grid; gap: 4px; padding: 22px; border: 1px dashed rgba(255,255,255,.18); border-radius: 13px; text-align: center; }
.token-empty small { color: #8fa09a; }
.token-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.token-search-row .button { margin: 0; min-height: 44px; }
.token-results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 15px 0 9px; }
.token-results-head strong { color: white; font-size: 12px; }
.token-results-head small { color: #98aaa4; font-size: 9px; }
.token-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 580px; overflow-y: auto; padding-right: 3px; }
.token-option { min-width: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; padding: 8px; background: rgba(255,255,255,.06); color: white; text-align: left; cursor: pointer; }
.token-option:hover { border-color: var(--lime); background: rgba(255,229,0,.08); }
.token-option img, .token-art-missing { width: 100%; aspect-ratio: 5/7; object-fit: cover; display: grid; place-items: center; border-radius: 8px; background: #303a41; }
.token-option strong, .token-option small, .token-option > span:not(.token-art-missing) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-option strong { margin-top: 7px; font-size: 11px; }
.token-option small { margin-top: 2px; color: #98aaa4; font-size: 9px; }
.token-option > span:not(.token-art-missing) { margin-top: 7px; color: var(--lime); font-size: 10px; font-weight: 850; }

.benefit-panel { margin-top: 14px; padding: 15px; border: 1px solid #ead760; border-radius: 17px; background: linear-gradient(145deg, #fffce5, #fff4a5); }
.benefit-head, .benefit-head > div { display: flex; align-items: center; gap: 10px; }
.benefit-head { justify-content: space-between; }
.benefit-head strong, .benefit-head small { display: block; }
.benefit-head strong { font-size: 13px; }
.benefit-head small { margin-top: 2px; color: #6f681f; font-size: 10px; }
.benefit-head b { flex: none; color: var(--green); font-size: 12px; }
.gift-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 21px; }
.benefit-progress { height: 7px; margin: 12px 0 8px; overflow: hidden; border-radius: 99px; background: rgba(21,27,32,.13); }
.benefit-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), #e4c600); transition: width .25s ease; }
.benefit-message { margin: 0; color: #655e18; font-size: 11px; line-height: 1.4; }
.benefit-empty { margin-top: 12px; padding: 11px; border: 1px dashed #d3bd31; border-radius: 11px; color: #6f681f; font-size: 10px; text-align: center; }
.reward-grid { display: flex; gap: 9px; overflow-x: auto; margin-top: 13px; padding-bottom: 2px; scrollbar-width: thin; }
.reward-card { min-width: 190px; padding: 11px; border: 1px solid #e2cd4d; border-radius: 13px; background: rgba(255,255,255,.88); }
.reward-card.cards-selected { border-color: #909ba3; background: #f0f3f5; }
.reward-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.reward-title span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.reward-title strong { font-size: 12px; }
.reward-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 9px 0 7px; padding: 3px; border-radius: 9px; background: #e7ebe0; }
.reward-toggle button { height: 29px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 850; cursor: pointer; }
.reward-toggle button.active { background: var(--ink); color: var(--lime); box-shadow: 0 2px 7px rgba(16,26,24,.14); }
.reward-card > small { color: var(--muted); font-size: 9px; }
.shipping-box { margin: 14px 0; padding: 13px; border: 1px solid #cfded8; border-radius: 14px; background: #f2f8f5; }
.quick-shipping { margin: 0 0 16px; padding: 16px 18px; border-color: #e7d447; background: linear-gradient(135deg, #fffef3, #fff7b5); box-shadow: 0 10px 28px rgba(21,27,32,.08); }
.shipping-unavailable { background: linear-gradient(135deg, #fffef8, #f3f1d9); }
.shipping-unavailable-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shipping-unavailable-row p { margin: 0; color: var(--muted); font-size: 11px; }
.shipping-unavailable-row .button { min-height: 36px; flex: none; }
.shipping-head, .shipping-head > div { display: flex; align-items: center; gap: 9px; }
.shipping-head { justify-content: space-between; margin-bottom: 10px; }
.shipping-head > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--green); color: var(--lime); font-size: 18px; }
.shipping-head strong, .shipping-head small { display: block; }
.shipping-head strong { font-size: 13px; }
.shipping-head small { color: var(--muted); font-size: 9px; }
.shipping-head > b { padding: 4px 6px; border-radius: 6px; background: #fff0ce; color: #8d5d12; font-size: 8px; letter-spacing: .08em; }
.postal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.postal-row input { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: white; }
.postal-row .button { min-height: 40px; }
.shipping-box > p { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.shipping-options { display: grid; gap: 6px; margin-top: 10px; }
.shipping-option { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; cursor: pointer; }
.shipping-option.selected { border-color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green-2); background: #e9f5ef; }
.shipping-option strong, .shipping-option small { display: block; }
.shipping-option strong { font-size: 11px; }
.shipping-option small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.shipping-option > b { flex: none; font-size: 12px; }
.shipping-selected { display: block; margin-top: 8px; color: var(--green-2); font-size: 9px; font-weight: 800; }
.shipping-error { display: grid; gap: 7px; margin-top: 10px; padding: 12px; border: 1px solid #e8b5ae; border-radius: 12px; background: #fff3f1; }
.shipping-error strong { color: #8f332d; font-size: 11px; }
.shipping-error p { margin: 0; color: #7b4a45; font-size: 10px; line-height: 1.45; }
.shipping-error .button { width: fit-content; }
.shipping-defer-button { margin-top: 9px; padding: 0; border: 0; background: none; color: var(--green); font-size: 10px; font-weight: 850; text-decoration: underline; cursor: pointer; }
.shipping-line, .shipping-line strong { color: var(--green); }

.button { min-height: 44px; border: 0; border-radius: 12px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: wait; transform: none; }
.button.primary { background: var(--lime); color: var(--ink); box-shadow: 0 7px 18px rgba(217, 241, 111, .18); }
.button.dark { background: var(--ink); color: white; }
.button.secondary { background: #e8ede9; color: var(--green); }
.button.outline { border: 1px solid var(--line); background: white; }
.button.danger { background: #f8eae7; color: var(--red); }
.button.wide { width: 100%; }
.button-arrow { font-size: 18px; }

.list-section { margin-top: 16px; }
.empty-state { padding: 34px 20px; text-align: center; border: 1px dashed rgba(29,49,43,.2); border-radius: 16px; background: rgba(250,250,247,.7); }
.empty-orb { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 20px; background: #e5ece6; color: var(--green); font-size: 25px; }
.empty-state h3 { margin: 0 0 5px; font-size: 16px; }
.empty-state p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.45; }
.card-list { display: grid; gap: 10px; }
.card-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.card-row.foil { position: relative; overflow: hidden; border-color: rgba(122, 101, 189, .36); background: linear-gradient(118deg, rgba(255,255,255,.96) 0%, rgba(220,247,239,.92) 24%, rgba(239,224,255,.88) 48%, rgba(255,244,199,.9) 72%, rgba(223,240,255,.94) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 8px 22px rgba(94,77,143,.10); }
.card-row.foil::before { content: ''; position: absolute; inset: -80% -35%; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.58) 47%, rgba(179,255,236,.32) 52%, transparent 64%); transform: translateX(-38%) rotate(4deg); animation: foil-shimmer 5s ease-in-out infinite; pointer-events: none; }
.card-row.foil > * { position: relative; z-index: 1; }
.card-art { width: 62px; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: linear-gradient(145deg, #20282e, #77838c); position: relative; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.84); font-family: Georgia, serif; font-size: 24px; }
.card-main { min-width: 0; }
.card-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.card-title-line h4 { margin: 1px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.card-meta { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.tag { display: inline-flex; padding: 3px 6px; border-radius: 6px; background: #edf1ed; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.tag.warn { color: #8d5d12; background: #fff0ce; }
.card-controls { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 9px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.quantity button { width: 30px; height: 30px; border: 0; background: #f1f3ef; font-weight: 900; cursor: pointer; }
.quantity strong { min-width: 29px; text-align: center; font-size: 12px; }
.row-actions { display: flex; gap: 5px; }
.icon-button { height: 31px; border: 0; border-radius: 9px; padding: 0 9px; background: #eff2ee; color: var(--green); font-size: 11px; font-weight: 800; cursor: pointer; }
.icon-button.remove { color: var(--red); background: #f9ece9; padding: 0 10px; }
.icon-button.foil-toggle { width: 31px; padding: 0; color: #8a6c18; background: #f5efd6; font-size: 16px; }
.icon-button.foil-toggle.active { color: white; background: linear-gradient(135deg, #8d68b9, #3b978f 55%, #b58b2f); box-shadow: 0 4px 10px rgba(91,74,137,.22); }
.foil-line { color: #71529c; }
.foil-line strong { color: #71529c; }
.foil-callout { margin: 14px 0; border-radius: 14px; padding: 13px; background: linear-gradient(135deg, #f2eafa, #e6f4f1); border: 1px solid #d7c9e8; }
.foil-callout strong { display: block; color: #62458b; font-size: 13px; }
.foil-callout p { margin: 4px 0 0; color: #72667c; font-size: 12px; line-height: 1.4; }
.foil-tag { color: #6d4d98; background: linear-gradient(135deg, #efe4fb, #dff3ed); margin-left: 4px; vertical-align: 1px; }
.reward-line, .reward-line strong { color: var(--green-2); }
.tier-note { margin: 6px 0 0; color: var(--muted); font-size: 10px; text-align: right; }
.minimum-callout { margin: 14px 0; border-radius: 14px; padding: 13px; background: #fff3dc; border: 1px solid #efd79d; }
.minimum-callout strong { display: block; color: #865d10; font-size: 13px; }
.minimum-callout p { margin: 4px 0 0; color: #806b40; font-size: 12px; line-height: 1.4; }

.summary-panel { position: relative; }
.summary-panel .panel-pad { padding: 19px; }
.price-lines { display: grid; gap: 9px; margin: 16px 0; }
.price-line { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.price-line strong { color: var(--ink); }
.price-line.discount { color: var(--green-2); }
.price-total { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 13px; }
.price-total span { color: var(--muted); font-size: 12px; }
.price-total strong { font-family: Georgia, serif; font-size: 30px; letter-spacing: -.03em; }
.token-callout { margin: 14px 0; border-radius: 14px; padding: 13px; background: #eef2dc; border: 1px solid #dbe6a9; }
.token-callout strong { display: block; font-size: 13px; }
.token-callout p { margin: 4px 0 10px; color: #657044; font-size: 12px; }
.notes-area { width: 100%; min-height: 78px; resize: vertical; border: 1px solid var(--line); background: #fbfbf8; border-radius: 12px; padding: 11px; margin: 5px 0 14px; }
.security-note { display: flex; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 11px; }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 20px; }
.page-title h1 { font-size: clamp(34px, 7vw, 55px); }
.page-title p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.order-grid { display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: white; box-shadow: 0 8px 24px rgba(27,48,42,.06); }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-number { font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.order-date { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: #eee; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.awaiting_payment { color: #9a650f; background: #fff1d2; }
.status.paid { color: #176752; background: #dff2e8; }
.status.production { color: #704db0; background: #ede5fa; }
.status.printed { color: #236b90; background: #e1f0f7; }
.status.completed { color: #4d5c57; background: #e9edeb; }
.status.cancelled { color: #9d3d36; background: #f8e6e3; }
.order-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.metric { border-radius: 12px; background: #f3f4f0; padding: 10px; }
.metric span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.metric strong { font-size: 13px; }
.metric.foil-metric { background: linear-gradient(135deg, #f2eafa, #e6f4f1); }
.metric.foil-metric strong { color: #6d4d98; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-actions .button { flex: 1; min-width: 120px; }
.locked-note { color: #704db0; font-size: 11px; margin: 10px 0 0; }
.order-deadline { margin: -5px 0 12px; color: var(--green); font-size: 11px; }
.production-deadline { display: grid; gap: 2px; margin: 12px 0; padding: 12px; border-radius: 13px; background: #fff8c9; border: 1px solid #ead759; }
.production-deadline span, .production-deadline small { color: var(--muted); font-size: 10px; }
.production-deadline strong { font-size: 15px; }
.export-deck { padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.export-deck.copied { border-color: #76a98b; background: #f1f8f4; }
.export-deck-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.export-deck-head h3 { margin: 0; }
.export-deck-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.deck-export { max-height: 210px; overflow: auto; margin: 11px 0; padding: 11px; border-radius: 10px; background: var(--ink); color: #edf4ef; white-space: pre-wrap; font: 10px/1.5 ui-monospace, Consolas, monospace; }
.deck-export-group + .deck-export-group { margin-top: 16px; }
.deck-export-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.deck-export-title strong { font-size: 12px; }
.foil-export-group { padding-top: 13px; border-top: 1px solid #e0c952; }
.foil-export-group .deck-export-title strong { color: #7b6300; }
.foil-export-group .deck-export { background: #312b12; color: #fff5ac; }
.order-card-details { margin-top: 12px; }
.order-card-details summary { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border: 1px solid #bfd0c5; border-radius: 11px; background: #e8f0eb; color: var(--green); font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; }
.order-card-details summary::-webkit-details-marker { display: none; }
.order-card-details[open] summary { margin-bottom: 14px; background: var(--green); color: white; }
.order-card-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; }
.order-card-art { position: relative; min-width: 0; }
.order-card-art img, .order-card-art .deck-preview-missing { display: grid; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; place-items: center; border-radius: 10px; background: #e6eae5; }
.order-card-art strong, .order-card-art small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-art strong { font-size: 11px; }
.order-card-art small { color: var(--muted); font-size: 9px; }
.order-card-art .deck-preview-quantity { top: 7px; left: 7px; }

.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { padding: 15px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 26px; }
.filters { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 11px; scrollbar-width: none; }
.filter-button { white-space: nowrap; border: 1px solid var(--line); background: white; border-radius: 99px; padding: 8px 11px; font-size: 11px; font-weight: 800; cursor: pointer; }
.filter-button.active { background: var(--ink); color: white; }
.calendar-view-switch { display: flex; gap: 5px; }
.calendar-view-switch .active { background: var(--ink); color: white; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; text-transform: capitalize; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekdays span { padding: 4px; color: var(--muted); text-align: center; font-size: 9px; font-weight: 850; }
.calendar-day { min-height: 76px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.calendar-day > span { font-weight: 900; }
.calendar-day strong { font-size: 9px; color: var(--green); }
.calendar-day small { font-size: 8px; color: var(--muted); }
.calendar-day.busy { background: #fff9cf; border-color: #ddc92f; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--green-2); }
.calendar-day.outside { opacity: .42; }
.calendar-grid.week .calendar-day { min-height: 105px; }
.settings-form { display: grid; gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfbf8; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pricing-editor { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f7f8f4; }
.pricing-editor-head strong, .pricing-editor-head small { display: block; }
.pricing-editor-head strong { font-size: 14px; }
.pricing-editor-head small { margin: 4px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.pricing-tier { display: grid; grid-template-columns: 58px 1fr 1fr; gap: 8px; align-items: end; padding: 9px 0; border-top: 1px solid var(--line); }
.pricing-tier > span { align-self: center; color: var(--green); font-size: 10px; font-weight: 900; }
.pricing-tier label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.pricing-tier input { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: white; }
.pricing-tier b { grid-column: 2 / -1; color: var(--muted); font-size: 9px; font-weight: 700; }
.production-settings-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.production-tier { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; padding: 9px 0; border-top: 1px solid var(--line); }
.production-tier label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.production-tier input { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: white; }
.shipping-settings { padding: 15px; border: 1px solid #cfded8; border-radius: 16px; background: #f1f7f4; }
.shipping-settings-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.shipping-settings-title strong, .shipping-settings-title small { display: block; }
.shipping-settings-title strong { font-size: 15px; }
.shipping-settings-title small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.label-modal { max-width: 820px; }
.label-summary { display: grid; gap: 10px; margin: 18px 0; }
.label-summary > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf9; }
.label-summary span { font-weight: 800; }
.label-summary small { color: var(--muted); line-height: 1.45; }
.label-form { margin-top: 16px; }
.form-alert { padding: 12px 14px; border-radius: 12px; background: #fff2d6; color: #714c00; font-weight: 700; }
.switch-field { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 850; }
.switch-field input { width: 17px; height: 17px; accent-color: var(--green); }
.insurance-field { align-self: center; padding: 10px 0; }
.admin-hint { margin: 0; padding: 10px; border-radius: 10px; background: #e2eee8; color: #557064; font-size: 10px; line-height: 1.4; }
.loggi-note { display: grid; gap: 3px; margin: 2px 0 10px; padding: 11px; border: 1px solid #d7dcee; border-radius: 11px; background: #f2f4fb; }
.loggi-note strong { color: #35446d; font-size: 11px; }
.loggi-note span { color: #68718b; font-size: 10px; line-height: 1.4; }
.loggi-note a { width: fit-content; margin-top: 3px; color: #425d9a; font-size: 10px; font-weight: 850; text-decoration: none; }
.empty-state.compact { padding: 20px; margin-top: 15px; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(16,26,24,.94); box-shadow: 0 15px 35px rgba(16,26,24,.24); backdrop-filter: blur(16px); }
.bottom-nav button { width: 88px; height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 13px; background: none; color: #9aaba5; font-size: 10px; font-weight: 750; cursor: pointer; }
.bottom-nav button span { font-size: 17px; line-height: 1; }
.bottom-nav button.active { background: rgba(255,255,255,.11); color: var(--lime); }

.how-hero { display: grid; gap: 24px; align-items: center; margin: 8px 0 18px; padding: clamp(22px,5vw,44px); border-radius: 28px; overflow: hidden; background: linear-gradient(135deg,#fff 0%,#fff9cf 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.how-hero h1 { margin: 0; font: 500 clamp(38px,8vw,68px)/.98 Georgia,"Times New Roman",serif; letter-spacing: -.05em; }
.how-hero p:not(.eyebrow) { max-width: 580px; margin: 14px 0 20px; color: var(--muted); line-height: 1.55; }
.how-hero-illustration { position: relative; min-height: 230px; isolation: isolate; }
.fantasy-card { position: absolute; left: 50%; top: 50%; width: 120px; aspect-ratio: 5/7; overflow: hidden; border: 5px solid #fffdf0; border-radius: 16px; box-shadow: 0 20px 38px rgba(21,27,32,.25); }
.land-card { transform: translate(-102%,-50%) rotate(-13deg); background: radial-gradient(circle at 30% 25%,#d9ef73 0 12%,transparent 13%),linear-gradient(155deg,#344d29,#89ad29 52%,#142723); }
.land-card .mana-orb { position: absolute; left: 15px; top: 15px; }
.land-card i { position: absolute; bottom: -12px; width: 38px; height: 120px; border-radius: 50%; background: #d8e787; transform-origin: bottom; }
.land-card i:nth-of-type(1) { left: 8px; transform: rotate(-38deg); }.land-card i:nth-of-type(2) { left: 39px; transform: rotate(-5deg); }.land-card i:nth-of-type(3) { right: 3px; transform: rotate(31deg); }
.spell-card { transform: translate(-53%,-56%) rotate(2deg); display: grid; place-items: center; align-content: center; gap: 8px; background: radial-gradient(circle at 50% 42%,#fff5a8 0 8%,#f3cb00 9% 22%,transparent 23%),linear-gradient(145deg,#715a00,#f7dc22); color: #332d0a; }
.spell-card b { margin-top: 55px; font: 900 16px/1 Georgia,serif; letter-spacing: .12em; }.spell-card small { font-size: 7px; font-weight: 900; letter-spacing: .22em; }
.mana-orb { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: #192724; color: #f5dc22; font-size: 17px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.coolmeleon-card { transform: translate(-1%,-47%) rotate(12deg); display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 50% 40%,#344740,#172320 65%); }
.coolmeleon-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(241,214,25,.42); border-radius: 10px; }
.coolmeleon-card img { position: relative; z-index: 1; width: 94%; filter: drop-shadow(0 7px 7px rgba(0,0,0,.35)); }.coolmeleon-card span { position: relative; z-index: 1; color: #f4dc1e; font: 800 8px/1 sans-serif; letter-spacing: .18em; }
.hero-mana { position: absolute; z-index: 3; color: #f1d51b; filter: drop-shadow(0 4px 5px rgba(0,0,0,.22)); }.hero-mana-one { right: 4%; top: 12%; font-size: 25px; }.hero-mana-two { left: 10%; bottom: 10%; color: #8eb82d; font-size: 15px; }
.how-steps { display: grid; gap: 12px; margin: 18px 0; }
.how-step { display: grid; grid-template-columns: 76px 1fr; gap: 15px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.88); }
.how-step h2 { margin: 2px 0 5px; font-size: 18px; }
.how-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.how-step b { color: var(--green-2); font-size: 11px; }
.how-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg,#fff07a,#ebca19); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65),0 8px 18px rgba(82,72,11,.12); }
.how-icon svg { width: 47px; height: 47px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.how-icon.rune-list circle { fill: #88ac27; stroke: none; }.how-icon.rune-list path:first-child { fill: rgba(255,255,255,.55); }
.how-icon.art-grimoire rect:first-child { fill: #8caf2d; }.how-icon.art-grimoire rect:nth-child(2) { fill: #1a2925; stroke: #fffce1; }.how-icon.art-grimoire circle { fill: #ebcb18; stroke: none; }
.how-icon.token-summon circle { fill: #1a2925; stroke: #fffce1; }.how-icon.token-summon path:first-of-type { stroke: #dff05f; }.how-icon.token-summon path:last-of-type { fill: #fff4a0; stroke: #7d6500; }
.how-icon.quest-delivery path:first-child { fill: rgba(255,255,255,.58); }.how-icon.quest-delivery path:last-child { stroke: #6f920d; stroke-width: 3.4; }
.how-grid { display: grid; gap: 14px; }
.how-panel { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(20,32,25,.06); }
.how-panel > p { color: var(--muted); line-height: 1.55; }
.how-panel > small { display: block; margin-top: 14px; color: var(--muted); line-height: 1.45; }
.how-panel-title { display: flex; align-items: center; gap: 12px; }
.how-panel-title > span { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--lime); font-weight: 900; }
.how-panel-title .eyebrow { margin-bottom: 2px; font-size: 9px; }
.how-panel-title h2 { margin: 0; font-size: 22px; }
.how-price-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.how-price-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--line); font-size: 13px; }
.how-price-row:first-child { border-top: 0; }
.how-price-row strong { color: var(--green-2); }
.gift-choice { display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; align-items: center; margin-top: 16px; }
.gift-choice div { display: grid; place-items: center; min-height: 92px; padding: 10px; border-radius: 16px; background: #fff7b4; text-align: center; }
.gift-choice b { font-size: 25px; }
.gift-choice span { font-size: 11px; font-weight: 800; }
.gift-choice em { color: var(--muted); font-size: 11px; }
.foil-nine { display: grid; grid-template-columns: repeat(9,1fr); gap: 4px; margin: 18px 0 8px; }
.foil-nine i { aspect-ratio: 5/7; display: grid; place-items: center; border-radius: 5px; background: linear-gradient(145deg,#fff4aa,#b8e2d0,#eac8ef); color: #37443f; font-size: 9px; font-style: normal; font-weight: 900; }
.how-checklist { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.how-checklist li { position: relative; padding-left: 27px; color: var(--muted); }
.how-checklist li::before { content: '✓'; position: absolute; left: 0; top: -2px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: #eff7d9; color: #608400; font-weight: 900; }
.how-cta { display: grid; gap: 18px; align-items: center; margin-top: 16px; padding: 24px; border-radius: 22px; background: var(--ink); color: white; }
.how-cta h2 { margin: 0; font-size: 29px; }
.how-cta p:not(.eyebrow) { margin: 6px 0 0; color: #b8c3bf; }

.modal { width: min(520px, calc(100% - 24px)); max-height: 88vh; border: 0; border-radius: 24px; padding: 25px; color: var(--ink); background: #fdfdf9; box-shadow: 0 28px 80px rgba(10,20,17,.3); }
.modal::backdrop { background: rgba(12,20,18,.62); backdrop-filter: blur(5px); }
.modal-close { position: absolute; right: 14px; top: 13px; width: 34px; height: 34px; border: 0; border-radius: 11px; background: #edf0eb; font-size: 22px; cursor: pointer; z-index: 2; }
.modal-icon { width: 58px; height: 50px; display: grid; place-items: center; overflow: hidden; border-radius: 15px; background: var(--ink); }
.modal-icon img { width: 70px; height: 70px; object-fit: contain; transform: scale(1.1); }
.modal h2 { margin: 15px 0 5px; letter-spacing: -.03em; }
.modal > p, .modal #auth-copy { color: var(--muted); font-size: 13px; margin: 0 0 19px; }
.text-button { display: block; margin: 13px auto; border: 0; background: none; color: var(--green-2); font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-secondary-action { margin-top: -6px; color: var(--muted); }
.demo-box { padding: 12px; border-radius: 13px; background: #f0f2ed; display: grid; gap: 5px; }
.demo-box strong { font-size: 11px; color: var(--muted); }
.demo-box button { text-align: left; border: 0; background: none; color: var(--green); padding: 2px 0; font-size: 11px; cursor: pointer; }
.demo-box small { color: var(--muted); font-size: 10px; }
.sheet-modal { overflow-y: auto; }
.sheet-handle { display: none; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.art-option { border: 2px solid transparent; border-radius: 12px; padding: 5px; background: #edf0eb; cursor: pointer; text-align: left; }
.art-option.selected { border-color: var(--green-2); background: #dff0e9; }
.art-option img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 7px; display: block; }
.art-option strong { display: block; margin: 6px 2px 0; font-size: 10px; }
.art-option small { display: block; margin: 2px; color: var(--muted); font-size: 9px; }
.detail-deck { margin-top: 17px; }
.detail-deck h3 { margin: 0 0 8px; }
.detail-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; gap: 12px; }
.timeline { margin-top: 18px; padding-left: 15px; border-left: 2px solid #dfe5df; }
.timeline-entry { position: relative; padding: 0 0 15px 12px; }
.timeline-entry::before { content: ''; position: absolute; width: 9px; height: 9px; left: -20px; top: 4px; border-radius: 50%; background: var(--green-2); border: 3px solid #fdfdf9; }
.timeline-entry strong { display: block; font-size: 11px; }
.timeline-entry small { color: var(--muted); font-size: 10px; }
.toast-region { position: fixed; right: 14px; bottom: 86px; z-index: 70; display: grid; gap: 8px; width: min(360px, calc(100% - 28px)); }
.dialog-toast-region { position: fixed; z-index: 1000; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(430px, calc(100% - 28px)); pointer-events: none; }
.dialog-toast-region .toast { pointer-events: auto; font-size: 14px; font-weight: 750; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 16px 42px rgba(0,0,0,.38); }
.toast { padding: 13px 15px; border-radius: 13px; background: var(--ink); color: white; box-shadow: 0 12px 30px rgba(16,26,24,.25); font-size: 12px; animation: toast-in .25s ease; }
.toast.error { background: #8f332d; }
.toast.order-requirements { white-space: pre-line; line-height: 1.55; }
.checkout-guide { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #e7d447; border-radius: 14px; background: linear-gradient(135deg, #fffef3, #fff7b5); box-shadow: 0 8px 24px rgba(21,27,32,.08); }
.checkout-guide strong { display: block; font-size: 13px; }
.checkout-guide p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.postal-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.postal-lookup-row .button { min-height: 44px; padding: 0 14px; white-space: nowrap; }
@media (max-width: 430px) { .postal-lookup-row { grid-template-columns: 1fr; } .postal-lookup-row .button { width: 100%; } }
.loading { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes foil-shimmer { 0%, 15% { transform: translateX(-45%) rotate(4deg); } 55%, 100% { transform: translateX(45%) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .card-row.foil::before { animation: none; } }

@media (min-width: 820px) {
  .app-shell { padding: 34px 26px 100px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .summary-panel { order: 0; position: sticky; top: 96px; }
  .panel-pad { padding: 22px; }
  .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-form { grid-template-columns: 1fr 1fr; }
  .settings-form .full { grid-column: 1 / -1; }
  .import-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .token-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-shipping .shipping-options { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .hero-mascot { display: block; }
  .hero h1, .hero-copy { max-width: 690px; }
  .how-hero { grid-template-columns: 1.55fr .75fr; }
  .how-steps { grid-template-columns: repeat(2,1fr); }
  .how-grid { grid-template-columns: repeat(2,1fr); }
  .how-cta { grid-template-columns: 1fr auto; }
  .step-strip { max-width: 720px; }
  .pricing-tier { grid-template-columns: 70px 1fr 1fr 110px; }
  .pricing-tier b { grid-column: auto; align-self: center; text-align: right; }
}

@media (max-width: 600px) {
  .calendar-day { min-height: 58px; padding: 5px; }
  .calendar-day strong { font-size: 8px; }
  .calendar-day small { font-size: 7px; }
  .export-deck-head { display: grid; }
  .production-tier { grid-template-columns: 1fr 1fr; }
  .production-tier .mini-button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .order-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-pill [data-connection-status] { display: none; }
  .connection-pill { padding: 0 9px; justify-content: center; }
  .bottom-nav { width: calc(100% - 16px); justify-content: center; }
  .bottom-nav button { width: auto; flex: 1; min-width: 0; padding: 0 3px; font-size: 9px; }
  .how-hero-illustration { min-height: 175px; }
  .how-card { width: 92px; }
  .how-step { grid-template-columns: 60px 1fr; padding: 14px; }
  .how-icon { width: 56px; height: 56px; border-radius: 15px; }
  .hero { padding-top: 10px; }
  .step { padding: 9px; min-height: 70px; }
  .step strong { font-size: 10px; }
  .card-row { grid-template-columns: 56px minmax(0,1fr); }
  .card-art { width: 56px; }
  .icon-button { padding: 0 7px; }
  .modal.sheet-modal { width: 100%; max-width: none; max-height: 91vh; margin: auto 0 0; border-radius: 25px 25px 0 0; padding: 25px 18px calc(25px + env(safe-area-inset-bottom)); }
  .sheet-handle { display: block; width: 42px; height: 4px; margin: -13px auto 15px; border-radius: 99px; background: #c9ceca; }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}

.account-title { margin-bottom: 18px; }
.account-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 5px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs button { flex: 1 0 auto; min-height: 46px; padding: 0 18px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.account-tabs button.active { background: #f2c900; color: #fff; text-shadow: 0 1px 2px rgba(72,58,0,.34); box-shadow: 0 8px 18px rgba(222,183,0,.28); }
.account-panel { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(20,32,25,.07); }
.account-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.account-panel-head h2 { margin: 0 0 5px; font-size: clamp(20px, 3vw, 28px); }
.account-panel-head p, .security-note p { margin: 0; color: var(--muted); }
.account-status { flex: 0 0 auto; padding: 7px 11px; border-radius: 99px; background: #e8f5dc; color: #3f7016; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.account-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-form.narrow { max-width: 560px; }
.account-form .full, .account-submit { grid-column: 1 / -1; }
.account-submit { justify-self: start; min-width: 210px; }
.account-address-layout { display: grid; gap: 18px; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.address-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fafbf8; }
.address-card.default { border-color: #a1bd45; box-shadow: inset 0 0 0 1px #a1bd45; }
.checkout-delivery-layout { display: grid; gap: 18px; }
.checkout-address-card { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.checkout-address-card:hover, .checkout-address-card.selected { border-color: #6d9b1f; box-shadow: inset 0 0 0 1px #6d9b1f, 0 10px 24px rgba(72, 105, 23, .10); }
.checkout-address-card > small { color: #547d18; font-weight: 900; }
.checkout-final-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.checkout-page { display: grid; gap: 18px; }
.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.checkout-steps span { padding: 12px; border-radius: 12px; color: var(--muted); font-size: 13px; font-weight: 800; text-align: center; }
.checkout-steps span.active { background: #edf5df; color: #547d18; }
.checkout-error { padding: 14px 16px; border: 1px solid #d76464; border-radius: 14px; background: #fff0f0; color: #8d2424; }
.checkout-error p { margin: 4px 0 0; }
.required-mark { margin-left: 6px; color: #a43a3a; font-size: 9px; font-weight: 900; }
.address-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.address-card-head strong { font-size: 17px; }
.address-card-head span { padding: 5px 9px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.address-card p { min-height: 94px; color: #59635e; line-height: 1.65; }
.address-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.check-field { display: flex; align-items: center; gap: 10px; min-height: 42px; color: var(--ink); font-weight: 700; }
.check-field input { width: 20px; height: 20px; accent-color: #6d9b1f; }
.security-note { max-width: 680px; margin-top: 24px; padding: 16px; border-radius: 15px; background: #f5f6ef; }
.security-note strong { display: block; margin-bottom: 4px; }
.empty-state.compact { padding: 24px 10px; }
.token-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.token-review-head h2 { margin: 0; }
.token-review-head .button { flex: none; }
.suggested-token-grid { display: grid; grid-template-columns: repeat(auto-fill, 165px); justify-content: start; gap: 13px; margin: 20px 0; }
.suggested-token-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f8f9f5; }
.suggested-token-card > img, .suggested-token-missing { width: 100%; aspect-ratio: 5 / 7; display: grid; place-items: center; object-fit: cover; background: #e8ece7; }
.suggested-token-info { padding: 11px; }
.suggested-token-info strong, .suggested-token-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggested-token-info strong { font-size: 13px; }
.suggested-token-info small { margin: 3px 0 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.suggested-token-info .button { min-height: 38px; padding: 8px; font-size: 10px; }
.token-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.preview-deck-button { margin-bottom: 9px; }
.deck-preview-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.deck-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, 190px); justify-content: start; gap: 16px; }
.deck-preview-card { position: relative; min-width: 0; }
.deck-preview-card img, .deck-preview-missing { width: 190px; aspect-ratio: 5 / 7; display: grid; place-items: center; border-radius: 13px; object-fit: cover; background: #e8ece7; box-shadow: 0 10px 24px rgba(21,27,32,.13); }
.deck-preview-art-button { position: relative; display: block; width: 190px; padding: 0; border: 0; border-radius: 13px; background: transparent; cursor: pointer; overflow: hidden; }
.deck-preview-art-button img { display: block; }
.deck-preview-art-hint { position: absolute; inset: auto 8px 8px; padding: 7px 9px; border-radius: 9px; background: rgba(21,27,32,.88); color: white; font-size: 10px; font-weight: 800; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.deck-preview-art-button:hover .deck-preview-art-hint, .deck-preview-art-button:focus-visible .deck-preview-art-hint { opacity: 1; transform: translateY(0); }
.deck-preview-card strong, .deck-preview-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-preview-card strong { margin-top: 8px; font-size: 12px; }
.deck-preview-card small { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.deck-preview-quantity { position: absolute; top: 8px; right: 8px; padding: 5px 8px; border-radius: 99px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 900; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.deck-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.deck-preview-actions .mini-button { min-width: 0; padding: 8px 6px; }

@media (max-width: 700px) {
  .account-tabs { margin-left: -4px; margin-right: -4px; }
  .account-tabs button { padding: 0 14px; }
  .account-form { grid-template-columns: 1fr; }
  .account-panel { border-radius: 19px; padding: 18px; }
  .account-panel-head { display: grid; }
  .account-submit { width: 100%; }
  .address-card p { min-height: 0; }
  .token-review-head { display: grid; }
  .token-review-head .button { width: 100%; }
  .suggested-token-grid { grid-template-columns: repeat(2, minmax(0, 165px)); }
  .token-review-actions .button { width: 100%; }
  .deck-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-preview-card img, .deck-preview-missing { width: 100%; }
  .deck-preview-art-button { width: 100%; }
  .deck-preview-art-hint { opacity: 1; transform: none; }
}
