/* ============================================================
   wizard.css — the ONE DiveOS wizard pattern stylesheet.
   Self-contained on the bound DS tokens (_ds/styles.css). Ports the
   canonical Dive Plan / Trip Run chrome — white header band → stepper
   → gray body → ledger-first lists → readiness gate → sticky footer —
   so the Booking wizard is a literal visual sibling of those screens.
   The DS React components (Button, Input, Select, Avatar, …) sit INSIDE
   this chrome; this file only styles the wizard skeleton + booking rows.
   ============================================================ */

/* ── Wizard chrome scope ─────────────────────────────────────
   The prototype's global html/body/input resets are intentionally DROPPED:
   the booking wizard mounts INSIDE the DiveOS app layout, which already owns
   body typography, color, and smoothing. We only style the wizard's own
   chrome (scoped to .wz-shell) so nothing leaks to the rest of the app. */
:root {
  --wz-copy-ico: var(--muted-2); --wz-del-ico: var(--muted-2);
  /* near-white row/footer hover + diver-card head — no ramp token is this warm */
  --wz-tint: #FCFCFB;
  --wz-tint-2: #FBFCFD;
}
.wz-shell, .wz-main,
.wz-shell input, .wz-shell textarea, .wz-shell select, .wz-shell button {
  font-family: var(--font-sans);
  font-feature-settings: var(--font-features, normal);
}
.wz-shell { display: flex; flex-direction: column; min-width: 0; background: var(--canvas); }
.wz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--canvas); }
/* Inside the full-bleed shell the wizard is a fixed-height flex column:
   stepper (fixed) → .wz-body (scrolls) → footer (pinned at the bottom).
   The <form> wraps the body + footers, so it must be display:contents for
   them to participate as flex children of .wz-flow. */
.wz-flow { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wz-flow > form { display: contents; }

/* ── Stepper (horizontal, connected) — lifted from .dp-stepper ── */
.wz-stepper { width: 100%; }
.wz-steps { display: flex; max-width: var(--content-max); margin: 0 auto; }
.wz-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 11px; cursor: pointer; background: none; border: 0; font: inherit; padding: 2px 0 2px; }
.wz-step::before { content: ''; position: absolute; top: 20px; right: calc(50% + 30px);
  width: calc(100% - 60px); height: 2px; background: var(--hairline); z-index: 0; }
.wz-step:first-child::before { display: none; }
.wz-step.done::before, .wz-step.active::before { background: var(--accent); }
.wz-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono);
  font-weight: 600; font-size: var(--text-sm); border: 2px solid var(--hairline); color: var(--muted-2);
  background: var(--surface); transition: all .15s ease; }
.wz-step.done .wz-dot { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.wz-step.active .wz-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wz-step:not(.reach):hover .wz-dot { }
.wz-step.reach:hover .wz-dot { border-color: var(--accent); }
.wz-step-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.wz-step.done .wz-step-label { color: var(--muted); }
.wz-step.active .wz-step-label { color: var(--accent); }
.wz-step[disabled] { cursor: default; }

/* ── Vertical spine stepper — lifted from .dp-spine ──────────── */
.wz-spine-grid { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 32px; align-items: start; }
@media (max-width: 1080px) { .wz-spine-grid { grid-template-columns: 1fr; } }
.wz-spine { position: sticky; top: 24px; }
.wz-vsteps { display: flex; flex-direction: column; }
.wz-vstep { display: flex; align-items: flex-start; gap: 14px; padding: 0 0 26px; position: relative;
  cursor: pointer; background: none; border: 0; font: inherit; text-align: left; width: 100%; }
.wz-vstep:last-child { padding-bottom: 0; }
.wz-vstep::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--hairline); }
.wz-vstep:last-child::before { display: none; }
.wz-vstep.done::before, .wz-vstep.active::before { background: var(--accent); }
.wz-vstep .wz-dot { width: 34px; }
.wz-vstep-body { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.wz-vstep-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.wz-vstep.done .wz-vstep-label { color: var(--muted); }
.wz-vstep.active .wz-vstep-label { color: var(--accent); }
.wz-vstep-sub { font-size: var(--text-xs); color: var(--muted-2); }
.wz-vstep[disabled] { cursor: default; }

/* ── Sleek segmented bar stepper (layout="bars") ───────────── */
.wz-bars { width: 100%; }
.wz-bars-inner { display: flex; gap: 10px; max-width: var(--content-max); margin: 0 auto; }
.wz-seg { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; background: none; border: 0; padding: 0; cursor: default; font: inherit; }
.wz-seg .bar { height: 4px; border-radius: 4px; background: var(--hairline); transition: background .25s cubic-bezier(.22,1,.36,1), height .15s ease, box-shadow .15s ease; }
.wz-seg.done .bar, .wz-seg.on .bar { background: var(--accent); }
.wz-seg.on .bar { height: 6px; box-shadow: 0 0 0 3px var(--accent-softer); }
.wz-seg .lbrow { display: flex; align-items: center; gap: 5px; min-width: 0; }
.wz-seg .lb { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .12s ease; }
.wz-seg.done .lb { color: var(--muted); }
.wz-seg.on .lb { color: var(--accent); font-weight: 700; }
/* The check pip is always in the markup (the Stimulus controller only toggles
   state classes, never rebuilds the segment) — show it ONLY on completed steps. */
.wz-seg .tk { display: none; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); color: var(--surface); flex-shrink: 0; }
.wz-seg.done .tk { display: inline-flex; }
.wz-seg.on .lbrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.wz-seg.nav { cursor: pointer; }
.wz-seg.nav:hover .bar { background: var(--accent); }
.wz-seg.done.nav:hover .bar { background: var(--accent-strong); }
.wz-seg.nav:hover .lb { color: var(--ink); }
.wz-seg.done.nav:hover .lb { color: var(--accent); }
/* Keyboard focus ring — the segments are real <button>s now (#85); match the
   wizard's house focus idiom rather than the bare UA outline. */
.wz-seg:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); border-radius: 6px; }

/* ── Header ↔ wizard coupling variants (the `coupling` prop) ── */
/* width:100% so that inside the flex-column .wz-flow the auto side-margins
   don't override align-items:stretch and shrink-wrap the stepper. */
.wz-couple { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 40px; }
.wz-couple-detached { padding-top: 22px; padding-bottom: 4px; }
.wz-pills { display: flex; align-items: center; gap: 4px; max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); padding: 7px 10px; }
.wz-pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px;
  font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: var(--radius-pill); cursor: default; white-space: nowrap; }
.wz-pill .num { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; background: var(--gray-200); color: var(--muted); }
.wz-pill.done { color: var(--gray-700); } .wz-pill.done .num { background: var(--accent); color: var(--surface); }
.wz-pill.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; } .wz-pill.on .num { background: var(--accent); color: var(--surface); }
.wz-pill.nav { cursor: pointer; } .wz-pill.nav:hover { background: var(--surface-alt); }
.wz-pillsep { width: 14px; height: 1px; background: var(--hairline); flex-shrink: 0; }

/* card (V4) — stepper in a card atop the content */
.wz-couple-card { padding-top: 40px; padding-bottom: 6px; }
.wz-couple-card > .wz-bars { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(17,24,39,.04); padding: 16px 24px; box-sizing: border-box; }
.wz-couple-card.bare > .wz-bars { background: transparent; border: 0; box-shadow: none; padding: 4px 0; }

/* Breathing room above the stepper at rest. The stepper is a fixed flex-child
   above the scrolling .wz-body, so once the body scrolls we collapse the margin
   to keep the stepper flush at the top. pos-wizard toggles .is-scrolled from a
   scroll listener on .wz-body. Scoped to .wz-flow so the showcase stepper is
   unaffected. */
.wz-flow > .wz-couple { margin-top: 2rem; transition: margin-top .2s ease;
  /* The page separator is semantically the sticky stepper's bottom edge — it
     belongs to the fixed header region, not the scrolling body. The gap below
     the stepper is carried here as padding-bottom (1.25rem, matching the theme
     space-y margin we strip off .wz-body), so the hairline lands AFTER that gap,
     just above the body content rather than hugging the stepper. Always on. (#129) */
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline); }
.wz-flow > .wz-couple.is-scrolled { margin-top: 0; }

/* header-right tracker (V3) */
.wz-hr-cluster { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wz-track { display: flex; align-items: center; gap: 0; }
.wz-tstep { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: default; font: inherit; }
.wz-tstep.nav { cursor: pointer; }
.wz-tnum { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; border: 1.5px solid var(--hairline); color: var(--muted-2); background: var(--surface); }
.wz-tstep.done .wz-tnum { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.wz-tstep.on .wz-tnum { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-softer); }
.wz-tlbl { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.wz-tstep.on .wz-tlbl { color: var(--accent); } .wz-tstep.done .wz-tlbl { color: var(--muted); }
.wz-tconn { width: 28px; height: 1.5px; background: var(--hairline); margin: 0 2px 18px; }
.wz-tconn.done { background: var(--accent); }

/* ── Gray body + centered inner column — lifted from .dp-body ── */
/* scrollbar-gutter: stable reserves the scrollbar track always, so the body
   width doesn't reflow when the vertical scrollbar appears/disappears — the
   other axis of the #129 stepper bounce. */
.wz-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; background: var(--canvas); }
/* Strip the theme's form-divide utility (form.form > :not([hidden]) ~
   :not([hidden])) off .wz-body — form_with's hidden CSRF/method inputs make
   .wz-body a subsequent sibling, so it otherwise inherits BOTH a border-top and
   a 1.25rem margin-top. The separator + that gap now live on the sticky stepper
   (see .wz-flow > .wz-couple: padding-bottom + border-bottom). !important defeats
   that higher-specificity compiled vendor rule. (#129) */
.wz-flow form.form > .wz-body { margin-top: 0 !important; border-top: 0 !important; }
.wz-inner { max-width: var(--content-max); margin: 0 auto; padding: 30px 40px 40px; }
.wz-inner.narrow { max-width: 880px; }

/* ── Header eyebrow — mono "Bookings / New" breadcrumb ───────── */
.wz-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: var(--text-xs); letter-spacing: 0.01em; margin-bottom: 6px; }
.wz-eyebrow-crumb { color: var(--muted); text-decoration: none; }
.wz-eyebrow-crumb:hover { color: var(--ink); }
.wz-eyebrow-sep { color: var(--muted-2); }
.wz-eyebrow-cur { color: var(--accent); font-weight: 500; }

/* ── Stage intro ──────────────────────────────────────────── */
.wz-stage-head { margin-bottom: 22px; }
.wz-stage-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl);
  letter-spacing: -0.015em; color: var(--ink); }
.wz-stage-head p { margin: 7px 0 0; font-size: var(--text-sm); color: var(--muted); line-height: 1.5; max-width: 64ch; }

/* ── Section head (label ABOVE the ledger — no card-in-card) ── */
.wz-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wz-sec-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.wz-sec-title .t { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.wz-sec-title .c { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-2); white-space: nowrap; }
.wz-sec-head .a { font-size: var(--text-sm); font-weight: 500; color: var(--accent); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font-family: inherit; padding: 0; }
.wz-sec-head .a:hover { color: var(--accent-strong); }

/* ── Ledger (single bordered frame for any list) — from .dp-ledger ── */
.wz-ledger { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.wz-row { display: grid; align-items: center; gap: 18px; padding: 16px 20px; position: relative;
  border-top: 1px solid var(--hairline-2); transition: background .12s ease; }
.wz-row:first-child { border-top: 0; }
.wz-row.link { cursor: pointer; }
.wz-row.link:hover { background: var(--wz-tint); }
.wz-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.wz-row.rail-accent::before { background: var(--accent); }

/* ledger sub-head (group divider band inside a ledger) */
.wz-grouphead { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 20px; background: var(--sky-50); border-top: 1px solid var(--hairline-2); }
.wz-grouphead:first-child { border-top: 0; }
.wz-grouphead .nm { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); min-width: 0; }
.wz-grouphead .dts { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.wz-grouphead .sub { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.wz-grouphead.warm { background: var(--briefing-bg); }
.wz-grouphead.warm .nm { color: var(--briefing); }

/* ── Key/value block — from .dp-kv ──────────────────────────── */
/* stat strip — lifted from the DiveOS booking-detail .statstrip:
   General Sans 600 values, 10px tracked labels, hairline-2 dividers */
.wz-kv { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.wz-kv .cell { padding: 18px 22px; border-left: 1px solid var(--hairline-2); }
.wz-kv.cols-3 .cell:nth-child(3n+1) { border-left: 0; }
.wz-kv .k { display: flex; align-items: center; gap: 7px; font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wz-kv .k .ico { color: var(--muted-2); }
.wz-kv .v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); margin-top: 11px; }
.wz-kv .v.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.01em; }
.wz-kv .v.dash { color: var(--muted-2); font-weight: 500; }
.wz-kv .v.nowrap { white-space: nowrap; }
.wz-kv .sub { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--muted); font-weight: 400; margin-top: 7px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Readiness gate — from .dp-gate / .dp-req (Review + Payment) ── */
.wz-gate { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.wz-gate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.wz-gate-head .t { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--ink); }
.wz-gate-head .s { font-size: var(--text-sm); color: var(--muted); margin-top: 3px; }
.wz-gate-head .tot { text-align: right; }
.wz-gate-head .tot .k { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wz-gate-head .tot .v { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); margin-top: 2px; }
.wz-req { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--hairline-2); font-size: var(--text-sm); }
.wz-req:first-of-type { border-top: 0; }
.wz-req .tick { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.wz-req.ok .tick { background: var(--confirmed-bg); color: var(--confirmed); }
.wz-req.no .tick { background: var(--briefing-bg); color: var(--briefing); }
.wz-req .rtxt { color: var(--ink); }
.wz-req .rtxt b { font-weight: 600; }
.wz-req .rstate { margin-left: auto; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; font-family: var(--font-mono); }
.wz-req.ok .rstate { color: var(--confirmed); }
.wz-req.no .rstate { color: var(--briefing); }
.wz-gate-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 22px; border-top: 1px solid var(--hairline); background: var(--wz-tint); }

/* ── Sticky footer (standardized Back / hint / Next) ─────────── */
.wz-foot { position: sticky; bottom: 0; z-index: 20; background: var(--surface);
  border-top: 1px solid var(--hairline); box-shadow: 0 -1px 2px rgba(17,24,39,.03); }
.wz-foot-inner { max-width: var(--content-max); margin: 0 auto; padding: 14px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.wz-foot .grp { display: flex; align-items: center; gap: 10px; }
.wz-foot .grp.start { justify-self: start; }
.wz-foot .grp.center { justify-self: center; }
.wz-foot .grp.end { justify-self: end; }
/* Hairline divider between Back and the destructive Discard link. */
.wz-foot-sep { display: inline-block; width: 1px; align-self: stretch; min-height: 20px;
  margin: 0 2px; background: var(--hairline-strong); }
/* Quiet, never-filled destructive text-link (Discard exit). The ghost
   variant supplies the transparent base; this only recolours it rose. */
.dv-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.dv-btn--ghost:hover { background: var(--cancelled-bg); }
.btn-destructive { color: var(--cancelled); }
.btn-destructive:hover { color: var(--cancelled); }
.wz-foot-hint { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); color: var(--muted-2); white-space: nowrap; }
.wz-foot-hint .kbd { font-family: var(--font-mono); font-size: var(--text-xs); padding: 2px 6px; background: var(--gray-100); border: 1px solid var(--hairline); border-radius: 4px; color: var(--muted); }
.wz-foot-hint .req { display: inline-flex; align-items: center; gap: 6px; color: var(--briefing); font-weight: 600; }
.wz-foot .total { display: flex; align-items: baseline; gap: 9px; margin-right: 4px; }
.wz-foot .total .k { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wz-foot .total .v { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

/* ════════════════════════════════════════════════════════════
   Booking-specific rows (still ledger-first; just column templates)
   ════════════════════════════════════════════════════════════ */

/* ── Guest result row ─────────────────────────────────────── */
.wz-guest { grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; }
.wz-guest .id { display: flex; align-items: center; gap: 9px; }
.wz-guest .nm { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--ink); }
.wz-guest .sub { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: var(--text-xs); color: var(--muted); margin-top: 3px; }
.wz-guest .sub .mono { font-family: var(--font-mono); white-space: nowrap; }
.wz-guest.sel { background: var(--accent-softer); }
.wz-pick { font-size: var(--text-xs); font-weight: 600; color: var(--accent); white-space: nowrap; }
/* outline tag badge (Hotel guest / Walk-in / Diver …) */
.wz-tagbadge { display: inline-flex; align-items: center; padding: 1px 8px; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted); background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill); white-space: nowrap; }
.wz-changelink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--accent); cursor: pointer; margin-top: 14px; }
.wz-changelink:hover { color: var(--accent-strong); }

/* guest search field (44px, search icon room at left) */
.wz-guest-search { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px 0 42px;
  font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink); background: var(--surface);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm); outline: none; }
.wz-guest-search:focus { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.wz-guest-results { margin-top: 14px; }
/* Resting/empty search state — bordered (no fill) so it reads as a panel, not floating. */
.wz-guest-empty { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 24px; color: var(--muted); background: transparent;
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.wz-guest-empty .ico { color: var(--muted-2); margin-bottom: 12px; display: flex; }
.wz-guest-empty .t { font-size: var(--text-md); font-weight: 600; color: var(--ink); }
.wz-guest-empty .s { margin: 6px 0 0; font-size: var(--text-sm); }

/* setting row (email toggle) — tinted accent-softer when ON */
.wz-setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); padding: 16px 20px; margin-top: 20px; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.wz-setrow.on { background: var(--accent-softer); border-color: var(--accent-border); }
/* DS ToggleSwitch (checkbox-backed) */
.wz-toggle { position: relative; display: inline-flex; flex-shrink: 0; }
.wz-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.wz-toggle-track { display: inline-flex; align-items: center; width: 42px; height: 24px; padding: 2px;
  background: var(--gray-300); border-radius: 999px; transition: background .15s ease; }
.wz-toggle-thumb { width: 20px; height: 20px; background: var(--surface); border-radius: 50%;
  box-shadow: 0 1px 2px rgba(17,24,39,.18); transition: transform .15s cubic-bezier(.22,1,.36,1); }
.wz-toggle input:checked + .wz-toggle-track { background: var(--accent); }
.wz-toggle input:checked + .wz-toggle-track .wz-toggle-thumb { transform: translateX(18px); }
.wz-toggle input:focus-visible + .wz-toggle-track { box-shadow: 0 0 0 3px var(--focus-ring); }
.wz-setrow .lead { display: flex; gap: 13px; align-items: flex-start; }
.wz-setrow .ico { color: var(--muted-2); margin-top: 1px; }
.wz-setrow .t { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.wz-setrow .s { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }
.wz-setrow .s b { color: var(--ink); font-weight: 600; }

/* ── Diver block: section head + ledger ───────────────────── */
.wz-diver { margin-bottom: 26px; }
.wz-diver-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.wz-diver-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.wz-diver-id .nm { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--ink); }
.wz-name-input { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px dashed var(--input-border); padding: 2px 0; outline: none; min-width: 200px; }
.wz-name-input:focus { border-bottom-color: var(--accent); }
.wz-diver-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wz-diver-tot { font-family: var(--font-mono); font-size: var(--text-md); font-weight: 500; color: var(--ink); }
.wz-diver-tot.zero { color: var(--muted-2); }
.wz-iconbtn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted-2); border-radius: var(--radius-sm); cursor: pointer; }
.wz-iconbtn:hover { background: var(--gray-100); color: var(--cancelled); }

/* date chips */
.wz-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wz-dates .cap { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-right: 2px; }
.wz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 11px; font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 500; color: var(--accent); background: var(--accent-softer);
  border: 1px solid var(--accent-border); border-radius: 999px; white-space: nowrap; }
.wz-chip button { display: inline-flex; padding: 0; border: 0; background: none; color: var(--accent); opacity: .6; cursor: pointer; }
.wz-chip button:hover { opacity: 1; }
.wz-adddate { position: relative; display: inline-flex; }
.wz-adddate-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; font: inherit; font-size: var(--text-xs);
  font-weight: 500; color: var(--accent); background: transparent; border: 1px dashed var(--accent-border); border-radius: 999px; cursor: pointer; }
.wz-adddate-btn:hover { background: var(--accent-softer); }
.wz-menu { position: absolute; top: 100%; left: 0; margin-top: 6px; min-width: 210px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-panel); padding: 6px; z-index: 30; }
.wz-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; font: inherit; font-size: var(--text-sm);
  color: var(--ink); background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.wz-menu button:hover { background: var(--gray-50); }
.wz-menu .ico { color: var(--muted-2); }
.wz-menu .empty { padding: 8px 10px; font-size: var(--text-xs); color: var(--muted-2); }

/* date sub-section inside a diver card */
.wz-datesec { border-top: 1px solid var(--hairline); }
.wz-datesec:first-child { border-top: 0; }
/* date as a real section title */
.wz-dsec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 8px; }
.wz-dsec-title .lhs { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.wz-dsec-title .cal { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.wz-dsec-title .d { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); letter-spacing: -0.01em; color: var(--ink); }
.wz-dsec-x { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: transparent; color: var(--muted-2); border-radius: var(--radius-sm); cursor: pointer; opacity: 0.55; transition: opacity .12s, background .12s, color .12s; }
.wz-datesec:hover .wz-dsec-x { opacity: 1; }
.wz-dsec-x:hover { background: var(--gray-100); color: var(--ink); }
/* placeholder add row at the bottom of each date section */
.wz-dsec-add { display: flex; gap: 8px; padding: 8px 20px 16px; }
.wz-addph { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; font: inherit; font-size: var(--text-xs); font-weight: 500;
  color: var(--accent); background: transparent; border: 1px dashed var(--accent-border); border-radius: var(--radius-pill); cursor: pointer; }
.wz-addph:hover { background: var(--accent-softer); }
.wz-addph.add { color: var(--confirmed); border-color: var(--confirmed-border); }
.wz-addph.add:hover { background: var(--confirmed-bg); }
/* add-date placeholder pinned at the bottom of the card */
.wz-adddate-row { padding: 12px 20px 14px; border-top: 1px solid var(--hairline); }
.wz-adddate.block { display: block; }
.wz-adddate.block .wz-adddate-btn { width: 100%; justify-content: center; height: 42px; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.wz-adddate.block .wz-menu { width: 100%; }

/* line item row — editable price + per-item actions */
.wz-li { display: grid; grid-template-columns: 22px minmax(0,1fr) 104px 98px 92px 56px; align-items: center; gap: 12px; padding: 8px 20px; }
.wz-li .kind { display: inline-flex; justify-content: center; }
/* micro column header — printed once on the first item of each date section */
.wz-li-head { display: grid; grid-template-columns: 22px minmax(0,1fr) 104px 98px 92px 56px; gap: 12px; padding: 4px 20px 2px; }
.wz-li-head span { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.wz-li-head .h-qty { text-align: center; }
.wz-li-head .h-unit, .wz-li-head .h-total { text-align: right; }
.wz-li .kind.pkg { color: var(--accent); }
.wz-li .kind.add { color: var(--confirmed); }
.wz-li .qtywrap { display: flex; justify-content: center; }
.wz-li .amt { text-align: right; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.wz-li-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.wz-li-acts .wz-iconbtn { opacity: 0.5; transition: opacity .12s ease, background .12s ease, color .12s ease; }
.wz-li:hover .wz-li-acts .wz-iconbtn, .wz-li:focus-within .wz-li-acts .wz-iconbtn { opacity: 1; }
.wz-iconbtn.apply:hover { background: var(--accent-soft); color: var(--accent); }
/* tweakable row-action icon colors (copy / delete) — set the stroke directly
   (these are stroke icons; overrides their stroke="currentColor"). :root default = muted. */
.wz-li .wz-iconbtn.apply svg { stroke: var(--wz-copy-ico); }
.wz-li .wz-iconbtn.del svg { stroke: var(--wz-del-ico); }
.wz-li .wz-iconbtn.apply:hover { background: var(--accent-soft); }
.wz-li .wz-iconbtn.del:hover { background: var(--cancelled-bg); }
.wz-li-empty { padding: 9px 20px 13px; font-size: var(--text-sm); font-style: italic; color: var(--muted-2); }

/* Single diver card (accordion) — identity, dates and items in ONE frame */
.wz-dcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; margin-bottom: 14px; }
.wz-dcard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 20px; background: var(--wz-tint-2); border-bottom: 1px solid var(--hairline); }
.wz-dcard-head .wz-diver-id { gap: 11px; }
/* high-stakes diver removal — distinct from the line/chip × ; needs confirm */
.wz-dremove { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted-2); border-radius: var(--radius-sm); cursor: pointer; }
.wz-dremove:hover { background: var(--cancelled-bg); color: var(--cancelled); }
.wz-dconfirm { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px;
  background: var(--cancelled-bg); border: 1px solid var(--cancelled-border); border-radius: var(--radius-pill); }
.wz-dconfirm .q { font-size: var(--text-xs); font-weight: 500; color: var(--cancelled); white-space: nowrap; }
.wz-dconfirm .yes { height: 28px; padding: 0 12px; font: inherit; font-size: var(--text-xs); font-weight: 600; color: var(--surface);
  background: var(--cancelled); border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.wz-dconfirm .no { height: 28px; padding: 0 10px; font: inherit; font-size: var(--text-xs); font-weight: 500; color: var(--muted);
  background: transparent; border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.wz-dconfirm .no:hover { color: var(--ink); }
.wz-dcard-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px;
  border-bottom: 1px solid var(--hairline-2); }
.wz-dcard-dates .cap { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-right: 2px; }
.wz-dcard-body { padding: 2px 0 8px; }
.wz-dcard-body .wz-datesec:first-child { border-top: 0; }

/* catalogue select shell */
.wz-sel { position: relative; min-width: 0; }
.wz-sel select { appearance: none; -webkit-appearance: none; width: 100%; height: 34px; padding: 0 30px 0 11px;
  font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--surface); border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); cursor: pointer; text-overflow: ellipsis; }
.wz-sel select:focus { outline: none; border-color: var(--input-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.wz-sel .chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted-2); }

/* qty stepper — POS-sized touch targets (>=36px) */
.wz-qty { display: inline-flex; align-items: center; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.wz-qty button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.wz-qty button:hover { background: var(--gray-100); color: var(--ink); }
.wz-qty button:active { background: var(--gray-200); }
.wz-qty .n { min-width: 26px; text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }

/* editable price field — persistent field affordance so it reads as editable at rest */
.wz-price { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); background: var(--gray-50); padding: 0 8px 0 9px; gap: 1px; transition: border-color .12s, box-shadow .12s, background .12s; cursor: text; }
.wz-price:hover { border-color: var(--gray-300); background: var(--surface); }
.wz-price:focus-within { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); background: var(--surface); }
.wz-price .cur { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-2); }
.wz-price input { width: 56px; border: 0; background: transparent; outline: none; font-family: var(--font-mono);
  font-size: var(--text-sm); color: var(--ink); text-align: right; padding: 0; -moz-appearance: textfield; }
.wz-price input::-webkit-outer-spin-button, .wz-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* add-diver dashed button */
.wz-add-diver { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; width: 100%;
  font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--accent); background: transparent;
  border: 1.5px dashed var(--accent-border); border-radius: var(--radius-lg); cursor: pointer; }
.wz-add-diver:hover { background: var(--accent-softer); }
.wz-copy { display: flex; align-items: center; gap: 6px; padding: 11px 20px; background: var(--wz-tint);
  border-top: 1px solid var(--hairline-2); font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--accent); border: 0; cursor: pointer; width: 100%; }
.wz-copy:hover { color: var(--accent-strong); }

/* ── Order summary rail (Step 2) ──────────────────────────── */
.wz-2col { display: grid; grid-template-columns: minmax(0,1fr) 332px; gap: 30px; align-items: start; }
@media (max-width: 1080px) { .wz-2col { grid-template-columns: 1fr; } .wz-sum { position: static; } }
.wz-sum { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.wz-sum-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.wz-sum-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.wz-sum-head .t { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wz-sum-scroll { max-height: 44vh; overflow-y: auto; padding: 4px 18px; }
.wz-sum-grp { padding: 12px 0; border-top: 1px solid var(--hairline-2); }
.wz-sum-grp:first-child { border-top: 0; }
.wz-sum-grp .gh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.wz-sum-grp .gh .nm { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.wz-sum-grp .gh .nm.unset { color: var(--muted-2); }
.wz-sum-grp .gh .nm.warm { color: var(--gray-700); }
.wz-sum-grp .gh .tt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.wz-sum-line { display: flex; justify-content: space-between; gap: 8px; font-size: var(--text-xs); padding: 2px 0; }
.wz-sum-line .nm { color: var(--gray-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-sum-line .dt { color: var(--muted-2); font-family: var(--font-mono); }
.wz-sum-line .amt { font-family: var(--font-mono); color: var(--muted); flex-shrink: 0; }
.wz-sum-line.empty { font-style: italic; color: var(--muted-2); }
.wz-sum-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--hairline); background: var(--wz-tint); }
.wz-sum-total .k { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wz-sum-total .v { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }

/* Static Order summary panel — distinct cool slate hue vs the white editable cards */
.wz-sum-card.summary { background: var(--slate-100); border-color: var(--slate-300); }
.wz-sum-card.summary .wz-sum-head { border-bottom-color: var(--slate-200); }
.wz-sum-card.summary .wz-sum-head .t { color: var(--slate-500); }
.wz-sum-card.summary .wz-sum-grp { border-top-color: var(--slate-200); }
.wz-sum-card.summary .wz-sum-line .amt { color: var(--slate-500); }
.wz-sum-card.summary .wz-sum-total { background: var(--slate-200); border-top-color: var(--slate-300); }

/* ── Review line rows ─────────────────────────────────────── */
.wz-rev-li { display: grid; grid-template-columns: 22px minmax(0,1fr) 56px 92px; align-items: center; gap: 16px;
  padding: 13px 20px; border-top: 1px solid var(--hairline-2); }
.wz-rev-li .nm { font-size: var(--text-sm); font-weight: 500; color: var(--ink); display: block; }
.wz-rev-li .dt { display: block; font-size: var(--text-xs); color: var(--muted-2); margin-top: 2px; }
.wz-rev-li .qty { text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gray-700); }
.wz-rev-li .amt { text-align: right; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.wz-rev-total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--hairline); background: var(--wz-tint); }
.wz-rev-total .k { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.wz-rev-total .v { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 500; color: var(--ink); }

/* ── Payment ──────────────────────────────────────────────── */
.wz-addpay { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-pm { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font: inherit; font-size: var(--text-sm);
  font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); cursor: pointer; transition: all .12s ease; }
.wz-pm:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-softer); }
.wz-pm .ico { color: var(--muted); } .wz-pm:hover .ico { color: var(--accent); }
.wz-payrow { display: grid; grid-template-columns: 168px 1fr 1fr 30px; gap: 16px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--hairline-2); }
/* unified payment card sections */
.wz-pay-add { padding: 16px 20px; }
/* title row inside a card */
.wz-cardtitle { display: flex; align-items: baseline; gap: 8px; padding: 15px 20px; border-bottom: 1px solid var(--hairline); }
.wz-cardtitle .t { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.wz-cardtitle .c { font-size: var(--text-xs); color: var(--muted-2); }
.wz-paysec-head { display: flex; align-items: baseline; gap: 8px; padding: 16px 20px 4px; border-top: 1px solid var(--hairline); }
.wz-paysec-head .t { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.wz-paysec-head .c { font-size: var(--text-xs); color: var(--muted-2); }
/* attribution — selectable staff chips + compact commission */
.wz-attr { padding: 4px 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.wz-attr-search { position: relative; margin-bottom: 10px; max-width: 320px; }
.wz-attr-search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; display: flex; }
.wz-attr-search input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 12px 0 34px; font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius-sm); outline: none; }
.wz-attr-search input:focus { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.wz-attr-empty { font-size: var(--text-sm); color: var(--muted); font-style: italic; padding: 4px 2px; }
/* Selected agent/staff card (when picked via search rather than a chip). */
.wz-attr-selected { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px; background: var(--accent-softer); border: 1px solid var(--accent-border); border-radius: var(--radius-pill); }
.wz-attr-selected .badge { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.wz-attr-selected .nm { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.wz-attr-selected .rm { display: inline-flex; color: var(--muted-2); background: none; border: 0; cursor: pointer; padding: 2px; }
.wz-attr-selected .rm:hover { color: var(--cancelled); }
.wz-attr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-attr-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 7px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.wz-attr-chip:hover { border-color: var(--accent-border); background: var(--accent-softer); }
.wz-attr-chip.on { border-color: var(--accent); background: var(--accent-softer); }
.wz-attr-chip .who { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.wz-attr-chip .nm { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.wz-attr-chip .role { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.wz-attr-chip.on .role { color: var(--accent); }
.wz-attr-chip .tick { display: inline-flex; color: var(--accent); margin-left: 2px; }
.wz-attr-comm { max-width: 280px; }
.wz-attr-commrow { display: flex; align-items: center; gap: 12px; }
.wz-attr-default { font-size: var(--text-xs); color: var(--muted); }
.wz-attr-default button { background: none; border: 0; color: var(--accent); font: inherit; font-size: var(--text-xs); cursor: pointer; padding: 0; margin-left: 6px; }
.wz-attr-default button:hover { color: var(--accent-strong); }
.wz-payrow > div { min-width: 0; }
.wz-fl { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; min-height: 14px; }
.wz-payrow .wz-rm { align-self: start; margin-top: 20px; }
.wz-payrow:first-child { border-top: 0; }
.wz-fl .req { color: var(--error); }
.wz-mi { width: 100%; box-sizing: border-box; height: 36px; padding: 0 11px; font: inherit; font-size: var(--text-sm); color: var(--ink);
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius-sm); outline: none; }
.wz-mi.mono { font-family: var(--font-mono); }
.wz-mi:focus { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.wz-paysub { font-size: var(--text-xs); color: var(--muted); margin-top: 6px; }
.wz-paysub.ok { color: var(--confirmed); }
.wz-pay-readonly { height: 36px; display: flex; align-items: center; font-size: var(--text-sm); color: var(--muted-2); }

/* ── Done ─────────────────────────────────────────────────── */
.wz-done { max-width: 620px; margin: 12px auto 0; }
.wz-done-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 26px; }
.wz-done-ring { width: 60px; height: 60px; border-radius: 50%; background: var(--confirmed-bg); display: flex; align-items: center; justify-content: center; color: var(--confirmed); margin-bottom: 18px; }
.wz-done-hero h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.02em; color: var(--ink); }
.wz-done-hero p { margin: 8px 0 0; font-size: var(--text-sm); color: var(--muted); max-width: 46ch; }
.wz-done-hero .ref { font-family: var(--font-mono); font-weight: 600; color: var(--gray-700); }

/* ── Compact density ──────────────────────────────────────── */
.wz-compact .wz-inner { padding-top: 22px; }
.wz-compact .wz-row, .wz-compact .wz-li, .wz-compact .wz-rev-li { padding-top: 6px; padding-bottom: 6px; }
.wz-compact .wz-req { padding-top: 11px; padding-bottom: 11px; }
.wz-compact .wz-diver { margin-bottom: 20px; }

/* small helpers */
.wz-flex { display: flex; align-items: center; }
.wz-mono { font-family: var(--font-mono); }

/* ════════════════════════════════════════════════════════════
   Selected-guest card (Step 1) — unmistakably "chosen"
   ════════════════════════════════════════════════════════════ */
.wz-selguest { border: 1.5px solid var(--accent); background: var(--accent-softer); border-radius: var(--radius-lg);
  overflow: hidden; }
.wz-selguest-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px;
  background: var(--accent); }
.wz-selguest-bar .lbl { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-2xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--surface); }
.wz-selguest-bar .chk { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--surface); }
.wz-selguest-body { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.wz-selguest-body .nm { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--ink); }

/* Additional guests on Step 1 (party beyond the primary) */
.wz-party-sec { margin-top: 22px; }
.wz-party-lbl { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.wz-party-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hairline-2); }
.wz-party-row:first-child { border-top: 0; }
.wz-party-row .nm { font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.wz-party-row .sub { font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
.wz-party-row .sub .mono { font-family: var(--font-mono); }
.wz-addguest { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 14px; font: inherit;
  font-size: var(--text-sm); font-weight: 500; color: var(--accent); background: transparent;
  border: 1px solid var(--accent-border); border-radius: var(--radius-sm); cursor: pointer; }
.wz-addguest:hover { background: var(--accent-softer); }
.wz-addpanel { margin-top: 18px; padding: 16px; background: var(--gray-50); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.wz-addpanel .wz-party-lbl { margin-bottom: 10px; }
.wz-addpanel .wz-changelink { margin-top: 12px; }
/* When the party card hosts the register form in place, drop its own card chrome
   so there's a single container (the form), not a card-within-a-card. */
.wz-addpanel.is-bare { padding: 0; background: transparent; border: 0; }
.wz-addpanel.is-bare .wz-reg-panel { margin-top: 0; }
/* The two party actions share one style: matching solid-stroke buttons. */
.wz-party-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.wz-party-actions .wz-addguest,
.wz-party-actions .wz-reg-link { margin-top: 0; padding: 9px 14px; font-size: var(--text-sm); font-weight: 500;
  color: var(--accent); background: transparent; border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm); cursor: pointer; }
.wz-party-actions .wz-addguest:hover,
.wz-party-actions .wz-reg-link:hover { background: var(--accent-softer); color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   Inline register-a-diver (Step 1) — two entry points, one panel
   ════════════════════════════════════════════════════════════ */
/* (A) Persistent register button — same solid-stroke style as "Add another
   guest" so every register/add affordance looks consistent. */
.wz-reg-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 14px;
  font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--accent); background: transparent;
  border: 1px solid var(--accent-border); border-radius: var(--radius-sm); cursor: pointer; }
.wz-reg-link:hover { background: var(--accent-softer); color: var(--accent); }

/* (B) No-match empty state inside the results ledger */
.wz-reg-empty { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 28px 24px; }
.wz-reg-empty-msg { font-size: var(--text-sm); color: var(--muted); }
.wz-reg-empty-msg .q { font-weight: 600; color: var(--ink); }
/* Secondary button — outline only, NO fill (register is a fallback here). */
.wz-reg-empty-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--accent); background: transparent;
  border: 1px solid var(--accent-border); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .12s, color .12s; }
.wz-reg-empty-cta:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Shared inline panel */
.wz-reg-panel { margin-top: 16px; padding: 18px; background: var(--gray-50);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.wz-reg-panel .wz-party-lbl { margin-bottom: 14px; }
.wz-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-reg-field { display: flex; flex-direction: column; }
.wz-reg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.wz-reg-cancel { padding: 9px 16px; font: inherit; font-size: var(--text-sm); font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm); cursor: pointer; }
.wz-reg-cancel:hover { background: var(--gray-50); }
.wz-reg-submit { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--surface); background: var(--accent);
  border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.wz-reg-submit:hover { background: var(--accent-strong); }
.wz-reg-errors { margin-bottom: 14px; padding: 10px 12px; font-size: var(--text-sm); color: var(--error);
  background: var(--cancelled-bg); border: 1px solid var(--cancelled-border); border-radius: var(--radius-sm); }
.wz-reg-errors > div + div { margin-top: 4px; }
@media (max-width: 540px) { .wz-reg-grid { grid-template-columns: 1fr; } }

/* Review summary — on-system entity header + dividerless KPI row */
.wz-rev-summary { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; margin-bottom: 24px; }
.wz-rev-party { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.wz-rev-party .who { min-width: 0; flex: 1; }
.wz-rev-party .nm { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; color: var(--ink); }
.wz-rev-party .sub { font-size: var(--text-sm); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-rev-party .sub .mono { font-family: var(--font-mono); }
.wz-rev-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
.wz-rev-stats .cell { padding: 14px 22px; }
.wz-rev-stats .k { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wz-rev-stats .v { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-top: 6px; }
.wz-rev-stats .v.accent { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   ALT — Dives "Table" pattern (flat editable ledger)
   ════════════════════════════════════════════════════════════ */
.wz-tbl { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.wz-tbl-head, .wz-trow { display: grid; grid-template-columns: 168px 132px minmax(0,1fr) 96px 104px 96px 40px; gap: 14px; align-items: center; }
.wz-tbl-head { padding: 11px 20px; border-bottom: 1px solid var(--hairline); background: var(--wz-tint);
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.wz-tbl-head .r, .wz-trow .amt { text-align: right; }
.wz-trow { padding: 9px 20px; border-top: 1px solid var(--hairline-2); }
.wz-trow:first-of-type { border-top: 0; }
.wz-trow .amt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.wz-trow .diver-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wz-trow .diver-cell .nm { font-size: var(--text-sm); font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-trow.rowspan-start { border-top: 1px solid var(--hairline); }
.wz-tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-top: 1px solid var(--hairline); background: var(--wz-tint); }
.wz-tbl-addrow { display: flex; align-items: center; gap: 8px; padding: 11px 20px; border-top: 1px solid var(--hairline-2); }
.wz-tbl-total { font-family: var(--font-mono); font-size: var(--text-md); font-weight: 500; color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   ALT — Review "Invoice" document pattern
   ════════════════════════════════════════════════════════════ */
.wz-inv { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card, 0 1px 2px rgba(17,24,39,.04)); overflow: hidden; }
.wz-inv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 30px; border-bottom: 1px solid var(--hairline); }
.wz-inv-head .brand { display: flex; align-items: center; gap: 11px; }
.wz-inv-head .brand .pname { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--ink); letter-spacing: -0.01em; }
.wz-inv-head .brand .tname { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.wz-inv-head .meta { text-align: right; }
.wz-inv-head .meta .doc { font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wz-inv-head .meta .ref { font-family: var(--font-mono); font-size: var(--text-md); color: var(--ink); margin-top: 5px; }
.wz-inv-head .meta .dt { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }
.wz-inv-party { display: grid; grid-template-columns: 1fr 1fr; }
.wz-inv-party .cell { padding: 18px 30px; border-right: 1px solid var(--hairline-2); }
.wz-inv-party .cell:last-child { border-right: 0; }
.wz-inv-party .k { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wz-inv-party .v { font-size: var(--text-sm); color: var(--ink); margin-top: 7px; font-weight: 500; }
.wz-inv-party .s { font-size: var(--text-xs); color: var(--muted); margin-top: 3px; }
.wz-inv-tbl-head { display: grid; grid-template-columns: minmax(0,1fr) 120px 56px 100px; gap: 16px; padding: 11px 30px;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--wz-tint);
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.wz-inv-tbl-head .c { text-align: center; } .wz-inv-tbl-head .r { text-align: right; }
.wz-inv-grp { padding: 13px 30px 5px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.wz-inv-grp.warm { color: var(--briefing); }
.wz-inv-li { display: grid; grid-template-columns: minmax(0,1fr) 120px 56px 100px; gap: 16px; align-items: center; padding: 9px 30px; }
.wz-inv-li .nm { font-size: var(--text-sm); color: var(--ink); }
.wz-inv-li .dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.wz-inv-li .qty { text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gray-700); }
.wz-inv-li .amt { text-align: right; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.wz-inv-totals { display: flex; justify-content: flex-end; padding: 18px 30px 26px; border-top: 1px solid var(--hairline); margin-top: 8px; }
.wz-inv-totals .box { width: 300px; }
.wz-inv-totals .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--text-sm); color: var(--muted); }
.wz-inv-totals .line .v { font-family: var(--font-mono); color: var(--ink); }
.wz-inv-totals .grand { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; margin-top: 6px; border-top: 1px solid var(--hairline); }
.wz-inv-totals .grand .k { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.wz-inv-totals .grand .v { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   ALT — Payment "Balance-led" pattern (booking-detail .bal)
   ════════════════════════════════════════════════════════════ */
.wz-bal-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 1020px) { .wz-bal-grid { grid-template-columns: 1fr; } }
.wz-bal { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(17,24,39,.04); padding: 22px 24px; }
.wz-bal .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wz-bal-amt { font-family: var(--font-display); font-weight: 600; font-size: 42px; letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 4px; line-height: 1; }
.wz-bal-amt .cents { color: var(--muted-2); }
.wz-bal-sub { font-size: var(--text-xs); color: var(--muted); }
.wz-bal-bar { height: 6px; border-radius: 6px; background: var(--hairline); overflow: hidden; margin: 18px 0 12px; }
.wz-bal-bar > span { display: block; height: 100%; background: var(--accent); transition: width .25s cubic-bezier(0.32,0.72,0,1); }
.wz-bal-foot { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); }
.wz-bal-foot .paid { color: var(--accent); font-weight: 500; }
.wz-bal-foot .total { color: var(--muted); }
.wz-bal-state { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline-2); font-size: var(--text-sm); }
.wz-bal-state .tick { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wz-bal-state.ok .tick { background: var(--confirmed-bg); color: var(--confirmed); }
.wz-bal-state.no .tick { background: var(--briefing-bg); color: var(--briefing); }

/* ════════════════════════════════════════════════════════════
   Order-summary visualization options (exploration canvas)
   ════════════════════════════════════════════════════════════ */
.wz-sum-card.summary .so-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--slate-500); white-space: nowrap; }
/* A · roll-up */
.so-rollrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--slate-200); }
.so-rollrow:first-child { border-top: 0; }
.so-rollrow .so-ico { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-500); flex-shrink: 0; }
.so-rollrow .who { flex: 1; min-width: 0; }
.so-rollrow .who .nm { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.so-rollrow .who .nm.unset { color: var(--muted-2); }
.so-rollrow .who .sub { font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
.so-rollrow .amt { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
/* A2 · roll-up header + nested itemized lines */
.so-grp { border-top: 1px solid var(--slate-200); }
.so-grp:first-child { border-top: 0; }
.so-grp .so-rollrow { border-top: 0; padding: 12px 0 6px; }
.so-items { display: flex; flex-direction: column; gap: 4px; padding: 0 0 13px 44px; }
.so-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: var(--text-xs); }
.so-item .nm { color: var(--gray-700); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-item .dt { color: var(--slate-400); font-family: var(--font-mono); }
.so-item .amt { font-family: var(--font-mono); color: var(--slate-500); flex-shrink: 0; }
/* B · category */
.so-catrow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--slate-200); }
.so-catrow:first-child { border-top: 0; }
.so-catico { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--hairline); flex-shrink: 0; }
.so-catrow .who { flex: 1; }
.so-catrow .who .nm { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.so-catrow .who .sub { font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
.so-catrow .amt { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
/* C · share */
.so-bigtotal { font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.so-bigsub { font-size: var(--text-xs); color: var(--muted); margin-top: 3px; }
.so-bar { display: flex; height: 12px; border-radius: var(--radius-pill); overflow: hidden; margin: 16px 0 16px; background: var(--gray-100); gap: 2px; }
.so-bar > span { display: block; height: 100%; min-width: 3px; }
.so-bar > span:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.so-bar > span:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.so-legend { display: flex; flex-direction: column; gap: 2px; }
.so-leg { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--slate-200); }
.so-leg:first-child { border-top: 0; }
.so-leg .dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.so-leg .nm { flex: 1; font-size: var(--text-sm); color: var(--gray-700); }
.so-leg .pct { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-2); min-width: 34px; text-align: right; }
.so-leg .amt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); min-width: 60px; text-align: right; }

/* ═══════════════════════════════════════════════════════════════════════
   DONE — redesigned terminal screen (receipt + console directions)
   Confirmation + key numbers + actions are primary; invoice detail is one
   tap away; waiver links are compact per-diver rows with a Show-QR expander.
   ═══════════════════════════════════════════════════════════════════════ */
.dn { margin: 0 auto 8px; padding-top: 30px; }
.dn.receipt { max-width: 660px; }
.dn.console { max-width: 1060px; }

@keyframes dn-pop { from { transform: scale(0.72); } to { transform: scale(1); } }
@keyframes dn-rise { from { transform: translateY(7px); } to { transform: translateY(0); } }

/* ── shared card shell ─────────────────────────────────────── */
.dn-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.dn-card + .dn-card { margin-top: 16px; }
.dn-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; }
.dn-card-head .lbl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dn-card-head .lbl .ico { color: var(--muted-2); display: flex; }
.dn-card-head .aside { font-size: var(--text-xs); color: var(--muted); }
.dn-card-head .aside.mono { font-family: var(--font-mono); color: var(--muted-2); letter-spacing: -0.01em; }

/* ── hero ──────────────────────────────────────────────────── */
.dn-hero { text-align: center; padding: 6px 0 24px; }
.dn-ring { width: 60px; height: 60px; border-radius: 50%; background: var(--confirmed-bg);
  display: inline-flex; align-items: center; justify-content: center; color: var(--confirmed);
  border: 1px solid var(--confirmed-border); margin-bottom: 16px; }
.dn-hero h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl);
  letter-spacing: -0.025em; color: var(--ink); line-height: 1.05; }
.dn-hero .sub { margin: 10px 0 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; font-size: var(--text-sm); color: var(--muted); }
.dn-hero .sub .ref { font-family: var(--font-mono); font-weight: 600; color: var(--gray-700); letter-spacing: -0.01em; white-space: nowrap; }
.dn-hero .sub .amt { font-family: var(--font-mono); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.dn-hero .sub .sep { color: var(--hairline-strong, var(--muted-2)); }
.dn-hero .email { margin: 12px 0 0; font-size: var(--text-xs); color: var(--muted-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .dn-ring { animation: dn-pop 0.42s cubic-bezier(0.32,0.72,0,1) both; }
}

/* console hero — left-aligned bar with inline actions */
.dn-hero.bar { display: flex; align-items: center; gap: 16px; text-align: left; padding: 0 0 4px; }
.dn-hero.bar .dn-ring { width: 46px; height: 46px; margin: 0; flex-shrink: 0; }
.dn-hero.bar h2 { font-size: var(--text-xl); }
.dn-hero.bar .htxt { min-width: 0; }
.dn-hero.bar .sub { justify-content: flex-start; margin-top: 5px; }
.dn-hero.bar .email { justify-content: flex-start; }
.dn-hero.bar .htxt-grow { flex: 1; }

/* ── action cluster ────────────────────────────────────────── */
.dn-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 4px; }
.dn-actions.console { justify-content: flex-end; margin: 0; flex-wrap: nowrap; }

/* ── record summary card ───────────────────────────────────── */
.dn-rec { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
.dn-rec .cell { padding: 14px 20px; border-left: 1px solid var(--hairline-2); min-width: 0; }
.dn-rec .cell:first-child { border-left: 0; }
.dn-rec .k { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dn-rec .v { margin-top: 7px; font-size: var(--text-sm); font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-rec .v.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.dn-rec .v.accent { color: var(--accent); }
.dn-rec-status { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--hairline-2);
  background: var(--slate-100); }
.dn-rec-status .spacer { flex: 1; }
.dn-rec-status .agent { font-size: var(--text-xs); color: var(--muted); }
.dn-rec-status .agent b { color: var(--accent); font-weight: 500; }

/* financial pill */
.dn-fpill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; white-space: nowrap;
  border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid transparent; }
.dn-fpill.ok { color: var(--confirmed); background: var(--confirmed-bg); border-color: var(--confirmed-border); }
.dn-fpill.due { color: var(--briefing); background: var(--briefing-bg); border-color: var(--briefing-border); }

/* ── invoice expander ──────────────────────────────────────── */
.dn-inv-bar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px; border: 0; background: none;
  border-top: 1px solid var(--hairline); cursor: pointer; text-align: left; font-family: var(--font-sans);
  transition: background 150ms ease; }
.dn-inv-bar:hover { background: var(--surface); }
.dn-inv-bar .k { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dn-inv-bar .id { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-2); white-space: nowrap; }
.dn-inv-bar .grow { flex: 1; }
.dn-inv-bar .tot { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.dn-inv-bar .chev { color: var(--muted-2); display: flex; transition: transform 200ms cubic-bezier(0.32,0.72,0,1); }
.dn-inv-bar[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dn-inv-body { padding: 4px 20px 18px; border-top: 1px solid var(--hairline-2); }
.dn-inv-group { margin-top: 14px; }
.dn-inv-date { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.dn-inv-li { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; }
.dn-inv-li .ico { color: var(--muted-2); display: flex; align-self: center; }
.dn-inv-li .nm { flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--ink); }
.dn-inv-li .nm .q { display: block; font-size: var(--text-xs); color: var(--muted); font-family: var(--font-mono); margin-top: 1px; }
.dn-inv-li .amt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.dn-inv-sums { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.dn-sum-row { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0; font-size: var(--text-sm); }
.dn-sum-row .l { color: var(--muted); }
.dn-sum-row .r { font-family: var(--font-mono); color: var(--gray-700); }
.dn-sum-row.total { padding-top: 9px; margin-top: 5px; border-top: 1px solid var(--hairline-2); }
.dn-sum-row.total .l { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--ink); text-transform: none; letter-spacing: 0; }
.dn-sum-row.total .r { font-size: var(--text-md); font-weight: 600; color: var(--confirmed); }
.dn-pay { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.dn-pay .hd { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dn-pay-row { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 0; font-size: var(--text-sm); }
.dn-pay-row .l { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.dn-pay-row .l .ico { color: var(--muted-2); display: flex; }
.dn-pay-row .meta { font-size: var(--text-xs); color: var(--muted-2); font-family: var(--font-mono); }
.dn-pay-row .r { font-family: var(--font-mono); color: var(--ink); }

/* ── waiver links ──────────────────────────────────────────── */
.dn-wv-rows { border-top: 1px solid var(--hairline); }
.dn-wv-row { padding: 13px 20px; border-top: 1px solid var(--hairline-2); }
.dn-wv-row:first-child { border-top: 0; }
.dn-wv-top { display: flex; align-items: center; gap: 12px; }
.dn-wv-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--sky-900));
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: #fff; }
.dn-wv-id { flex: 1; min-width: 0; }
.dn-wv-id .nm { font-size: var(--text-sm); font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-wv-id .toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 0; border: 0; background: none;
  cursor: pointer; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 500; color: var(--accent); }
.dn-wv-id .toggle .chev { display: flex; transition: transform 200ms cubic-bezier(0.32,0.72,0,1); }
.dn-wv-id .toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dn-wv-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); white-space: nowrap;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--hairline);
  color: var(--muted); background: var(--surface-alt); }
.dn-wv-status.signed { color: var(--confirmed); background: var(--confirmed-bg); border-color: var(--confirmed-border); }
.dn-copy { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); background: var(--surface); cursor: pointer; font-family: var(--font-sans);
  font-size: var(--text-sm); font-weight: 500; color: var(--gray-700); transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.dn-copy:hover { background: var(--surface-alt); color: var(--ink); }
.dn-copy.copied { color: var(--confirmed); border-color: var(--confirmed-border); background: var(--confirmed-bg); }
.dn-wv-expand { margin-top: 13px; display: flex; gap: 16px; align-items: flex-start; padding: 14px;
  background: var(--surface-alt); border: 1px solid var(--hairline-2); border-radius: var(--radius); }
.dn-wv-expand .qr { flex-shrink: 0; width: 108px; height: 108px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 8px; }
.dn-wv-expand .qr svg { display: block; width: 100%; height: 100%; }
.dn-wv-expand .urlbox { flex: 1; min-width: 0; }
.dn-wv-expand .urlbox .cap { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dn-wv-expand .urlbox .url { margin-top: 7px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--gray-700);
  word-break: break-all; line-height: 1.5; }
.dn-wv-foot { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--hairline); background: var(--surface-alt); }
.dn-wv-foot .live { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--confirmed); }
.dn-wv-foot .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--confirmed); }
.dn-wv-foot .exp { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.dn-wv-foot .spacer { flex: 1; }
.dn-wv-foot .lnk { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-sans); white-space: nowrap;
  font-size: var(--text-xs); font-weight: 500; color: var(--muted); transition: color 150ms ease; }
.dn-wv-foot .lnk:hover { color: var(--accent); }
.dn-wv-foot .lnk.danger:hover { color: var(--cancelled); }

/* ── console grid ──────────────────────────────────────────── */
.dn-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,0.96fr); gap: 18px; align-items: start; margin-top: 20px; }
@media (max-width: 980px) { .dn-grid { grid-template-columns: 1fr; } }
.dn-col-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 11px 2px; }

/* compact density trims */
.wz-compact .dn-rec .cell { padding: 11px 16px; }
.wz-compact .dn-wv-row { padding: 10px 16px; }
.wz-compact .dn-card-head { padding: 12px 16px; }
