/* Room Planner — warm editorial dark theme */

/* ─────────────────────── Tokens ─────────────────────── */
:root {
  /* Warm dark palette — slight brown undertone, never pure black */
  --bg-page:        #0e0c0a;
  --bg-app:         #14110e;
  --bg-card:        #1d1814;
  --bg-card-soft:   #251f1a;
  --bg-elev:        #2c241e;
  --bg-elev-2:      #3a3027;

  --border:         #382e25;
  --border-soft:    #2a2218;
  --border-hard:    #4a3d31;

  --text:           #f4ebd9;
  --text-dim:       #b3a591;
  --text-muted:     #786c5e;
  --text-faint:     #534b41;

  --accent:         #ff7849;
  --accent-hover:   #ffa37a;
  --accent-soft:    rgba(255, 120, 73, 0.16);
  --accent-glow:    rgba(255, 120, 73, 0.28);
  --gold:           #c8a063;
  --gold-soft:      rgba(200, 160, 99, 0.22);
  --success:        #7eb56b;
  --danger:         #e25c5c;
  --danger-soft:    rgba(226, 92, 92, 0.14);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Geometry */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --tap:       44px;

  /* Device dimensions (desktop preview) */
  --device-w:   430px;
  --device-h:   932px;
  --device-r:   58px;          /* outer corner */
  --device-bezel: 14px;
}

/* ─────────────────────── Reset & base ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg-page);
  overflow: hidden;       /* device frame manages scroll */
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

/* ─────────────────────── Page background ─────────────────────── */
.page-bg {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,  #2a1f17 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #1a1411 0%, transparent 70%),
    linear-gradient(180deg, #0c0907 0%, #110d0a 100%);
}
.page-bg__halo {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 120, 73, 0.10) 0%, transparent 45%);
  mix-blend-mode: screen;
  filter: blur(20px);
}
.page-bg__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

/* ─────────────────────── Device frame ─────────────────────── */
/* Mobile-first: the frame fills the viewport with no chrome.
   On desktop it becomes an actual phone-shaped container. */
.device-frame {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  overflow: hidden;
  z-index: 1;
}
.device-frame__bezel,
.device-frame__notch,
.device-frame__sheen { display: none; }

@media (min-width: 760px) {
  body { overflow: hidden; }

  .device-frame {
    position: relative;
    inset: auto;
    width: var(--device-w);
    height: var(--device-h);
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    border-radius: var(--device-r);
    overflow: hidden;
    box-shadow:
      0 0 0 var(--device-bezel) #0b0907,
      0 0 0 calc(var(--device-bezel) + 2px) #2a2018,
      0 80px 140px -20px rgba(0, 0, 0, 0.85),
      0 30px 50px -10px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .device-frame__bezel {
    display: block;
    position: absolute; inset: 0;
    border-radius: var(--device-r);
    pointer-events: none;
    box-shadow:
      inset 0 0 0 1px rgba(255, 230, 200, 0.04),
      inset 0 1px 0 rgba(255, 230, 200, 0.06);
  }
  .device-frame__sheen {
    display: block;
    position: absolute;
    top: 0; left: -25%;
    width: 60%; height: 100%;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 220, 0.04) 50%, transparent 70%);
    pointer-events: none;
  }
  .device-frame__notch {
    display: block;
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 116px; height: 30px;
    background: #050402;
    border-radius: 999px;
    z-index: 60;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  }
  .device-frame > .app { padding-top: 50px; }
  body { background: transparent; }
  .page-bg { z-index: 0; }
  .device-frame { z-index: 1; }
}

/* On larger desktops, stretch the frame slightly */
@media (min-width: 1100px) {
  .device-frame { margin: 36px auto; }
}

/* ─────────────────────── App layout ─────────────────────── */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(circle at 50% 0%, #1c1611 0%, transparent 55%),
    var(--bg-app);
  overflow: hidden;
}
.screen {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 18px 110px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hard) transparent;
}
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { background: var(--border-hard); border-radius: 4px; }

/* ─────────────────────── Top rows ─────────────────────── */
.list-menu-row {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 4px 0 0;
}
.header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}
.header-row h1.title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 4px 0 6px;
}
.topbar.form-bar {
  justify-content: space-between;
}
.topbar.form-bar .title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.icon-btn {
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--text);
  border-radius: 10px;
  transition: background 120ms ease;
}
.icon-btn:hover { background: var(--bg-card-soft); }
.icon-btn.accent { color: var(--accent); }

.text-btn {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 4px;
  min-height: var(--tap);
  letter-spacing: 0.01em;
}
.text-btn:disabled { color: var(--text-muted); cursor: not-allowed; }
.topbar.form-bar .text-btn:first-child { color: var(--text-dim); }

/* ─────────────────────── Breadcrumbs ─────────────────────── */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 2px 0 14px;
  letter-spacing: 0.02em;
}
.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
  transition: color 120ms ease, background 120ms ease;
}
.crumbs a:hover { color: var(--text); background: var(--bg-card-soft); }
.crumbs .sep {
  color: var(--text-faint);
  font-size: 11px;
  display: inline-block;
  transform: translateY(-1px);
}
.crumbs .current {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14em;
}

/* ─────────────────────── Buttons ─────────────────────── */
.fab {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, #ff8a5b 0%, #ff6a35 100%);
  color: #1d0d05;
  border: 0;
  font-size: 26px;
  line-height: 1;
  display: grid; place-items: center;
  box-shadow:
    0 8px 22px -4px var(--accent-glow),
    0 2px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
  font-weight: 700;
}
.fab:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -4px var(--accent-glow), 0 2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35); }
.fab:active { transform: scale(0.96); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(155deg, #ff8a5b 0%, #ff6a35 100%);
  color: #1d0d05;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 40px;
  box-shadow:
    0 6px 18px -4px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform 120ms ease, filter 120ms ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--bg-elev); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }

.btn.btn-secondary {
  background: var(--bg-card-soft);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.btn-secondary:hover { background: var(--bg-elev); }

.btn.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.btn.btn-danger {
  background: linear-gradient(155deg, #ec7070 0%, #d44848 100%);
  color: #1d0606;
  box-shadow: 0 6px 18px -4px rgba(226, 92, 92, 0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn.btn-block { width: 100%; }
.btn.btn-sm { padding: 6px 14px; min-height: 32px; font-size: 13px; }

/* ─────────────────────── Search ─────────────────────── */
.search {
  position: relative;
  margin-bottom: 14px;
}
.search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 12px 11px 40px;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { border-color: var(--accent); background: var(--bg-card-soft); }
.search .icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ─────────────────────── Lists & cards ─────────────────────── */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 240, 220, 0.018) 0%, transparent 100%),
    var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.card:hover { border-color: var(--border); background: var(--bg-card-soft); }
.card:active { transform: scale(0.998); }
.card.tappable { cursor: pointer; }
.card .body { flex: 1; min-width: 0; }
.card .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .sub {
  color: var(--text-dim);
  font-size: 13px;
  margin: 3px 0 0;
}
.card .chev {
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 300;
}
.card.full { opacity: 0.65; }
.card.full .title { color: var(--text-dim); }
.card.over { border-color: var(--danger); background: var(--danger-soft); }

/* Guest row — has an orange "room tag" line above the name */
.guest-row {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 240, 220, 0.018) 0%, transparent 100%),
    var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 120ms ease, background 120ms ease;
}
.guest-row:hover { border-color: var(--border); }
.guest-row .body { flex: 1; min-width: 0; padding: 2px 0; }
.guest-row .room-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 7px;
  margin: 0 0 6px;
  min-height: 16px;
  line-height: 1.3;
}
.guest-row .room-tag.no-room {
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed var(--border);
  padding: 1px 7px;
}
.guest-row .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
}
.guest-row .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin: 3px 0 0;
}

/* ─────────────────────── Row menu (⋯) ─────────────────────── */
.row-menu { position: relative; flex-shrink: 0; }
.row-menu-btn {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1;
}
.row-menu-btn:hover { background: var(--bg-elev); color: var(--text); }
.row-menu-list {
  position: absolute;
  right: 0; top: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 170px;
  z-index: 30;
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.6);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.row-menu-list button {
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  min-height: 40px;
}
.row-menu-list button:hover { background: var(--bg-card-soft); }
.row-menu-list button.danger { color: var(--danger); }

/* ─────────────────────── Detail header ─────────────────────── */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0 18px;
  margin: 4px 0 16px;
  border-bottom: 1px solid var(--gold-soft);
  position: relative;
}
.detail-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 1px;
  background: var(--gold);
}
.detail-header h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  flex: 1;
  min-width: 0;
}

/* ─────────────────────── Key/value list ─────────────────────── */
.kv-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--text-dim); font-size: 14px; }
.kv-row .v {
  font-family: var(--font-display);
  font-feature-settings: "tnum" on;
  font-weight: 600;
  font-size: 15px;
  text-align: right;
  color: var(--text);
}

/* Section header (e.g. "Members" inside family detail) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Members rows (in family detail) */
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  min-height: 56px;
}
.member-row:last-child { border-bottom: 0; }
.member-row .avatar {
  width: 38px; height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.member-row .body { flex: 1; min-width: 0; }
.member-row .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0;
}
.member-row .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin: 2px 0 0;
}

/* ─────────────────────── Forms ─────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label,
.field > .label-row {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field > .label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field > .label-row .hint {
  text-transform: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea,
.input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  font-size: 16px;
  width: 100%;
  font-family: var(--font-body);
  transition: border-color 120ms ease, background 120ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  border-color: var(--accent);
  background: var(--bg-card-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 96px; resize: vertical; }
.field .err {
  color: var(--danger);
  font-size: 13px;
  min-height: 16px;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.3) saturate(2) hue-rotate(330deg);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.form-actions .btn { flex: 1; }

/* ─────────────────────── Tab bar (floating pill) ─────────────────────── */
.tab-bar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  margin: 0 14px calc(env(safe-area-inset-bottom) + 14px);
  background: rgba(28, 22, 18, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow:
    0 14px 30px -10px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: 50;
}
.tab-bar[hidden] { display: none; }
.tab-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  min-height: 40px;
  letter-spacing: 0.01em;
  transition: color 120ms ease, background 120ms ease;
  white-space: nowrap;
}
.tab-bar a svg { width: 18px; height: 18px; flex-shrink: 0; }
.tab-bar a span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  opacity: 0;
  transition: max-width 200ms ease, opacity 160ms ease;
}
.tab-bar a.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255,120,73,0.18);
}
.tab-bar a.active span {
  max-width: 140px;
  opacity: 1;
  margin-left: 2px;
}

/* ─────────────────────── Modal / sheet ─────────────────────── */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: scrimIn 140ms ease;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%;
  background: var(--bg-card);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(env(safe-area-inset-bottom) + 18px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -16px 40px -8px rgba(0,0,0,0.7);
  animation: sheetIn 220ms cubic-bezier(0.2, 0.7, 0.25, 1);
}
@keyframes sheetIn { from { transform: translateY(20%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 14px;
}
.sheet .sheet-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sheet .close-btn {
  background: var(--bg-card-soft);
  border: 0;
  color: var(--text-dim);
  width: 30px; height: 30px;
  font-size: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.sheet .close-btn:hover { background: var(--bg-elev); color: var(--text); }

/* ─────────────────────── Toast ─────────────────────── */
.toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms cubic-bezier(0.2, 0.7, 0.25, 1);
  z-index: 200;
  max-width: calc(100% - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error  { border-color: rgba(226, 92, 92, 0.6); color: #ffd7d7; }
.toast.success{ border-color: rgba(126, 181, 107, 0.6); color: #d6f1cb; }

/* ─────────────────────── Empty state ─────────────────────── */
.empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-dim);
}
.empty h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 6px;
}
.empty p { margin: 0 0 16px; font-size: 14px; }

/* ─────────────────────── Misc ─────────────────────── */
.muted { color: var(--text-dim); }
.danger { color: var(--danger); }
.center { text-align: center; }
.spacer { flex: 1; }
.warn-banner {
  background: var(--danger-soft);
  border: 1px solid rgba(226, 92, 92, 0.4);
  color: #ffc4c4;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 12px;
}

/* Number / capacity emphasis used in details */
.num {
  font-family: var(--font-display);
  font-feature-settings: "tnum" on, "lnum" on;
}
