/* ── Design tokens ─────────────────────────────────────── */
:root {
  /* Lets native controls (select dropdowns, form widgets) follow the active theme. */
  color-scheme: light dark;
  --color-bg: #ffffff;
  --color-surface: #f8f8f8;
  --color-border: #e8e8e8;
  --color-border-focus: #111111;
  --color-text: #111111;
  --color-text-secondary: #767676;
  /* Stronger secondary: passes WCAG AA (≥4.5:1) on the tinted --color-surface, for
     actionable secondary copy (hints, submit note) that #767676 fails at small sizes. */
  --color-text-secondary-strong: #5f5f5f;
  --color-btn-bg: #111111;
  --color-btn-text: #ffffff;
  --color-btn-outline-bg: #ffffff;
  --color-btn-outline-border: #e8e8e8;
  --color-slot-selected-bg: #111111;
  --color-slot-selected-text: #ffffff;
  --color-slot-unavailable-bg: #f8f8f8;
  --color-slot-unavailable-text: #cccccc;
  --color-step-active-bg: #111111;
  --color-step-done-bg: #111111;
  --color-step-inactive-bg: #f0f0f0;
  /* #6e6e6e ≈4.6:1 on #f0f0f0 / ≈5.3:1 on white — the step number conveys progress (non-decorative). */
  --color-step-inactive-text: #6e6e6e;
  --color-chip-selected-border: #111111;
  --color-chip-selected-bg: #f8f8f8;
  --color-error: #c62828;
  --color-success: #1b7a3d;
  --color-warning: #8a5a00;
  /* Accessible LINE-association greens: white text passes WCAG AA (#0a7d3a ≈5.2:1,
     #066b30 ≈6.7:1). A brightness step distinguishes pre-login from verified. */
  --color-line: #0a7d3a;
  --color-line-text: #ffffff;
  --color-verified: #066b30;
  --radius-phone: 24px;
  --radius-field: 8px;
  --radius-btn: 10px;
  --radius-chip: 20px;
  --radius-logo: 10px;
  --radius-slot: 7px;
  --radius-card: 10px;
  --shadow-phone: 0 8px 40px rgba(0, 0, 0, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-surface: #1a1a1a;
    --color-border: #2a2a2a;
    --color-border-focus: #f0f0f0;
    --color-text: #f0f0f0;
    --color-text-secondary: #aaaaaa;
    --color-btn-bg: #f0f0f0;
    --color-btn-text: #111111;
    --color-btn-outline-bg: #111111;
    --color-btn-outline-border: #333333;
    --color-slot-selected-bg: #f0f0f0;
    --color-slot-selected-text: #111111;
    --color-slot-unavailable-bg: #1a1a1a;
    --color-slot-unavailable-text: #444444;
    --color-step-active-bg: #f0f0f0;
    --color-step-done-bg: #f0f0f0;
    --color-step-inactive-bg: #1a1a1a;
    --color-chip-selected-border: #f0f0f0;
    --color-chip-selected-bg: #1a1a1a;
    --color-success: #4cd07a;
    --color-warning: #d6a13a;
    /* Lightened red so error text — the most critical copy (slot taken, conflict,
       limit, comms error) — passes AA on the dark surfaces. #ff6b6b ≈5.9:1 on #111. */
    --color-error: #ff6b6b;
    /* Keep secondary-strong + inactive-step text light enough for dark surfaces. */
    --color-text-secondary-strong: #b8b8b8;
    --color-step-inactive-text: #9a9a9a;
    /* --color-line / --color-verified inherit the light values: white text on those
       greens already passes AA regardless of the surrounding dark surface. */
  }
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
/* Remove the 300ms tap delay + double-tap-zoom on interactive controls. */
button, a, [role="radio"], [role="button"] { touch-action: manipulation; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI',
    'Meiryo', sans-serif;
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;
}

/* ── Accessibility ──────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--color-btn-bg); color: var(--color-btn-text);
  padding: 0.5rem 1rem; border-radius: 0 0 var(--radius-field) 0;
  font-size: 0.85rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Shell ──────────────────────────────────────────────── */
.shell {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding:
    calc(1.5rem + env(safe-area-inset-top))
    calc(1rem + env(safe-area-inset-right))
    calc(3rem + env(safe-area-inset-bottom))
    calc(1rem + env(safe-area-inset-left));
}

/* ── Phone card ─────────────────────────────────────────── */
.reservation-panel {
  width: 100%; max-width: 400px;
  background: var(--color-bg);
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

/* ── App header ─────────────────────────────────────────── */
.brand-panel {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 0.75rem;
}
.brand-media {
  width: 44px; height: 44px; border-radius: var(--radius-logo);
  background: var(--color-text); color: var(--color-btn-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.eyebrow { font-size: 0.62rem; color: var(--color-text-secondary); letter-spacing: 0.06em; margin-bottom: 0.1rem; }
h1 { font-size: 1.15rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }
/* A clear, tappable pill instead of a faint text link — same minimal palette as the
   menu chips/tags (chip radius + 1.5px border) so it reads as a button without
   breaking the monochrome design. */
.brand-nav { margin-top: 0.45rem; }
.brand-nav a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.8rem; min-height: 36px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-chip);
  background: var(--color-surface); color: var(--color-text);
  font-size: 0.72rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.brand-nav a:hover { border-color: var(--color-text-secondary); background: var(--color-bg); }
.brand-nav a:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }

/* ── Step indicator ─────────────────────────────────────── */
.step-progress {
  padding: 1rem 1.25rem;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--color-surface);
}
.step-item { display: flex; align-items: center; gap: 0.35rem; flex: 1; min-width: 0; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}
.step-item.active .step-num { background: var(--color-step-active-bg); color: var(--color-btn-text); }
.step-item.done .step-num { background: var(--color-step-done-bg); color: var(--color-btn-text); }
.step-item.inactive .step-num { background: var(--color-step-inactive-bg); color: var(--color-step-inactive-text); }
.step-label { font-size: 0.68rem; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-item.inactive .step-label { color: var(--color-step-inactive-text); }
.step-connector { flex: 1; height: 1.5px; background: var(--color-border); margin: 0 0.2rem; transition: background-color 0.2s; }
.step-connector.done { background: var(--color-step-done-bg); }

@media (prefers-reduced-motion: reduce) {
  .step-num, .step-connector { transition: none; }
}

@media (max-width: 400px) {
  .step-progress { padding: 0.85rem 0.75rem; }
  .step-item { gap: 0.25rem; }
  .step-label { font-size: 0.62rem; }
  .step-num { width: 22px; height: 22px; font-size: 0.6rem; }
  .step-connector { margin: 0 0.1rem; }
}

/* ── Form body ──────────────────────────────────────────── */
.group { padding: 1.25rem; border: none; margin: 0; }
.identity-group { padding-bottom: 0.5rem; }
.identity-group #line-state { margin-bottom: 0; }
.consent-group { padding-top: 0.25rem; }
.group legend {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-text-secondary); text-transform: uppercase;
  display: block; float: none; width: 100%; margin-bottom: 1rem;
}

/* ── Fields ─────────────────────────────────────────────── */
label { display: block; margin-bottom: 0.85rem; }
label > span, .control-label { display: block; font-size: 0.65rem; color: var(--color-text-secondary); margin-bottom: 0.3rem; }
select, input[type="tel"], input[type="text"] {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: var(--radius-field);
  padding: 0.65rem 0.9rem; font-size: 16px; color: var(--color-text); background: var(--color-bg);
  min-height: 48px;
  appearance: none; transition: border-color 0.15s;
}
select:focus, input:focus { outline: none; border-color: var(--color-border-focus); }
select:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Menu chips ─────────────────────────────────────────── */
.service-field { margin-bottom: 0.85rem; }
.service-list {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
.service-list input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-field);
  border: 1.5px solid var(--color-border);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer; user-select: none; min-height: 48px;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.chip::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  align-self: center;
}
.chip:hover { border-color: var(--color-text-secondary); }
/* The real checkbox is visually hidden, so surface its keyboard focus on the chip. */
.chip:focus-within { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }
.chip.selected { border-color: var(--color-chip-selected-border); background: var(--color-chip-selected-bg); color: var(--color-text); font-weight: 600; }
.chip.selected::before {
  border-color: var(--color-chip-selected-border);
  background: var(--color-chip-selected-border);
  box-shadow: inset 0 0 0 4px var(--color-chip-selected-bg);
}
.chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.service-category {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}
.service-category-title {
  display: block;
  font-size: 0.62rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-option { cursor: pointer; }

/* ── Menu dropdown (collapsible multi-select) ───────────── */
.services-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-field);
  padding: 0.65rem 0.9rem; min-height: 48px;
  font-size: 16px; color: var(--color-text); background: var(--color-bg);
  text-align: left; cursor: pointer;
  transition: border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.services-trigger:hover:not(:disabled) { border-color: var(--color-text-secondary); }
.services-trigger:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }
.services-trigger:disabled { opacity: 0.45; cursor: not-allowed; }
.services-trigger-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.services-trigger[aria-expanded="false"] .services-trigger-text:not(.has-selection) { color: var(--color-text-secondary); }
.services-trigger-caret { flex: 0 0 auto; color: var(--color-text-secondary); transition: transform 0.15s; }
.services-trigger[aria-expanded="true"] .services-trigger-caret { transform: rotate(180deg); }
/* In-flow disclosure (NOT an absolute overlay): an absolutely-positioned popover
   would be clipped by the phone-card's `.reservation-panel { overflow: hidden }`
   ancestor. Expanding in normal flow sidesteps that entirely — collapsed by
   default still keeps the form short, and the list scrolls internally when long. */
.services-popover {
  margin-top: 0.35rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-field);
  max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.85rem;
}
.services-popover .service-list { gap: 0.6rem; }
.services-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.services-tags:empty { display: none; }
.services-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--color-chip-selected-bg);
  border: 1.5px solid var(--color-chip-selected-border);
  border-radius: var(--radius-chip);
  padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  font-size: 0.78rem; color: var(--color-text); font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  min-height: 34px;
}
.services-tag:hover { opacity: 0.85; }
.services-tag:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }
.services-tag-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-chip-selected-border); color: var(--color-chip-selected-bg);
  font-size: 0.8rem; line-height: 1; flex: 0 0 auto;
}

/* ── Slot region ─────────────────────────────────────────── */
.slot-region { margin-bottom: 0.85rem; }
.slot-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.slot-header > span { font-size: 0.65rem; color: var(--color-text-secondary); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.icon-button {
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--color-text-secondary); padding: 0.25rem; border-radius: 4px;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.icon-button:hover { background: var(--color-surface); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.slots > .inline-state {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  padding: 0.75rem 0;
  margin: 0;
}
.slot-button {
  border: 1.5px solid var(--color-border); border-radius: var(--radius-slot);
  padding: 0.5rem 0.25rem; text-align: center; font-size: 0.78rem;
  color: var(--color-text); background: var(--color-bg); cursor: pointer;
  min-height: 44px; transition: border-color 0.1s, background-color 0.1s, color 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.slot-button:hover:not(:disabled) { border-color: var(--color-text-secondary); }
.slot-button:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }
.slot-button.slot-selected { border-color: var(--color-slot-selected-bg); background: var(--color-slot-selected-bg); color: var(--color-slot-selected-text); font-weight: 600; }
.slot-button:disabled { background: var(--color-slot-unavailable-bg); color: var(--color-slot-unavailable-text); cursor: not-allowed; text-decoration: line-through; }

/* ── Status output ──────────────────────────────────────── */
.status { display: block; font-size: 0.78rem; color: var(--color-text-secondary); margin-bottom: 0.75rem; min-height: 1.4em; }

.inline-state {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}
.inline-state[data-tone="danger"], .status[data-tone="danger"] { color: var(--color-error); }
.inline-state[data-tone="ok"], .status[data-tone="ok"] { color: var(--color-text); }
.inline-state[data-tone="success"], .status[data-tone="success"] { color: var(--color-success); font-weight: 600; }
.inline-state[data-tone="warning"], .status[data-tone="warning"] { color: var(--color-warning); }
/* Decorative ✓/⚠ shown via CSS so the symbol is not concatenated into the aria-live
   text read aloud (screen readers announce the plain words, the glyph stays visual). */
#line-state[data-tone="success"]::before { content: "✓ "; }
#line-state[data-tone="warning"]::before,
#line-state[data-tone="danger"]::before { content: "⚠ "; }
.auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.12rem;
}
.check span {
  min-width: 0;
  margin: 0;
  color: var(--color-text);
  font-size: 0.86rem;
  line-height: 1.5;
}
.turnstile-area {
  margin: 0 1.25rem 1rem;
  min-height: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 360px) {
  .turnstile-area {
    margin-right: 0;
    margin-left: 0;
  }
}

/* ── CTA buttons ────────────────────────────────────────── */
.cta-btn,
.submit-button,
.back-button,
.auth-row button,
.success-new-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  border-radius: var(--radius-btn);
  padding: 0.9rem 1rem;
  font-size: 16px; font-weight: 600; letter-spacing: 0;
  cursor: pointer; min-height: 48px; transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cta-btn,
.submit-button,
.success-new-btn,
.auth-row button:first-child {
  background: var(--color-btn-bg); color: var(--color-btn-text);
  border: 1.5px solid var(--color-btn-bg);
}
.back-button,
.auth-row button:not(:first-child) {
  background: var(--color-btn-outline-bg);
  color: var(--color-text);
  border: 1.5px solid var(--color-btn-outline-border);
}
.cta-btn:disabled,
.submit-button:disabled,
.auth-row button:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.cta-btn:hover:not(:disabled),
.submit-button:hover:not(:disabled),
.back-button:hover:not(:disabled),
.auth-row button:hover:not(:disabled) {
  opacity: 0.85;
}
.cta-btn--outline { background: var(--color-btn-outline-bg); color: var(--color-text); border: 1.5px solid var(--color-btn-outline-border); margin-top: 0.5rem; }

/* Discoverability hint: tells repeat customers they can skip name/phone entry by
   logging in with LINE (the auto-skip itself happens after LINE verification). Lives
   inside #contact-fields so it disappears once skip mode hides those fields. */
.contact-skip-hint {
  font-size: 0.72rem;
  color: var(--color-text-secondary-strong);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  background: var(--color-surface);
  border-radius: var(--radius-field);
}

/* Inline example under a field (e.g. phone format) */
.field-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-secondary-strong);
  margin-top: 0.3rem;
}

/* Recognized existing-customer contact summary (skip name/phone entry) */
.recognized-contact {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-btn-outline-border);
  border-radius: var(--radius-btn);
  background: var(--color-btn-outline-bg);
}
.recognized-line { margin: 0; font-weight: 600; }
.recognized-phone { margin: 0; opacity: 0.85; }
.link-button {
  align-self: flex-start;
  background: none; border: none; padding: 0.25rem 0;
  color: var(--color-text); font-size: 14px; font-weight: 600;
  text-decoration: underline; cursor: pointer; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.link-button:hover { opacity: 0.85; }
.link-button:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; border-radius: 4px; }

/* Keyboard focus rings on every CTA (WCAG 2.4.7) */
.cta-btn:focus-visible,
.submit-button:focus-visible,
.back-button:focus-visible,
.auth-row button:focus-visible,
.success-new-btn:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

/* LINE login button — brand green + verified ✓ morph */
#line-login { background: var(--color-line); border-color: var(--color-line); color: var(--color-line-text); font-weight: 700; }
#line-login:hover:not(:disabled) { opacity: 0.9; }
#line-login.verified {
  background: var(--color-verified); border-color: var(--color-verified); color: #ffffff;
  cursor: default; animation: lineVerifiedPop 0.3s ease;
}
.auth-row button#line-login.verified:disabled { opacity: 1; }
.line-login-check { display: none; }
#line-login.verified .line-login-check {
  display: inline-block; position: relative; width: 16px; height: 16px; margin-right: 0.45rem; flex: 0 0 auto;
}
#line-login.verified .line-login-check::after {
  content: ""; position: absolute; left: 5px; top: 0; width: 5px; height: 11px;
  border: solid #ffffff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); transform-origin: center;
  animation: lineCheckDraw 0.35s ease 0.05s both;
}
@keyframes lineVerifiedPop { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes lineCheckDraw { 0% { transform: rotate(45deg) scale(0); } 100% { transform: rotate(45deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  #line-login.verified { animation: none; }
  #line-login.verified .line-login-check::after { animation: none; }
}

/* ── Confirm panel ──────────────────────────────────────── */
#confirm-panel { padding: 1.25rem; }
.confirm-panel h2,
.success-panel h2 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}
.confirm-dl {
  display: grid;
  grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr);
  gap: 0.55rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
}
.confirm-dl dt {
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  line-height: 1.6;
}
.confirm-dl dd {
  min-width: 0;
  margin: 0;
  color: var(--color-text);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.confirm-notice,
.success-message {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.confirm-actions {
  display: grid;
  gap: 0.65rem;
}
.confirm-summary { border: 1.5px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 1rem; }
.confirm-summary-header { background: var(--color-text); color: var(--color-btn-text); padding: 0.65rem 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; }
.confirm-summary-body { padding: 0.9rem 1rem; }
.confirm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--color-surface); font-size: 0.8rem; }
.confirm-row:last-child { border-bottom: none; }
.confirm-key { color: var(--color-text-secondary); font-size: 0.65rem; flex: 0 0 auto; }
.confirm-val { color: var(--color-text); font-weight: 500; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* ── Step 2 summary card ────────────────────────────────── */
.step2-summary-shell { padding: 0 1.25rem; margin-bottom: 1rem; }
.step2-summary-card { background: var(--color-surface); border-radius: var(--radius-card); padding: 0.9rem 1rem; margin-bottom: 0.65rem; }
.step2-edit-button { margin: 0; }
.step2-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.78rem; margin-bottom: 0.35rem; }
.step2-row:last-child { margin-bottom: 0; }
.step2-key { color: var(--color-text-secondary); flex: 0 0 auto; }
.step2-val { color: var(--color-text); font-weight: 500; min-width: 0; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 380px) {
  .step2-row,
  .confirm-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }
  .step2-val,
  .confirm-val {
    text-align: left;
  }
  .confirm-dl {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ── Success panel ──────────────────────────────────────── */
#success-panel { padding: 1.25rem; text-align: center; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--color-text); color: var(--color-btn-text); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }

/* ── Resource field (hidden, JS-controlled) ─────────────── */
.resource-field[hidden] { display: none; }

/* ── Turnstile ──────────────────────────────────────────── */
.cf-turnstile { margin: 0.75rem 0; }

/* ── Submit note ────────────────────────────────────────── */
.submit-note { font-size: 0.75rem; color: var(--color-text-secondary-strong); text-align: center; margin-top: 0.75rem; line-height: 1.6; }
