:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --danger: #dc2626;
  --ok: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.28);
  --radius: 18px;

  /* Status accents */
  --free-1: #16a34a; --free-2: #15803d;
  --busy-1: #e11d48; --busy-2: #be123c;
  --closed-1: #475569; --closed-2: #334155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Make the [hidden] attribute always win, even over our display:grid/flex rules.
   (This is why the admin login screen didn't disappear after sign-in.) */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* =====================================================================
   KIOSK
   ===================================================================== */
body.kiosk {
  background: #0b1220;
  overflow: hidden;
}
.kiosk__inner {
  height: 100vh;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

/* ---- Status hero ---- */
.hero {
  border-radius: var(--radius);
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: background 0.5s ease;
  background: linear-gradient(160deg, var(--closed-1), var(--closed-2));
}
body.is-free .hero { background: linear-gradient(160deg, var(--free-1), var(--free-2)); }
body.is-busy .hero { background: linear-gradient(160deg, var(--busy-1), var(--busy-2)); }
body.is-closed .hero { background: linear-gradient(160deg, var(--closed-1), var(--closed-2)); }

.hero__top { display: flex; align-items: flex-start; justify-content: space-between; }
.hero__room { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; max-width: 60%; }
.hero__clock { text-align: right; }
.hero__time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.hero__date { font-size: 14px; opacity: 0.85; margin-top: 4px; font-weight: 500; }

.hero__status { margin: auto 0; }
.status-word {
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.95;
}
.status-detail { font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; opacity: 0.92; margin-top: 14px; }

.book-cta {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  padding: 20px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.06s ease, background 0.15s ease, opacity 0.15s ease;
}
.book-cta:hover { background: #fff; }
.book-cta:active { transform: scale(0.985); }
.book-cta:disabled { opacity: 0.45; cursor: not-allowed; }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 26px; font-size: 13.5px;
}
.live { display: flex; align-items: center; gap: 9px; opacity: 0.9; }
.live__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.admin-link {
  color: #fff; opacity: 0.7; text-decoration: none; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3);
}
.admin-link:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

.hero__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  color: #fff; opacity: 0.6; cursor: pointer;
  background: transparent; border: none; border-radius: 8px;
  transition: opacity 0.12s ease, background 0.12s ease;
}
.icon-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.icon-btn svg { display: block; }
.icon-btn .ic-exit { display: none; }
body.is-fs .icon-btn .ic-enter { display: none; }
body.is-fs .icon-btn .ic-exit { display: block; }

/* ---- Schedule ---- */
.schedule {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.schedule__title { font-size: 18px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.2px; }
.schedule__list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }

.sched-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sched-row--booked { background: #eef2ff; border-color: #dbe3ff; }
.sched-row--past { opacity: 0.45; }
.sched-row--now { outline: 2px solid var(--brand); outline-offset: 0; }
.sched-row[role="button"] { cursor: pointer; transition: background 0.12s ease; }
.sched-row[role="button"]:hover { background: #eef5ff; border-color: #cfe0ff; }

.sched-time {
  font-size: 14.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 8px;
}
.now-pill {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 999px;
}
.sched-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sched-avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #1d4ed8);
}
.sched-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sched-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-purpose { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-empty { text-align: center; color: var(--ink-muted); font-size: 14.5px; padding: 28px 8px; }
.sched-tag { font-size: 13px; font-weight: 600; }
.sched-tag--free { color: var(--ok); }
.sched-tag--muted { color: var(--ink-muted); }

.is-loading .schedule__list::after {
  content: 'Loading…'; color: var(--ink-muted); font-size: 14px; padding: 8px;
}

/* =====================================================================
   MODAL (shared) — class-toggled, so [hidden] quirks can't apply
   ===================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 24px;
}
.modal-backdrop.open { display: grid; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes pop { from { transform: translateY(12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 18px;
  border: none; background: none; font-size: 26px; line-height: 1; color: var(--ink-muted);
  cursor: pointer; width: 34px; height: 34px; border-radius: 8px;
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.modal__title { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -0.3px; }

.field-label {
  display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--ink-soft); margin-bottom: 8px;
}
.text-input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 16px; font-family: inherit;
  transition: border 0.12s ease, box-shadow 0.12s ease;
}
.text-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }

/* Native <select> styled to match text inputs (no OS grey pill). */
select.text-input {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: var(--surface);
  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='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
  text-overflow: ellipsis;
}
#bookForm .field-label { margin-top: 6px; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-btn {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: 10px; padding: 14px 6px; font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.12s ease; font-variant-numeric: tabular-nums;
}
.slot-btn:hover { border-color: var(--brand); }
.slot-btn.is-selected { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-sm); }
.slot-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-muted); font-size: 14px; padding: 18px 8px; }

/* ---- Custom dd/mm/yyyy date picker ---- */
.dp { position: relative; }
.dp-field {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: 16px;
  font-variant-numeric: tabular-nums; cursor: pointer; transition: border 0.12s ease, box-shadow 0.12s ease;
}
.dp-field:hover { border-color: #cbd5e1; }
.dp-field[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
.dp-value { font-weight: 600; }
.dp-cal { color: var(--ink-muted); flex: none; }
.dp-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 286px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 14px;
}
.text-input--inline .dp-field, .dp--inline .dp-field { padding: 10px 12px; font-size: 14px; }
.dp-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-weight: 700; font-size: 15px; }
.dp-nav {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  width: 34px; height: 34px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer;
}
.dp-nav:hover { background: #eef2f7; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-dow { margin-bottom: 4px; }
.dp-dow-cell { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-muted); padding: 4px 0; }
.dp-day {
  border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  aspect-ratio: 1; border-radius: 8px; cursor: pointer;
}
.dp-day:hover:not(:disabled):not(.dp-empty) { background: #eff6ff; }
.dp-day.is-sel { background: var(--brand); color: #fff; }
.dp-day:disabled { color: var(--ink-muted); opacity: 0.4; cursor: default; }
.dp-empty { visibility: hidden; cursor: default; }

/* ---- Custom time picker (text input + clock dial) ---- */
.tp { position: relative; }
.tp-field {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border 0.12s ease, box-shadow 0.12s ease;
}
.tp-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
.tp-input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-family: inherit; font-size: 16px; padding: 14px; color: var(--ink);
  border-radius: 12px; font-variant-numeric: tabular-nums;
}
.tp-toggle {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-right: 4px;
  border: none; background: none; color: var(--ink-muted); cursor: pointer; border-radius: 8px;
}
.tp-toggle:hover { background: var(--surface-2); color: var(--ink); }

.tp-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 248px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px;
}
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tp-digits { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.tp-seg {
  border: none; background: var(--surface-2); color: var(--ink); font-size: 22px; font-weight: 800;
  padding: 4px 9px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.tp-seg.is-active { background: #eff6ff; color: var(--brand); }
.tp-colon { font-size: 22px; font-weight: 800; color: var(--ink-muted); }
.tp-ampm { display: flex; flex-direction: column; gap: 4px; }
.tp-ap {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 7px; cursor: pointer; font-family: inherit;
}
.tp-ap.is-sel { background: var(--brand); color: #fff; border-color: var(--brand); }

.tp-dial { position: relative; width: 220px; height: 220px; margin: 6px auto 2px; border-radius: 50%; background: var(--surface-2); cursor: pointer; }
.tp-hand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tp-hand line { stroke: var(--brand); stroke-width: 1.5; }
.tp-hand-center, .tp-hand-tip { fill: var(--brand); }
.tp-nums { position: absolute; inset: 0; }
.tp-num {
  position: absolute; transform: translate(-50%, -50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: none; background: none; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit;
  font-variant-numeric: tabular-nums; z-index: 1;
}
.tp-num:hover:not(.is-sel) { background: rgba(29, 78, 216, 0.1); }
.tp-num.is-sel { color: #fff; } /* sits over the hand tip */
.tp-foot { margin-top: 10px; text-align: right; }

.form-error { color: var(--danger); font-size: 13.5px; font-weight: 500; margin-top: 12px; }

.modal__actions { display: flex; gap: 12px; margin-top: 24px; }
.btn {
  flex: 1; border: none; border-radius: 12px; padding: 14px 16px;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background 0.12s ease, transform 0.05s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(29, 78, 216, 0.32); }
.btn--primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn--ghost { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.btn--ghost:hover { background: #eef2f7; }
.btn--danger { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.btn--danger:hover:not(:disabled) { background: #fee2e2; }
.btn--sm { flex: none; padding: 9px 16px; font-size: 13.5px; }

/* =====================================================================
   ADMIN
   ===================================================================== */
body.admin { background: var(--surface-2); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand--center { flex-direction: column; text-align: center; margin-bottom: 24px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}
.brand__title { font-weight: 800; font-size: 18px; }
.brand__subtitle { font-size: 12.5px; color: var(--ink-muted); }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow-md);
}
.login-card .text-input { margin-top: 0; }

.console { min-height: 100vh; }
.console__bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 16px 26px; box-shadow: var(--shadow-sm);
}
.console__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.text-input--inline { width: auto; padding: 10px 12px; font-size: 14px; }

.console__main { padding: 26px; max-width: 1000px; margin: 0 auto; }
.console__hint {
  background: #eff6ff; border: 1px solid #dbe9ff; color: #1e40af;
  padding: 12px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 18px;
}

.date-nav { display: flex; align-items: center; gap: 8px; }

/* ---- Register + agenda ---- */
.reg-grid {
  display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 22px;
  align-items: start; max-width: 1100px; margin: 0 auto;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card__title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin-top: 4px; }
.reg-form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.reg-form .text-input { margin-top: 0; }
.reg-form .dp-field { padding: 14px; }
.reg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-field { min-width: 0; }
.reg-field .field-label { margin-bottom: 6px; }

.agenda { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.agenda-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.agenda-time {
  flex: none; width: 108px; font-weight: 700; font-size: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums; display: flex; gap: 4px;
}
.agenda-time span { color: var(--ink-muted); }
.agenda-body { flex: 1; min-width: 0; }
.agenda-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.agenda-sub { font-size: 13px; color: var(--ink-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-row--cancelled { opacity: 0.6; }
.agenda-row--cancelled .agenda-name { text-decoration: line-through; }

@media (max-width: 860px), (orientation: portrait) {
  .reg-grid { grid-template-columns: 1fr; }
}

.cal-head { margin-bottom: 16px; }
.cal-date { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.cal-head .console__hint { margin-top: 10px; margin-bottom: 0; }

.cal-wrap {
  overflow: auto; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th, .cal td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cal th:last-child, .cal td:last-child { border-right: none; }
.cal tbody tr:last-child td { border-bottom: none; }
.cal thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-2);
  padding: 14px 10px; font-size: 13.5px; font-weight: 700; text-align: center;
}
.cal-time-col { width: 128px; }
.cal thead .cal-time-col { z-index: 3; }
.cal tbody .cal-time-col {
  position: sticky; left: 0; background: var(--surface-2);
  text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.cal-cell { height: 60px; vertical-align: middle; padding: 6px 8px; }
.cal-cell--active { background: #eef2ff; }
.cal-book { display: flex; align-items: center; gap: 8px; }
.cal-avatar {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #1d4ed8);
}
.cal-name { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-x {
  flex: none; border: none; width: 24px; height: 24px; border-radius: 6px;
  background: #fee2e2; color: var(--danger); font-size: 17px; line-height: 1; cursor: pointer;
}
.cal-x:hover:not(:disabled) { background: #fecaca; }
.cal-x:disabled { opacity: 0.5; cursor: default; }
.cal-free { color: var(--ink-muted); padding-left: 4px; }
.cal-cell--cancelled .cal-cancelled { color: var(--ink-muted); text-decoration: line-through; font-size: 13px; font-weight: 500; }

.empty { text-align: center; color: var(--ink-muted); padding: 36px; font-size: 15px; }

/* ---- Room manager ---- */
.modal--wide { max-width: 580px; }
.modal__sub { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.room-add { display: flex; gap: 10px; margin-top: 22px; }
.room-add .text-input { margin-top: 0; }
.room-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow: auto; }
.room-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.room-row__main { flex: 1; min-width: 0; }
.room-row__main .room-name { margin-top: 0; }
.room-url {
  font-size: 12px; color: var(--ink-muted); margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-row__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; }

/* =====================================================================
   TOAST
   ===================================================================== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 80;
  animation: toastIn 0.2s ease;
}
.toast--error { background: var(--danger); }
.toast--ok { background: var(--ok); }
@keyframes toastIn { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* =====================================================================
   TABLET / PORTRAIT
   ===================================================================== */
@media (max-width: 920px), (orientation: portrait) {
  .kiosk__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero { padding: 30px; }
  .status-word { font-size: clamp(52px, 14vw, 92px); }
  .console__controls { width: 100%; }
}
