/* reserve.html: page styles (moved out of the page for a strict CSP) */
  fieldset { border: 0; min-width: 0; }
  legend { padding: 0; }
  body:not(.is-done) { padding-bottom: 76px; }
  .cfg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 160px; }
  .cfg-visual { position: sticky; top: 84px; }
  .cfg-visual .stage { aspect-ratio: auto; height: min(calc(100vh - 84px - 76px - 64px), 720px); min-height: 360px; } /* clears the fixed summary bar */
  .engrave-preview { position: absolute; left: 50%; top: 74%; translate: -50% 0; font: 500 13px/1 var(--elud-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--elud-graphite); background: var(--elud-surface); border: var(--elud-line); padding: 6px 10px; border-radius: var(--elud-radius-chip); max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .engrave-preview[hidden] { display: none; }
  .cfg-visual .caption { margin-top: 14px; font-size: 13px; color: var(--elud-muted); text-align: center; }
  .cfg-head { margin-bottom: 36px; }
  .cfg-head .h1 { font-size: clamp(36px, 4vw, 52px); margin: 10px 0 10px; }
  .step { border-top: var(--elud-line); padding: 28px 0 32px; }
  .step-h { display: flex; gap: 14px; align-items: baseline; margin-bottom: 6px; }
  .step-h .num { width: 26px; height: 26px; border-radius: 50%; border: var(--elud-line); display: inline-grid; place-items: center; font: 500 12px/1 var(--elud-font-mono); color: var(--elud-muted); flex: none; translate: 0 -2px; background: var(--elud-surface); }
  .step.is-complete .num { background: var(--elud-charcoal); color: var(--elud-linen); border-color: var(--elud-charcoal); }
  .step h2 { font: 600 22px/1.3 var(--elud-font-display); letter-spacing: -.01em; }
  .step .help { color: var(--elud-muted); font-size: 15px; margin: 0 0 18px 40px; }
  .opts { display: grid; gap: 12px; margin-left: 40px; }
  .opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 18px; border: 1px solid var(--elud-border); border-radius: 14px; background: var(--elud-surface); cursor: pointer; transition: border-color var(--elud-dur-fast) var(--elud-ease), box-shadow var(--elud-dur-fast) var(--elud-ease); }
  .opt:hover { border-color: var(--elud-graphite); }
  .opt input { position: absolute; opacity: 0; pointer-events: none; }
  .opt:has(input:checked) { border-color: var(--elud-ink); box-shadow: 0 0 0 1px var(--elud-ink); }
  .opt:has(input:focus-visible) { box-shadow: var(--elud-focus); }
  .opt:has(input:disabled) { cursor: not-allowed; background: var(--elud-linen); }
  .opt:has(input:disabled) .o-title, .opt:has(input:disabled) .o-desc { color: var(--elud-graphite); }
  .opt .o-sw { width: 30px; height: 30px; border-radius: 50%; border: var(--elud-line); }
  .opt .o-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--elud-graphite); display: grid; place-items: center; }
  .opt:has(input:checked) .o-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--elud-ink); }
  .o-title { display: block; font: 600 16px/1.3 var(--elud-font-display); }
  .o-desc { display: block; font-size: 14px; color: var(--elud-muted); margin-top: 3px; }
  .o-side { font-size: 14px; font-weight: 500; text-align: right; white-space: nowrap; }
  .o-side .tbc { font-weight: 500; }
  .step .fields { display: grid; gap: 16px; margin-left: 40px; }
  .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .terms { margin: 4px 0 0 40px; padding: 18px 20px; background: var(--elud-surface); border: var(--elud-line); border-radius: 14px; font-size: 14px; color: var(--elud-muted); }
  .terms ul { margin: 8px 0 0 18px; display: grid; gap: 4px; }
  .terms b { color: var(--elud-fg); font-weight: 600; }
  .terms[hidden] { display: none; }
  /* sticky summary bar */
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: var(--elud-line); }
  .bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
  .bar .sum b { display: block; font: 600 15px/1.3 var(--elud-font-display); }
  .bar .sum span { font-size: 13px; color: var(--elud-muted); }
  .bar .need { font-size: 13px; color: var(--elud-muted); margin-right: 14px; }
  /* done + checkout dialog */
  .done-panel { display: none; padding: clamp(48px, 7vw, 96px) 0 120px; }
  body.is-done .cfg, body.is-done .bar { display: none; }
  body.is-done .done-panel { display: block; }
  .done-card { max-width: 720px; margin: 0 auto; text-align: center; }
  .done-card .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--elud-stone); display: grid; place-items: center; margin: 0 auto 20px; font-size: 22px; font-weight: 600; }
  .done-card dl { text-align: left; margin: 32px 0; border-top: var(--elud-line); }
  .done-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: var(--elud-line); font-size: 15px; }
  .done-card dt { color: var(--elud-muted); }
  dialog { border: var(--elud-line); border-radius: 20px; padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--elud-surface); color: var(--elud-fg); box-shadow: 0 24px 64px rgb(27 27 28 / .2); }
  dialog::backdrop { background: rgb(27 27 28 / .35); }
  .dlg { padding: 28px; }
  .dlg h2 { font: 600 22px/1.3 var(--elud-font-display); margin: 10px 0 8px; }
  .dlg p { color: var(--elud-muted); font-size: 15px; }
  .dlg .actions { margin-top: 24px; justify-content: flex-end; }
  @media (max-width: 960px) {
    .cfg { grid-template-columns: minmax(0, 1fr); }
    .terms .tbc { white-space: normal; }
    .cfg-visual { position: static; }
    .cfg-visual .stage { aspect-ratio: 1 / 1; height: auto; min-height: 0; }
    .opts, .step .fields, .step .help, .terms { margin-left: 0; }
  }
  html { scroll-padding-bottom: 104px; }
  .bar .sum { min-width: 0; }
  .bar .sum b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 560px) {
    .row-2 { grid-template-columns: 1fr; }
    .bar .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
    .bar .wrap > div { width: 100%; }
    .bar .btn { flex: 1 1 auto; white-space: normal; }
    .bar .sum span, .bar .need { display: none; }
    body:not(.is-done) { padding-bottom: 124px; }
    .opt { grid-template-columns: auto 1fr; }
    .opt .o-side { grid-column: 2; text-align: left; }
  }

.welcome { margin-top: var(--elud-space-4); padding: 12px 16px; border: var(--elud-line); border-radius: var(--elud-radius-control); background: var(--elud-surface); font-size: 14px; }
.welcome[hidden] { display: none; }
.link-btn { border: 0; background: none; padding: 10px 4px; min-height: 44px; font: inherit; font-weight: 500; color: var(--elud-fg); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:focus-visible { outline: none; box-shadow: var(--elud-focus); border-radius: 6px; }

  /* In-flow primary action: works even where the fixed summary bar is out of view (embedded previews, short viewports) */
  .cfg-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 8px; padding-top: 24px; border-top: var(--elud-line); }
  .cfg-submit .u-fine { margin-top: 0; }
  @media (max-width: 760px) { .cfg-submit .btn { width: 100%; } }
