@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --primary: #4E342E;
  --primary-dark: #6D4C41;
  --primary-light: #8D6E63;
  --primary-muted: #D7CCC8;
  --secondary: #EFEBE9;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --success: #10B981;
  --success-light: #D1FAE5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

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

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

html {
  scroll-behavior: smooth;
}

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

/* ========== APP SHELL ========== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1E293B 100%);
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 3px solid var(--primary);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
}

.app-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

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

.app-subtitle {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: 0.15rem;
  font-weight: 400;
}

/* ========== TAB NAVIGATION ========== */

.tab-nav {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

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

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

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

/* ========== MAIN CONTENT ========== */

.app-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

/* ========== CONTROLS BAR ========== */

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.control-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.date-input, .search-input, .filter-select {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}

.date-input:focus, .search-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.date-picker-group { min-width: 140px; }
.search-group { flex: 1; min-width: 140px; }
.filter-group { min-width: 110px; }

/* ========== ROOM CARDS ========== */

.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
  transition: box-shadow 0.2s;
}

.room-card:hover {
  box-shadow: var(--shadow-md);
}

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

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.room-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.room-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.capacity-badge, .floor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--border-light);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-weight: 500;
}

.badge-icon {
  font-size: 0.8rem;
}

/* ========== AMENITIES ========== */

.amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-weight: 500;
}

.amenity-chip.small {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
}

/* ========== TIMELINE ========== */

.timeline-container {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.timeline-labels {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 52px;
}

.timeline-label {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.timeline-label:last-child {
  border-bottom: none;
}

.timeline-slots {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.timeline-slot {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.timeline-slot:last-child {
  border-bottom: none;
}

.timeline-slot.available:hover {
  background: var(--primary-light);
}

.timeline-slot.available .slot-available-indicator {
  color: var(--primary-muted);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s;
}

.timeline-slot.available:hover .slot-available-indicator {
  opacity: 1;
}

.timeline-slot.booked {
  background: var(--primary);
  cursor: default;
}

.timeline-slot.booked:hover {
  background: var(--primary-dark);
}

.timeline-slot.booking-start {
  border-top-right-radius: 4px;
}

.slot-booking-title {
  font-size: 0.68rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== MODAL ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--border-light);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.modal-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* ========== FORMS ========== */

.booking-form, .room-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-field.flex-2 { flex: 2; }

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row .form-field {
  flex: 1;
  min-width: 120px;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.time-summary {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.conflict-warning {
  background: var(--danger-light);
  color: var(--danger);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========== BUTTONS ========== */

.btn-primary {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

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

.btn-block {
  width: 100%;
}

.btn-secondary {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-icon {
  border: none;
  background: var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-icon:hover {
  background: var(--primary-light);
}

.btn-icon.danger:hover {
  background: var(--danger-light);
}

.btn-cancel {
  border: none;
  background: var(--border-light);
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-cancel:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* ========== AMENITY TOGGLES ========== */

.amenity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.amenity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.amenity-toggle:hover {
  border-color: var(--primary-muted);
}

.amenity-toggle.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 500;
}

/* ========== BOOKINGS VIEW ========== */

.bookings-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bookings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.filter-pills {
  display: flex;
  gap: 0.3rem;
  background: var(--border-light);
  padding: 3px;
  border-radius: 20px;
}

.pill {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
}

.pill.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.pill:hover:not(.active) {
  color: var(--text-secondary);
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.35s ease both;
  transition: all 0.15s;
}

.booking-card:hover {
  box-shadow: var(--shadow-md);
}

.booking-card.past {
  opacity: 0.55;
}

.booking-card.today {
  border-left: 3px solid var(--primary);
}

.booking-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  flex-shrink: 0;
}

.booking-day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.booking-month {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.today-badge {
  font-size: 0.6rem;
  background: var(--primary);
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 0.2rem;
}

.booking-details {
  flex: 1;
  min-width: 0;
}

.booking-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.booking-room {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.booking-time {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

.booking-duration {
  margin-left: 0.3rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ========== STATS BAR ========== */

.stats-bar {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ========== ADMIN VIEW ========== */

.admin-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease both;
}

.form-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.admin-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.35s ease both;
  transition: box-shadow 0.15s;
}

.admin-room-row:hover {
  box-shadow: var(--shadow-md);
}

.admin-room-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.admin-room-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}

.amenity-count {
  color: var(--primary);
  font-weight: 500;
}

.admin-amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.admin-room-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* ========== EMPTY STATES ========== */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state.small {
  padding: 2rem 1rem;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.empty-state h2, .empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.empty-state p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  max-width: 320px;
  margin: 0 auto;
}

/* ========== LOADING / SKELETON ========== */

.loading-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

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

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

/* ========== RESPONSIVE ========== */

@media (max-width: 640px) {
  .app-header {
    padding: 1.25rem 1rem 1rem;
  }

  .app-title {
    font-size: 1.25rem;
  }

  .tab-label {
    display: none;
  }

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

  .tab-btn {
    padding: 0.75rem 0.5rem;
  }

  .controls-bar {
    flex-direction: column;
  }

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

  .booking-card {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .admin-room-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-room-actions {
    align-self: flex-end;
    margin-top: -0.25rem;
  }

  .stats-bar {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .timeline-labels {
    width: 42px;
  }

  .timeline-label {
    font-size: 0.55rem;
  }
}

/* ========== FOCUS STYLES ========== */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to RoomBook — your office room reservation system. Let's start by adding some meeting rooms.", "view": "user", "highlight_selector": ".tab-btn:nth-child(3)", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Head to the Manage Rooms tab and click '+ Add Room' to set up your first room with its name, capacity, and amenities like projectors or whiteboards.", "view": "user", "highlight_selector": ".btn-primary", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Select amenities by tapping the toggles — these help you filter rooms when booking.", "view": "user", "highlight_selector": ".amenity-grid", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Now switch to the Book a Room tab to see all your rooms with their availability timelines.", "view": "user", "highlight_selector": ".tab-btn:nth-child(1)", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Each room shows a timeline from 7 AM to 7 PM. Blue slots are booked, empty ones are available. Click any open slot to make a reservation.", "view": "user", "highlight_selector": ".timeline-container", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Use the date picker and filters at the top to find a room by date, capacity, or specific amenities.", "view": "user", "highlight_selector": ".controls-bar", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "Check My Bookings to see all your reservations. You can filter by upcoming or past, and cancel any future booking with one click.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 8, "narration": "That's it! Your rooms and bookings sync across all your devices automatically. Happy booking!", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"}
]
-->

.employee-auth-panel {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 520px;
}

.auth-status,
.auth-help,
.auth-message {
  font-size: 0.85rem;
}

.auth-logged-in,
.auth-logged-out {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.auth-user-name {
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.auth-user-email {
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.auth-badge {
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.auth-badge.verified {
  background: var(--success-light);
  color: var(--success);
}

.auth-badge.pending {
  background: var(--accent-light);
  color: #92400E;
}

.employee-verify-form {
  display: flex;
  gap: 0.5rem;
}

.employee-code-input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .employee-verify-form {
    flex-direction: column;
  }
}

.employee-auth-panel {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 520px;
}

.auth-status,
.auth-help,
.auth-message {
  font-size: 0.85rem;
}

.auth-logged-in,
.auth-logged-out {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.auth-user-name {
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.auth-user-email {
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.auth-badge {
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.auth-badge.verified {
  background: var(--success-light);
  color: var(--success);
}

.auth-badge.pending {
  background: var(--accent-light);
  color: #92400E;
}

.employee-verify-form {
  display: flex;
  gap: 0.5rem;
}

.employee-code-input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .employee-verify-form {
    flex-direction: column;
  }
}

.floor-plan-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.floor-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.floor-plan-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.floor-plan-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.floor-plan-map {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.floor-plan-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(148, 163, 184, 0.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.floor-plan-label {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.floor-plan-label-top { top: 10px; left: 14px; }
.floor-plan-label-bottom { bottom: 10px; left: 14px; }
.floor-plan-label-left { left: 10px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; }
.floor-plan-label-right { right: 10px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; }

.floor-plan-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.floor-plan-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16);
  position: relative;
}

.floor-plan-marker.visible .floor-plan-marker-dot {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.16);
}

.floor-plan-marker.dimmed {
  opacity: 0.35;
}

.floor-plan-marker-label {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.floor-plan-marker:hover .floor-plan-marker-dot {
  transform: scale(1.12);
}

.floor-plan-marker:hover .floor-plan-marker-label {
  background: var(--primary-dark);
}

@media (max-width: 640px) {
  .floor-plan-header {
    flex-direction: column;
  }

  .floor-plan-map {
    min-height: 240px;
  }

  .floor-plan-marker-label {
    max-width: 88px;
    font-size: 0.68rem;
  }
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-view-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--border-light);
  padding: 3px;
  border-radius: 20px;
}

.metrics-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metrics-summary-bar {
  margin-top: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metrics-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.metrics-chart-header {
  margin-bottom: 0.75rem;
}

.metrics-chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.metrics-chart-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.metrics-chart-canvas-wrap {
  position: relative;
  height: 260px;
}

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

  .admin-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-view-tabs {
    flex: 1;
  }
}

.room-qr-section {
  margin-bottom: 0.9rem;
}

.deep-link-group {
  min-width: 180px;
}

.deep-link-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.deep-link-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.deep-link-url {
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.qr-code-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.qr-code-image-wrap {
  width: 96px;
  height: 96px;
  padding: 6px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

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

.qr-code-text {
  min-width: 0;
}

.qr-code-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.qr-code-value {
  font-size: 0.72rem;
  color: var(--text-secondary);
  max-width: 260px;
  word-break: break-all;
}

.room-card .qr-code-block {
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .deep-link-banner {
    align-items: flex-start;
  }

  .qr-code-image-wrap {
    width: 88px;
    height: 88px;
  }

  .qr-code-value {
    max-width: 100%;
  }
}
