/* configurator experiment: the look of every published configurator and its state cards, in the DocsAura house style
   (agent-worker/src/engines/document/house-style.js and user-app/public/clients/): a ground tinted by the topic's
   mood, white rounded cards with soft tinted shadows, Inter Tight for headings and Inter for text, one gradient pill
   button per screen. The business's own colour arrives as --brand in a small nonce'd <style> after this sheet.
   Rules: nothing under 14px, touch targets 44px and up, motion off when the visitor asks for less motion. */

:root {
  --brand: #2f5bea;
  --brand-2: color-mix(in oklab, var(--brand) 55%, #c64bff);
  --on-brand: #ffffff;
  --tone: var(--brand);
  --ground-base: #fbfcfe;
  --ground-mix: 5%;
  --ink-base: #090d18;
  --radius: 22px;
  --font-d: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ground: color-mix(in oklab, var(--tone) var(--ground-mix), var(--ground-base));
  --ink: color-mix(in oklab, var(--tone) 16%, var(--ink-base));
  --ink-soft: color-mix(in oklab, var(--ink) 72%, var(--ground));
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 24%, transparent);
  --surface: #ffffff;
  --tint: color-mix(in oklab, var(--brand) 7%, var(--surface));
  --glow: color-mix(in oklab, var(--tone) 62%, var(--ground));
  --shade: color-mix(in oklab, var(--tone) 38%, #070a14);
  --lift: 0 1px 2px -1px color-mix(in srgb, var(--shade) 10%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--shade) 12%, transparent), 0 22px 44px -18px color-mix(in srgb, var(--shade) 16%, transparent);
  --lift-0: 0 1px 2px -1px color-mix(in srgb, var(--shade) 10%, transparent), 0 4px 10px -6px color-mix(in srgb, var(--shade) 14%, transparent);
  --bad: #c9372c;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
[data-mood="roastery"] { --brand: #9a5a32; --tone: #9a5a32; --ground-base: #f6efe6; --ground-mix: 3%; --ink-base: #22150f; --radius: 14px; --font-d: "Zilla Slab", Georgia, serif; --font-b: "Work Sans", system-ui, sans-serif; }
[data-mood="garden"] { --brand: #3f7a4a; --tone: #4f7a4a; --ground-base: #f3f5ee; --ground-mix: 3%; --ink-base: #13201a; --radius: 22px; --font-d: "Alegreya", Georgia, serif; --font-b: "Karla", system-ui, sans-serif; }
[data-mood="ledger"] { --brand: #26355c; --tone: #33415c; --ground-base: #f8f7f3; --ground-mix: 2%; --ink-base: #121417; --radius: 10px; --font-d: "Source Serif 4", Georgia, serif; }
[data-mood="coast"] { --brand: #1f7a8c; --tone: #2c7a8c; --ground-base: #f2f6f8; --ground-mix: 4%; --ink-base: #0c1a22; --radius: 20px; }
[data-mood="atelier"] { --brand: #8c4a63; --tone: #8c5a6e; --ground-base: #f8f3f1; --ground-mix: 3%; --ink-base: #1d1418; --radius: 6px; --font-d: "Bodoni Moda", Georgia, serif; --font-b: "Jost", system-ui, sans-serif; }
[data-mood="night"] {
  --brand: #6366f1; --radius: 18px; --font-d: "Sora", "Inter Tight", system-ui, sans-serif;
  --ground: color-mix(in oklab, var(--tone) 22%, #05060c);
  --ink: #f4f6fc; --ink-soft: rgba(236, 240, 250, .76);
  --surface: color-mix(in oklab, var(--tone) 16%, #0a0e1a);
  --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .3);
  --tint: color-mix(in oklab, var(--brand) 24%, var(--surface));
  --glow: color-mix(in oklab, var(--tone) 80%, #000);
  --bad: #ff8a80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font-b); font-size: 16px; line-height: 1.5; color: var(--ink);
  background-color: var(--ground);
  background-image:
    radial-gradient(60% 46% at 0% 0%, color-mix(in srgb, var(--glow) 34%, transparent) 0%, transparent 72%),
    radial-gradient(48% 40% at 100% 4%, color-mix(in srgb, var(--brand-2) 18%, transparent) 0%, transparent 72%);
  background-repeat: no-repeat; background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-embed { min-height: 0; background: transparent; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
[data-mood="night"] :focus-visible { outline-color: #ffffff; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; letter-spacing: -0.012em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img { max-width: 100%; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; stroke-width: 2.6; }

/* ── page ── */
.cfg { max-width: 1140px; margin: 0 auto; padding: 28px 20px 40px; }
.cfg.is-embed { padding: 4px 2px 8px; }
.strip { margin: 0 0 18px; padding: 10px 16px; border-radius: 14px; background: color-mix(in oklab, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent); font-size: 15px; font-weight: 500; text-align: center; }
.head { margin: 0 0 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 14px; }
.brand-logo { max-height: 44px; max-width: 180px; width: auto; display: block; }
.brand-name { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.title { font-size: clamp(28px, 4.4vw, 42px); }
.lead { margin-top: 10px; max-width: 62ch; font-size: 17px; color: var(--ink-soft); white-space: pre-line; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); }

/* ── steps ── */
.steps { margin: 0 0 18px; }
.steps-now { display: none; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.steps-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.steps-list::-webkit-scrollbar { display: none; }
.steps-b { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px 6px 7px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 15.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .16s, color .16s; }
.steps-b:hover:not(:disabled) { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.steps-b:disabled { cursor: default; opacity: .6; }
.steps-n { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, var(--ink) 9%, transparent); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.is-cur .steps-b { background: var(--surface); color: var(--ink); box-shadow: var(--lift-0); font-weight: 600; }
.is-cur .steps-n { background: var(--brand); color: var(--on-brand); }
.is-done .steps-n { background: color-mix(in oklab, var(--brand) 16%, var(--surface)); color: var(--brand); }
[data-mood="night"] .is-done .steps-n { color: var(--ink); }

/* ── layout ── */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; }
.panel { padding: 28px; min-width: 0; }
.panel-h { font-size: 26px; outline: none; }
.panel-help { margin-top: 8px; color: var(--ink-soft); font-size: 16px; white-space: pre-line; }
.flds { display: grid; gap: 28px; margin-top: 24px; }
.panel-nav { margin-top: 26px; display: flex; }
.panel-err { margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: color-mix(in oklab, var(--bad) 9%, var(--surface)); color: var(--bad); font-weight: 600; font-size: 15.5px; }
.link { border: 0; background: none; padding: 0; text-decoration: underline; font-weight: 600; cursor: pointer; color: inherit; min-height: 44px; }

/* ── fields ── */
.fld { min-width: 0; }
.fld-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fld-label { display: block; font-family: var(--font-d); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
legend.fld-label { margin-bottom: 4px; }
.fld-opt { font-family: var(--font-b); font-size: 14.5px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.fld-help { display: block; margin-top: 2px; font-family: var(--font-b); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); white-space: pre-line; }
.fld-lock, .fld-chg, .fld-err { margin-top: 10px; font-size: 15px; }
.fld-lock { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.fld-chg { color: color-mix(in oklab, var(--brand) 78%, var(--ink)); font-weight: 600; }
.fld-err { color: var(--bad); font-weight: 600; }
.fld-chg { display: inline-block; padding: 4px 10px; margin-left: -10px; border-radius: 10px; animation: cfg-flash 1.8s var(--ease); }
@keyframes cfg-flash { 0% { background: color-mix(in srgb, var(--brand) 20%, transparent); } 100% { background: transparent; } }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 12px; margin-top: 12px; }
.opts.has-imgs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.opt-wrap { min-width: 0; display: flex; flex-direction: column; }
.opt { position: relative; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 68px; padding: 15px 16px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); cursor: pointer; transition: transform .16s; }
/* The chosen look switches at once, never fades: while two options fade past each other both look half chosen. */
.opt:hover { border-color: color-mix(in oklab, var(--brand) 55%, var(--line-strong)); }
.opt.is-on { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.opt.is-locked { cursor: default; }
.opt:has(.opt-in:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt:has(.opt-in:disabled):not(.is-on) { opacity: .55; cursor: default; }
.opt-in, .sw-in { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.opt-mark { order: -1; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; color: transparent; background: var(--surface); }
.opt-mark.is-box { border-radius: 7px; }
.opt.is-on .opt-mark { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.opt-body { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.opt-label { font-weight: 600; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.opt-desc { font-size: 15px; color: var(--ink-soft); white-space: pre-line; }
.opt-lock { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.opt-price { flex: none; padding: 3px 11px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 10%, var(--surface)); color: color-mix(in oklab, var(--brand) 72%, var(--ink)); font-size: 14.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-mood="night"] .opt-price { color: var(--ink); }
.opt.is-on .opt-price { background: var(--surface); }
.opt-img { order: -2; flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: var(--tint); }

.pick { margin-top: 12px; }
.srch { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink-soft); }
.srch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.srch-in { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font-size: 16.5px; color: var(--ink); }
.opts.is-list { grid-template-columns: 1fr; gap: 8px; max-height: 436px; overflow-y: auto; padding: 4px; margin: 8px -4px 0; }
.opts.is-list .opt { min-height: 56px; padding: 12px 14px; }
.pick-note { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.stp { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); cursor: pointer; transition: border-color .16s, background .16s; }
.stp-l { width: 52px; height: 52px; }
.stp:hover:not(:disabled) { border-color: var(--brand); background: var(--tint); }
.stp:disabled { opacity: .4; cursor: default; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 2px; }
.qty-label { flex: 1; font-size: 15px; color: var(--ink-soft); }
.qty-in { width: 64px; height: 46px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-in:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }

.numf { margin-top: 12px; }
.num { display: flex; align-items: center; gap: 10px; }
.num-box { flex: 0 1 240px; min-width: 0; display: flex; align-items: baseline; gap: 8px; min-height: 64px; padding: 8px 18px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.num-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.num-in { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-family: var(--font-d); font-size: 32px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.num-unit { flex: none; font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.rng { display: block; width: 100%; max-width: 380px; height: 44px; margin-top: 6px; accent-color: var(--brand); cursor: pointer; }
.num-hint { margin-top: 2px; font-size: 15px; color: var(--ink-soft); }

.sw-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .16s, background .16s; }
.sw-row.is-on { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.sw-row.is-locked { cursor: default; }
.sw-row:has(.sw-in:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.sw-text { flex: 1; min-width: 0; }
.sw-text .fld-label { font-size: 17px; }
.sw { order: 9; flex: none; position: relative; width: 54px; height: 32px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 26%, var(--surface)); transition: background .16s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.sw-in:checked ~ .sw { background: var(--brand); }
.sw-in:checked ~ .sw::after { transform: translateX(22px); }

.txt, .inp { display: block; width: 100%; min-height: 54px; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); font-size: 16.5px; line-height: 1.45; }
.txt { margin-top: 10px; resize: vertical; min-height: 104px; }
.inp { margin-top: 8px; }
.txt:focus, .inp:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.is-bad .txt, .is-bad .inp { border-color: var(--bad); }
.txt-count { margin-top: 6px; font-size: 14px; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.info { padding: 16px 18px; border-radius: 16px; background: var(--tint); border: 1px solid color-mix(in oklab, var(--brand) 16%, transparent); }
.info-title { font-weight: 600; }
.info-text { color: var(--ink-soft); white-space: pre-line; }
.info-title + .info-text { margin-top: 4px; }

/* ── request form ── */
.form { margin-top: 22px; }
.ffs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ff { min-width: 0; }
.ff-wide { grid-column: 1 / -1; }
.ff .fld-label { font-size: 16px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-top: 22px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.chk { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.consent-text { font-size: 15px; color: var(--ink-soft); white-space: pre-line; }
.consent-link { margin: 4px 0 0 36px; font-size: 15px; }
.consent-link a { display: inline-block; padding: 8px 0; font-weight: 600; }
.consent .fld-err { margin-left: 36px; }
.ts { margin-top: 18px; min-height: 66px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .16s var(--ease), box-shadow .16s, opacity .16s; }
.btn-main { width: 100%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-main:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--brand) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-main:active:not(:disabled) { transform: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-plain { min-height: 48px; padding: 0 18px 0 12px; background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); font-size: 16px; }
.btn-plain:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.btn-second { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }

/* ── summary ── */
.sum { position: sticky; top: 20px; padding: 24px; }
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sum-h { font-size: 20px; outline: none; }
.sum-x { display: none; width: 46px; height: 46px; margin: -8px -10px -8px 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.sum-empty { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }
.rows { margin-top: 10px; }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row-main { min-width: 0; display: flex; flex-direction: column; }
.row-label { font-size: 14.5px; color: var(--ink-soft); }
.row-value { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.row-amount { flex: none; font-size: 15.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tot { margin-top: 16px; }
.tot-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tot-label { font-size: 15.5px; color: var(--ink-soft); }
.tot-main { font-family: var(--font-d); font-size: 28px; font-weight: 700; letter-spacing: -0.012em; text-align: right; font-variant-numeric: tabular-nums; }
.tot-word { font-family: var(--font-b); font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.tot-sub { margin-top: 2px; text-align: right; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tot-note, .sum-note { margin-top: 8px; font-size: 15px; color: var(--ink-soft); white-space: pre-line; }
.sum .btn-main { margin-top: 20px; }
.sum-back { display: none; }
.bar { display: none; }

/* ── sent ── */
.sent { max-width: 640px; margin: 0 auto; padding: 36px 28px; text-align: center; }
.sent-ic { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); }
.sent-ic .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.sent-text { margin-top: 10px; font-size: 17px; color: var(--ink-soft); white-space: pre-line; }
.sent-test { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: 15px; font-weight: 500; }
.sent-sum { margin: 26px 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; text-align: left; }

/* ── footer ── */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: 14.5px; color: var(--ink-soft); }
.made, .rep { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.made { padding: 0 14px 0 12px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 70%, transparent); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.made:hover, .rep:hover { text-decoration: underline; }
.made-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #141ec8, #8a4dff); }
.rep { padding: 0 6px; }

/* ── state cards and the report page ── */
.note-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
body.is-embed .note-page { min-height: 0; padding: 8px 2px; }
.note { width: min(500px, 100%); padding: 36px 28px; text-align: center; }
.note h1 { font-size: 28px; }
.note-lead { margin-top: 10px; font-size: 17px; color: var(--ink-soft); }
.note-btns { display: grid; gap: 12px; margin-top: 24px; }
.note .btn { width: 100%; }
.rep-form { text-align: left; margin-top: 22px; }
.rep-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; margin-top: 8px; cursor: pointer; font-size: 16px; }
.rep-opt input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }
.rep-form .fld-label { font-size: 17px; margin-top: 18px; }
.rep-form .btn { margin-top: 20px; }

/* ── phones ── */
@media (max-width: 880px) {
  .cfg { padding: 20px 14px 112px; }
  .cfg.is-embed { padding: 4px 2px 8px; }
  .main { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .panel { padding: 22px 18px; }
  .panel-h { font-size: 23px; }
  .steps-now { display: block; }
  .steps-t { display: none; }
  .steps-b { padding: 6px; }
  .ffs { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .opts.has-imgs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .num-box { flex: 1 1 auto; }

  .cfg:not(.is-embed) .sum { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 84vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(104%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s; }
  .cfg:not(.is-embed) .sum.is-open { transform: none; visibility: visible; }
  .cfg:not(.is-embed) .sum-x { display: grid; }
  .cfg:not(.is-embed) .sum-back { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(8, 12, 24, .5); }
  .cfg:not(.is-embed) .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px color-mix(in srgb, var(--shade) 50%, transparent); }
  .bar-sum { flex: 1; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 4px 6px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 12px; }
  .bar-total { max-width: 100%; font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .bar-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
  .bar .btn-main { width: auto; flex: none; padding: 0 22px; }
  .sent { padding: 28px 18px; }
  .is-embed .sum { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bar, .sum-back, .foot, .steps { display: none !important; }
  body { background: #ffffff; }
}
