@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #9FA8DA;
  --secondary: #7986CB;
  --accent: #5C6BC0;
  --light: #3F51B5;
  --bg: #E8EAF6;
  --white: #FFFFFF;
  --text: #33331A;
  --text-secondary: #5C5C3D;
  --text-muted: #8A8A6B;
  --border: #E0E4B8;
  --border-light: #EEF0D4;
  --card-bg: #FFFFFF;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --success: #2E7D32;
  --success-light: #E8F5E9;
  --shadow-sm: 0 1px 3px rgba(100, 90, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(100, 90, 20, 0.08);
  --shadow-lg: 0 8px 24px rgba(100, 90, 20, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
}

::selection {
  background: var(--light);
  color: var(--primary);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== APP SHELL ===== */
.app-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 80px;
  min-height: 100vh;
}

.app-header {
  text-align: center;
  padding: 28px 0 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.8rem;
}

.brand-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* ===== STATS HEADER ===== */
.stats-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
}

.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }

.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.2;
}

.next-up-value {
  font-size: 1rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.stat-detail {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.skeleton-stat {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 72px;
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: var(--bg);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(130, 119, 23, 0.25);
}

.tab-icon {
  font-size: 1rem;
}

/* ===== ADD PARTY ===== */
.add-party-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-party-btn:hover {
  border-color: var(--accent);
  background: rgba(175, 180, 43, 0.06);
  color: var(--primary);
}

.btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.add-party-form {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.3s ease both;
}

.form-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 400;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-field {
  flex: 1;
  margin-bottom: 12px;
}

.form-field-small {
  flex: 0 0 100px;
}

.form-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s ease;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(175, 180, 43, 0.15);
  background: var(--white);
}

.form-field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-cancel {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--bg);
}

.btn-submit {
  padding: 10px 24px;
  border: none;
  background: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(130, 119, 23, 0.25);
}

.btn-submit:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(130, 119, 23, 0.3);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== WAITLIST CARDS ===== */
.waitlist-list,
.seated-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-card,
.seated-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  animation: fadeInUp 0.35s ease both;
}

.waitlist-card:nth-child(1) { animation-delay: 0s; }
.waitlist-card:nth-child(2) { animation-delay: 0.04s; }
.waitlist-card:nth-child(3) { animation-delay: 0.08s; }
.waitlist-card:nth-child(4) { animation-delay: 0.12s; }
.waitlist-card:nth-child(5) { animation-delay: 0.16s; }
.waitlist-card:nth-child(6) { animation-delay: 0.20s; }
.waitlist-card:nth-child(7) { animation-delay: 0.24s; }
.waitlist-card:nth-child(8) { animation-delay: 0.28s; }

.waitlist-card:hover,
.seated-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.card-position {
  background: var(--primary);
  color: var(--white);
  font-family: 'DM Serif Display', serif;
  font-size: 0.88rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-party-size {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.party-icon {
  font-size: 0.72rem;
}

.card-phone {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.card-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 4px;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.wait-time {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--secondary);
}

.est-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 1px 7px;
  background: var(--bg);
  border-radius: 12px;
}

.seated-time {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--success);
}

.waited-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 12px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn-seat {
  padding: 8px 14px;
  border: none;
  background: var(--success);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-seat:hover {
  background: #1B5E20;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.btn-remove,
.btn-clear {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove:hover,
.btn-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

/* ===== SEATED VIEW ===== */
.seated-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.summary-stat {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
}

.summary-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.clear-all-area {
  margin-left: auto;
}

.btn-clear-all {
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s ease;
}

.btn-clear-all:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.confirm-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-confirm-yes {
  padding: 5px 12px;
  border: none;
  background: var(--danger);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.btn-confirm-no {
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
}

.seated-card {
  border-left: 3px solid var(--success);
}

.seated-card:nth-child(1) { animation-delay: 0s; }
.seated-card:nth-child(2) { animation-delay: 0.04s; }
.seated-card:nth-child(3) { animation-delay: 0.04s; }
.seated-card:nth-child(4) { animation-delay: 0.08s; }
.seated-card:nth-child(5) { animation-delay: 0.12s; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  animation: fadeInUp 0.4s ease both;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-state h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.app-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== SKELETON ===== */
.skeleton-card {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  min-height: 80px;
  margin-bottom: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .app-shell {
    padding: 0 12px 80px;
  }

  .stats-header {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .stat-card {
    padding: 10px 8px;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.66rem;
  }

  .stat-detail {
    display: none;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-field-small {
    flex: 1;
  }

  .waitlist-card,
  .seated-card {
    padding: 12px;
    gap: 10px;
  }

  .card-position {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .card-name {
    font-size: 0.95rem;
  }

  .card-actions {
    flex-direction: row;
  }

  .seated-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .clear-all-area {
    margin-left: 0;
  }

  .brand-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 380px) {
  .btn-seat {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .confirm-clear {
    flex-wrap: wrap;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Olive Grove Waitlist — your digital restaurant waiting list. At the top you can see live stats: parties waiting, average wait time, and who's next.", "view": "host", "highlight_selector": ".stats-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap '+ Add Party to Waitlist' to add a new party. Enter their name, party size, phone number, and any special notes.", "view": "host", "highlight_selector": ".add-party-btn", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Each party shows their position, wait time, and estimated wait based on your average seating time. The longer you use the app, the more accurate the estimates become.", "view": "host", "highlight_selector": ".waitlist-list", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "When a table is ready, tap the green 'Seat' button to move the party to the Seated tab. This records their actual wait time for future estimates.", "view": "host", "highlight_selector": ".btn-seat", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Switch to the 'Seated' tab to see today's seated parties, total guests served, and a history of completed waits. You can clear individual records or the entire history.", "view": "host", "highlight_selector": ".tab-nav", "wait_for": "user_interaction"}
]
-->

.host-identity-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

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

.host-identity-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 400;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .host-identity-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .host-identity-name {
    text-align: left;
    max-width: 100%;
  }
}

.lobby-tv-display {
  background: linear-gradient(180deg, #1f2410 0%, #2b3116 100%);
  color: #fffde7;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.lobby-tv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.lobby-tv-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lobby-tv-subtitle {
  color: rgba(255, 253, 231, 0.72);
  font-size: 0.9rem;
  margin-top: 4px;
}

.lobby-tv-counts {
  display: flex;
  gap: 12px;
}

.lobby-tv-count {
  min-width: 88px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.lobby-tv-count-value {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  line-height: 1;
}

.lobby-tv-count-label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 231, 0.72);
}

.lobby-tv-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 253, 231, 0.72);
  margin-bottom: 10px;
}

.lobby-tv-empty {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 253, 231, 0.82);
  text-align: center;
  font-size: 1rem;
}

.lobby-tv-list {
  display: grid;
  gap: 10px;
}

.lobby-tv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}

.lobby-tv-row.is-next {
  background: rgba(205, 220, 57, 0.18);
  box-shadow: inset 0 0 0 1px rgba(205, 220, 57, 0.22);
}

.lobby-tv-row-position {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Serif Display', serif;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.lobby-tv-row-main {
  min-width: 0;
  flex: 1;
}

.lobby-tv-row-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
}

.lobby-tv-row-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-tv-row-size {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.lobby-tv-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  color: rgba(255, 253, 231, 0.78);
  font-size: 0.9rem;
}

.lobby-tv-row-notes {
  color: rgba(255, 253, 231, 0.62);
  font-style: italic;
}

.lobby-tv-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 253, 231, 0.72);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .lobby-tv-display {
    padding: 18px;
  }

  .lobby-tv-header {
    flex-direction: column;
  }

  .lobby-tv-title {
    font-size: 1.6rem;
  }

  .lobby-tv-counts {
    width: 100%;
  }

  .lobby-tv-count {
    flex: 1;
    min-width: 0;
  }

  .lobby-tv-row {
    padding: 12px;
    gap: 10px;
  }

  .lobby-tv-row-name {
    font-size: 1.1rem;
  }
}

.lobby-tv-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.chart-panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-panel-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.chart-panel-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 253, 231, 0.62);
}

.chart-panel canvas {
  width: 100% !important;
  height: 220px !important;
}

@media (max-width: 640px) {
  .lobby-tv-charts {
    grid-template-columns: 1fr;
  }

  .chart-panel canvas {
    height: 200px !important;
  }

  .chart-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.export-metrics-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.export-metrics-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.export-metrics-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.export-metrics-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 253, 231, 0.72);
}

.export-metrics-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-export {
  padding: 9px 14px;
  border: none;
  background: #fffde7;
  color: #2b3116;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-export:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-export-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fffde7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.export-metrics-status {
  font-size: 0.78rem;
  color: rgba(255, 253, 231, 0.7);
}

@media (max-width: 640px) {
  .export-metrics-actions {
    width: 100%;
  }

  .btn-export {
    flex: 1;
  }
}

.lobby-tv.display {
  background: linear-gradient(180deg, #1f2410 0%, #2b3116 100%);
  color: #fffde7;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.lobby-tv-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 253, 231, 0.72);
  margin-bottom: 4px;
}

.lobby-tv-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lobby-tv-subtitle {
  color: rgba(255, 253, 231, 0.72);
  font-size: 0.9rem;
  margin-top: 4px;
}

.lobby-tv-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.lobby-tv-stat {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.lobby-tv-stat-value {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  line-height: 1;
}

.lobby-tv-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 231, 0.72);
}

.lobby-tv-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(205, 220, 57, 0.12);
  color: #fffde7;
  font-weight: 700;
}

.lobby-tv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cd dc39;
}

.lobby-tv-list {
  display: grid;
  gap: 10px;
}

.lobby-tv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}

.lobby-tv-position {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Serif Display', serif;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.lobby-tv-party {
  min-width: 0;
  flex: 1;
}

.lobby-tv-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-tv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  color: rgba(255, 253, 231, 0.78);
  font-size: 0.9rem;
}

.lobby-tv-notes {
  color: rgba(255, 253, 231, 0.62);
  font-style: italic;
}

.lobby-tv-waiting {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lobby-tv-empty {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 253, 231, 0.82);
  text-align: center;
  font-size: 1rem;
}

.guest-check-card {
  margin-top: 16px;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guest-check-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.guest-check-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 253, 231, 0.7);
}

.guest-check-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fffde7;
}

.guest-check-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(205, 220, 57, 0.16);
  color: #fffde7;
}

.guest-check-content {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
}

.guest-check-qr-panel,
.guest-check-form {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.guest-check-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.qr-code-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.guest-check-link {
  margin-top: 12px;
}

.guest-check-link-label,
.guest-check-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 231, 0.7);
  margin-bottom: 6px;
}

.guest-check-link-code {
  display: block;
  font-size: 0.75rem;
  word-break: break-all;
  color: #fffde7;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px;
  border-radius: 10px;
}

.guest-check-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-guest-copy,
.btn-guest-check {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

.btn-guest-copy {
  padding: 8px 12px;
  background: #fffde7;
  color: #2b3116;
}

.guest-check-copy-status {
  font-size: 0.78rem;
  color: rgba(255, 253, 231, 0.72);
}

.guest-check-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-check-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffde7;
}

.btn-guest-check {
  padding: 10px 14px;
  background: #cd dc39;
  color: #2b3116;
}

.guest-check-error {
  font-size: 0.85rem;
  color: #ffb4b4;
}

.guest-check-result {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(205, 220, 57, 0.12);
}

.guest-check-result-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: #fffde7;
}

.guest-check-result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 253, 231, 0.82);
}

.guest-check-hint {
  font-size: 0.84rem;
  color: rgba(255, 253, 231, 0.72);
}

@media (max-width: 640px) {
  .guest-check-content {
    grid-template-columns: 1fr;
  }

  .lobby-tv-summary {
    flex-direction: column;
  }

  .lobby-tv-title {
    font-size: 1.6rem;
  }
}
