/* Moli's VIP Room — shared styles
   Brand: pine green frame, ink, paper. Cinzel (display), Cormorant Garamond (prose), Instrument Sans (UI). */

:root {
  --pine: #1f3d2b;
  --pine-deep: #142a1d;
  --pine-night: #0e1c14;
  --pine-soft: #47705a;
  --paper: #fbf8f1;
  --paper-2: #f2ecdd;
  --ink: #0d0d0d;
  --gold: #e3b055;
  --gold-deep: #8a5d14;

  --bg: var(--paper);
  --surface: #fffdf8;
  --sunken: var(--paper-2);
  --text: #16201a;
  --muted: #566058;
  --line: #ddd5c0;
  --line-strong: #b9b09a;
  --brand: var(--pine);
  --on-brand: var(--paper);
  --accent: var(--gold-deep);
  --focus: #b3761a;
  --danger: #a32a1e;
  --danger-bg: #fbeae6;
  --warn-bg: #fbf0d4;
  --warn-text: #6b4a08;

  --st-pending: #f6dc9a;   --st-pending-t: #5c3f04;
  --st-confirmed: #bfe0c6; --st-confirmed-t: #12401f;
  --st-completed: #1f3d2b; --st-completed-t: #f3efe4;
  --st-attn: #f3c0b6;      --st-attn-t: #6e170d;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 10px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 42, 29, .06), 0 8px 24px -12px rgba(20, 42, 29, .22);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1813;
    --surface: #17231c;
    --sunken: #121d17;
    --text: #f1ecdf;
    --muted: #a7b1a6;
    --line: #2b3a30;
    --line-strong: #46584b;
    --brand: #e9e2cf;
    --on-brand: #12261a;
    --accent: #e3b055;
    --focus: #f0c06a;
    --danger: #ff9d8c;
    --danger-bg: #3a1a15;
    --warn-bg: #3a2e12;
    --warn-text: #f3d48c;
    --st-pending: #6b4d0d;   --st-pending-t: #ffe9b0;
    --st-confirmed: #24573a; --st-confirmed-t: #d9f2dd;
    --st-completed: #cfe0d0; --st-completed-t: #12261a;
    --st-attn: #7a2318;      --st-attn-t: #ffd9d1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--pine); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

h1, h2, .cal-title { font-family: var(--display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
h3 { font: 600 1rem/1.3 var(--sans); }
.prose { font: 500 1.25rem/1.4 var(--serif); color: var(--muted); max-width: 46ch; }
.fine { font-size: .875rem; color: var(--muted); }

/* ---------- Practice ribbon ---------- */
.practice {
  background: #3a2a06; color: #f6dfa4; text-align: center;
  font-size: .75rem; font-weight: 500; letter-spacing: .02em; padding: 5px 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1c1503; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset; }
.btn-gold:hover { background: #ecbe6a; }
.btn-pay { background: var(--brand); color: var(--on-brand); width: 100%; min-height: 56px; font-size: 1.0625rem; }
.btn-pay:hover { background: color-mix(in srgb, var(--brand) 88%, var(--gold)); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: var(--sunken); }
.btn-danger { background: var(--danger); color: var(--bg); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn-link { background: none; border: 0; padding: 8px 4px; color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.btn-link:hover { text-decoration-color: currentColor; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--paper); background: var(--pine-night); overflow: hidden; isolation: isolate; }
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #0f2218 0%, #1a3a2a 30%, #3d5a40 52%, #a98a4a 70%, #e8b765 82%, #f2cf8e 100%);
  background-size: cover; background-position: center;
}
.hero-photo.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,15,.82) 0%, rgba(10,22,15,.55) 55%, rgba(10,22,15,.25) 100%); }
.hero-photo.has-photo .hero-art { display: none; }
.hero-art { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(300px, 46vw, 560px); }
.ridge.r1 { fill: #5f7a55; opacity: .75; }
.ridge.r2 { fill: #3c5c45; }
.ridge.r3 { fill: #254634; }
.ridge.r4 { fill: #132a1d; }
.pines.far { fill: #1f3d2b; }
.pines.near { fill: #0b1a12; }
.hero-in { position: relative; padding-top: 22px; padding-bottom: 190px; }
.hero-brand { font: 600 .8125rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.hero-brand span { display: block; font: 500 1.0625rem/1.3 var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; opacity: .85; margin-top: 2px; }
.hero-grid { display: grid; gap: 28px; margin-top: clamp(32px, 9vw, 72px); }
.hero h1 { font-size: clamp(2.5rem, 11.5vw, 5.25rem); font-weight: 500; letter-spacing: .03em; line-height: .98; }
.hero-lead { font: 500 clamp(1.375rem, 1.1rem + 1.3vw, 1.75rem)/1.3 var(--serif); margin-top: 18px; max-width: 30ch; color: #f1ead8; }

.pack {
  background: var(--paper); color: #16201a; border-radius: 4px; padding: 22px 22px 20px;
  outline: 1px solid var(--pine); outline-offset: -7px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 24px 48px -20px rgba(0,0,0,.6);
  max-width: 400px;
}
.pack-price { font: 600 clamp(2.75rem, 12vw, 3.5rem)/1 var(--serif); letter-spacing: -.01em; color: var(--pine); font-variant-numeric: lining-nums; }
.pack-line { font: 600 .8125rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; color: var(--pine); }
.pack-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ddd5c0; font-size: .9375rem; color: #36413a; }
.pack-detail strong { color: #16201a; }
.pack .btn { width: 100%; margin-top: 16px; background: var(--pine); color: var(--paper); box-shadow: none; }
.pack .btn:hover { background: #2a5039; }
.pack-foot { font-size: .8125rem; color: #566058; text-align: center; margin-top: 10px; }

@media (min-width: 860px) {
  .hero-in { padding-top: 32px; padding-bottom: 270px; }
  .hero-grid { grid-template-columns: 1fr 380px; align-items: end; gap: 56px; }
  .pack { padding: 30px 30px 26px; }
}

/* One page-load moment: the sun settles behind the ridge */
@media (prefers-reduced-motion: no-preference) {
  .hero-sun { animation: sunset 2.4s cubic-bezier(.2,.7,.2,1) both; transform-origin: center; }
  @keyframes sunset { from { transform: translateY(-70px); opacity: .2; } to { transform: none; opacity: 1; } }
}

/* ---------- Included ---------- */
.incl { padding-block: clamp(40px, 8vw, 72px); }
.incl-head { display: grid; gap: 8px; }
.incl-list { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.incl-list li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.incl-list svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.incl-list strong { display: block; font-weight: 600; }
.incl-list div > span { display: block; color: var(--muted); font-size: .9375rem; }
@media (min-width: 720px) {
  .incl-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .incl-list li:last-child { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .incl-list { grid-template-columns: repeat(5, 1fr); column-gap: 28px; border-top: 0; }
  .incl-list li { grid-template-columns: 1fr; gap: 10px; border: 0; border-top: 2px solid var(--brand); padding: 16px 0 0; }
  .incl-list li:last-child { border-bottom: 0; }
}

.times { display: grid; gap: 12px; margin-top: 28px; }
.time { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; background: var(--sunken); border-radius: var(--r); padding: 16px 18px; }
.time .ico { width: 30px; height: 30px; fill: var(--accent); }
.time .ico { color: var(--accent); }
.time h3 { font: 600 .8125rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.time-hrs { font: 600 1.625rem/1.15 var(--serif); font-variant-numeric: lining-nums; }
.time-note { font-size: .875rem; color: var(--muted); margin-top: 2px; }
.extras { display: grid; gap: 0; align-content: center; padding: 4px 2px; }
.extras div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font-size: .9375rem; }
.extras div:last-child { border-bottom: 0; }
.extras dt { color: var(--muted); }
.extras dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.incl .fine { margin-top: 12px; }
@media (min-width: 860px) { .times { grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; } .extras { padding-left: 12px; } }

/* ---------- Step heads ---------- */
.step-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-bottom: 20px; }
.step-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 600 1.125rem/1 var(--serif); font-variant-numeric: lining-nums;
  border: 1.5px solid var(--brand); color: var(--brand); margin-top: -3px;
}
.step-head .prose { margin-top: 4px; font-size: 1.125rem; }

/* ---------- Calendar ---------- */
.dates { background: var(--sunken); padding-block: clamp(36px, 7vw, 64px); border-block: 1px solid var(--line); }
.dates:focus { outline: none; }
.cal-layout { display: grid; gap: 20px; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px 14px; box-shadow: var(--shadow); }
.cal-bar, .s-monthbar { display: flex; align-items: center; gap: 8px; }
.cal-bar { justify-content: space-between; padding: 2px 4px 10px; }
.cal-title { font-size: 1.0625rem; letter-spacing: .08em; text-align: center; }
.cal-nav { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--text); flex: none; }
.cal-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-nav:hover:not(:disabled) { background: var(--sunken); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal-grid th { font: 500 .75rem/1 var(--sans); color: var(--muted); padding: 6px 0 8px; }
.cal-grid td { padding: 0; vertical-align: top; }
.cd {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; min-height: 58px; padding: 7px 2px 6px;
  background: transparent; border: 1.5px solid transparent; border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.cd-n { font: 600 1rem/1.1 var(--sans); }
.cd-marks { display: flex; gap: 3px; }
.cd-rows { display: none; }
.cd.has-open { background: color-mix(in srgb, var(--surface) 100%, transparent); border-color: var(--line); }
@media (hover: hover) { .cd.has-open:hover { border-color: var(--brand); } }
.cd.is-full .cd-n, .cd.is-off .cd-n { color: var(--muted); font-weight: 500; }
.cd.is-off { cursor: default; }
.cd.is-off .cd-n { opacity: .55; }
.cd.is-closed {
  background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--line-strong) 45%, transparent) 5px 6px);
}
.cd-tag { font-size: .625rem; line-height: 1; color: var(--muted); font-weight: 500; }
.cd.is-today .cd-n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.cd[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cd[aria-pressed="true"] .cd-n, .cd[aria-pressed="true"] .cd-tag { color: inherit; opacity: 1; }
.cd[aria-pressed="true"] .mk { color: inherit; }
.cal.is-loading .cal-grid { opacity: .45; transition: opacity .15s; }

/* slot marks: shape + strike, never colour alone */
.mk { position: relative; width: 16px; height: 16px; display: inline-grid; place-items: center; color: var(--brand); flex: none; }
.mk svg { width: 14px; height: 14px; fill: currentColor; }
.mk.is-off { color: var(--muted); opacity: .6; }
.mk.is-off svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.mk.is-off::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; height: 1.6px; background: currentColor; transform: rotate(-38deg); }
.mk-closed { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-strong); background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-strong) 3px 4px); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 6px 0; font-size: .8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }

@media (min-width: 620px) {
  .cal { padding: 16px 14px 18px; }
  .cal-grid { border-spacing: 5px; }
  .cd { align-items: stretch; min-height: 86px; padding: 8px 9px; text-align: left; gap: 6px; }
  .cd-marks { display: none; }
  .cd-rows { display: grid; gap: 3px; font-size: .75rem; line-height: 1.2; }
  .cd-row { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .cd-row.off { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
  .cd[aria-pressed="true"] .cd-row.off { color: inherit; opacity: .7; }
  .cd-row .mk { width: 13px; height: 13px; }
  .cd-row .mk svg { width: 12px; height: 12px; }
  .cd-row .mk.is-off::after { display: none; }
  .cd-tag { font-size: .75rem; }
}

/* slot chooser */
.slots { display: grid; gap: 10px; align-content: start; }
.slots-empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 22px 20px; }
.slots-empty .prose { font-size: 1.125rem; }
.slots-date { font: 600 1.5rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.slots-sub { font-size: .9375rem; color: var(--muted); margin-top: -4px; }
.slot {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 14px 16px; min-height: 76px;
}
.slot-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--accent); }
.slot-ico svg { width: 24px; height: 24px; fill: currentColor; }
.slot-name { font: 600 .75rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slot-time { white-space: nowrap; font: 600 1.25rem/1.25 var(--serif); font-variant-numeric: lining-nums; display: block; }
.slot-note { font-size: .8125rem; color: var(--muted); display: block; }
.slot-cta { font-weight: 600; font-size: .9375rem; padding: 9px 16px; border-radius: 999px; background: var(--brand); color: var(--on-brand); white-space: nowrap; }
.slot:not(:disabled):hover { border-color: var(--brand); box-shadow: var(--shadow); }
.slot:disabled { cursor: not-allowed; background: transparent; border-style: dashed; color: var(--muted); }
.slot:disabled .slot-time { text-decoration: line-through; text-decoration-thickness: 1px; }
.slot:disabled .slot-ico { color: var(--muted); }
.slot:disabled .slot-cta { background: none; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.slot[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }

@media (min-width: 900px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .slots { position: sticky; top: 20px; }
}

/* ---------- Notices ---------- */
.notice { border-radius: var(--r); padding: 14px 16px; font-size: .9375rem; margin-bottom: 16px; border-left: 4px solid; }
.notice strong { display: block; }
.notice-warn { background: var(--warn-bg); color: var(--warn-text); border-color: currentColor; }
.notice-err { background: var(--danger-bg); color: var(--danger); border-color: currentColor; }
.notice-ok { background: color-mix(in srgb, var(--st-confirmed) 50%, var(--surface)); color: var(--text); border-color: var(--pine-soft); }

/* ---------- Details form ---------- */
.details { padding-block: clamp(36px, 7vw, 64px) 40px; }
.details h2:focus { outline: none; }
.chosen { margin-top: 6px; font: 600 1.25rem/1.3 var(--serif); font-variant-numeric: lining-nums; }
.chosen a { font: 500 .875rem var(--sans); display: inline-block; color: var(--muted); text-underline-offset: 3px; }
.form-grid { display: grid; gap: 28px; }
.fields { display: grid; gap: 22px; }
.f-row { display: grid; gap: 22px; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; gap: 16px; } }
.f { display: grid; gap: 6px; align-content: start; }
.f > label, .f > legend, .login-card label { font-weight: 600; font-size: .9375rem; }
.f > legend { margin-bottom: 8px; }
.legend-sub { display: block; margin: 2px 0 0 !important; }
.legend-sub, .opt { font-weight: 400; color: var(--muted); font-size: .875rem; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808a80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); border-radius: var(--r-sm); }
.hint { font-size: .8125rem; color: var(--muted); }
.err { font-size: .875rem; color: var(--danger); font-weight: 500; display: flex; gap: 6px; align-items: baseline; }
.err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: var(--bg); font-size: .6875rem; font-weight: 700; transform: translateY(-1px); }
.f.has-err input:not([type="checkbox"]):not([type="radio"]), .f.has-err select, .f.has-err textarea { border-color: var(--danger); background: var(--danger-bg); }

.stepper { display: grid; grid-template-columns: 50px 1fr 50px; }
.stepper button { background: var(--sunken); border: 1.5px solid var(--line-strong); font-size: 1.375rem; line-height: 1; min-height: 50px; }
.stepper button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 0; }
.stepper button:hover { background: var(--line); }
.stepper input { border-radius: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.choice-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: grid; gap: 2px; height: 100%; padding: 14px 16px 14px 46px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); position: relative; }
.choice-body::before { content: ""; position: absolute; left: 15px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); }
.choice-body strong { font-weight: 600; }
.choice-body > span { font-size: .875rem; color: var(--muted); }
.choice-body em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--warn-text); background: var(--warn-bg); padding: 3px 8px; border-radius: 4px; justify-self: start; margin-top: 4px; }
.choice input:checked + .choice-body { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }
.choice input:checked + .choice-body::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 45%, var(--surface) 50%); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + .choice-body { background: transparent; border-style: dashed; }
.choice input:disabled + .choice-body strong, .choice input:disabled + .choice-body > span { opacity: .55; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; gap: 1px; place-items: center; text-align: center; min-height: 58px; padding: 8px 6px; font-weight: 600; font-size: .9375rem; border-left: 1.5px solid var(--line-strong); }
.seg label:first-child span { border-left: 0; }
.seg small { font-weight: 400; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg input:checked + span { background: var(--brand); color: var(--on-brand); }
.seg input:checked + span small { color: inherit; opacity: .85; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }

.switch { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; cursor: pointer; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); position: relative; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-ui { width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked ~ .switch-ui { background: var(--pine-soft); }
.switch input:checked ~ .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible ~ .switch-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch-text strong { display: block; font-weight: 600; }
.switch-text > span { font-size: .875rem; color: var(--muted); font-weight: 400; display: block; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; font-weight: 500; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--pine-soft); }

/* Summary — framed like the printed menu */
.sum-frame { background: var(--surface); border: 1px solid var(--brand); outline: 1px solid var(--brand); outline-offset: 4px; margin: 5px; padding: 22px 20px 18px; border-radius: 2px; }
.sum h3 { font: 600 .8125rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sum-when { font: 600 1.375rem/1.25 var(--serif); margin-top: 6px; font-variant-numeric: lining-nums; }
.sum dl div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.sum dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.sum-lines { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; }
.sum-lines dt small { display: block; color: var(--muted); font-size: .8125rem; }
.sum-total { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.sum-total dd { font-weight: 600; }
.sum-pay { margin-top: 14px; display: grid; gap: 8px; font-size: .9375rem; }
.sum-pay .now { background: var(--sunken); margin-inline: -8px; padding: 12px 12px; border-radius: var(--r-sm); align-items: center; }
.sum-pay .now dt { font-weight: 600; }
.sum-pay .now dd { font: 600 1.75rem/1 var(--serif); font-variant-numeric: lining-nums; }
.sum-pay div:not(.now) { color: var(--muted); padding-inline: 4px; }

.review { display: grid; gap: 18px; padding-top: 12px; }
.review .step-head { margin-bottom: 0; }
.rules { background: var(--sunken); border-radius: var(--r); padding: 18px 18px 16px; }
.rules h3 { margin-bottom: 10px; }
.rules ul { display: grid; gap: 8px; font-size: .9375rem; }
.rules li { padding-left: 18px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rules li.tba { color: var(--muted); font-style: italic; }
.rules li.tba::before { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.pay-note { font-size: .875rem; color: var(--muted); }
.review .notice { margin-bottom: 0; }

@media (min-width: 900px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; row-gap: 36px; align-items: start; }
  .fields { grid-column: 1; grid-row: 1; }
  .review { grid-column: 1; grid-row: 2; }
  .sum { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 20px; }
}

/* mobile pay bar */
.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--pine-deep); color: var(--paper);
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,.45);
  transform: translateY(110%); transition: transform .22s ease;
}
.paybar.is-on { transform: none; }
.paybar-text { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; justify-content: start; line-height: 1.2; }
.paybar-k { grid-column: 1 / -1; font-size: .75rem; opacity: .8; }
.paybar strong { font: 600 1.5rem/1.1 var(--serif); font-variant-numeric: lining-nums; }
.paybar-t { font-size: .8125rem; opacity: .8; font-variant-numeric: tabular-nums; }
.paybar .btn { min-height: 44px; padding: 8px 22px; }
@media (min-width: 900px) { .paybar { display: none; } }
body.has-paybar .foot { padding-bottom: 96px; }

/* ---------- Footer ---------- */
.foot { background: var(--pine-deep); color: #d9d6c6; padding: 32px 0 36px; font-size: .9375rem; margin-top: 24px; }
.foot-name { font: 600 .875rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-bottom: 4px; }
.foot-small { margin-top: 12px; font-size: .8125rem; opacity: .8; }

/* ---------- Result page ---------- */
.band { position: relative; background: linear-gradient(180deg, #0f2218 0%, #1f3d2b 55%, #6d6a3e 100%); color: var(--paper); overflow: hidden; }
.band-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding-top: 18px; padding-bottom: 54px; }
.band-brand { font: 600 1rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.band-sub { font: 500 1.0625rem/1.3 var(--serif); font-style: italic; opacity: .85; }
.band-art { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; }
.band .ridge.r4 { fill: var(--bg); }
.band .ridge.r2 { fill: #2d4c38; }

.result { padding-block: 28px 48px; min-height: 60vh; max-width: 720px; }
.result h1 { font-size: clamp(1.625rem, 1.2rem + 2.4vw, 2.5rem); }
.result-lead { font: 500 1.3125rem/1.4 var(--serif); color: var(--muted); margin-top: 10px; max-width: 40ch; }
.result-wait { padding-top: 32px; display: grid; gap: 18px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.result-help { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); max-width: 56ch; }
.result-help strong { color: var(--text); }
.ref { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.pulse { display: flex; gap: 8px; }
.pulse span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.pulse span:nth-child(2) { animation-delay: .15s; } .pulse span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); margin-bottom: 18px; }
.seal svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.seal.is-warn { background: var(--warn-bg); color: var(--warn-text); }
.seal.is-bad { background: var(--danger-bg); color: var(--danger); }
@media (prefers-reduced-motion: no-preference) {
  .seal.is-ok { animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
  .seal.is-ok path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .3s ease-out forwards; }
  .ticket.is-new { animation: rise .6s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes rise { from { transform: translateY(18px); opacity: 0; } }
}

.ticket { margin: 28px 5px 0; background: var(--surface); border: 1px solid var(--brand); outline: 1px solid var(--brand); outline-offset: 4px; border-radius: 2px; }
.ticket-top { padding: 22px 20px 18px; }
.ticket-k { font: 600 .75rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticket-date { font: 600 clamp(1.75rem, 1.3rem + 2vw, 2.25rem)/1.15 var(--serif); margin-top: 6px; font-variant-numeric: lining-nums; }
.ticket-slot { font-size: 1.0625rem; margin-top: 4px; font-weight: 500; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: .875rem; color: var(--muted); }
.ticket-tear { border-top: 1.5px dashed var(--line-strong); margin-inline: 14px; }
.ticket-money { padding: 16px 20px 20px; display: grid; gap: 8px; font-size: .9375rem; }
.ticket-money div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.ticket-money dd { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.ticket-money .due { margin-top: 6px; padding: 12px; margin-inline: -8px; background: var(--sunken); border-radius: var(--r-sm); align-items: center; }
.ticket-money .due dt { font-weight: 600; }
.ticket-money .due dd { font: 600 1.75rem/1 var(--serif); font-variant-numeric: lining-nums; }
.paid-tag { display: inline-flex; align-items: center; gap: 4px; }
.paid-tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.expect { margin-top: 36px; }
.expect h2 { font-size: 1.125rem; margin-bottom: 12px; }
.expect ol { counter-reset: e; display: grid; gap: 0; border-top: 1px solid var(--line); }
.expect li { counter-increment: e; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.expect li::before { content: counter(e); font: 600 1.25rem/1.2 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }
.where { margin-top: 28px; display: grid; gap: 4px; }
.where h2 { font-size: 1.125rem; margin-bottom: 6px; }
.where a { font-weight: 500; text-underline-offset: 3px; justify-self: start; margin-top: 4px; }

/* ---------- Staff ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--pine-deep); }
.login-card { width: 100%; max-width: 380px; background: var(--bg); color: var(--text); padding: 30px 26px 26px; border-radius: 4px; outline: 1px solid var(--pine-soft); outline-offset: -7px; display: grid; gap: 18px; }
.login-brand { font: 600 .8125rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.login-card h1 { font-size: 1.5rem; margin-top: -10px; }

.s-top { background: var(--pine-deep); color: var(--paper); position: sticky; top: 0; z-index: 10; }
.s-top-in { max-width: 1320px; margin-inline: auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-brand { font: 600 .875rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.s-brand span { display: block; font: 500 .9375rem/1.2 var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; opacity: .8; }
.s-top-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.s-top .btn-link { color: var(--paper); font-size: .875rem; text-decoration-color: rgba(255,255,255,.4); }
.s-main { max-width: 1320px; margin-inline: auto; padding: 16px 12px 64px; display: grid; gap: 16px; }
@media (min-width: 720px) { .s-main { padding: 22px 24px 64px; gap: 20px; } .s-top-in { padding-inline: 24px; } }

.attn { background: var(--st-attn); color: var(--st-attn-t); border-radius: var(--r); padding: 14px 16px; border-left: 5px solid var(--danger); }
.attn h2 { font: 600 .9375rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; display: flex; align-items: center; gap: 8px; }
.attn h2::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--st-attn-t); color: var(--st-attn); font-weight: 700; font-size: .8125rem; }
.attn ul { display: grid; gap: 6px; margin-top: 10px; }
.attn button { width: 100%; text-align: left; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 0; border-radius: var(--r-sm); padding: 10px 12px; color: inherit; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.attn button strong { font-weight: 600; }
.attn button span { font-size: .875rem; }

.s-monthbar { flex-wrap: wrap; }
.s-monthbar .cal-title { font-size: 1.125rem; flex: 1; }
@media (min-width: 620px) { .s-monthbar .cal-title { font-size: 1.25rem; flex: none; min-width: 10.5em; } }
.s-load { font-size: .8125rem; color: var(--muted); margin-left: auto; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column-reverse; gap: 2px; }
.tiles dt { font-size: .8125rem; color: var(--muted); }
.tiles dd { font: 600 1.625rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.tiles .is-alert { background: var(--st-attn); border-color: transparent; color: var(--st-attn-t); }
.tiles .is-alert dt { color: inherit; }
.tiles div:first-child { grid-column: 1 / -1; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(5, 1fr); } .tiles div:first-child { grid-column: auto; } }

.s-cols { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1080px) { .s-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; } }

.scal { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.scal th { font: 500 .75rem/1 var(--sans); color: var(--muted); padding: 6px 0; text-align: left; padding-left: 4px; }
.scal td { vertical-align: top; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px; height: 74px; }
.scal td.is-blank { background: none; border-color: transparent; }
.scal td.is-closed { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, color-mix(in srgb, var(--line-strong) 40%, var(--surface)) 6px 7px); }
.scal td.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.scal td.is-pastday .sc-n { opacity: .5; }
.sc-n { font-size: .8125rem; font-weight: 600; padding: 1px 3px 3px; display: flex; justify-content: space-between; gap: 4px; font-variant-numeric: tabular-nums; }
.sc-n small { font-weight: 400; color: var(--muted); font-size: .6875rem; display: none; }
.sslot { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 22px; margin-top: 2px; padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; font-size: .75rem; font-weight: 600; text-align: left; overflow: hidden; white-space: nowrap; }
.sslot svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.sslot .who { overflow: hidden; text-overflow: ellipsis; display: none; }
.sslot .gl { font-weight: 700; }
.sslot.is-open { color: color-mix(in srgb, var(--muted) 60%, transparent); border: 1px dashed transparent; font-weight: 400; }
.sslot.is-open:hover, .sslot.is-open:focus-visible { color: var(--text); border-color: var(--line-strong); }
.sslot.is-open .gl { display: none; }
.sslot.is-open:hover .gl { display: inline; }
.st-pending_payment { background: var(--st-pending); color: var(--st-pending-t); }
.st-confirmed { background: var(--st-confirmed); color: var(--st-confirmed-t); }
.st-completed { background: var(--st-completed); color: var(--st-completed-t); }
.st-needs_attention { background: var(--st-attn); color: var(--st-attn-t); }
.st-cancelled, .st-released { background: var(--sunken); color: var(--muted); }
.sslot.st-pending_payment { background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,.07) 6px 8px); }
.sslot:not(.is-open):hover { filter: brightness(.95); }
@media (min-width: 720px) {
  .scal { border-spacing: 4px; }
  .scal td { height: 96px; padding: 5px; }
  .sslot { min-height: 26px; padding: 3px 6px; font-size: .8125rem; }
  .sc-n small { display: inline; }
  .sslot .who { display: inline; }
  .sslot .gl { display: none; }
  .sslot.is-open .gl { display: none; }
  .sslot.is-open:hover .who { display: inline; }
}
.s-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.s-legend li { display: inline-flex; align-items: center; gap: 6px; }
.st { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.st.st-closed { border: 1px solid var(--line-strong); background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-strong) 3px 4px); }

.s-up h2 { font-size: 1rem; margin-bottom: 10px; }
.up-list { display: grid; gap: 6px; }
.up-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.up-item:hover { border-color: var(--line-strong); }
.up-date { text-align: center; line-height: 1.05; }
.up-date b { display: block; font: 600 1.5rem/1 var(--serif); font-variant-numeric: lining-nums; }
.up-date span { font-size: .6875rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.up-main { min-width: 0; }
.up-main strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-main span { font-size: .8125rem; color: var(--muted); display: block; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.up-empty { color: var(--muted); font-size: .9375rem; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.s-gone { margin-top: 14px; font-size: .875rem; }
.s-gone summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.s-gone .up-list { margin-top: 6px; }

/* dialogs */
dialog { color: var(--text); border: 0; padding: 0; background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 18, 12, .55); }
.sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; box-shadow: -20px 0 40px -20px rgba(0,0,0,.5); overflow-y: auto; }
.modal { width: min(620px, 100vw); max-height: 100dvh; margin: auto; border-radius: var(--r); overflow-y: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
@media (max-width: 640px) { .modal { height: 100dvh; border-radius: 0; margin: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .22s ease-out; }
  @keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
}
.d-head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 1.125rem; }
.d-head p { font-size: .875rem; color: var(--muted); margin-top: 2px; }
.d-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sunken); display: grid; place-items: center; flex: none; font-size: 1.25rem; line-height: 1; }
.d-body { padding: 18px 20px 28px; display: grid; gap: 22px; }
.d-sec h3 { font-size: .8125rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .9375rem; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.kv a { text-underline-offset: 3px; }
.d-when { font: 600 1.5rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.trail { display: grid; gap: 0; font-size: .9375rem; border-left: 2px solid var(--line-strong); margin-left: 5px; }
.trail li { position: relative; padding: 0 0 14px 18px; }
.trail li:last-child { padding-bottom: 0; }
.trail li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.trail li.done::before { background: var(--pine-soft); border-color: var(--pine-soft); }
.trail li.bad::before { background: var(--danger); border-color: var(--danger); }
.trail strong { display: block; font-weight: 600; }
.trail span { color: var(--muted); font-size: .8125rem; display: block; overflow-wrap: anywhere; }
.money { display: grid; gap: 6px; font-size: .9375rem; }
.money div { display: flex; justify-content: space-between; gap: 12px; }
.money dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.money .big { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 600; align-items: baseline; }
.money .big dd { font: 600 1.5rem/1 var(--serif); font-variant-numeric: lining-nums; }
.act { background: var(--sunken); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; }
.act h3 { color: var(--text); font-size: .9375rem; margin: 0; }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act .f > label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.act .btn { width: 100%; }
.confirm { border: 1.5px solid var(--danger); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; }
.confirm p { font-size: .9375rem; }
.confirm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msgbox { width: 100%; min-height: 320px; font-size: .9375rem; line-height: 1.45; background: var(--surface); }
.nb-form { display: grid; gap: 18px; }
.nb-sum { background: var(--sunken); border-radius: var(--r); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9375rem; }
.nb-sum b { font-variant-numeric: tabular-nums; }
.srcseg { grid-auto-columns: 1fr; }
.srcseg span { min-height: 46px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9375rem; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
