/* DakshPrintLab design system: tokens, reset and shared components (storefront + admin). */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --navy: #0B1437;
  --orange: #FF6B1A;
  --orange-deep: #E8540A;
  --amber: #FF9F0A;
  --blue: #1173D4;
  --sky: #5AA9F0;
  --yellow: #FBBF24;

  --bg: #FFFCF8;
  --surface: #FFFFFF;
  --surface-2: #F7F3EC;
  --surface-3: #EFE9DF;
  --ink: #0B1437;
  --ink-2: #47506B;
  --ink-3: #6F7891;
  --line: #E9E3D8;
  --line-strong: #D5CDBF;
  --brand: #FF6B1A;
  --brand-ink: #0B1437;
  --brand-text: #D94E06;
  --brand-soft: #FFF0E5;
  --link: #0F62B8;
  --blue-soft: #E8F2FD;
  --marker: #FDE68A;
  --ok: #16794A;
  --ok-soft: #E3F5EB;
  --warn: #9A5B00;
  --warn-soft: #FFF3D6;
  --bad: #C4281C;
  --bad-soft: #FDE8E6;
  --info-soft: #E8F2FD;
  --shadow-1: 0 1px 2px rgb(11 20 55 / .05), 0 2px 8px rgb(11 20 55 / .05);
  --shadow-2: 0 2px 4px rgb(11 20 55 / .05), 0 12px 32px rgb(11 20 55 / .1);
  --shadow-3: 0 24px 64px rgb(11 20 55 / .18);
  --tile-base: #fff;
  --tile-mix: 15%;
  --logo-ink: #0B1437;
  --scene-frame: #0B1437;
  --scene-rail: #3A4468;
  --scene-bed: #2A3252;
  --band: #0B1E4F;

  /* 3D preview colours read by the estimator's viewer */
  --model: #FF6B1A;
  --overhang: #E5484D;
  --bed: #E9E3D8;
  --bed-grid: #D5CDBF;
  --bed-edge: #A79F90;
  --accent: #1173D4;

  --font: 'Nunito Variable', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fredoka Variable', 'Fredoka', 'Nunito Variable', system-ui, sans-serif;
  --hand: 'Caveat Variable', 'Caveat', 'Segoe Print', cursive;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
  --tabbar-h: 0px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1022; --surface: #121A33; --surface-2: #19223F; --surface-3: #222C4D;
    --ink: #F3F5FB; --ink-2: #B9C0D6; --ink-3: #8A93AF; --line: #263154; --line-strong: #36426B;
    --brand: #FF7A2E; --brand-text: #FF8E4D; --brand-soft: #33200F; --link: #7DBBF5; --blue-soft: #14274A; --marker: #6B4E00;
    --ok: #5FD49A; --ok-soft: #10301F; --warn: #F5C451; --warn-soft: #33270A; --bad: #FF8A80; --bad-soft: #3A1614; --info-soft: #14274A;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 2px 8px rgb(0 0 0 / .25);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .4);
    --shadow-3: 0 24px 64px rgb(0 0 0 / .6);
    --tile-base: #C9CFDF; --tile-mix: 26%; --logo-ink: #F3F5FB;
    --scene-frame: #2B3560; --scene-rail: #55618F; --scene-bed: #47527D; --band: #101C45;
    --bed: #19223F; --bed-grid: #263154; --bed-edge: #4A5680;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1022; --surface: #121A33; --surface-2: #19223F; --surface-3: #222C4D;
  --ink: #F3F5FB; --ink-2: #B9C0D6; --ink-3: #8A93AF; --line: #263154; --line-strong: #36426B;
  --brand: #FF7A2E; --brand-text: #FF8E4D; --brand-soft: #33200F; --link: #7DBBF5; --blue-soft: #14274A; --marker: #6B4E00;
  --ok: #5FD49A; --ok-soft: #10301F; --warn: #F5C451; --warn-soft: #33270A; --bad: #FF8A80; --bad-soft: #3A1614; --info-soft: #14274A;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 2px 8px rgb(0 0 0 / .25);
  --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .4);
  --shadow-3: 0 24px 64px rgb(0 0 0 / .6);
  --tile-base: #C9CFDF; --tile-mix: 26%; --logo-ink: #F3F5FB;
  --scene-frame: #2B3560; --scene-rail: #55618F; --scene-bed: #47527D; --band: #101C45;
  --bed: #19223F; --bed-grid: #263154; --bed-edge: #4A5680;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------------ type */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); }
.h3 { font-size: 1.2rem; line-height: 1.25; }
.h1 em, .h2 em, .hero__title em { font-style: normal; }
.c-orange { color: var(--brand-text); }
.c-blue { color: var(--link); }
.c-ok { color: var(--ok); font-weight: 700; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.13rem); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.hand { font-family: var(--hand); font-weight: 700; }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }
.eyebrow--light { color: var(--yellow); }
small { font-size: .82em; }
.prose { max-width: 760px; display: grid; gap: 16px; padding-bottom: 64px; }
.prose h2 { font: 600 1.35rem/1.2 var(--display); margin-top: 18px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.prose a, .linkish { color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 .98rem var(--display); color: var(--link); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s var(--ease); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(36px, 6vw, 76px); }
.section--tint { background: var(--surface-2); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.section__head--center { justify-content: center; text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--center { justify-content: center; }
.row--tight { gap: 8px; font-size: .9rem; }
.stack { display: grid; gap: 12px; }
.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1.2fr 1.4fr; } }
.pagehead { padding-block: clamp(20px, 4vw, 44px) clamp(18px, 3vw, 30px); display: grid; gap: 10px; }
.pagehead--tight { padding-bottom: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--ink-3); font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ------------------------------------------------------------------ icons & artwork */
.icon { flex: none; }
.logo-mark .lm-ink { fill: var(--logo-ink); }
.logo-mark .lm-ink-line { stroke: var(--logo-ink); }
.logo-mark .lm-ink-stroke { stroke: var(--logo-ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-word { display: grid; line-height: 1; }
.logo-name { font: 700 1.42rem/1 var(--display); letter-spacing: -.01em; color: var(--logo-ink); white-space: nowrap; }
.logo-name b { font-weight: 700; color: var(--orange); }
.logo-tag { font: 600 .56rem/1 var(--display); letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); margin-top: 5px; white-space: nowrap; }

.draw .a { fill: var(--art); }
.draw .al { fill: none; stroke: var(--art); stroke-linecap: round; stroke-linejoin: round; }
.draw .h { fill: #fff; opacity: .36; }
.draw .h2 { fill: #fff; opacity: .18; }
.draw .s { fill: #0B1437; opacity: .2; }
.draw .s2 { fill: #0B1437; opacity: .1; }
.draw .sl { fill: none; stroke: #0B1437; stroke-opacity: .22; stroke-linecap: round; }
.draw .k { fill: #0B1437; }
.draw .kl { fill: none; stroke: #0B1437; stroke-linecap: round; stroke-linejoin: round; }
.draw .w { fill: #fff; }
.draw .wl { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.draw .g { fill: #0B1437; opacity: .1; }

.art {
  --art: #FF6B1A;
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border-radius: var(--r);
  background: radial-gradient(120% 90% at 30% 15%, color-mix(in oklab, var(--art) calc(var(--tile-mix) - 7%), var(--tile-base)), color-mix(in oklab, var(--art) calc(var(--tile-mix) + 7%), var(--tile-base)));
}
.art > svg { width: 82%; height: 82%; }
.art > img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font: 600 1rem/1.1 var(--display); letter-spacing: .005em;
  border: 1.5px solid transparent; white-space: nowrap; text-align: center; user-select: none;
  transition: transform .15s var(--ease), box-shadow .2s, background-color .2s, border-color .2s, filter .2s;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); box-shadow: 0 6px 18px rgb(255 107 26 / .32); }
.btn--primary:hover { box-shadow: 0 10px 26px rgb(255 107 26 / .42); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--soft { --btn-bg: var(--surface-2); border-color: var(--line); }
.btn--outline { --btn-bg: transparent; border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { --btn-bg: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--glass { --btn-bg: rgb(255 255 255 / .12); --btn-fg: #fff; border-color: rgb(255 255 255 / .28); }
.btn--danger { --btn-bg: var(--bad-soft); --btn-fg: var(--bad); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.07rem; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn.is-added { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); } }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
  transition: background-color .2s, transform .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--soft { background: var(--surface-2); border: 1px solid var(--line); }
.icon-btn--sm { width: 36px; height: 36px; color: var(--ink-3); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ------------------------------------------------------------------ chips, badges, notices */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 15px; border-radius: 999px; background: var(--surface);
  border: 1.5px solid var(--line); font: 600 .92rem/1 var(--display); color: var(--ink-2); white-space: nowrap; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip--alt { border-style: dashed; }
.chip--glass { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); min-height: 32px; font-size: .82rem; padding: 4px 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: 600 .78rem/1.2 var(--display); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--info { background: var(--info-soft); color: var(--link); }
.badge--brand { background: var(--brand-soft); color: var(--brand-text); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--info-soft); font-size: .94rem; }
.notice > .icon { margin-top: 2px; color: var(--link); }
.notice p { margin-top: 3px; color: var(--ink-2); }
.notice--custom { background: var(--brand-soft); }
.notice--custom > .icon { color: var(--brand-text); }
.notice--bad { background: var(--bad-soft); }
.notice--bad > .icon { color: var(--bad); }
.notice--ok { background: var(--ok-soft); }
.notice--ok > .icon { color: var(--ok); }
.form-error { color: var(--bad); font-weight: 700; font-size: .93rem; background: var(--bad-soft); padding: 10px 14px; border-radius: var(--r-sm); }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.field:first-child { margin-top: 0; }
.grid2 > .field, .grid3 > .field { margin-top: 0; }
.field__label, .opt__label { font: 600 .92rem/1.3 var(--display); color: var(--ink); }
.field__label small, .opt__label small { font-family: var(--font); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 1rem; font-weight: 600; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); font-weight: 500; opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.input.is-invalid, .select.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 14%, transparent); }
.input--lg { min-height: 56px; font: 600 1.25rem var(--display); }
.select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A8299' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select--sm { min-height: 40px; padding-block: 6px; font-size: .92rem; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix i { display: grid; place-items: center; padding-inline: 12px; font-style: normal; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1.5px solid var(--line-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-prefix .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-width: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }

.opt { display: grid; gap: 9px; }
.opt__value { font: 600 .85rem var(--font); color: var(--ink-3); margin-left: 6px; }
.opt__hint { font-size: .85rem; color: var(--ink-3); }
.delta { font: 700 .8rem var(--font); color: var(--brand-text); font-style: normal; white-space: nowrap; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch > span:not(.sr-only) { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgb(11 20 55 / .18); transition: transform .15s var(--ease), box-shadow .15s; }
.swatch:hover > span:not(.sr-only) { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1.5px rgb(11 20 55 / .18), 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 6px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill > span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 15px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 600 .93rem/1.2 var(--display); transition: all .15s var(--ease); }
.pill:hover > span { border-color: var(--ink-3); }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill input:checked + span .delta { color: var(--yellow); }
.pill input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.pills--fill { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.pills--fill .pill > span { width: 100%; justify-content: center; text-align: center; }
.pill--tall > span { flex-direction: column; gap: 2px; padding-block: 10px; }
.pill--tall small { font: 600 .74rem var(--font); opacity: .75; }

.cards { display: grid; gap: 9px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.cardpick { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: all .15s var(--ease); }
.cardpick input { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; accent-color: var(--orange); margin: 0; }
.cardpick > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cardpick b { font: 600 .98rem var(--display); display: flex; align-items: center; gap: 6px; }
.cardpick small { color: var(--ink-3); line-height: 1.35; }
.cardpick:hover { border-color: var(--ink-3); }
.cardpick:has(input:checked) { border-color: var(--orange); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--orange); }
.checkrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 700; }
.checkrow span { flex: 1; }
.checkrow:has(input:checked) { border-color: var(--orange); background: var(--brand-soft); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); height: 46px; flex: none; }
.stepper button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--ink-2); border-radius: 999px; }
.stepper button:hover { color: var(--ink); background: var(--surface-2); }
.stepper input { width: 38px; text-align: center; border: 0; background: none; font: 600 1.02rem var(--display); padding: 0; }
.stepper input:focus { outline: none; }

.filepick { display: block; cursor: pointer; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); padding: 14px; background: var(--surface); transition: all .15s; }
.filepick:hover { border-color: var(--blue); background: var(--blue-soft); }
.filepick:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.filepick__idle { display: flex; align-items: center; gap: 12px; }
.filepick__idle > span { display: grid; min-width: 0; }
.filepick__idle b { font: 600 .96rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick__idle small { color: var(--ink-3); }
.filepick.is-done { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.filepick.is-done .icon { color: var(--ok); }
.filelist { display: grid; gap: 6px; margin-top: 8px; }
.filelist li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: .92rem; font-weight: 700; }
.filelist li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist li.is-bad { background: var(--bad-soft); color: var(--bad); padding-block: 12px; }

/* ------------------------------------------------------------------ surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 26px); box-shadow: var(--shadow-1); display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel__title { font: 600 1.15rem/1.2 var(--display); display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 4px; }
.panel__title + * { clear: both; }
.panel__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .9rem; flex: none; }
.panel__hint { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--ink-3); }
.panel .field { margin-top: 0; }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(32px, 8vw, 72px) 16px; }
.empty__art { width: min(190px, 50vw); border-radius: 50%; }
.ticks { display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink-2); }
.ticks .icon { margin-top: 3px; color: #fff; background: #1E9E63; border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.ticks--light li { color: #E6ECFF; }
.price { font: 600 1.08rem/1 var(--display); color: var(--ink); white-space: nowrap; }
.price small { font: 600 .74rem var(--font); color: var(--ink-3); }
.price s, .product__price s { font: 600 .85rem var(--font); color: var(--ink-3); }
.price--xl { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.3rem); }

.totals { display: grid; gap: 9px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-weight: 600; }
.totals dd { font-weight: 700; color: var(--ink); white-space: nowrap; }
.totals__grand { border-top: 1.5px dashed var(--line-strong); padding-top: 12px; margin-top: 3px; align-items: baseline; }
.totals .totals__grand dt { font: 600 1.05rem var(--display); color: var(--ink); }
.totals .totals__grand dd { font: 600 1.55rem var(--display); }

/* ------------------------------------------------------------------ toasts & sheets */
.toasts { position: fixed; z-index: 90; left: 50%; translate: -50% 0; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-3); font-weight: 700; font-size: .95rem; animation: toast-in .28s var(--ease); cursor: pointer; }
.toast.is-leaving { opacity: 0; transform: translateY(8px) scale(.97); transition: all .2s; }
.toast__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.toast--bad .toast__icon { background: var(--bad); }
.toast--info .toast__icon { background: var(--blue); }
.toast__msg { flex: 1; min-width: 0; }
.toast__action { font-family: var(--display); color: var(--amber); padding: 6px 8px; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }

.sheet { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: rgb(6 10 28 / .5); backdrop-filter: blur(3px); animation: fade-in .2s; }
.sheet__panel { position: absolute; background: var(--bg); box-shadow: var(--shadow-3); display: flex; flex-direction: column; overflow: hidden; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; }
.sheet__title { font: 600 1.2rem var(--display); }
.sheet__body { padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.sheet--top .sheet__panel { top: 0; left: 50%; translate: -50% 0; width: min(680px, 100%); max-height: min(86vh, 720px); border-radius: 0 0 var(--r-lg) var(--r-lg); animation: sheet-top .26s var(--ease); }
.sheet--bottom .sheet__panel { bottom: 0; left: 0; right: 0; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: sheet-bottom .28s var(--ease); }
.sheet--right .sheet__panel { top: 0; right: 0; bottom: 0; width: min(560px, 100%); animation: sheet-right .28s var(--ease); }
.sheet--center .sheet__panel { top: 50%; left: 50%; translate: -50% -50%; width: min(560px, calc(100% - 24px)); max-height: 90vh; border-radius: var(--r-lg); animation: sheet-center .22s var(--ease); }
.sheet.is-closing { opacity: 0; transition: opacity .18s; }
.sheet.is-closing::backdrop { opacity: 0; transition: opacity .18s; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-top { from { transform: translateY(-24px); opacity: 0; } }
@keyframes sheet-bottom { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheet-right { from { transform: translateX(40px); opacity: 0; } }
@keyframes sheet-center { from { transform: scale(.96); opacity: 0; } }

/* ------------------------------------------------------------------ motion */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
::view-transition-old(root) { animation: vt-out .14s ease-in both; }
::view-transition-new(root) { animation: vt-in .22s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
