/* ── Family Hub — Global Styles ─────────────────────────────── */
:root {
  --teal:       #4A9E9E;
  --teal-light: #6BBCBC;
  --teal-dark:  #357070;
  --bg:         #F7F5F0;
  --surface:    #FFFFFF;
  --surface2:   #F0EDE8;
  --border:     #E2DDD6;
  --text:       #2D2D2D;
  --text-muted: #7A7570;
  --radius:     14px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);

  /* Family member colors */
  --joe:   #4A9E9E;
  --erin:  #E07B7B;
  --lyla:  #9B8EC4;
  --benny: #F0A500;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font);
  font-size: 16px;
}

/* ── Login / Who are you? ────────────────────────────────────── */
#login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(145deg, #4A9E9E22 0%, #F7F5F0 60%);
}

#login-screen h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

#login-screen .subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 480px;
  width: 100%;
}

.user-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  min-height: 140px;
}

.user-card:hover, .user-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.user-card .avatar {
  font-size: 3rem;
  line-height: 1;
}

.user-card .name {
  font-size: 1.3rem;
  font-weight: 700;
}

/* PIN screen */
#pin-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

#pin-screen.active { display: flex; }

.pin-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.pin-header .avatar { font-size: 3.5rem; }
.pin-header .name { font-size: 1.6rem; font-weight: 700; }

.pin-dots {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.pin-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--teal);
  transition: background .1s;
}
.pin-dot.filled { background: var(--teal); }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 320px;
  width: 100%;
}

.pin-btn {
  background: var(--surface);
  border-radius: 14px;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: background .1s, transform .1s;
  min-height: 70px;
}

.pin-btn:active { background: var(--surface2); transform: scale(.96); }
.pin-btn.del { font-size: 1.4rem; color: var(--text-muted); }
.pin-btn.empty { background: transparent; box-shadow: none; cursor: default; }

.pin-error {
  color: #E07B7B;
  font-size: .95rem;
  margin-top: 16px;
  min-height: 24px;
}

.back-btn {
  margin-top: 24px;
  color: var(--teal);
  background: none;
  font-size: 1rem;
  padding: 8px 16px;
}

/* ── App Shell ───────────────────────────────────────────────── */
#app {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

#app.active { display: flex; }

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.app-header .logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-dark);
  flex: 1;
}

.app-header .logo span { color: var(--teal); }

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text-muted);
}

.header-user .avatar { font-size: 1.4rem; }

.kiosk-btn, .logout-btn {
  background: var(--surface2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Tab nav ─────────────────────────────────────────────────── */
.tab-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 80px;
  padding: 14px 8px 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.tab-btn.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.tab-icon { display: block; font-size: 1.3rem; margin-bottom: 2px; }

/* ── Tab panels ──────────────────────────────────────────────── */
.tab-panel {
  display: none;
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tab-panel.active { display: block; }

/* ── Page title ──────────────────────────────────────────────── */
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
  min-height: 44px;
}

.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: #E07B7B; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; min-height: 36px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Calendar ────────────────────────────────────────────────── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month {
  font-size: 1.3rem;
  font-weight: 700;
}

.cal-nav { display: flex; gap: 8px; }

.cal-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 0;
  text-transform: uppercase;
}

.cal-cell {
  min-height: 80px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  cursor: pointer;
  transition: background .1s;
  overflow: hidden;
}

.cal-cell:hover { background: var(--surface2); }

.cal-cell.other-month { opacity: .35; }

.cal-cell.today {
  background: #4A9E9E12;
  border-color: var(--teal);
}

.cal-day-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
}

.cal-cell.today .cal-day-num {
  background: var(--teal);
  color: #fff;
}

.cal-event-chip {
  font-size: .68rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cal-event-chip .sync-icon { font-size: .6rem; }

/* ── Event modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--teal-dark);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.person-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.person-chip {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  color: #fff;
  transition: transform .1s, box-shadow .1s;
  min-height: 44px;
  display: flex; align-items: center; gap: 6px;
}

.person-chip.selected {
  box-shadow: 0 0 0 3px rgba(0,0,0,.15);
  transform: scale(1.05);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Chore chart ─────────────────────────────────────────────── */
.chore-table {
  width: 100%;
  border-collapse: collapse;
}

.chore-table th, .chore-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.chore-table th {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chore-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.chore-check {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  transition: background .1s, border-color .1s;
}

.chore-check.done {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.chore-assignee-badge {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

/* ── Stars ───────────────────────────────────────────────────── */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.star-card {
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.star-card .person-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; opacity: .85; }
.star-card .star-count { font-size: 2.5rem; font-weight: 800; }
.star-card .star-emoji { font-size: 1.4rem; margin-bottom: 4px; }

.star-controls { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.star-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Meals ───────────────────────────────────────────────────── */
.meal-week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.meal-week-label { font-weight: 700; font-size: 1rem; flex: 1; }

.meal-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 4px;
  overflow-x: auto;
}

.meal-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  min-height: 80px;
}

.meal-header {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 4px;
}

.meal-header.today-col { color: var(--teal-dark); }

.meal-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  min-height: 80px;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  transition: background .1s, border-color .1s;
}

.meal-cell:hover { background: var(--surface2); border-color: var(--teal); }
.meal-cell.has-meal { color: var(--text); font-weight: 500; }
.meal-cell.today-col { border-color: var(--teal); background: #4A9E9E08; }

/* ── Lists ───────────────────────────────────────────────────── */
.lists-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .lists-layout { grid-template-columns: 1fr; }
}

.list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-tab-btn {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
}

.list-tab-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  min-height: 52px;
}

.list-item input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.list-item .item-text {
  flex: 1;
  font-size: .95rem;
}

.list-item.checked .item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.list-item .del-item {
  color: var(--text-muted);
  background: none;
  font-size: 1.1rem;
  padding: 4px;
  opacity: .4;
}

.list-item:hover .del-item { opacity: 1; }

.add-item-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.add-item-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 1rem;
}

/* ── Countdowns ──────────────────────────────────────────────── */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.countdown-card {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.countdown-card .days {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.countdown-card .days-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.countdown-card .event-name { font-size: 1rem; font-weight: 700; }
.countdown-card .event-date { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.countdown-card .del-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  opacity: .4;
}

.countdown-card:hover .del-btn { opacity: 1; }

/* ── Settings tab ────────────────────────────────────────────── */
.settings-section {
  margin-bottom: 32px;
}

.settings-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.feed-item .feed-color {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-item .feed-info { flex: 1; }
.feed-item .feed-name { font-weight: 700; font-size: .95rem; }
.feed-item .feed-url { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

.sync-bar {
  background: var(--surface2);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.sync-bar .last-sync { flex: 1; font-size: .9rem; color: var(--text-muted); }

.help-box {
  background: #4A9E9E10;
  border: 1.5px solid var(--teal);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .88rem;
  color: var(--teal-dark);
  margin-top: 8px;
}

.help-box code {
  background: rgba(0,0,0,.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: .85em;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.emoji-opt {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface2);
  font-size: 1.4rem;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
}

.emoji-opt.selected { border-color: var(--teal); background: #4A9E9E15; }

/* ── Kiosk ───────────────────────────────────────────────────── */
#kiosk-view {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  font-size: 18px;
}

#kiosk-view.active { display: grid; }

.kiosk-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 100vh;
  overflow: hidden;
}

.kiosk-left {
  background: var(--surface);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kiosk-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

.kiosk-panel {
  border: 1px solid var(--border);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kiosk-panel-title {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.kiosk-header {
  padding: 16px 20px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-header .kiosk-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.kiosk-header .kiosk-clock {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.kiosk-header .kiosk-date {
  font-size: .9rem;
  opacity: .85;
}

.kiosk-cal-mini {
  padding: 12px;
  flex: 1;
  overflow: hidden;
}

.kiosk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.kiosk-cal-dow {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 0;
}

.kiosk-cal-cell {
  min-height: 36px;
  border-radius: 6px;
  padding: 3px;
  font-size: .75rem;
  border: 1px solid transparent;
}

.kiosk-cal-cell.today {
  border-color: var(--teal);
  background: #4A9E9E12;
}

.kiosk-cal-day { font-weight: 700; color: var(--text-muted); font-size: .7rem; }
.kiosk-cal-cell.today .kiosk-cal-day { color: var(--teal-dark); }

.kiosk-cal-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin: 1px;
}

.kiosk-upcoming {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  max-height: 200px;
}

.kiosk-event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.kiosk-event-row:last-child { border-bottom: none; }

.kiosk-event-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kiosk-chore-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.kiosk-chore-check {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.kiosk-chore-check.done {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.kiosk-meal-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: flex-start;
  font-size: .95rem;
}

.kiosk-meal-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: .8rem;
  width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
}

.kiosk-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  padding: 5px 0;
}

.kiosk-clock-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1;
}

.kiosk-date-big {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.kiosk-countdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.kiosk-countdown-days {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--teal-dark);
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.exit-kiosk-btn {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.18);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .8rem;
  z-index: 600;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 768px) {
  .cal-cell { min-height: 56px; }
  .cal-event-chip { display: none; }
  .cal-cell .cal-day-num { font-size: .85rem; }
  .meal-grid { grid-template-columns: 60px repeat(7, minmax(70px, 1fr)); }
  .kiosk-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .kiosk-right { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .85rem; }

/* spinner */
.spin {
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
