/* Sol & Prism — transactional pages (bag, checkout, confirmation, test gateway, account, home atelier).
   Builds on site.css: same white ground, royal-blue type, gold for detail only. */
@import url("./site.css");

:root { --err: #a3243b; --ok: #1d7a52; }

.cm { padding: 128px clamp(16px, 3.9vw, 75px) clamp(80px, 8vw, 140px); min-height: 70vh; }
.cm-narrow { max-width: 760px; margin-inline: auto; }
.cm-wide { max-width: 1200px; margin-inline: auto; }
.cm-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.cm-head h1 { font-size: clamp(42px, 5vw, 80px); margin: 0; }
.cm-head p { margin: 0; color: var(--ink-2); font-weight: 300; font-size: 17px; max-width: 56ch; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cm-aside { position: sticky; top: 96px; }
@media (max-width: 980px) { .cm { padding-top: 104px; } .cm-grid { grid-template-columns: minmax(0, 1fr); } .cm-aside { position: static; } }

.h-sec { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; margin: 0; }
.h-sec em { font-style: italic; color: var(--jewel); }
.lbl { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.note { color: var(--muted); font-size: 14.5px; }
.cm a.inl, .cm-inl { color: var(--jewel); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }

/* buttons: additions on top of .btn */
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.wide { width: 100%; }
.btn.sm { padding: 12px 18px; font-size: 13px; letter-spacing: .12em; gap: 8px; }
.btn svg { width: 17px; height: 17px; flex: none; position: relative; }
.btn.busy span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: -1px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.done { border-color: var(--ok); }
.txt-btn { color: var(--jewel); font-size: 14.5px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.txt-btn:hover { color: var(--jewel-deep); }
.txt-btn.quiet { color: var(--muted); background-size: 0 1px; transition: background-size .4s var(--ease-out), color .3s; }
.txt-btn.quiet:hover { color: var(--jewel); background-size: 100% 1px; }

/* states */
.cm-state { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 7vw, 96px) 16px; }
.cm-state h2 { font-size: clamp(32px, 3.4vw, 50px); margin: 0; line-height: 1.08; }
.cm-state h2 em { font-style: italic; color: var(--jewel); }
.cm-state p { margin: 0; color: var(--ink-2); font-weight: 300; font-size: 17px; max-width: 46ch; }
.cm-state .ring-ph, .cm-state .st-ic { width: 64px; height: 64px; color: var(--gold); margin-bottom: 6px; }
.cm-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cm-wait { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 28px 0; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--muted); }
.cm-spin { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--jewel); animation: spin 1s linear infinite; }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 10px; background: var(--pearl); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.banner.err { background: #fbf1f3; border-color: #f0d5db; color: var(--err); }
.banner.ok { background: #eff8f3; border-color: #cfe9dc; color: var(--ok); }
.banner .btn { margin-left: auto; flex: none; }
.banner p { margin: 0; }

/* forms */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.cm-f { min-width: 0; }
.cm-f .opt { font-size: .82em; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input:focus ~ label .opt, .field input:not(:placeholder-shown) ~ label .opt { display: none; }
.ferr { display: block; min-height: 1.35em; padding-top: 6px; font-size: 13.5px; color: var(--err); line-height: 1.35; }
.ferr:empty { min-height: 0; padding-top: 0; }
.fhint { display: block; padding-top: 6px; font-size: 13.5px; color: var(--muted); }
.cm-f.bad .field input, .cm-f.bad .field select, .cm-f.bad .field textarea { border-bottom-color: var(--err); }
.cm-f.bad .field label { color: var(--err); }
.field textarea { resize: vertical; min-height: 96px; }
.field input[readonly] { color: var(--ink-2); }
.cm-f + .cm-f { margin-top: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15.5px; color: var(--ink-2); padding: 8px 0; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 4px; display: grid; place-items: center; transition: background .25s, border-color .25s; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease-out); }
.check input:checked { background: var(--jewel); border-color: var(--jewel); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check small { display: block; color: var(--muted); font-size: 14px; }
.form-actions { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: var(--white); color: var(--ink-2); transition: border-color .25s, background .25s, color .25s; }
.chipbtn:hover { border-color: var(--jewel); }
.chipbtn[aria-pressed="true"] { border-color: var(--jewel); background: var(--jewel-soft); color: var(--jewel-deep); font-weight: 500; }
.chipbtn[aria-pressed="true"]::before { content: "✓ "; color: var(--gold); }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.plain legend { padding: 0; margin-bottom: 12px; }

/* status chips */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: var(--pearl); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.chip.ok { background: #eff8f3; border-color: #cfe9dc; color: var(--ok); } .chip.ok::before { background: var(--ok); }
.chip.wait { background: #fbf6ea; border-color: #efe2c2; color: #8a6418; } .chip.wait::before { background: var(--gold); }
.chip.off { color: var(--muted); } .chip.off::before { background: #b9c1db; }

/* ---------- bag ---------- */
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 8px clamp(16px, 2.4vw, 32px); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; transition: opacity .4s; }
.line.leaving { opacity: 0; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: radial-gradient(90% 80% at 50% 40%, var(--card-hi) 0%, var(--card-lo) 100%); display: grid; place-items: center; color: var(--jewel); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ring-ph { width: 54%; height: 54%; opacity: .7; }
.line .t { font-family: var(--font-display); font-size: clamp(22px, 1.8vw, 27px); line-height: 1.15; margin: 0; font-weight: 500; }
.line .t a:hover { color: var(--jewel); }
.line .s { color: var(--muted); font-size: 14.5px; margin-top: 6px; line-height: 1.5; }
.line .ctl { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.line .pr { text-align: right; font-family: var(--font-display); font-size: 22px; white-space: nowrap; font-variant-numeric: lining-nums; }
.line .pr small { display: block; font-family: var(--font-body); font-size: 13.5px; color: var(--muted); }
.line .lerr { grid-column: 2 / -1; }
.line.unavail .thumb { opacity: .55; }
.ph-txt { display: inline-block; width: 70px; height: .8em; border-radius: 4px; background: linear-gradient(90deg, var(--mist), var(--pearl), var(--mist)); background-size: 200% 100%; animation: shimmer 1.4s infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--jewel); font-size: 19px; transition: background .25s; }
.qty button:hover:not(:disabled) { background: var(--jewel-soft); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-size: 15.5px; }
@media (max-width: 620px) {
  .line { grid-template-columns: 92px minmax(0, 1fr); }
  .line .pr { grid-column: 2; text-align: left; }
  .line .pr small { display: inline; margin-left: 6px; }
  .line .lerr { grid-column: 1 / -1; }
}

/* summary / totals */
.summary { background: var(--pearl); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 2.4vw, 34px); }
.summary .h-sec { margin-bottom: 18px; }
.tot { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tot td { padding: 9px 0; vertical-align: top; }
.tot td:last-child { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; padding-left: 12px; }
.tot td small { display: block; color: var(--muted); font-size: 13.5px; }
.tot.stale { opacity: .45; transition: opacity .3s; }
.tot tr.disc td { color: var(--ok); }
.tot tr.grand td { border-top: 1px solid var(--line); padding-top: 18px; font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--ink); }
.tot tr.grand td small { font-family: var(--font-body); font-size: 13.5px; }
.code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin: 6px 0 4px; }
.code-form .btn { padding: 13px 20px; }
.code-msg { font-size: 14px; margin: 4px 0 0; min-height: 1.3em; }
.code-msg.ok { color: var(--ok); } .code-msg.bad { color: var(--err); }
.code-on { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--white); border: 1px dashed var(--gold); margin: 6px 0; }
.code-on b { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; font-weight: 500; color: var(--jewel); }
.sum-ctas { display: grid; gap: 12px; margin-top: 22px; }
.assure { display: grid; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }
.assure span { display: flex; gap: 10px; align-items: center; }
.assure span::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-grad); flex: none; }
.mini-lines { display: grid; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 14.5px; }
.mini .thumb { border-radius: 4px; }
.mini .thumb .q { position: absolute; top: -1px; right: -1px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--jewel); color: #fff; font-size: 12px; display: grid; place-items: center; z-index: 1; padding: 0 5px; }
.mini b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.2; }
.mini span.s { color: var(--muted); font-size: 13.5px; display: block; line-height: 1.4; }
.mini .p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini.bad b { color: var(--err); }

/* ---------- checkout ---------- */
.co-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.co-sec { border-bottom: 1px solid var(--line); padding: 26px 0; }
.co-sec > header { display: flex; gap: 18px; align-items: baseline; }
.co-sec .n { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); width: 30px; flex: none; }
.co-sec .h-sec { flex: 1; }
.co-sec .edit { flex: none; }
.co-sec .sum { margin: 10px 0 0 48px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.co-sec .body { margin: 22px 0 0 48px; }
.co-sec:not(.open) .body, .co-sec.open .sum, .co-sec:not(.done) .sum, .co-sec:not(.done) .edit, .co-sec.open .edit { display: none; }
.co-sec:not(.open):not(.done) .h-sec { color: var(--muted); }
@media (max-width: 620px) { .co-sec .sum, .co-sec .body { margin-left: 0; } .co-sec .n { width: 24px; } }
.signin-note { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-radius: 10px; background: var(--pearl); border: 1px solid var(--line); margin-bottom: 18px; font-size: 15px; color: var(--ink-2); }
.country-fixed { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 0 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.country-fixed .v { font-size: 16px; } .country-fixed .lbl { display: block; font-size: 12.5px; letter-spacing: .1em; color: var(--jewel); margin-bottom: 2px; }
.addr-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.addr-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--ink-2); transition: border-color .25s, background .25s; }
.addr-opt:has(input:checked) { border-color: var(--jewel); background: var(--jewel-soft); }
.addr-opt input { accent-color: var(--jewel); margin-top: 4px; width: 17px; height: 17px; flex: none; }
.addr-opt b { color: var(--ink); font-weight: 500; }
.pay-box { margin-top: 26px; display: grid; gap: 14px; }
.pay-box .btn { width: 100%; padding-block: 21px; font-size: 14px; }
.pay-fine { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; }
.pay-fine svg { width: 16px; height: 16px; flex: none; }
details.sum-m { display: block; }
details.sum-m > summary { display: none; }
@media (max-width: 980px) {
  .co-aside { order: -1; }
  details.sum-m > summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--pearl); font-size: 15px; color: var(--jewel); }
  details.sum-m > summary::-webkit-details-marker { display: none; }
  details.sum-m > summary b { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
  details.sum-m[open] > summary { border-radius: 12px 12px 0 0; border-bottom: 0; }
  details.sum-m[open] .summary { border-radius: 0 0 12px 12px; }
}

/* ---------- order confirmation ---------- */
.ty-hero { text-align: center; display: grid; justify-items: center; gap: 16px; padding-bottom: clamp(40px, 5vw, 64px); }
.ty-hero .seal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.ty-hero .seal svg { width: 30px; height: 30px; }
.ty-hero h1 { font-size: clamp(46px, 6.4vw, 104px); margin: 0; }
.ty-hero h1 em { color: var(--jewel); }
.ty-hero p { margin: 0; max-width: 54ch; color: var(--ink-2); font-weight: 300; font-size: 18px; }
.gift { position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: clamp(32px, 5vw, 72px); background: radial-gradient(120% 140% at 15% 0%, var(--jewel-bright) 0%, var(--jewel) 30%, var(--jewel-deep) 62%, var(--jewel-night) 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(48px, 6vw, 90px); box-shadow: 0 40px 90px -40px rgba(12, 29, 94, .55); }
.gift::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(226, 191, 110, .35); border-radius: 12px; pointer-events: none; }
.gift .eyebrow { color: var(--gold-bright); }
.gift h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; margin: 14px 0 16px; }
.gift h2 em { font-style: italic; color: var(--gold-bright); }
.gift p { margin: 0; color: rgba(255, 255, 255, .82); font-weight: 300; font-size: 17px; max-width: 44ch; }
.gift .codebox { display: grid; gap: 18px; justify-items: center; text-align: center; }
.gift .codebox > * { max-width: 100%; }
.gift .code { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: .1em; line-height: 1; padding: 26px clamp(20px, 3vw, 40px); border: 1px dashed rgba(226, 191, 110, .7); border-radius: 12px; background: rgba(255, 255, 255, .05); white-space: nowrap; user-select: all; }
.gift .pct { font-family: var(--font-display); font-style: italic; color: var(--gold-bright); font-size: 22px; }
.gift .fine { font-size: 14px; color: rgba(255, 255, 255, .66); }
.share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share .btn.light.done { border-color: var(--gold-bright); }
@media (max-width: 860px) { .gift { grid-template-columns: minmax(0, 1fr); text-align: center; } .gift p { margin-inline: auto; } .gift .code { font-size: clamp(26px, 8.4vw, 40px); letter-spacing: .06em; padding: 20px 14px; } }
.ty-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
@media (max-width: 980px) { .ty-grid { grid-template-columns: minmax(0, 1fr); } }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.next-steps li::before { content: "0" counter(s); font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); grid-row: span 2; }
.next-steps b { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.next-steps span { color: var(--ink-2); font-weight: 300; font-size: 16px; }
.kv-block { display: grid; gap: 4px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 22px; }
.panel + .panel { margin-top: 20px; }

/* ---------- test gateway ---------- */
.gw { max-width: 560px; margin-inline: auto; }
.gw-mode { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; background: #fbf6ea; border: 1px solid #efe2c2; color: #7a5612; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; text-align: center; }
.gw-mode i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.gw-card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); margin-top: 22px; display: grid; gap: 26px; box-shadow: 0 30px 70px -40px rgba(11, 20, 48, .3); }
.gw-amt { text-align: center; display: grid; gap: 6px; }
.gw-amt .v { font-family: var(--font-display); font-size: clamp(46px, 6vw, 68px); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.gw-amt .for { color: var(--ink-2); font-size: 16px; }
.cc { position: relative; aspect-ratio: 1.586; max-width: 380px; width: 100%; margin-inline: auto; border-radius: 16px; padding: 22px 24px; color: #fff; display: grid; grid-template-rows: auto 1fr auto auto; background: radial-gradient(130% 120% at 0% 0%, var(--jewel-bright), var(--jewel-deep) 60%, var(--jewel-night)); box-shadow: 0 24px 50px -24px rgba(12, 29, 94, .7); overflow: hidden; }
.cc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); }
.cc .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); }
.cc .chipc { width: 42px; height: 30px; border-radius: 6px; background: var(--gold-grad); margin-top: 16px; }
.cc .num { font-family: var(--font-display); font-size: clamp(22px, 5.6vw, 28px); letter-spacing: .12em; align-self: end; white-space: nowrap; }
.cc .bot { display: flex; justify-content: space-between; font-size: 13.5px; color: rgba(255, 255, 255, .78); margin-top: 8px; }
.gw-actions { display: grid; gap: 12px; }
@media (max-width: 520px) { .gw-actions .btn, .pay-box .btn, .cm-actions .btn { letter-spacing: .1em; padding-inline: 20px; } .gw-mode { letter-spacing: .1em; font-size: 13px; } }
.gw-meta { width: 100%; border-collapse: collapse; font-size: 15px; }
.gw-meta td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.gw-meta td:last-child { text-align: right; color: var(--ink); }
.gw-meta td:first-child { color: var(--muted); }

/* ---------- account ---------- */
.auth { max-width: 520px; margin-inline: auto; }
.tabs { display: flex; gap: clamp(18px, 3vw, 40px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(26px, 3vw, 40px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { position: relative; padding: 14px 0; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tabs [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--jewel); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.tabs [role="tab"][aria-selected="true"] { color: var(--jewel); }
.tabs [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tabs [role="tab"]:hover { color: var(--ink); }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.dash-head h1 { font-size: clamp(40px, 4.6vw, 72px); margin: 8px 0 0; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .k { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.row .d { color: var(--muted); font-size: 14.5px; }
.row .v { font-family: var(--font-display); font-size: 20px; text-align: right; white-space: nowrap; }
a.row:hover .k { color: var(--jewel); }
@media (max-width: 700px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row .v { text-align: left; } }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.rcard { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
.rcard.active { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(180deg, #fffdf8, #fff); }
.rcard .c { font-family: var(--font-display); font-size: clamp(23px, 6.4vw, 30px); letter-spacing: .06em; font-weight: 500; color: var(--jewel); white-space: nowrap; }
.rcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.rcard .share { justify-content: flex-start; }
.addrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-bottom: 30px; }
.acard { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 12px; align-content: start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.acard.def { border-color: var(--jewel); }
.acard .ops { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .split2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home atelier ---------- */
.ha-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: end; padding-bottom: clamp(48px, 6vw, 90px); border-bottom: 1px solid var(--line); }
.ha-hero h1 { font-size: clamp(48px, 6.6vw, 112px); margin: 14px 0 0; line-height: .96; }
.ha-hero h1 em { color: var(--jewel); }
.ha-hero .lede { margin: 0; color: var(--ink-2); }
.ha-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ha-facts div { border-top: 1px solid var(--gold); padding-top: 12px; }
.ha-facts b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--ink); line-height: 1.1; }
.ha-facts span { font-size: 14px; color: var(--muted); }
.ha-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding: clamp(48px, 6vw, 90px) 0; }
.ha-story article { display: grid; gap: 10px; align-content: start; }
.ha-story .ic { width: 52px; height: 52px; color: var(--gold); }
.ha-story h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0; line-height: 1.1; }
.ha-story p { margin: 0; color: var(--ink-2); font-weight: 300; }
@media (max-width: 860px) { .ha-hero, .ha-story { grid-template-columns: minmax(0, 1fr); } .ha-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ha-facts b { font-size: 22px; } }
.book { border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 56px); box-shadow: 0 40px 90px -60px rgba(11, 20, 48, .35); }
.book-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 clamp(26px, 3vw, 40px); padding: 0; counter-reset: b; flex-wrap: wrap; }
.book-steps li { counter-increment: b; display: flex; align-items: center; gap: 10px; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.book-steps li::before { content: counter(b); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-size: 16px; letter-spacing: 0; }
.book-steps li + li::after { order: -1; content: ""; width: clamp(12px, 3vw, 40px); height: 1px; background: var(--line); }
.book-steps li[aria-current="step"] { color: var(--jewel); }
.book-steps li[aria-current="step"]::before { background: var(--jewel); color: #fff; border-color: var(--jewel); }
.book-steps li.done::before { border-color: var(--gold); color: var(--gold); }
@media (max-width: 620px) { .book-steps { flex-wrap: nowrap; gap: 6px; } .book-steps li { gap: 6px; white-space: nowrap; font-size: 13px; letter-spacing: .08em; } .book-steps li + li::after { width: 10px; } .book-steps li span { display: none; } .book-steps li[aria-current="step"] span { display: inline; } }
.pc-form { display: grid; grid-template-columns: minmax(0, 260px) auto; gap: 18px; align-items: end; }
@media (max-width: 520px) { .pc-form { grid-template-columns: minmax(0, 1fr); } }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .cal-wrap { grid-template-columns: minmax(0, 1fr); } }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 470px; }
.cal .dow { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; font-weight: 500; }
.cal .mo { grid-column: 1 / -1; font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--jewel); padding: 10px 0 4px; }
.cal button, .cal .pad { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; line-height: 1; position: relative; }
.cal button { color: var(--ink); border: 1px solid transparent; transition: background .25s, border-color .25s, color .25s; }
.cal button:hover:not(:disabled) { border-color: var(--jewel); }
.cal button::after { content: ""; position: absolute; bottom: 16%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal button:disabled { color: #b9c1db; cursor: default; }
.cal button:disabled::after { display: none; }
.cal button[aria-pressed="true"] { background: var(--jewel); color: #fff; }
.cal button[aria-pressed="true"]::after { background: var(--gold-bright); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.slots button { padding: 14px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 15.5px; text-align: center; transition: border-color .25s, background .25s, color .25s; }
.slots button:hover:not(:disabled) { border-color: var(--jewel); }
.slots button:disabled { color: #b9c1db; text-decoration: line-through; cursor: default; }
.slots button[aria-pressed="true"] { background: var(--jewel); color: #fff; border-color: var(--jewel); }
.when { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin: 0 0 14px; }
.review { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.review th { text-align: left; font-weight: 400; color: var(--muted); padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 34%; }
.review td { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.policy { font-size: 14.5px; color: var(--ink-2); background: var(--pearl); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 20px 0 0; }
.away { display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: 18px; background: var(--pearl); border: 1px solid var(--line); }
.away h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; margin: 0; }
.away p { margin: 0; color: var(--ink-2); max-width: 60ch; }

/* toast */
.cm-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; gap: 18px; align-items: center; background: var(--jewel-deep); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 14.5px; box-shadow: 0 20px 40px -20px rgba(6, 12, 38, .6); transition: .45s var(--ease-out); max-width: calc(100vw - 32px); }
.cm-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cm-toast button { color: var(--gold-bright); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fade-in { animation: fadeIn .7s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } }
@media print { .nav, .footer, .cm-toast, .share, .cm-actions, .gift .fine { display: none !important; } .cm { padding-top: 20px; } }

/* ---------- phones (mobile polish) ---------- */
.cm { min-height: 70svh; padding-left: max(clamp(16px, 3.9vw, 75px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 3.9vw, 75px), env(safe-area-inset-right)); }
.cm-toast { bottom: calc(28px + env(safe-area-inset-bottom)); width: max-content; }
.field input, .field select, .field textarea { scroll-margin-block: 96px 96px; }
.code-form .field label { white-space: nowrap; }
.co-sec .h-sec:focus { outline: none; }
.ty-hero p, .co-sec .sum, .signin-note, .kv-block, .review td, .acard, .banner p { overflow-wrap: anywhere; }
@media (pointer: coarse) {
  .qty button { width: 44px; height: 44px; }
  .txt-btn { min-height: 44px; }
  /* the tap area grew, so the hairline follows the words instead of the box */
  .txt-btn:not(.quiet) { background-image: none; padding-bottom: 0; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .chipbtn, .slots button { min-height: 44px; }
  .addr-opt input { width: 22px; height: 22px; margin-top: 1px; }
  a.cm-inl { position: relative; }
  a.cm-inl::after { content: ""; position: absolute; inset: -10px -4px; }
}
.sum-ctas .txt-btn { text-align: center; justify-content: center; }
@media (max-width: 620px) {
  .banner { flex-wrap: wrap; }
  .banner > p { flex: 1 1 100%; min-width: 0; }
  .banner .btn { margin-left: 0; }
  .line .ctl { gap: 4px 16px; margin-top: 12px; }
  .line .ctl:has(a.txt-btn) .qty { margin-right: 100%; }
  .line .pr { padding-top: 2px; }
  .mini { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .review th { width: 30%; padding-right: 12px; }
  .pc-form .btn, .form-actions .btn.solid { max-width: 100%; }
}
@media (max-width: 520px) {
  .book { padding: 24px 16px; }
  .cal { gap: 0; max-width: none; }
  .cal button, .cal .pad { font-size: 19px; }
  .cal button::after { bottom: 7%; }
  .cal .dow { letter-spacing: .06em; }
}

/* phones 2 */
.row .chip { justify-self: start; }
.tabs.more-r { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px); mask-image: linear-gradient(to left, transparent 0, #000 36px); }
@media (max-width: 700px) {
  .row .v { text-align: right; }
  .row > :nth-child(2):not(.chip):not(.v) { text-align: right; }
}
@media (max-width: 620px) {
  .tabs { margin-inline: calc(-1 * clamp(16px, 3.9vw, 75px)); padding-inline: clamp(16px, 3.9vw, 75px); scroll-padding-inline: 16px; gap: 22px; }
  .auth .tabs { margin-inline: 0; padding-inline: 0; }
}

/* phones 3 */
@media (max-width: 900px) { .book-steps { flex-wrap: nowrap; gap: 6px; } .book-steps li { gap: 6px; white-space: nowrap; letter-spacing: .08em; } .book-steps li + li::after { width: 10px; } .book-steps li span { display: none; } .book-steps li[aria-current="step"] span { display: inline; } }
@media (max-width: 400px) { .form-actions .btn, .pc-form .btn { letter-spacing: .12em; padding-inline: 22px; } }
