* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-subtle: #f8fafc;
  --surface-muted: #eef2ff;
  --text: #111827;
  --text-soft: #334155;
  --heading: #020617;
  --muted: #475569;
  --border: #dbe3ef;
  --border-strong: #cbd5e1;
  --shadow: rgba(15, 23, 42, 0.12);
  --navbar-bg: #1e293b;
  --navbar-text: #f8fafc;
  --navbar-muted: #94a3b8;
  --navbar-hover: #e2e8f0;
  --menu-bg: #1e293b;
  --menu-border: #334155;
  --menu-hover: #334155;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-contrast: #ffffff;
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --secondary: #6b7280;
  --secondary-strong: #4b5563;
  --secondary-border: #64748b;
  --hero-start: #0f172a;
  --hero-end: #1e293b;
  --hero-text: #f8fafc;
  --hero-muted: #cbd5e1;
  --hero-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --workspace-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --workspace-admin-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --auth-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --danger: #e74c3c;
  --danger-strong: #c0392b;
  --error-bg: #fadbd8;
  --error-text: #c0392b;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --info-bg: #dbeafe;
  --info-text: #1d4ed8;
  --footer-bg: #2c3e50;
  --footer-text: #ffffff;
}

html[data-theme="dark"] {
  --bg: #08101a;
  --surface: #121c2b;
  --surface-alt: #162235;
  --surface-subtle: #172538;
  --surface-muted: #1b2d44;
  --text: #edf3ff;
  --text-soft: #d7e2f5;
  --heading: #f8fbff;
  --muted: #b8c5da;
  --border: #314760;
  --border-strong: #48637f;
  --shadow: rgba(2, 8, 23, 0.5);
  --navbar-bg: #050b16;
  --navbar-text: #edf3ff;
  --navbar-muted: #c4d3ea;
  --navbar-hover: #ffffff;
  --menu-bg: #0b1422;
  --menu-border: #2c415d;
  --menu-hover: #16263a;
  --accent: #63c7ff;
  --accent-strong: #38bdf8;
  --accent-contrast: #04101d;
  --primary: #63c7ff;
  --primary-strong: #38bdf8;
  --secondary: #5d7290;
  --secondary-strong: #48607d;
  --secondary-border: #6f85a5;
  --hero-start: #07101c;
  --hero-end: #17304d;
  --hero-text: #f4f8ff;
  --hero-muted: #d4e0f1;
  --hero-gradient: linear-gradient(135deg, #07101c 0%, #17304d 100%);
  --workspace-gradient: linear-gradient(135deg, #07101c 0%, #17304d 100%);
  --workspace-admin-gradient: linear-gradient(135deg, #050b16 0%, #12253c 100%);
  --auth-gradient: linear-gradient(135deg, #07101c 0%, #18324f 100%);
  --danger: #f87171;
  --danger-strong: #ef4444;
  --error-bg: #43121b;
  --error-text: #fecaca;
  --success-bg: #083126;
  --success-text: #a7f3d0;
  --info-bg: #0a3652;
  --info-text: #bae6fd;
  --footer-bg: #050b16;
  --footer-text: #edf3ff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navbar */
.navbar {
  background-color: var(--navbar-bg);
  color: var(--navbar-text);
  padding: 1rem 0;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.nav-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}

.nav-brand > a {
  grid-row: 1 / span 2;
}

.nav-brand a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navbar-text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* Location Dropdown */
.location-dropdown {
  position: relative;
  margin-top: 4px;
}

.location-btn {
  background: none;
  border: none;
  color: var(--navbar-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.location-btn:hover {
  color: var(--navbar-hover);
}

.location-btn-static {
  cursor: default;
}

.location-btn-static:hover {
  color: var(--navbar-muted);
}

.location-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.location-dropdown.open .location-arrow {
  transform: rotate(180deg);
}

.location-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  border-radius: 8px;
  list-style: none;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 200;
}

.location-dropdown.open .location-menu {
  display: block;
}

.location-item {
  padding: 0;
  color: var(--navbar-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.location-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 8px 16px;
}

.location-item:hover {
  background: var(--menu-hover);
}

.location-item.active,
.location-item.active a {
  color: var(--primary);
}

.coming-soon {
  font-size: 0.68rem;
  font-weight: 500;
  background: #334155;
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.nav-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--navbar-text);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--navbar-hover);
  background: var(--menu-hover);
}

@media (max-width: 1200px) {
  .nav-menu {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.btn-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  background: var(--surface-subtle);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: var(--surface);
  border-color: var(--accent);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background: var(--surface-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
}

a.step {
  text-decoration: none;
  color: inherit;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 12px;
  font-weight: 600;
}

.step p {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Travel Guide Section */
.travel-guide {
  padding: 80px 0;
  background: var(--surface);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.travel-card {
  padding: 30px;
  background: linear-gradient(135deg, var(--surface-subtle) 0%, var(--surface-alt) 100%);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.travel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: var(--surface);
  border-color: var(--accent);
}

.travel-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.travel-card h3 {
  font-size: 1.2rem;
  color: var(--heading);
  margin-bottom: 12px;
  font-weight: 600;
}

.travel-card p {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* SOVA Events Section */
.sova-events {
  padding: 80px 0;
  background: var(--surface-alt);
}

.events-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.event-featured {
  border: 2px solid var(--accent);
  grid-column: span 1;
}

.event-featured:hover {
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.event-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.event-date .event-day {
  font-size: 0.85rem;
  opacity: 0.8;
}

.event-date .event-num {
  font-size: 1.8rem;
  font-weight: 700;
}

.event-card h3 {
  font-size: 1.2rem;
  color: var(--heading);
  margin-bottom: 12px;
  font-weight: 600;
}

.event-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: 300;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: var(--surface-muted);
  color: var(--text);
  border: 2px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--border);
  border-color: var(--border-strong);
}

.btn-danger {
  background-color: #e74c3c;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Section Pages */
.section-page {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
  background: var(--bg);
}

.section-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--surface-subtle) 0%, var(--surface-muted) 100%);
  border-radius: 12px;
}

.section-hero h1 {
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.section-content {
  padding: 40px;
  background: var(--surface-subtle);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.section-content p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

/* Employee/Admin Workspaces */
.workspace-page {
  min-height: calc(100vh - 140px);
  padding-bottom: 48px;
}

.workspace-hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  color: var(--hero-text);
  padding: 64px 20px;
  margin-bottom: 24px;
}

.workspace-hero-admin {
  background: linear-gradient(135deg, var(--hero-end) 0%, var(--hero-start) 100%);
}

.workspace-hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.workspace-hero p {
  color: var(--hero-muted);
  max-width: 760px;
}

.workspace-location-banner {
  margin-top: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.workspace-location-copy {
  color: var(--hero-muted);
  font-size: 0.95rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.reservation-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 16px;
  width: min(640px, 100%);
}

.reservation-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reservation-stat-card span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reservation-stat-card strong {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--heading);
}

.reservation-stat-card-archived {
  background: var(--surface-alt);
}

.reservations-table td,
.reservations-table th {
  vertical-align: middle;
}

.reservation-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.reservations-page .reservations-hero {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  padding: 18px;
}

.reservations-page .reservations-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.04);
}

.reservations-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.reservations-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reservations-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-alt) 14%);
}

.reservations-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface) 80%, var(--surface-muted) 20%);
}

.reservation-row-actions .btn {
  white-space: nowrap;
}

.reservation-row-actions .btn-danger {
  border: 1px solid rgba(127, 29, 29, 0.3);
}

.reservation-status-form {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.reservation-status-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.reservation-status-select {
  width: auto;
  min-width: 110px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border: none;
  background: transparent;
}

.reservation-event-groups {
  display: grid;
  gap: 14px;
}

.reservation-event-group-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
}

.reservation-event-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.reservation-event-group-head h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.05rem;
}

.reservation-event-group-metrics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#reservationDeleteModal .modal-dialog {
  border-color: #fca5a5;
  box-shadow: 0 24px 64px rgba(127, 29, 29, 0.28);
}

#reservationDeleteModal .modal-dialog-head h2 {
  color: #991b1b;
}

#reservationDeleteModal .modal-copy-soft {
  color: #7f1d1d;
}

.workspace-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  align-self: start;
}

.workspace-card h2 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.workspace-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2200;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: min(100%, 460px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(2, 8, 23, 0.25);
  padding: 24px;
}

.modal-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-dialog-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.2rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-copy {
  color: var(--text);
  margin-bottom: 10px;
}

.modal-copy-soft {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.workspace-card-critical {
  border-color: #fecaca;
  background: color-mix(in srgb, var(--surface) 78%, #7f1d1d 22%);
}

.admin-inline-message {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.admin-invite-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--hero-end);
  color: var(--hero-text);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.admin-invite-highlight strong {
  letter-spacing: 0.06em;
}

.admin-invite-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-invite-form label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}

.admin-invite-form input {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.admin-invite-form select {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.admin-invite-list h3 {
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 1rem;
}

.admin-invite-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.admin-invite-item strong {
  color: var(--heading);
}

.admin-invite-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.shift-notes-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
}

.shift-notes-form-card,
.shift-notes-list-card {
  align-self: start;
}

.shift-notes-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shift-notes-form .form-group {
  min-width: 0;
  margin-bottom: 0;
}

.shift-notes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 10px;
  min-width: 0;
}

.shift-notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shift-notes-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.shift-notes-list-head h2 {
  margin: 0;
}

.shift-note-item {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 10px;
  padding: 12px;
}

.shift-note-item-archived {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.shift-note-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.shift-note-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.shift-note-badges {
  display: flex;
  gap: 6px;
}

.shift-note-body {
  margin-top: 10px;
  white-space: pre-wrap;
  color: var(--text-soft);
}

.shift-note-edit-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.shift-note-edit-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}

.shift-note-delete {
  margin-top: 10px;
}

.shift-note-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shift-note-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Places Grid */
.places-header {
  margin-bottom: 40px;
}

.places-header-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.places-header h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.filter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

.filter-form input {
  flex: 1;
  min-width: 200px;
}

.filter-form button {
  padding: 10px 20px;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.place-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.place-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
  gap: 10px;
}

.place-header h2 {
  font-size: 1.3rem;
  flex: 1;
}

.place-header h2 a {
  color: var(--text);
  text-decoration: none;
}

.place-header h2 a:hover {
  color: var(--accent);
}

.category-badge {
  background-color: var(--accent);
  color: var(--accent-contrast);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.place-location {
  color: var(--muted);
  margin-bottom: 10px;
}

.rating {
  color: #f39c12;
  font-weight: bold;
  margin-bottom: 10px;
}

.place-description {
  color: var(--text-soft);
  margin-bottom: 15px;
  line-height: 1.5;
}

.place-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.place-actions .btn {
  flex: 1;
  min-width: 100px;
}

/* Detail Page */
.place-detail {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
}

.place-detail-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.detail-header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.detail-header h1 {
  font-size: 2.5rem;
  flex: 1;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background: var(--surface-subtle);
  border-radius: 8px;
}

.info-section h3 {
  color: var(--text);
  margin-bottom: 10px;
}

.detail-description {
  margin-bottom: 40px;
}

.detail-description h2 {
  margin-bottom: 15px;
  color: var(--text);
}

.detail-description p {
  line-height: 1.8;
  color: var(--text-soft);
}

/* Forms */
.form-container {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px;
  max-width: 700px;
  margin: 40px auto;
}

.form-container h1 {
  margin-bottom: 30px;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group--missing label {
  color: var(--error-text);
}

.field--missing,
.field--missing:focus {
  border-color: var(--error-text) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error-text) 20%, transparent) !important;
  background: color-mix(in srgb, var(--error-bg) 22%, var(--surface));
}

.validation-alert {
  margin-bottom: 16px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.form-actions .btn {
  flex: 1;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.weekday-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.weekday-grid input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Auth Container */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--auth-gradient);
  padding: 20px;
}

.auth-box {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.auth-box h1 {
  color: var(--text);
  margin-bottom: 30px;
  text-align: center;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--text-soft);
}

.auth-link a {
  color: var(--accent);
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.auth-link-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.auth-link-secondary span {
  color: var(--muted);
}

.coming-soon-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-credentials {
  background: var(--surface-subtle);
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.demo-credentials p {
  margin: 5px 0;
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.auth-subtext {
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
}

.alert-error {
  background-color: var(--error-bg);
  color: var(--error-text);
  border-left: 4px solid var(--error-text);
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-left: 4px solid var(--success-text);
}

.alert-info {
  background-color: var(--info-bg);
  color: var(--info-text);
  border-left: 4px solid var(--info-text);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

/* Content Page */
.content-page {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
}

.content-page h1 {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.content-page h2 {
  color: var(--text);
  margin-top: 30px;
  margin-bottom: 20px;
}

.content-page p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 15px;
}

.support-page {
  display: grid;
  gap: 28px;
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface-subtle) 0%, var(--surface) 55%, var(--surface-alt) 100%);
}

.support-eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.support-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.support-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

.support-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.support-section {
  display: grid;
  gap: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.support-section-heading h2,
.support-card h3 {
  color: var(--heading);
}

.support-section-heading p,
.support-card p,
.support-list {
  color: var(--text-soft);
}

.support-faq-list {
  display: grid;
  gap: 14px;
}

.support-faq-item {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 60%, transparent);
  overflow: hidden;
}

.support-faq-question {
  list-style: none;
  cursor: pointer;
  padding: 22px 52px 22px 24px;
  position: relative;
  color: var(--heading);
  font-size: 1.02rem;
  font-weight: 700;
}

.support-faq-question::-webkit-details-marker {
  display: none;
}

.support-faq-question::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.support-faq-item[open] .support-faq-question::after {
  content: '\2212';
}

.support-faq-answer {
  padding: 0 24px 22px;
}

.support-faq-answer p {
  margin: 0;
  color: var(--text-soft);
}

.support-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 60%, transparent);
}

.support-card h3 {
  margin-bottom: 12px;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.support-contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.support-contact-meta strong {
  color: var(--heading);
  display: block;
  margin-bottom: 6px;
}

.support-contact-meta p,
.support-contact-meta a {
  color: var(--text-soft);
  margin: 0;
  text-decoration: none;
}

.support-contact-meta a:hover {
  color: var(--accent);
}

.support-form {
  display: grid;
  gap: 8px;
}

.support-list {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.support-list li::marker {
  color: var(--accent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.team-member {
  background: var(--surface-subtle);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.team-member h3 {
  color: var(--text);
  margin-bottom: 10px;
}

.team-member p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Empty State */
.empty-state {
  background: var(--surface);
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state p {
  font-size: 1.2rem;
}

.empty-state a {
  color: var(--accent);
  text-decoration: none;
}

.empty-state a:hover {
  text-decoration: underline;
}

/* Error Page */
.error-page {
  background: var(--surface);
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}

.error-page h1 {
  color: #c0392b;
  margin-bottom: 20px;
  font-size: 3rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    gap: 12px;
  }

  .nav-menu {
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-menu {
    flex: 1 1 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .places-grid {
    grid-template-columns: 1fr;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-form {
    flex-direction: column;
  }

  .filter-form input,
  .filter-form select {
    width: 100%;
  }

  .form-container {
    padding: 20px;
  }

  .place-detail {
    padding: 20px;
  }

  .auth-box {
    padding: 20px;
  }

  .content-page {
    padding: 20px;
  }

  .support-hero,
  .support-grid,
  .support-contact-meta {
    grid-template-columns: 1fr;
  }

  .support-quick-links {
    justify-content: flex-start;
  }
}

/*  Tag Pills  */
.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.detail-tags {
  margin-top: -10px;
  margin-bottom: 20px;
}

.tag-pill {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.tag-pill:hover {
  background-color: #0369a1;
  color: white;
}

.tags-input-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  background: var(--surface);
}

.tags-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0ff;
  color: #2c3e80;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.tag-remove-btn {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.tag-entry-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 180px;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 4px;
  background: transparent;
  color: var(--text);
}

/*  Staff Endorsements  */
.endorsements-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
}

.endorsements-section h2 {
  color: #1e293b;
  margin-bottom: 4px;
}

.endorsements-subtitle {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.endorsements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.endorsement-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.endorsement-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.endorsement-body {
  flex: 1;
}

.endorsement-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.endorsement-role {
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}

.endorsement-text {
  color: #475569;
  font-style: italic;
  line-height: 1.6;
}

/*  Reservation CTA  */
.reservation-cta {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 10px;
  color: white;
  text-align: center;
}

.reservation-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.reservation-cta p {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.reservation-cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.reservation-text-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.reservation-text-link:hover {
  color: #93c5fd;
}

.reservation-empty {
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 12px;
}

.reservation-edit-link {
  display: inline-block;
  margin-top: 14px;
  color: #93c5fd;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(147, 197, 253, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}

.reservation-edit-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/*  Form Hint  */
.form-hint {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.85rem;
}

/* ── Events Page Layout ─────────────────────── */
.events-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 25px;
}

.events-city-section {
  margin: 28px 0 24px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-subtle) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.events-city-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.events-city-copy {
  max-width: 760px;
}

.events-page-header h1 {
  font-size: 2rem;
  color: var(--heading);
}

.events-showcase {
  padding-bottom: 40px;
}

.events-list-section {
  margin-bottom: 20px;
}

.events-list-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.events-list-section-head h2 {
  margin-bottom: 6px;
  color: var(--heading);
}

/* ── Card Quick Links ───────────────────────── */
.card-quick-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.card-quick-link {
  color: #3b82f6;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.card-quick-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ── Badge Status Pills ─────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.governance-user-title-row .badge-status,
.governance-badge-stack .badge-status,
.governance-command-bar-notes .badge-status,
.governance-audit-badges .badge-status,
.audit-badge-row .badge-status {
  flex: 0 0 auto;
  align-self: flex-start;
}

.badge-pending  { background: #fef9c3; color: #854d0e; }
.badge-draft { background: #e2e8f0; color: #334155; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-attraction { background: #ffedd5; color: #9a3412; }
.badge-note-guest { background: #fae8ff; color: #86198f; }
.badge-note-employees { background: #dbeafe; color: #1d4ed8; }
.badge-note-management { background: #ede9fe; color: #5b21b6; }
.badge-pinned { background: #fef3c7; color: #92400e; }
.badge-admin-update { background: #dbeafe; color: #1d4ed8; }
.badge-city { background: #dcfce7; color: #166534; }
.badge-city-soft { background: #ecfccb; color: #3f6212; }
.badge-admin    { background: #ede9fe; color: #5b21b6; }
.badge-employee { background: #dbeafe; color: #1d4ed8; }
.badge-customer { background: #f0fdf4; color: #166534; }
.badge-user     { background: #f1f5f9; color: #475569; }

/* ── Muted helper text ──────────────────────── */
.muted-text {
  color: #94a3b8;
  font-style: italic;
}

.governance-page {
  padding-top: 28px;
  padding-bottom: 40px;
}

.governance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}

.governance-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.35rem;
}

.governance-summary-card-accent {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  border-color: transparent;
}

.governance-summary-card-accent strong,
.governance-summary-card-accent p,
.governance-summary-card-accent .governance-summary-label {
  color: #f8fafc;
}

.governance-summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.governance-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--heading);
}

.governance-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.governance-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
  margin-bottom: 1.5rem;
}

.governance-command-bar h2 {
  margin-bottom: 0.25rem;
  color: var(--heading);
}

.governance-command-bar p {
  margin: 0;
  color: var(--muted);
}

.governance-command-bar-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.governance-filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.5rem;
}

.governance-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(180px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
}

.governance-filter-field {
  display: grid;
  gap: 8px;
}

.governance-filter-field span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.governance-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.governance-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.governance-user-grid {
  display: grid;
  gap: 18px;
}

.governance-user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.07);
}

.governance-user-card-self {
  border-color: #bfdbfe;
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.09);
}

.governance-user-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
}

.governance-user-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.25rem;
}

.governance-user-title-row h3 {
  margin: 0;
  color: var(--heading);
}

.governance-user-email {
  margin: 0;
  color: var(--muted);
}

.governance-user-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.85rem;
}

.governance-user-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.4fr);
  gap: 16px;
}

.governance-user-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: var(--surface-subtle);
  display: grid;
  gap: 0.95rem;
}

.governance-user-panel-form {
  background: var(--surface);
}

.governance-user-panel h4 {
  margin: 0;
  color: var(--heading);
}

.governance-info-list {
  display: grid;
  gap: 10px;
}

.governance-info-item {
  display: grid;
  gap: 3px;
}

.governance-info-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.governance-info-item strong {
  color: var(--heading);
  font-size: 0.96rem;
}

.governance-panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.governance-form {
  display: grid;
  gap: 14px;
  min-width: 240px;
}

.governance-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.governance-field {
  display: grid;
  gap: 8px;
}

.governance-field > span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.governance-select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

.governance-city-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.governance-city-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-subtle);
  font-size: 0.84rem;
  color: var(--text-soft);
}

.governance-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.governance-form-guidance {
  display: grid;
  gap: 4px;
}

.governance-risk-banner {
  display: none;
  gap: 6px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--error-text) 35%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--error-bg) 92%, var(--surface) 8%) 0%, var(--error-bg) 100%);
}

.governance-risk-banner-visible {
  display: grid;
}

.governance-risk-banner strong {
  color: var(--error-text);
}

.governance-risk-banner p {
  margin: 0;
  color: var(--error-text);
  font-size: 0.9rem;
}

.governance-audit-history,
.governance-audit-empty {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-subtle);
  padding: 0.95rem 1rem;
}

.governance-audit-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
}

.governance-audit-summary {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.governance-audit-list {
  display: grid;
  gap: 12px;
  margin-top: 0.9rem;
}

.governance-audit-item {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  display: grid;
  gap: 6px;
}

.governance-audit-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.governance-audit-item-head strong {
  color: var(--heading);
}

.governance-audit-item-head span,
.governance-audit-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
}

.governance-audit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.governance-danger-zone {
  display: grid;
  gap: 12px;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--error-text) 35%, transparent);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--error-bg) 88%, var(--surface) 12%) 0%, var(--error-bg) 100%);
}

.governance-danger-zone strong {
  color: var(--error-text);
}

.governance-danger-zone p {
  margin: 0.25rem 0 0;
  color: var(--error-text);
  font-size: 0.92rem;
}

.governance-danger-form {
  display: grid;
  gap: 12px;
}

.governance-empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: grid;
  gap: 0.75rem;
}

.governance-empty-state h3,
.governance-audit-empty strong {
  margin: 0;
  color: var(--heading);
}

.governance-empty-state p,
.governance-audit-empty p {
  margin: 0;
  color: var(--muted);
}

.platform-config-page {
  padding-top: 28px;
  padding-bottom: 40px;
  display: grid;
  gap: 18px;
}

.platform-config-hero {
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--hero-end) 24%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 42%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface) 84%, var(--surface-subtle) 16%) 0%, var(--surface) 100%);
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.platform-config-hero-copy h1 {
  margin: 0 0 0.4rem;
}

.platform-config-hero-copy p {
  margin: 0;
  color: var(--muted);
}

.platform-config-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.platform-config-quick-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-config-hero-actions {
  display: flex;
  justify-content: flex-end;
}

.platform-config-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-summary-pill {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.15rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.platform-summary-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.platform-summary-pill strong {
  color: var(--heading);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.platform-config-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 1.5rem;
}

.platform-config-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.platform-config-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
}

.platform-config-panel-head h2 {
  margin-bottom: 0.35rem;
}

.platform-config-panel-head p {
  color: var(--muted);
  margin: 0;
}

.platform-config-form {
  display: grid;
  gap: 1rem;
}

.platform-config-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-config-field {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
}

.platform-config-field-wide {
  grid-column: span 3;
}

.platform-config-form label,
.platform-city-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
  font-weight: 600;
}

.platform-config-form label span,
.platform-city-card label span {
  font-size: 0.9rem;
}

.platform-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
}

.platform-config-city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.platform-city-card {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
  display: grid;
  gap: 0.85rem;
}

.platform-city-card-enabled {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success-text) 22%, transparent);
}

.platform-city-card-disabled {
  opacity: 0.92;
}

.platform-city-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.platform-city-card-head h3 {
  margin-bottom: 0.2rem;
}

.platform-city-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.platform-config-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
}

.platform-config-toggle input {
  width: 18px;
  height: 18px;
}

.platform-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface-subtle);
  display: grid;
  gap: 0.25rem;
}

.platform-stat-card strong {
  font-size: 1.4rem;
  color: var(--heading);
}

.platform-stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-config-runtime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.platform-doc-list {
  display: grid;
  gap: 12px;
}

.platform-doc-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface-subtle);
}

.platform-doc-item h3 {
  margin-bottom: 0.35rem;
}

.platform-doc-item p {
  margin: 0;
  color: var(--muted);
}

.audit-page {
  padding-top: 28px;
  padding-bottom: 40px;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}

.audit-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.35rem;
}

.audit-summary-card-accent {
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
  border-color: transparent;
}

.audit-summary-card-accent strong,
.audit-summary-card-accent p,
.audit-summary-card-accent .audit-summary-label {
  color: #f8fafc;
}

.audit-summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.audit-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--heading);
}

.audit-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.audit-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
  margin-bottom: 1.5rem;
}

.audit-command-bar h2 {
  margin-bottom: 0.25rem;
}

.audit-command-bar p {
  margin: 0;
  color: var(--muted);
}

.audit-command-bar-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.audit-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.audit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 1rem;
}

.audit-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.audit-panel-head h2 {
  margin-bottom: 0.25rem;
}

.audit-panel-head p {
  margin: 0;
  color: var(--muted);
}

.audit-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audit-monitor-card,
.audit-status-pill {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: var(--surface-subtle);
  display: grid;
  gap: 0.3rem;
}

.audit-monitor-card strong,
.audit-status-pill strong {
  color: var(--heading);
  font-size: 1.35rem;
}

.audit-monitor-card span,
.audit-status-pill span {
  color: var(--muted);
  font-size: 0.9rem;
}

.audit-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.audit-feed-list,
.audit-reservation-list {
  display: grid;
  gap: 12px;
}

.audit-feed-item,
.audit-reservation-item,
.audit-empty-state {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: var(--surface-subtle);
}

.audit-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.4rem;
}

.audit-feed-head strong {
  color: var(--heading);
}

.audit-feed-head span,
.audit-feed-item p,
.audit-reservation-item p,
.audit-feed-note {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.audit-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.7rem;
  align-items: center;
}

.audit-feed-note {
  margin-top: 0.65rem;
}

.audit-empty-state strong {
  color: var(--heading);
}

/* ── Reservation form panels ────────────────── */
.reservation-form-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  max-width: 520px;
}

.reservation-form-panel h3 {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

/* Discussion Board */
.discussion-page {
  max-width: 1520px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.account-settings-page {
  padding-top: 28px;
  padding-bottom: 40px;
}

.account-directory-page,
.account-profile-view {
  padding-top: 28px;
  padding-bottom: 40px;
}

.team-directory-hero,
.account-profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-subtle) 100%);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--shadow) 70%, transparent);
}

.team-directory-hero h1,
.account-profile-hero h1 {
  margin-bottom: 10px;
  color: var(--heading);
}

.team-directory-hero p,
.account-profile-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 780px;
}

.team-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.team-member-card,
.account-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow) 65%, transparent);
}

.team-member-card-head,
.account-profile-card-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.team-member-avatar,
.account-profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, black) 100%);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.team-member-avatar img,
.account-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-card h2,
.team-member-card h3,
.account-profile-card h2,
.account-profile-card h3 {
  margin: 0 0 6px;
  color: var(--heading);
}

.team-member-subtitle,
.account-profile-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.team-member-meta,
.account-profile-meta,
.account-profile-summary {
  display: grid;
  gap: 12px;
}

.team-member-meta span,
.account-profile-meta span,
.account-profile-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-member-meta strong,
.account-profile-meta strong,
.account-profile-summary strong {
  color: var(--heading);
}

.team-city-list,
.account-city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.team-directory-actions,
.account-profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.account-profile-bio {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.account-activity-list {
  display: grid;
  gap: 10px;
}

.account-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-subtle);
}

.account-activity-item strong a {
  color: var(--heading);
  text-decoration: none;
}

.account-activity-item strong a:hover {
  text-decoration: underline;
}

.account-activity-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-profile-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-summary > div,
.account-profile-meta > div,
.team-member-meta > div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.account-directory-empty {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.account-settings-command-center {
  display: grid;
  gap: 20px;
}

.account-settings-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.account-settings-hero h1 {
  margin-bottom: 8px;
}

.account-settings-hero p {
  color: var(--muted);
  max-width: 720px;
}

.account-settings-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-identity-card,
.account-summary-grid,
.account-tablist,
.account-panel,
.account-command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.account-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, var(--surface-subtle) 0%, var(--surface) 58%, var(--surface-alt) 100%);
}

.account-command-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-command-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.account-command-profile h2 {
  margin: 0 0 6px;
  color: var(--heading);
}

.account-command-profile p {
  margin: 0;
  color: var(--muted);
}

.account-command-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-command-stat {
  border-radius: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  padding: 16px;
}

.account-command-stat span,
.account-summary-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-command-stat strong,
.account-summary-card strong {
  color: var(--heading);
  font-size: 1rem;
}

.account-avatar-shell {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.account-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-tablist {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-tablist-top {
  padding: 12px;
}

.account-tab {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 140px;
}

.account-tab:hover,
.account-tab.active {
  background: var(--surface-muted);
  color: var(--accent);
}

.account-tab-danger:hover,
.account-tab-danger.active {
  background: #fef2f2;
  color: #b91c1c;
}

.account-panel-stack {
  min-width: 0;
}

.account-panel-overview {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-subtle) 100%);
}

.account-panel-stack-inner {
  display: grid;
  gap: 20px;
}

.account-tab-panel {
  display: none;
}

.account-tab-panel.active {
  display: block;
}

.account-panel {
  padding: 24px;
}

.account-panel-featured {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-subtle) 100%);
}

.account-panel-danger {
  border-color: color-mix(in srgb, var(--error-text) 35%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--error-bg) 28%, var(--surface) 72%) 0%, color-mix(in srgb, var(--error-bg) 52%, var(--surface) 48%) 100%);
}

.account-panel-head {
  margin-bottom: 18px;
}

.account-panel-head h2 {
  margin-bottom: 8px;
  color: var(--heading);
}

.account-panel-head p {
  color: var(--muted);
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.account-overview-tile {
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-overview-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.08);
}

.account-overview-tile-label {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.account-overview-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 1rem;
}

.account-overview-tile p,
.account-summary-card p {
  margin: 0;
  color: var(--muted);
}

.account-overview-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-summary-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-profile-grid {
  display: grid;
  gap: 20px;
}

.account-avatar-editor {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-subtle) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}

.account-avatar-editor-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-avatar-preview-large {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.16);
}

.account-avatar-fallback-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  color: #eff6ff;
  font-size: 4rem;
  font-weight: 800;
}

.account-avatar-editor-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.account-avatar-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-avatar-editor-copy h3,
.account-panel-section h3,
.account-preview-card h3 {
  margin: 0;
  color: var(--heading);
}

.account-avatar-editor-copy p {
  margin: 0;
  color: var(--muted);
}

.account-panel-section {
  display: grid;
  gap: 14px;
}

.account-inline-check {
  width: fit-content;
}

.account-upload-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.account-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-upload-trigger {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.account-upload-trigger-title {
  font-weight: 700;
  font-size: 1rem;
}

.account-upload-trigger-copy {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.82);
}

.account-upload-meta {
  display: grid;
  gap: 6px;
}

.account-upload-file-name {
  color: var(--heading);
  font-weight: 600;
}

.account-upload-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-avatar-cropper {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.account-avatar-cropper[hidden] {
  display: none;
}

.account-avatar-cropper-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}

.account-avatar-cropper-dialog {
  position: relative;
  width: min(100%, 620px);
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border-strong);
}

.account-avatar-cropper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-avatar-cropper-head strong {
  color: var(--heading);
  display: block;
}

.account-avatar-cropper-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-avatar-cropper-close {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
}

.account-avatar-crop-stage {
  display: grid;
  place-items: center;
}

.account-avatar-crop-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.5) 0 12px, rgba(219, 234, 254, 0.65) 12px 24px);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  cursor: grab;
  touch-action: none;
}

.account-avatar-crop-frame.is-dragging {
  cursor: grabbing;
}

.account-avatar-crop-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at center, transparent 0 44%, rgba(15, 23, 42, 0.42) 45% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.account-avatar-crop-frame::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0);
  pointer-events: none;
}

.account-avatar-crop-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
  user-select: none;
  pointer-events: none;
}

.account-avatar-crop-image.is-dragging {
  transition: none;
}

.account-avatar-crop-toolbar {
  display: grid;
  gap: 10px;
}

.account-avatar-crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-avatar-crop-tip {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.account-avatar-crop-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.account-avatar-crop-open {
  overflow: hidden;
}

.account-avatar-advanced {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 14px 16px;
}

.account-avatar-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}

.account-avatar-advanced .form-group {
  margin-top: 14px;
}

.account-remove-photo-option {
  width: 100%;
  align-items: flex-start;
}

.account-remove-photo-option span {
  display: grid;
  gap: 4px;
}

.account-remove-photo-option strong {
  color: var(--heading);
}

.account-remove-photo-option small {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-customization-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.account-preview-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-subtle) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.account-preview-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
}

.account-preview-label {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.account-theme-swatches {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.theme-swatch {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid transparent;
}

.theme-swatch.active {
  border-color: var(--heading);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.theme-swatch-light {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
}

.theme-swatch-dark {
  background: linear-gradient(135deg, #07101c 0%, #17304d 100%);
}

.form-group-full {
  grid-column: 1 / -1;
}

.account-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-soft);
}

.account-notification-stack {
  display: grid;
  gap: 14px;
}

.account-notification-card {
  align-items: flex-start;
  padding: 16px;
}

.account-notification-card span {
  display: grid;
  gap: 4px;
}

.account-notification-card strong {
  color: var(--heading);
}

.account-notification-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-status-card {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.success-state {
  background: var(--success-bg);
  border: 1px solid color-mix(in srgb, var(--success-text) 32%, transparent);
  color: var(--success-text);
}

.info-state {
  background: var(--info-bg);
  border: 1px solid color-mix(in srgb, var(--info-text) 32%, transparent);
  color: var(--info-text);
}

.account-danger-note {
  background: var(--error-bg);
  border: 1px solid color-mix(in srgb, var(--error-text) 35%, transparent);
  border-radius: 14px;
  padding: 16px;
  color: var(--error-text);
  margin-bottom: 18px;
}

.account-danger-note strong {
  display: block;
  margin-bottom: 6px;
}

.account-danger-note p {
  margin: 0;
  color: inherit;
}

.two-factor-setup-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0;
}

.two-factor-qr {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
}

.queue-page {
  padding-top: 32px;
  padding-bottom: 40px;
}

.queue-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.queue-page-header h1 {
  margin-bottom: 8px;
}

.reservations-page {
  padding-top: 28px;
  padding-bottom: 40px;
}

.reservations-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-subtle) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.reservations-hero h1 {
  margin-bottom: 8px;
  color: var(--heading);
}

.reservations-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 760px;
}

.reservations-section {
  margin-top: 24px;
}

.reservations-section-head {
  margin-bottom: 16px;
}

.reservations-section-head h2 {
  margin-bottom: 6px;
}

.reservations-section-head p {
  margin: 0;
  color: var(--muted);
}

.reservable-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.reservable-event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.reservable-event-card-selected {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 18%, rgba(15, 23, 42, 0.08));
}

.reservable-event-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.reservable-event-card h3 {
  margin-bottom: 6px;
}

.reservable-event-card h3 a {
  color: var(--heading);
  text-decoration: none;
}

.reservable-event-card h3 a:hover {
  color: var(--accent);
}

.reservable-event-meta,
.reservable-event-time {
  color: var(--text-soft);
}

.reservable-event-form {
  margin-top: 16px;
}

.reservable-event-form-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.form-group-grow {
  min-width: 0;
}

.reservable-event-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.queue-page-intro {
  color: #475569;
  max-width: 720px;
}

.queue-list {
  display: grid;
  gap: 18px;
}

.queue-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.queue-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.queue-sidebar-tablist {
  display: grid;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.queue-sidebar-tab {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.queue-sidebar-tab:hover,
.queue-sidebar-tab.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.queue-sidebar-panels {
  min-width: 0;
}

.queue-sidebar-panel {
  display: grid;
  gap: 16px;
}

.queue-sidebar-empty-note {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  color: #64748b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.queue-sidebar-empty-note strong {
  display: block;
  color: #0f172a;
  margin-bottom: 6px;
}

.queue-section {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.queue-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.queue-section-header h2 {
  margin-bottom: 6px;
}

.queue-section-header p {
  margin: 0;
  color: #64748b;
}

.queue-section-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 20px 22px;
}

.queue-section-empty p {
  margin: 0;
  color: #64748b;
}

.queue-section-empty p + p {
  margin-top: 10px;
}

.queue-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.queue-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.queue-card-head h2 {
  margin-bottom: 6px;
}

.queue-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.queue-city-banner {
  margin-top: 10px;
}

.queue-card p {
  color: #334155;
}

.queue-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.queue-inline-form {
  display: inline-flex;
}

.place-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .queue-page-header,
  .queue-card-head,
  .queue-section-header {
    flex-direction: column;
  }

  .reservations-hero,
  .reservable-event-card-head,
  .reservable-event-form-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .queue-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .queue-sidebar {
    position: static;
  }

  .account-settings-hero,
  .account-settings-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-avatar-editor-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-command-card,
  .account-command-stats,
  .account-overview-grid,
  .account-overview-summary-grid,
  .account-form-grid,
  .account-avatar-editor,
  .account-customization-grid,
  .account-check-grid,
  .two-factor-setup-card {
    grid-template-columns: 1fr;
  }

  .two-factor-qr {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .account-avatar-preview-large {
    width: 180px;
    height: 180px;
  }

  .account-panel {
    padding: 18px;
  }

  .account-upload-trigger {
    padding: 14px 16px;
  }

  .account-avatar-cropper {
    padding: 12px;
  }

  .account-avatar-cropper-dialog {
    padding: 16px;
    border-radius: 22px;
  }

  .account-avatar-cropper-head,
  .account-avatar-crop-footer,
  .account-avatar-crop-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-avatar-crop-frame {
    width: min(100%, 300px);
  }
}

.discussion-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(180px, 0.5fr);
  gap: 24px;
  align-items: start;
}

.discussion-main-column {
  min-width: 0;
}

/* Recommendations page: compact cards with 4 per row on desktop */
.discussion-page .places-header {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.discussion-page .places-header-top {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.discussion-page .places-header h1 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.15;
  color: #0f172a;
}

.discussion-page .filter-section {
  margin-top: 6px;
}

.discussion-page .filter-form {
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.discussion-page .filter-form select,
.discussion-page .filter-form input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  background: #ffffff;
  color: #1e293b;
}

.discussion-page .filter-form select {
  min-width: 190px;
}

.discussion-page .filter-form input {
  min-width: 260px;
}

.discussion-page .filter-form button {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  flex-shrink: 0;
}

.discussion-page .places-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.discussion-page .place-card {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.discussion-page .place-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.discussion-page .place-header {
  margin-bottom: 10px;
  align-items: flex-start;
}

.discussion-page .place-header h2 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.discussion-page .place-header h2 a {
  display: block;
  color: #0f172a;
}

.discussion-page .category-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 600;
}

.discussion-page .place-location,
.discussion-page .rating,
.discussion-page .place-description,
.discussion-page .muted-text {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.discussion-page .place-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
  color: #334155;
}

.discussion-page .place-tags {
  gap: 6px;
  margin-bottom: 8px;
}

.discussion-page .tag-pill {
  padding: 3px 8px;
  font-size: 0.76rem;
}

.discussion-page .place-actions {
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.discussion-page .place-actions .btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.discussion-sidebar {
  position: sticky;
  top: 96px;
  justify-self: end;
  width: 100%;
  max-width: 240px;
}

@media (max-width: 1220px) {
  .discussion-page .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .discussion-page .places-grid {
    grid-template-columns: 1fr;
  }
}

.discussion-sidebar-card {
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.discussion-sidebar-tablist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.discussion-sidebar-tab {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discussion-sidebar-tab:hover,
.discussion-sidebar-tab.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.discussion-sidebar-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.discussion-sidebar-panel-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.discussion-sidebar-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.discussion-sidebar-link:hover {
  text-decoration: underline;
}

.discussion-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discussion-sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #dde7f3;
  background: #ffffff;
  text-decoration: none;
}

.discussion-sidebar-item-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.discussion-sidebar-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.discussion-sidebar-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.discussion-sidebar-item:hover {
  border-color: #93c5fd;
  background: #ffffff;
}

.discussion-hero-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 14px;
  padding: 36px 28px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.discussion-hero-panel h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.discussion-hero-panel p {
  margin: 0;
}

/* ── 3-column layout for Recommendations page ────────────────── */
.places-three-col-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 2.2fr) minmax(210px, 250px);
  gap: 20px;
  align-items: start;
}

.adventure-guide-sidebar {
  position: sticky;
  top: 96px;
  width: 100%;
}

.adventure-guide-card {
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.adventure-guide-header {
  margin-bottom: 6px;
}

.adventure-guide-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.adventure-guide-icon {
  font-size: 1.25rem;
  color: #3b82f6;
}

.adventure-guide-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}

.adventure-guide-chevron {
  color: #475569;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.adventure-guide-toggle[aria-expanded='true'] .adventure-guide-chevron {
  transform: rotate(180deg);
}

.adventure-guide-body {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.guide-itinerary-meta {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 8px;
  margin-bottom: 8px;
}

.guide-notes-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
  font: inherit;
  margin-bottom: 10px;
}

@media (max-width: 1280px) {
  .places-three-col-layout {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) minmax(190px, 220px);
  }

  .discussion-sidebar {
    max-width: 220px;
  }
}

@media (max-width: 1024px) {
  .places-three-col-layout {
    grid-template-columns: 1fr;
  }
  .adventure-guide-sidebar {
    position: static;
    order: -1;
  }

  .guide-itinerary-meta {
    grid-template-columns: 1fr;
  }
}

/* ── Adventure Guide Builder ─────────────────────────────────── */
.guide-builder-tab {  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}
.guide-builder-tab.active,
.guide-builder-tab:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%) !important;
}

.guide-intro-text {
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.guide-action-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Drop zone */
.guide-dropzone {
  min-height: 70px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 8px;
}
.guide-dropzone.drag-over {
  border-color: #3b82f6;
  background: #eff6ff;
}
.guide-dropzone-placeholder {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 8px 0;
}
.guide-dropzone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guide-dzitem {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: grab;
  transition: box-shadow 0.15s;
}
.guide-dzitem:active { cursor: grabbing; }
.guide-dzitem.dragging { opacity: 0.4; }
.guide-dzitem:hover { box-shadow: 0 2px 8px rgba(15,23,42,0.08); }
.guide-dzitem-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-dzitem-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-dzitem-info strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}
.guide-dzitem-info small {
  font-size: 0.75rem;
}
.guide-dzitem-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.guide-dzitem-remove:hover { color: #ef4444; }

.guide-dropzone-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.guide-name-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}
.guide-name-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* Source chips */
.guide-source-section {
  margin-top: 6px;
}
.guide-source-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 6px;
}
.guide-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: grab;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.guide-chip:hover,
.guide-chip:focus {
  background: #dbeafe;
  border-color: #93c5fd;
  outline: none;
}
.guide-chip.dragging { opacity: 0.45; }
.guide-chip-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Soft category badge variant */
.badge-category-soft {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Quiz Modal ───────────────────────────────────────────────── */
.guide-quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.guide-quiz-overlay[hidden] { display: none; }
.quiz-open { overflow: hidden; }

.guide-quiz-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15,23,42,0.22);
  position: relative;
}
.guide-quiz-modal h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #0f172a;
}
.guide-quiz-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
  transition: color 0.15s;
}
.guide-quiz-close:hover { color: #0f172a; }

.quiz-question {
  margin-top: 20px;
}
.quiz-q-label {
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  transition: background 0.15s, border-color 0.15s;
}
.quiz-option:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}
.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.quiz-option:has(input:checked) {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.quiz-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.85rem;
}
.quiz-error[hidden] { display: none; }

.quiz-footer {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Quiz enhancements: 2-col grid + optional label ─────────────── */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 420px) {
  .quiz-options-grid { grid-template-columns: 1fr; }
}
.quiz-optional {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 400;
}

/* ── Chip search input ─────────────────────────────────────────── */
.guide-chip-search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1e293b;
  background: #f8fafc;
  margin-bottom: 8px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-chip-search:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ── Category filter pills ─────────────────────────────────────── */
.guide-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.guide-cat-pill {
  padding: 3px 10px;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.guide-cat-pill:hover { background: #e0f2fe; border-color: #93c5fd; color: #0369a1; }
.guide-cat-pill.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* ── Stop counter row ──────────────────────────────────────────── */
.guide-stop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.guide-stop-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-stop-count:empty { display: none; }

/* ── Drop zone item meta (badge + stars) ───────────────────────── */
.guide-dzitem-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.guide-dzitem-stars {
  color: #f59e0b;
  font-size: 0.78rem;
  letter-spacing: 1px;
}

/* ── Chip rating badge ─────────────────────────────────────────── */
.guide-chip-rating {
  font-size: 0.7rem;
  color: #f59e0b;
  font-weight: 600;
  margin-left: 2px;
}

/* ── Print button (already covered by btn-secondary; extra hook) ─ */
#guidePrintBtn { min-width: 52px; }

/* ── Quiz inline results panel ──────────────────────────────────── */
#quizResults[hidden] { display: none; }

.quiz-result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.quiz-result-label {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

/* Activity / half-day list */
.quiz-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-result-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}
.quiz-result-card strong { color: #0f172a; font-size: 0.92rem; flex-basis: 100%; }
.quiz-result-card small { flex-basis: 100%; color: #64748b; font-size: 0.8rem; }

/* Full-day timeline */
.quiz-result-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-timeline-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quiz-timeline-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 2px;
}

/* Results footer buttons */
.quiz-result-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

/* ── Drop zone slot label rows ────────────────────────────────────── */
.guide-slot-label {
  list-style: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0 2px 4px;
  border-bottom: 1px solid #e0f2fe;
  margin-bottom: 2px;
}
.guide-slot-label:first-child { padding-top: 2px; }

/* ── Template / view selector ─────────────────────────────────── */
.guide-template-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.guide-template-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-template-select {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-template-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
/* Time-of-day header row — slightly larger than default slot label */
.guide-time-header {
  font-size: 0.8rem;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 6px;
  padding: 4px 8px;
  border-bottom: none;
  margin-bottom: 4px;
}

/* ── Staff Tickets ────────────────────────────────────────────── */
.ticket-badge-dept-management { background: #dbeafe; color: #1d4ed8; }
.ticket-badge-dept-maintenance { background: #fef3c7; color: #92400e; }
.ticket-badge-dept-it { background: #f3e8ff; color: #6b21a8; }

.ticket-resolution-note {
  font-size: 0.85rem;
  color: #475569;
  background: #f8fafc;
  border-left: 3px solid #10b981;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  margin: 8px 0 4px;
}

.ticket-status-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-inline-select {
  padding: 4px 8px;
  font-size: 0.82rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
}

.ticket-inline-note {
  flex: 1;
  min-width: 120px;
  padding: 4px 10px;
  font-size: 0.82rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
}

.ticket-filters { margin-bottom: 20px; }

.ticket-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-filter-row .form-group {
  margin-bottom: 0;
}

.ticket-filter-btn { align-self: flex-end; }

/* ── Time Picker Button + Clock Popup ──────────────────────────── */
.time-picker-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.time-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.time-picker-btn::before {
  content: "🕐";
  font-size: 1.1rem;
  flex-shrink: 0;
}

.time-picker-btn:hover,
.time-picker-btn:focus {
  border-color: var(--accent, #6366f1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.time-picker-btn.has-value {
  color: var(--text, #111827);
  font-weight: 500;
}

/* Clock popup card */
.clock-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 300;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #d1d5db);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  padding: 1rem 1rem 0.85rem;
  width: 240px;
}

/* Large time preview at top */
.clock-preview {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted, #9ca3af);
  background: var(--bg-hover, #f9fafb);
  border-radius: 8px;
  padding: 0.4rem 0;
  margin-bottom: 0.85rem;
}

.clock-preview.has-selection {
  color: var(--accent, #6366f1);
}

/* Section labels */
.clock-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 0.35rem;
  margin-top: 0.6rem;
}

/* 4-column grid for hours 1–12 */
.clock-hours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 0.1rem;
}

/* 4-button row for minutes */
.clock-mins-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 0.1rem;
}

/* 2-button row for AM/PM */
.clock-mer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 0.1rem;
}

/* Common cell style */
.clock-cell {
  padding: 0.35rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text, #374151);
}

.clock-cell:hover {
  background: var(--bg-hover, #f3f4f6);
}

.clock-cell.active {
  background: var(--accent, #6366f1);
  color: #fff;
  border-color: var(--accent, #6366f1);
  font-weight: 600;
}

/* Action buttons row */
.clock-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.clock-done {
  padding: 0.42rem 0.75rem;
  background: var(--accent, #6366f1);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.clock-done:hover {
  background: var(--accent-dark, #4f46e5);
}

.clock-clear {
  padding: 0.42rem 0.65rem;
  background: transparent;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.clock-clear:hover {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

/* ── Days Picker Button + Popup ─────────────────────────────────── */
.days-picker-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.days-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.days-picker-btn::before {
  content: "📅";
  font-size: 1.05rem;
  flex-shrink: 0;
}

.days-picker-btn:hover,
.days-picker-btn:focus {
  border-color: var(--accent, #6366f1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.days-picker-btn.has-value {
  color: var(--text, #111827);
  font-weight: 500;
}

.days-picker-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 300;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #d1d5db);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 1rem;
  min-width: 240px;
}

.days-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: var(--text-muted, #6b7280);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.day-chip:hover {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

.day-chip.selected {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #fff;
}

.days-picker-done {
  padding: 0.45rem 1rem;
  background: var(--accent, #6366f1);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.days-picker-done:hover {
  background: var(--accent-dark, #4f46e5);
}

.discussion-city-banner {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}

.discussion-city-banner-compact {
  margin-bottom: 16px;
  color: #475569;
}

.discussion-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.discussion-header-row h2 {
  margin-bottom: 4px;
  color: #1e293b;
}

.discussion-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discussion-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.discussion-post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.discussion-post-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.discussion-post-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
}

.discussion-post-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.9rem;
}

.discussion-post-content {
  margin: 14px 0;
  color: #334155;
  line-height: 1.65;
  white-space: pre-wrap;
}

.discussion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discussion-post-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.discussion-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.discussion-comment-button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 7px 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discussion-comment-button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}


.discussion-post-engagement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  flex-wrap: wrap;
}

.discussion-engagement-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.discussion-engagement-trigger {
  border: none;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.discussion-engagement-trigger:hover,
.discussion-engagement-trigger.open {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discussion-engagement-separator {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}

.discussion-post-panels {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.discussion-inline-panel {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 14px;
}

.discussion-inline-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.discussion-inline-panel-header h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.discussion-comment-total {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.discussion-name-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.discussion-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.discussion-comment-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.discussion-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discussion-comment-body {
  flex: 1;
}

.discussion-comment-card p {
  margin: 8px 0 0;
  color: #334155;
  line-height: 1.6;
}

.discussion-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}

.discussion-comment-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discussion-comment-label {
  font-weight: 600;
  color: #1e293b;
}

.discussion-comment-composer {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.discussion-comment-form textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 14px;
  font: inherit;
  resize: vertical;
  min-height: 120px;
  background: transparent;
}

.discussion-comment-form textarea:focus {
  outline: none;
}

.discussion-comment-composer:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.discussion-comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.discussion-comment-helper {
  color: #64748b;
  font-size: 0.85rem;
}

.discussion-comment-count,
.discussion-like-count {
  color: inherit;
  font-weight: 700;
}

.discussion-vote-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 7px 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.discussion-vote-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.discussion-vote-btn.voted {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.discussion-vote-btn .vote-count {
  min-width: 1.2rem;
  text-align: center;
}

.discussion-vote-text {
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .discussion-page {
    padding-top: 18px;
  }

  .discussion-layout {
    grid-template-columns: 1fr;
  }

  .shift-notes-layout {
    grid-template-columns: 1fr;
  }

  .shift-notes-row {
    grid-template-columns: 1fr;
  }

  .discussion-sidebar {
    position: static;
  }

  .discussion-hero-panel {
    padding: 28px 20px;
  }

  .discussion-hero-panel h1 {
    font-size: 1.65rem;
  }

  .discussion-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .discussion-post-head {
    flex-direction: column;
  }

  .discussion-post-engagement-bar {
    gap: 8px;
  }

  .discussion-post-footer {
    justify-content: flex-start;
  }

  .governance-summary-grid,
  .governance-user-layout,
  .governance-filter-form {
    grid-template-columns: 1fr;
  }

  .governance-command-bar,
  .governance-user-card-head,
  .governance-audit-item-head,
  .governance-filter-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .governance-user-meta {
    justify-items: start;
  }

  .governance-form-row,
  .governance-form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .platform-config-layout,
  .platform-config-summary-grid,
  .platform-config-form-grid,
  .platform-config-city-grid,
  .platform-stats-grid,
  .audit-summary-grid,
  .audit-layout,
  .audit-monitor-grid,
  .audit-status-grid {
    grid-template-columns: 1fr;
  }

  .platform-config-actions,
  .platform-config-hero,
  .platform-config-hero-actions,
  .platform-city-card-head,
  .audit-command-bar,
  .audit-feed-head,
  .audit-command-bar-notes {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-config-field-wide {
    grid-column: span 1;
  }

  .discussion-post-actions {
    width: 100%;
  }


html[data-theme="dark"] .services,
html[data-theme="dark"] .travel-guide,
html[data-theme="dark"] .queue-page,
html[data-theme="dark"] .governance-page,
html[data-theme="dark"] .platform-config-page,
html[data-theme="dark"] .audit-page,
html[data-theme="dark"] .discussion-page,
html[data-theme="dark"] .account-settings-page {
  background: var(--bg);
}

html[data-theme="dark"] .how-it-works,
html[data-theme="dark"] .sova-events {
  background: var(--surface-alt);
}

html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .events-page-header h1,
html[data-theme="dark"] .queue-page-header h1,
html[data-theme="dark"] .discussion-header-row h2,
html[data-theme="dark"] .account-panel-head h2,
html[data-theme="dark"] .account-command-profile h2,
html[data-theme="dark"] .account-avatar-editor-copy h3,
html[data-theme="dark"] .account-panel-section h3,
html[data-theme="dark"] .account-preview-card h3,
html[data-theme="dark"] .governance-user-title-row h3,
html[data-theme="dark"] .governance-user-panel h4,
html[data-theme="dark"] .governance-empty-state h3,
html[data-theme="dark"] .governance-audit-empty strong,
html[data-theme="dark"] .platform-config-panel-head h2,
html[data-theme="dark"] .platform-city-card-head h3,
html[data-theme="dark"] .platform-doc-item h3,
html[data-theme="dark"] .audit-panel-head h2,
html[data-theme="dark"] .audit-feed-head strong,
html[data-theme="dark"] .audit-empty-state strong,
html[data-theme="dark"] .discussion-sidebar-panel-head h3,
html[data-theme="dark"] .discussion-sidebar-item strong,
html[data-theme="dark"] .discussion-post-heading h3,
html[data-theme="dark"] .discussion-inline-panel-header h4,
html[data-theme="dark"] .discussion-comment-label,
html[data-theme="dark"] .reservation-form-panel h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .travel-card h3,
html[data-theme="dark"] .event-card h3,
html[data-theme="dark"] .step h3,
html[data-theme="dark"] .content-page h1,
html[data-theme="dark"] .content-page h2,
html[data-theme="dark"] .team-member h3,
html[data-theme="dark"] .place-header h2 a,
html[data-theme="dark"] .info-section h3,
html[data-theme="dark"] .detail-description h2,
html[data-theme="dark"] .form-container h1 {
  color: var(--heading);
}

html[data-theme="dark"] .section-header p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .travel-card p,
html[data-theme="dark"] .event-card p,
html[data-theme="dark"] .step p,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .queue-page-intro,
html[data-theme="dark"] .queue-card-meta,
html[data-theme="dark"] .account-settings-hero p,
html[data-theme="dark"] .account-settings-meta,
html[data-theme="dark"] .account-command-profile p,
html[data-theme="dark"] .account-command-stat span,
html[data-theme="dark"] .account-summary-card span,
html[data-theme="dark"] .account-overview-tile p,
html[data-theme="dark"] .account-summary-card p,
html[data-theme="dark"] .account-avatar-editor-copy p,
html[data-theme="dark"] .account-upload-help,
html[data-theme="dark"] .account-upload-file-name,
html[data-theme="dark"] .account-avatar-cropper-head span,
html[data-theme="dark"] .account-avatar-crop-tip,
html[data-theme="dark"] .governance-summary-label,
html[data-theme="dark"] .governance-summary-card p,
html[data-theme="dark"] .governance-command-bar p,
html[data-theme="dark"] .governance-user-email,
html[data-theme="dark"] .governance-user-meta,
html[data-theme="dark"] .governance-info-label,
html[data-theme="dark"] .governance-panel-note,
html[data-theme="dark"] .governance-audit-summary,
html[data-theme="dark"] .governance-audit-item-head span,
html[data-theme="dark"] .governance-audit-item p,
html[data-theme="dark"] .platform-config-panel-head p,
html[data-theme="dark"] .platform-city-card-head p,
html[data-theme="dark"] .platform-stat-card span,
html[data-theme="dark"] .platform-doc-item p,
html[data-theme="dark"] .audit-summary-label,
html[data-theme="dark"] .audit-summary-card p,
html[data-theme="dark"] .audit-command-bar p,
html[data-theme="dark"] .audit-panel-head p,
html[data-theme="dark"] .audit-monitor-card span,
html[data-theme="dark"] .audit-status-pill span,
html[data-theme="dark"] .audit-feed-head span,
html[data-theme="dark"] .audit-feed-item p,
html[data-theme="dark"] .audit-reservation-item p,
html[data-theme="dark"] .audit-feed-note,
html[data-theme="dark"] .discussion-city-banner-compact,
html[data-theme="dark"] .discussion-sidebar-item p,
html[data-theme="dark"] .discussion-post-meta,
html[data-theme="dark"] .discussion-post-engagement-bar,
html[data-theme="dark"] .discussion-comment-total,
html[data-theme="dark"] .discussion-comment-meta,
html[data-theme="dark"] .discussion-comment-helper,
html[data-theme="dark"] .discussion-vote-text,
html[data-theme="dark"] .muted-text,
html[data-theme="dark"] .place-location,
html[data-theme="dark"] .place-description,
html[data-theme="dark"] .detail-description p,
html[data-theme="dark"] .content-page p,
html[data-theme="dark"] .team-member p,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .error-page p {
  color: var(--muted);
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .travel-card,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .place-card,
html[data-theme="dark"] .place-detail,
html[data-theme="dark"] .detail-info,
html[data-theme="dark"] .form-container,
html[data-theme="dark"] .content-page,
html[data-theme="dark"] .team-member,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .error-page,
html[data-theme="dark"] .endorsement-card,
html[data-theme="dark"] .reservation-form-panel,
html[data-theme="dark"] .governance-summary-card,
html[data-theme="dark"] .governance-filter-panel,
html[data-theme="dark"] .governance-user-card,
html[data-theme="dark"] .governance-user-panel,
html[data-theme="dark"] .governance-user-panel-form,
html[data-theme="dark"] .governance-audit-history,
html[data-theme="dark"] .governance-audit-empty,
html[data-theme="dark"] .governance-empty-state,
html[data-theme="dark"] .platform-config-panel,
html[data-theme="dark"] .platform-city-card,
html[data-theme="dark"] .platform-config-toggle,
html[data-theme="dark"] .platform-stat-card,
html[data-theme="dark"] .platform-doc-item,
html[data-theme="dark"] .audit-summary-card,
html[data-theme="dark"] .audit-panel,
html[data-theme="dark"] .audit-monitor-card,
html[data-theme="dark"] .audit-status-pill,
html[data-theme="dark"] .audit-feed-item,
html[data-theme="dark"] .audit-reservation-item,
html[data-theme="dark"] .audit-empty-state,
html[data-theme="dark"] .account-identity-card,
html[data-theme="dark"] .account-summary-grid,
html[data-theme="dark"] .account-tablist,
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .account-command-card,
html[data-theme="dark"] .account-summary-card,
html[data-theme="dark"] .account-overview-tile,
html[data-theme="dark"] .account-avatar-editor,
html[data-theme="dark"] .account-upload-card,
html[data-theme="dark"] .account-avatar-cropper-dialog,
html[data-theme="dark"] .account-avatar-advanced,
html[data-theme="dark"] .queue-card,
html[data-theme="dark"] .discussion-sidebar-card,
html[data-theme="dark"] .discussion-sidebar-tab,
html[data-theme="dark"] .discussion-sidebar-item,
html[data-theme="dark"] .discussion-post-card,
html[data-theme="dark"] .discussion-inline-panel,
html[data-theme="dark"] .discussion-comment-card,
html[data-theme="dark"] .discussion-comment-composer,
html[data-theme="dark"] .discussion-comment-actions,
html[data-theme="dark"] .discussion-vote-btn,
html[data-theme="dark"] .discussion-comment-button,
html[data-theme="dark"] .admin-invite-item,
html[data-theme="dark"] .shift-note-item,
html[data-theme="dark"] .shift-note-item-archived {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .account-panel-overview,
html[data-theme="dark"] .account-panel-featured,
html[data-theme="dark"] .account-command-card,
html[data-theme="dark"] .account-overview-tile,
html[data-theme="dark"] .account-avatar-editor,
html[data-theme="dark"] .account-preview-card,
html[data-theme="dark"] .platform-city-card,
html[data-theme="dark"] .governance-command-bar,
html[data-theme="dark"] .audit-command-bar,
html[data-theme="dark"] .discussion-inline-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-subtle) 100%);
}

html[data-theme="dark"] .governance-command-bar,
html[data-theme="dark"] .platform-city-card,
html[data-theme="dark"] .platform-config-toggle,
html[data-theme="dark"] .account-command-stat,
html[data-theme="dark"] .account-overview-tile,
html[data-theme="dark"] .account-avatar-editor,
html[data-theme="dark"] .account-upload-card,
html[data-theme="dark"] .account-avatar-advanced,
html[data-theme="dark"] .two-factor-setup-card,
html[data-theme="dark"] .audit-command-bar {
  border-color: var(--border-strong);
}

html[data-theme="dark"] .account-tab,
html[data-theme="dark"] .governance-filter-field span,
html[data-theme="dark"] .governance-field > span,
html[data-theme="dark"] .platform-config-form label,
html[data-theme="dark"] .platform-city-card label,
html[data-theme="dark"] .queue-card p,
html[data-theme="dark"] .discussion-post-content,
html[data-theme="dark"] .discussion-comment-card p,
html[data-theme="dark"] .discussion-name-list,
html[data-theme="dark"] .shift-note-body,
html[data-theme="dark"] .admin-invite-list h3,
html[data-theme="dark"] .admin-invite-item strong,
html[data-theme="dark"] .governance-summary-card strong,
html[data-theme="dark"] .governance-info-item strong,
html[data-theme="dark"] .platform-stat-card strong,
html[data-theme="dark"] .audit-summary-card strong,
html[data-theme="dark"] .audit-monitor-card strong,
html[data-theme="dark"] .audit-status-pill strong,
html[data-theme="dark"] .account-command-stat strong,
html[data-theme="dark"] .account-summary-card strong,
html[data-theme="dark"] .account-overview-tile strong,
html[data-theme="dark"] .account-upload-file-name,
html[data-theme="dark"] .account-avatar-cropper-head strong {
  color: var(--text);
}

html[data-theme="dark"] .account-tab:hover,
html[data-theme="dark"] .account-tab.active,
html[data-theme="dark"] .discussion-sidebar-tab:hover,
html[data-theme="dark"] .discussion-sidebar-tab.active,
html[data-theme="dark"] .discussion-vote-btn.voted {
  background: var(--surface-muted);
  border-color: var(--accent);
  color: var(--accent);
}

html[data-theme="dark"] .discussion-sidebar-item:hover,
html[data-theme="dark"] .discussion-comment-button:hover,
html[data-theme="dark"] .discussion-vote-btn:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .travel-card:hover {
  background: var(--surface-subtle);
  border-color: var(--accent);
}

html[data-theme="dark"] .admin-invite-form input,
html[data-theme="dark"] .admin-invite-form select,
html[data-theme="dark"] .governance-select,
html[data-theme="dark"] .discussion-comment-form textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--muted);
}

html[data-theme="dark"] .discussion-comment-composer:focus-within,
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 199, 255, 0.18);
}

html[data-theme="dark"] .badge-draft,
html[data-theme="dark"] .badge-user {
  background: var(--surface-muted);
  color: var(--text-soft);
}

html[data-theme="dark"] .success-state {
  background: var(--success-bg);
  border-color: color-mix(in srgb, var(--success-text) 45%, transparent);
  color: var(--success-text);
}

html[data-theme="dark"] .info-state {
  background: var(--info-bg);
  border-color: color-mix(in srgb, var(--info-text) 45%, transparent);
  color: var(--info-text);
}

html[data-theme="dark"] .account-danger-note,
html[data-theme="dark"] .governance-danger-zone,
html[data-theme="dark"] .governance-risk-banner,
html[data-theme="dark"] .account-panel-danger {
  background: linear-gradient(180deg, #321018 0%, #43121b 100%);
  border-color: #7f1d1d;
  color: #fecaca;
}

html[data-theme="dark"] .account-danger-note p,
html[data-theme="dark"] .governance-danger-zone p,
html[data-theme="dark"] .governance-risk-banner p,
html[data-theme="dark"] .governance-danger-zone strong,
html[data-theme="dark"] .governance-risk-banner strong {
  color: #fecaca;
}

html[data-theme="dark"] .two-factor-setup-card,
html[data-theme="dark"] .discussion-comment-actions,
html[data-theme="dark"] .platform-stat-card,
html[data-theme="dark"] .platform-doc-item,
html[data-theme="dark"] .audit-monitor-card,
html[data-theme="dark"] .audit-status-pill,
html[data-theme="dark"] .audit-feed-item,
html[data-theme="dark"] .audit-reservation-item,
html[data-theme="dark"] .governance-audit-history,
html[data-theme="dark"] .governance-audit-empty,
html[data-theme="dark"] .reservation-form-panel,
html[data-theme="dark"] .shift-note-item,
html[data-theme="dark"] .shift-note-item-archived {
  background: var(--surface-subtle);
}
  .discussion-comment-card {
    padding: 12px;
  }

  .discussion-comment-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
