/* ==========================================================================
   Hooks85 Guesthouse Manager — Minimal Light Palette
   60% Cream | 30% Walnut | 10% Teal Accent
   ========================================================================== */

:root {
  /* 60% Cream — open canvas, light cards, clean whitespace */
  --cream-canvas: #FAF7F2;
  --cream-card: #FFFDF9;
  --cream-soft: #F3EDE3;
  --cream-border: #E5DCCD;

  /* 30% Walnut — navigation chrome, typography, warm structural depth */
  --walnut-ink: #3B281E;
  --walnut-mid: #5C4033;
  --walnut-muted: #7F6556;
  --walnut-rail: #EFE7DA;
  --walnut-rail-border: #DDD1BF;
  --walnut-pill: #EAE0D0;

  /* 10% Teal Accent — primary CTAs, active state, verified badges, focus */
  --teal: #1E7F7A;
  --teal-hover: #176662;
  --teal-soft: #E5F3F2;
  --teal-border: #B5DCD9;

  /* Semantic subtle tones harmonized with Cream/Walnut */
  --amber-soft: #FDF3E3;
  --amber-ink: #8A5312;
  --amber-border: #EBD2AA;
  --rose-soft: #FBECEB;
  --rose-ink: #9A342D;
  --rose-border: #E8C2BE;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-subtle: 0 2px 10px rgba(59, 40, 30, 0.04);
  --shadow-modal: 0 18px 48px rgba(59, 40, 30, 0.14);

  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream-canvas);
  color: var(--walnut-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout Shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.sidebar-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.nav-group-label {
  padding: 6px 12px 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--walnut-muted);
}

/* 30% Walnut structural anchor: warm light-walnut rail with crisp walnut type */
.sidebar {
  background: var(--walnut-rail);
  border-right: 1px solid var(--walnut-rail-border);
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--walnut-rail-border);
  margin-bottom: 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--walnut-mid);
  color: var(--cream-card);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--walnut-ink);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--walnut-muted);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--walnut-mid);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-item:hover {
  background: var(--walnut-pill);
  color: var(--walnut-ink);
}

.nav-item.active {
  background: var(--cream-card);
  color: var(--walnut-ink);
  font-weight: 600;
  border-color: var(--walnut-rail-border);
  box-shadow: var(--shadow-subtle);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
  flex-shrink: 0;
}

.nav-item.active .nav-dot {
  background: var(--teal);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--walnut-rail-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.palette-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--walnut-muted);
  padding: 0 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  flex-shrink: 0;
}

.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--walnut-rail-border);
  background: var(--cream-canvas);
  color: var(--walnut-mid);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.external-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- Main Canvas (60% Cream) ---------- */
.main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 16px;
  border-bottom: 1px solid var(--cream-border);
  background: var(--cream-canvas);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-title-group {
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.avatar-anchor {
  position: relative;
  flex-shrink: 0;
}

.avatar-trigger {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--walnut-rail-border);
  background: var(--walnut-mid);
  color: var(--cream-card);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.avatar-trigger:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 256px;
  background: var(--cream-card);
  border: 1px solid var(--walnut-rail-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 8px;
  z-index: 80;
}

.avatar-menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--cream-border);
  margin-bottom: 6px;
}

.avatar-menu-section {
  padding: 6px 10px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut-muted);
}

.avatar-menu-divider {
  height: 1px;
  background: var(--cream-border);
  margin: 6px 0;
}

.avatar-menu-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--walnut-ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.avatar-menu-item:hover {
  background: var(--cream-soft);
}

.avatar-menu-item.active {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut-muted);
}

.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--walnut-ink);
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.date-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 1px solid var(--cream-border);
  color: var(--walnut-mid);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.content {
  padding: 28px 36px 48px;
  max-width: 1220px;
  width: 100%;
}

/* ---------- Buttons (Teal 10% primary, Walnut secondary) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-hover);
}

.btn-secondary {
  background: var(--cream-card);
  color: var(--walnut-ink);
  border-color: var(--walnut-rail-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--cream-soft);
  border-color: var(--walnut-muted);
}

.btn-walnut {
  background: var(--walnut-mid);
  color: var(--cream-card);
}

.btn-walnut:hover:not(:disabled) {
  background: var(--walnut-ink);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-border);
  background: var(--cream-canvas);
  color: var(--walnut-mid);
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- Cards & Grids ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-subtle);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--walnut-muted);
}

.kpi-value {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--walnut-ink);
  line-height: 1.15;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.82rem;
  color: var(--walnut-muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-soft);
}

.card-head h2, .card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--walnut-ink);
}

.muted {
  color: var(--walnut-muted);
  font-size: 0.88rem;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-teal {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: var(--teal-border);
}

.badge-walnut {
  background: var(--walnut-pill);
  color: var(--walnut-mid);
  border-color: var(--walnut-rail-border);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-color: var(--amber-border);
}

.badge-rose {
  background: var(--rose-soft);
  color: var(--rose-ink);
  border-color: var(--rose-border);
}

.reg-flag-btn {
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.reg-flag-btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.reg-missing-hint {
  font-size: 0.76rem;
  color: var(--rose-ink);
  margin-top: 3px;
  font-weight: 500;
}

.form-field input.input-missing,
.form-field select.input-missing {
  border-color: var(--rose-border);
  background: #FFF8F7;
}

.req-star {
  color: var(--rose-ink);
  margin-left: 2px;
}

/* ---------- List Rows ---------- */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--cream-canvas);
  border: 1px solid var(--cream-border);
}

.list-row-title {
  font-weight: 600;
  color: var(--walnut-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-row-meta {
  font-size: 0.83rem;
  color: var(--walnut-muted);
  margin-top: 3px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Tabs & Sub-navigation ---------- */
.tab-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--cream-soft);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--walnut-mid);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--cream-card);
  color: var(--teal);
  box-shadow: var(--shadow-subtle);
}

/* ---------- Upload Dropzone ---------- */
.dropzone {
  border: 1.5px dashed var(--walnut-rail-border);
  border-radius: var(--radius-lg);
  background: var(--cream-canvas);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.dropzone-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--walnut-ink);
  margin: 0 0 6px;
}

.dropzone-sub {
  font-size: 0.84rem;
  color: var(--walnut-muted);
  margin: 0 0 16px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--walnut-muted);
  background: var(--cream-soft);
  border-bottom: 1px solid var(--cream-border);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--cream-soft);
  color: var(--walnut-ink);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(243, 237, 227, 0.45);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

/* ---------- Rooms Grid ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.room-card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-subtle);
}

.room-num {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--walnut-ink);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--walnut-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--walnut-rail-border);
  background: var(--cream-card);
  color: var(--walnut-ink);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

/* ---------- Parsed Key-Value Panel ---------- */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kv-item {
  background: var(--cream-canvas);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.kv-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--walnut-muted);
}

.kv-val {
  margin-top: 4px;
  font-weight: 600;
  color: var(--walnut-ink);
  word-break: break-word;
}

.mrz-strip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--walnut-rail);
  border: 1px solid var(--walnut-rail-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--walnut-ink);
  overflow-x: auto;
  letter-spacing: 0.06em;
}

.tax-box {
  background: var(--cream-soft);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
}

.tax-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--walnut-mid);
  padding: 4px 0;
}

.tax-row.total {
  border-top: 1px solid var(--walnut-rail-border);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-top: 14px;
  border: 1px solid var(--cream-border);
}

.alert-warn {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber-ink);
}

.alert-error {
  background: var(--rose-soft);
  border-color: var(--rose-border);
  color: var(--rose-ink);
}

.alert-teal {
  background: var(--teal-soft);
  border-color: var(--teal-border);
  color: var(--teal);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(59, 40, 30, 0.32);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}

.modal-card {
  width: min(100%, 640px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream-card);
  border: 1px solid var(--walnut-rail-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-modal);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-soft);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--walnut-ink);
}

.hidden {
  display: none !important;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--walnut-ink);
  color: var(--cream-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-modal);
  z-index: 80;
}

/* ---------- PMS Calendar Tape Chart ---------- */
.cal-wrap {
  overflow-x: auto;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  background: var(--cream-card);
}

.cal-grid {
  display: grid;
  min-width: 960px;
}

.cal-head-cell {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--cream-border);
  border-right: 1px solid var(--cream-soft);
  background: var(--cream-soft);
  font-size: 0.75rem;
  color: var(--walnut-mid);
  font-weight: 600;
}

.cal-head-cell.is-today {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
}

.cal-room-cell {
  padding: 10px 12px;
  border-bottom: 1px solid var(--cream-soft);
  border-right: 1px solid var(--cream-border);
  background: var(--cream-canvas);
  position: sticky;
  left: 0;
  z-index: 2;
}

.cal-row-track {
  position: relative;
  display: grid;
  border-bottom: 1px solid var(--cream-soft);
  min-height: 50px;
}

.cal-day-slot {
  border-right: 1px solid var(--cream-soft);
  min-height: 50px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.cal-day-slot.is-today {
  background: rgba(229, 243, 242, 0.45);
}

.cal-day-slot:hover {
  background: var(--teal-soft);
}

.cal-bar {
  position: absolute;
  top: 7px;
  bottom: 7px;
  border-radius: 7px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(59, 40, 30, 0.08);
}

.cal-bar-inhouse {
  background: var(--teal);
  color: #FFFFFF;
}

.cal-bar-expected {
  background: var(--walnut-mid);
  color: var(--cream-card);
}

.cal-bar-checkedout {
  background: var(--walnut-pill);
  color: var(--walnut-mid);
  border: 1px dashed var(--walnut-muted);
}

/* ---------- Clickable Guest Link & Journey Timeline ---------- */
.guest-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--walnut-ink);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--walnut-rail-border);
  text-underline-offset: 3px;
}

.guest-link:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.journey-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-border);
  background: var(--cream-canvas);
}

.journey-step.step-completed {
  background: var(--teal-soft);
  border-color: var(--teal-border);
}

.journey-step.step-active {
  background: var(--cream-card);
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-soft);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--walnut-pill);
  color: var(--walnut-mid);
  font-size: 0.74rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.journey-step.step-completed .step-num {
  background: var(--teal);
  color: #FFFFFF;
}

.journey-step.step-active .step-num {
  background: var(--walnut-mid);
  color: var(--cream-card);
}

.progress-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--cream-soft);
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.portal-device {
  max-width: 440px;
  background: var(--cream-canvas);
  border: 2px solid var(--walnut-rail-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-modal);
}

/* ---------- Mobile Responsive ---------- */
.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    padding: 20px 18px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .content {
    padding: 18px 18px 92px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col, .form-grid, .kv-grid {
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--walnut-rail);
    border-top: 1px solid var(--walnut-rail-border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    z-index: 50;
  }
  .mobile-nav-btn {
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--walnut-mid);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }
  .mobile-nav-btn.active {
    background: var(--cream-card);
    color: var(--teal);
  }
}

/* ---------- Print Sheet (Registration Card) ---------- */
.print-sheet {
  display: none;
}

@media print {
  .app-shell, .mobile-nav, .modal-backdrop, .toast {
    display: none !important;
  }
  .print-sheet {
    display: block !important;
    padding: 24px;
    background: #FFFFFF;
    color: #2B1D16;
    font-family: var(--font-sans);
  }
  .reg-card-box {
    border: 1.5px solid #5C4033;
    border-radius: 10px;
    padding: 24px;
  }
  .reg-card-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #DDD1BF;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    font-size: 0.9rem;
  }
  .sig-line {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .sig-box {
    border-top: 1px solid #5C4033;
    padding-top: 6px;
    font-size: 0.8rem;
    color: #5C4033;
  }
}
