/* The Ark — mobile-first stylesheet */

:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-2: #efe9dc;
  --ink: #16201b;
  --muted: #5d6761;
  --line: #e2dacb;
  --green: #1e4636;
  --green-deep: #10261d;
  --green-soft: #e3ebe5;
  --gold: #b0853a;
  --gold-soft: #f3e8d2;
  --red: #9a3324;
  --red-soft: #f6e3de;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --radius: 18px;
  --radius-sm: 12px;
  --pad: 20px;
  --topbar-h: 60px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 2px rgb(16 38 29 / 0.05), 0 8px 24px -12px rgb(16 38 29 / 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

.icon { flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--gold); border-radius: 1px;
}

.display {
  font-size: clamp(2.35rem, 9vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance;
}
.h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); letter-spacing: -0.01em; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 34rem; text-wrap: pretty; }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }
.page { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 24px var(--pad) 48px; }
.page-narrow { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 24px var(--pad) 48px; }
.page-flush { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; height: var(--topbar-h);
  padding: 0 var(--pad); display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand-tag {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--green); color: #fff; padding: 3px 7px; border-radius: 999px;
}
.topnav { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions form { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #95702f; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--surface); color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.btn-danger:hover { background: var(--red-soft); }
.btn-on-dark { background: #fff; color: var(--green-deep); }
.btn-on-dark-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); }
.btn-on-dark-ghost:hover { border-color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  color: var(--ink); text-decoration: none;
}
.icon-btn:hover { border-color: var(--ink); }

.link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card-flat { box-shadow: none; }
.card-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.card-sub { color: var(--muted); font-size: 0.875rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.pill .icon { color: var(--green); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-pending { background: var(--gold-soft); color: #7a5a1f; }
.badge-approved { background: var(--green-soft); color: var(--green); }
.badge-denied { background: var(--red-soft); color: var(--red); }
.badge-cancelled { background: var(--surface-2); color: var(--muted); }

/* ---------- Toasts ---------- */

.toasts {
  position: fixed; z-index: 60; left: 12px; right: 12px;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 10px);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  animation: toast-out 0.4s ease 5s forwards;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  max-width: 480px; margin: 0 auto; width: 100%;
  padding: 12px 16px; border-radius: 14px; font-size: 0.9375rem; font-weight: 500;
  background: var(--green-deep); color: #fff; box-shadow: var(--shadow);
}
.toast-error { background: var(--red); }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* ---------- Hero ---------- */

.hero { padding: 20px 0 8px; }
.hero-grid { display: flex; flex-direction: column; gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.mosaic-frame {
  position: relative; border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: var(--green-deep);
  box-shadow: 0 30px 60px -30px rgb(16 38 29 / 0.45);
  aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; margin: 0 auto;
}
.mosaic-frame img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgb(255 253 248 / 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.8125rem;
}
.mosaic-caption strong { font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 40rem; }

.steps { display: grid; gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  counter-increment: step; display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1; color: var(--gold);
  min-width: 36px;
}
.step p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }

.req-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.req-item { display: flex; gap: 14px; align-items: flex-start; }
.req-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-soft); color: var(--green); flex-shrink: 0;
}
.req-item p { color: var(--muted); font-size: 0.9375rem; }
.req-list { gap: 20px; }
.req-list .req-icon, .location-body .req-icon { width: auto; height: auto; background: none; border-radius: 0; padding-top: 2px; }
.dark-band .req-list .req-icon { color: #e5c78a; }

.rules-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rules-list li { display: flex; gap: 12px; align-items: flex-start; }
.rules-list li::before {
  content: ""; width: 8px; height: 8px; margin-top: 9px; flex-shrink: 0;
  transform: rotate(45deg); background: var(--gold); border-radius: 1px;
}

.dark-band {
  background: var(--green-deep); color: #f5f1e8; border-radius: 28px; overflow: hidden;
  position: relative;
}
.dark-band .muted { color: rgb(245 241 232 / 0.72); }
.dark-band .accent { color: #e5c78a; }
.pattern {
  background-image:
    radial-gradient(circle at 50% 50%, transparent 9px, rgb(229 199 138 / 0.12) 9.5px, rgb(229 199 138 / 0.12) 10.5px, transparent 11px);
  background-size: 28px 28px;
}

.location-card { display: flex; flex-direction: column; }
.location-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.location-media img { width: 100%; height: 100%; object-fit: cover; }
.location-body { padding: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.cta-plain { border-top: 1px solid var(--line); }
.map-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cta-band { padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 28px var(--pad);
  display: flex; flex-direction: column; gap: 18px; font-size: 0.9375rem;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-title { font-weight: 600; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ---------- Tabbar ---------- */

.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font-size: 0.6875rem; font-weight: 600; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.tabbar a[aria-current="page"] { color: var(--green); }
.tab-cta-dot {
  display: grid; place-items: center; width: 38px; height: 30px; border-radius: 999px;
  background: var(--green); color: #fff;
}
.tabbar a.tab-cta[aria-current="page"] .tab-cta-dot { background: var(--gold); }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label { font-weight: 600; font-size: 0.9375rem; }
.help { color: var(--muted); font-size: 0.8125rem; }
.errorlist, .field-error { list-style: none; padding: 0; margin: 0; color: var(--red); font-size: 0.8125rem; font-weight: 500; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--red-soft); color: var(--red); font-size: 0.9375rem; font-weight: 500;
}

.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="date"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 16px; line-height: 1.4; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6761' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }

.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

.counter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.counter-controls { display: flex; align-items: center; gap: 8px; }
.counter input[type="number"] {
  width: 64px; min-height: 44px; text-align: center; font-weight: 600; font-size: 1.125rem;
  border: 0; background: transparent; padding: 0; -moz-appearance: textfield;
}
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.counter-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--ink);
}
.counter-btn:hover { border-color: var(--ink); }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px; border-radius: var(--radius-sm); background: var(--green-deep); color: #fff;
}
.total-row strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }

.upload {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px 16px; border: 1.5px dashed color-mix(in srgb, var(--green) 40%, var(--line));
  border-radius: var(--radius); background: var(--surface); text-align: center; cursor: pointer;
}
.upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.upload.has-file { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.upload-name { font-weight: 600; font-size: 0.9375rem; word-break: break-all; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--gold-soft); color: #5e4518; font-size: 0.9rem;
}
.notice .icon { margin-top: 2px; }
.notice-green { background: var(--green-soft); color: var(--green-deep); }

/* ---------- Stepper ---------- */

.wizard-head { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--bg); padding: 4px 0 14px; }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background-color .2s; }
.progress span.done { background: var(--green); }
.progress-label { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); font-weight: 500; }

.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.step-panel + .step-panel { margin-top: 32px; }
.step-panel legend { padding: 0; margin-bottom: 4px; }
.step-title { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.js .wizard .step-panel { display: none; }
.js .wizard .step-panel.active { display: flex; }
.js .wizard .step-panel + .step-panel { margin-top: 0; }

.wizard-actions {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 10;
  display: flex; gap: 10px; padding: 12px 0; margin-top: 24px;
  background: linear-gradient(to top, var(--bg) 75%, transparent);
}
[hidden] { display: none !important; }
.wizard-actions .btn { flex: 1; }
.wizard-actions .btn-back { flex: 0 0 auto; width: 52px; padding: 0; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: inherit; }

.summary { display: flex; flex-direction: column; gap: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Calendar ---------- */

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--muted); padding: 4px 0 6px; letter-spacing: 0.06em; }
.cal-day {
  position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { visibility: hidden; }
.cal-day.past { color: color-mix(in srgb, var(--muted) 55%, transparent); font-weight: 500; pointer-events: none; }
.cal-day .dot { width: 6px; height: 6px; border-radius: 999px; }
.cal-day.open .dot { background: var(--green); }
.cal-day.partial .dot { background: var(--gold); }
.cal-day.full { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.cal-day.full .dot { background: var(--line); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day[aria-current="date"] { background: var(--green); color: #fff; }
.cal-day[aria-current="date"] .dot { background: #fff; }
.cal-day .pending-count {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: #fff; font-size: 0.625rem; display: grid; place-items: center;
}
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

.day-panel { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.slots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); font-size: 0.9375rem;
}
.slot-kind { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.slot-reserved { border-left: 4px solid var(--green); }
.slot-blocked { border-left: 4px solid var(--muted); }
.slot-pending { border-left: 4px solid var(--gold); }
.slot a { text-decoration: none; }

.timeline {
  position: relative; height: 12px; border-radius: 999px; background: var(--green-soft); overflow: hidden; margin: 6px 0 4px;
}
.timeline i { position: absolute; top: 0; bottom: 0; background: var(--green); }
.timeline i.blocked { background: var(--muted); }
.timeline-scale { display: flex; justify-content: space-between; font-size: 0.6875rem; color: var(--muted); }

/* ---------- Reservation lists ---------- */

.res-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.res-card {
  display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s;
}
.res-card:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.date-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 60px; border-radius: 14px; background: var(--green-soft); color: var(--green); flex-shrink: 0;
}
.date-chip .m { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.date-chip .d { font-size: 1.375rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.res-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-meta { color: var(--muted); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.res-meta span { display: inline-flex; align-items: center; gap: 4px; }
.res-chevron { color: var(--muted); }

.empty {
  text-align: center; padding: 36px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.detail-hero { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.detail-hero h1 { font-size: clamp(1.625rem, 6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.kv dt { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.kv dd { margin: 2px 0 0; font-weight: 500; }
.kv .span-2 { grid-column: span 2; }
.prose { white-space: pre-line; color: var(--ink); }

.status-track { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.status-track li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.status-track li:last-child { padding-bottom: 0; }
.status-track li::before {
  content: ""; width: 12px; height: 12px; border-radius: 999px; margin-top: 5px; flex-shrink: 0;
  background: var(--line); box-shadow: 0 0 0 4px var(--surface);
  position: relative; z-index: 1;
}
.status-track li::after {
  content: ""; position: absolute; left: 5.5px; top: 14px; bottom: -2px; width: 1px; background: var(--line);
}
.status-track li:last-child::after { display: none; }
.status-track li.done::before { background: var(--green); }
.status-track li.current::before { background: var(--gold); }
.status-track li.bad::before { background: var(--red); }

/* ---------- Staff ---------- */

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.stat { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.875rem; letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 0.8125rem; color: var(--muted); }
.stat-dark { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.stat-dark span { color: rgb(255 255 255 / 0.7); }

.staff-detail { display: flex; flex-direction: column; gap: 16px; }
.staff-main, .staff-side { display: flex; flex-direction: column; gap: 16px; }
.id-viewer {
  border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); border: 1px solid var(--line);
}
.id-viewer img { width: 100%; height: auto; max-height: 420px; object-fit: contain; margin: 0 auto; }
.check-meta { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; font-weight: 400; }
.decision-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 10;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 12px 0 4px; background: linear-gradient(to top, var(--surface) 80%, transparent);
}
.warn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.log-list { list-style: none; padding: 0; margin: 0; }
.log-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: 0; }
.log-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--ink); flex-shrink: 0; }
.log-icon.approved { background: var(--green-soft); color: var(--green); }
.log-icon.denied { background: var(--red-soft); color: var(--red); }
.log-icon.id_deleted { background: var(--gold-soft); color: #7a5a1f; }
.log-body { min-width: 0; flex: 1; font-size: 0.9375rem; }
.log-body .muted { font-size: 0.8125rem; }

.auth-card { max-width: 440px; margin: 0 auto; width: 100%; }
.auth-mark { width: 56px; height: 56px; margin-bottom: 6px; }

.hide-mobile { display: none; }

/* ---------- Tablet & desktop ---------- */

@media (min-width: 640px) {
  :root { --pad: 28px; }
  .hero-ctas { flex-direction: row; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .card { padding: 24px; }
  .toasts { left: auto; right: 24px; width: 420px; }
  .hide-mobile { display: inline-flex; }
}

@media (min-width: 960px) {
  :root { --topbar-h: 72px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; gap: 4px; margin-right: auto; }
  .brand { margin-right: 24px; }
  .topnav a {
    text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  }
  .topnav a:hover { color: var(--ink); }
  .topnav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

  .page, .page-narrow { padding-top: 44px; padding-bottom: 80px; }

  .hero { padding: 48px 0 24px; }
  .hero-grid { flex-direction: row; align-items: center; gap: 64px; }
  .hero-copy { flex: 1.15; gap: 22px; }
  .hero-media { flex: 1; }
  .mosaic-frame { max-height: 640px; }

  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; padding: 24px 0 0; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .location-card { flex-direction: row; }
  .location-media { flex: 1.2; aspect-ratio: auto; min-height: 360px; }
  .location-card { gap: 48px; align-items: center; }
  .location-body { flex: 1; padding: 0; justify-content: center; }
  .cta-band { padding: 64px 40px; }

  .wizard-actions { position: static; background: none; }
  .wizard-head { position: static; }

  .avail-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
  .cal { padding: 22px; }
  .cal-grid { gap: 6px; }
  .cal-day { aspect-ratio: 1.15; font-size: 1rem; }
  .day-panel { position: sticky; top: calc(var(--topbar-h) + 24px); }

  .staff-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
  .staff-side { position: sticky; top: calc(var(--topbar-h) + 24px); }
  .decision-bar { position: static; background: none; padding-top: 4px; }
  .queue-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
