:root {
  --brand-primary: #1f2937;
  --brand-secondary: #0f172a;

  --md-surface: #f8fafc;
  --md-surface-2: #ffffff;
  --md-surface-3: #f1f5f9;
  --md-on-surface: #0f172a;
  --md-muted: #64748b;
  --md-outline: #e2e8f0;
  --md-outline-variant: #cbd5f5;
  --md-primary: var(--brand-primary);
  --md-on-primary: #ffffff;
  --md-secondary: var(--brand-secondary);
  --md-on-secondary: #ffffff;
  --md-error: #dc2626;
  --md-on-error: #ffffff;

  --elev-0: 0 0 0 rgba(0,0,0,0);
  --elev-1: 0 1px 2px rgba(15,23,42,0.06);
  --elev-2: 0 4px 10px rgba(15,23,42,0.08);
  --elev-3: 0 12px 24px rgba(15,23,42,0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-quick: 120ms;
  --dur-standard: 200ms;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--md-on-surface);
  background: var(--md-surface);
}

.app-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.06), transparent 45%),
    radial-gradient(circle at top right, rgba(15,118,110,0.06), transparent 45%),
    var(--md-surface);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0b1220;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--md-surface-2);
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-2);
}

.card-header {
  padding: 16px 20px 0;
}

.card-body {
  padding: 16px 20px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity var(--dur-quick) var(--ease-standard), transform var(--dur-quick) var(--ease-standard);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--md-primary); color: var(--md-on-primary); }
.btn-secondary { background: var(--md-surface-3); color: var(--md-on-surface); border-color: var(--md-outline); }
.btn-ghost { background: transparent; color: var(--md-on-surface); border-color: var(--md-outline); }
.btn-danger { background: var(--md-error); color: var(--md-on-error); }

.input, .select {
  width: 100%;
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--text-sm);
  background: #fff;
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(31,41,55,0.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table thead th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--md-muted);
  text-align: left;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  background: var(--md-surface-2);
}

.table td {
  padding: 10px 12px;
  border-top: 1px solid var(--md-outline);
}

.table tr:hover { background: #f8fafc; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge--pending { background: #fef3c7; color: #b45309; }
.badge--approved { background: #dbeafe; color: #1d4ed8; }
.badge--paid { background: #dcfce7; color: #15803d; }
.badge--rejected { background: #fee2e2; color: #b91c1c; }
.badge--cancelled { background: #e2e8f0; color: #334155; }
.badge--checkedin { background: #ccfbf1; color: #0f766e; }
.badge--noshow { background: #ede9fe; color: #6d28d9; }
.badge--awaiting { background: #ffedd5; color: #c2410c; }

.divider { height: 1px; background: var(--md-outline); margin: 12px 0; }

.kpi { padding: 10px 12px; background: var(--md-surface-3); border-radius: var(--radius-md); font-size: var(--text-xs); color: var(--md-muted); }

.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--md-outline);
  background: #fff;
  font-size: var(--text-sm);
  cursor: pointer;
}
.slot-selected { border-color: var(--md-primary); background: rgba(31,41,55,0.08); }
.slot-disabled { opacity: 0.5; cursor: not-allowed; }

.toast-host { position: fixed; right: 24px; top: 120px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: var(--radius-md); font-size: var(--text-sm); box-shadow: var(--elev-2); }
.toast-ok { background: #16a34a; color: #fff; }
.toast-error { background: #dc2626; color: #fff; }

/* Staff layout */
.staff-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.staff-sidebar { position: sticky; top: 96px; align-self: start; background: #0f172a; color: #fff; border-radius: var(--radius-lg); padding: 20px; }
.staff-brand { font-size: var(--text-lg); font-weight: 700; margin-bottom: 12px; }
.staff-nav { display: flex; flex-direction: column; gap: 6px; }
.staff-nav-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid transparent; background: rgba(255,255,255,0.08); color: #e2e8f0; font-weight: 600; cursor: pointer; }
.staff-nav-item.active { background: #fff; color: #0f172a; }
.staff-main { display: flex; flex-direction: column; gap: 20px; }
.staff-title { font-size: var(--text-xl); font-weight: 700; margin: 0; }
.staff-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.staff-muted { color: var(--md-muted); font-size: var(--text-sm); }
.queue-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-item { display: grid; grid-template-columns: 120px 1fr auto 80px; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--md-outline); border-radius: var(--radius-md); background: #fff; cursor: pointer; }
.queue-item.selected { border-color: var(--md-primary); box-shadow: 0 0 0 2px rgba(31,41,55,0.08); }
.queue-time { font-weight: 700; }
.queue-title { font-weight: 600; }
.queue-sub { color: var(--md-muted); font-size: var(--text-xs); }
.queue-total { font-weight: 600; text-align: right; }
.detail-sticky { position: sticky; top: 0; background: #fff; padding: 16px 20px 12px; border-bottom: 1px solid var(--md-outline); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.detail-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.detail-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.detail-grid span { display: block; font-size: var(--text-xs); color: var(--md-muted); }
.detail-events { margin-top: 16px; font-size: var(--text-xs); color: var(--md-muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0; color: var(--md-muted); }
.checkin-row { display: flex; gap: 8px; align-items: center; }
.checkin-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.alert-box { margin-top: 12px; padding: 10px; background: var(--md-surface-3); border-radius: var(--radius-md); font-size: var(--text-xs); }
.ops-tabs { display: flex; gap: 8px; }
.ops-tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--md-outline); font-weight: 600; }
.ops-tab.active { background: #0f172a; color: #fff; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.schedule-block { border: 1px solid var(--md-outline); border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px; }
.schedule-title { font-weight: 700; margin-bottom: 6px; }
.schedule-row { display: flex; justify-content: space-between; font-size: var(--text-sm); padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.schedule-row:last-child { border-bottom: 0; }

.hidden { display: none !important; }

@media (max-width: 1024px) {
  .staff-shell { grid-template-columns: 1fr; }
  .staff-sidebar { position: static; }
  .queue-grid { grid-template-columns: 1fr; }
  .queue-item { grid-template-columns: 1fr; }
  .queue-total { text-align: left; }
}

/* Admin opening hours tabs */
.opening-hours-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.opening-hours-tab { padding: 6px 10px; border-radius: 999px; border: 1px solid #d1d5db; background: #f3f4f6; cursor: pointer; font-size: 12px; }
.opening-hours-tab.active { background: #111827; color: #fff; border-color: #111827; }
.opening-hours-actions { margin-bottom: 8px; }

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.app-logo:hover { opacity: 0.85; }

.app-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: background var(--dur-quick) var(--ease-standard), color var(--dur-quick) var(--ease-standard);
}

.app-nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Org menu dropdown */
.app-org-menu {
  position: relative;
}

.app-org-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  color: #e2e8f0;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--dur-quick) var(--ease-standard);
}

.app-org-btn:hover {
  background: rgba(255,255,255,0.14);
}

.app-org-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.app-org-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.app-org-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-org-chevron {
  opacity: 0.6;
  transition: transform var(--dur-quick) var(--ease-standard);
}

.app-org-menu.open .app-org-chevron {
  transform: rotate(180deg);
}

.app-org-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-3);
  z-index: 50;
  overflow: hidden;
}

.app-org-menu.open .app-org-dropdown {
  display: block;
}

.app-org-dropdown-header {
  padding: 10px 14px;
  font-size: var(--text-xs);
  color: var(--md-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-org-dropdown-item {
  display: block;
  padding: 8px 14px;
  font-size: var(--text-sm);
  color: var(--md-on-surface);
  text-decoration: none;
  transition: background var(--dur-quick) var(--ease-standard);
}

.app-org-dropdown-item:hover {
  background: var(--md-surface-3);
}

.app-org-dropdown-logout {
  color: var(--md-error);
}

.app-org-dropdown-divider {
  height: 1px;
  background: var(--md-outline);
  margin: 4px 0;
}

/* Org selector cards (landing page) */
.org-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--md-surface-2);
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  color: var(--md-on-surface);
  transition: border-color var(--dur-standard) var(--ease-standard), box-shadow var(--dur-standard) var(--ease-standard), transform var(--dur-standard) var(--ease-standard);
}

.org-card:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.org-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.org-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--md-outline);
  flex-shrink: 0;
}

.org-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--md-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--md-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.org-card-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.org-card-meta {
  font-size: var(--text-xs);
  color: var(--md-muted);
  margin-top: 2px;
}

.org-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-card-link-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--md-primary);
  color: var(--md-on-primary);
  text-decoration: none;
  transition: opacity var(--dur-quick) var(--ease-standard);
}

.org-card-link-primary:hover {
  opacity: 0.85;
}

.org-card-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--md-surface-3);
  color: var(--md-on-surface);
  text-decoration: none;
  border: 1px solid var(--md-outline);
  transition: background var(--dur-quick) var(--ease-standard);
}

.org-card-link-pill:hover {
  background: var(--md-outline);
}

/* Booking layout */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.booking-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.booking-summary { position: sticky; top: 12px; }
.booking-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--md-outline); padding: 12px 16px; display: none; }

@media (max-width: 1024px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .booking-mobile-bar { display: block; }
}


.fd-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.fd-sidebar { position: sticky; top: 96px; align-self: start; background: var(--md-secondary); color: #fff; border-radius: var(--radius-lg); padding: 20px; }
.fd-brand { font-size: var(--text-lg); font-weight: 700; margin-bottom: 12px; }
.fd-nav { display: flex; flex-direction: column; gap: 6px; }
.fd-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: rgba(255,255,255,0.08); color: #e2e8f0; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.fd-nav-item svg { width: 18px; height: 18px; fill: currentColor; }
.fd-nav-item.active { background: #fff; color: #0f172a; }
.fd-main { display: flex; flex-direction: column; gap: 20px; }
.fd-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.fd-title { font-size: var(--text-xl); font-weight: 700; }
.fd-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fd-muted { color: var(--md-muted); font-size: var(--text-sm); }
.fd-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.fd-side { display: flex; flex-direction: column; gap: 16px; }
.queue-item { display: grid; grid-template-columns: 120px 1fr 1fr 80px; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--md-outline); border-radius: var(--radius-md); background: #fff; cursor: pointer; }
.queue-item.selected { border-color: var(--md-primary); box-shadow: 0 0 0 2px rgba(31,41,55,0.1); }
.queue-time { font-weight: 700; }
.queue-sub { color: var(--md-muted); font-size: var(--text-xs); }
.queue-total { font-weight: 600; text-align: right; }
.detail-sticky { position: sticky; top: 0; background: #fff; padding: 16px 20px 12px; border-bottom: 1px solid var(--md-outline); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.detail-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.detail-grid span { display: block; font-size: var(--text-xs); color: var(--md-muted); }
.detail-events { margin-top: 16px; font-size: var(--text-xs); color: var(--md-muted); }

@media (max-width: 1024px) {
  .fd-shell { grid-template-columns: 1fr; }
  .fd-sidebar { position: static; }
  .fd-grid { grid-template-columns: 1fr; }
  .queue-item { grid-template-columns: 1fr; }
  .queue-total { text-align: left; }
}

/* Schedule timeline */
.schedule-grid {
  display: flex;
  gap: 0;
  min-width: max-content;
}

.schedule-timecol {
  width: 50px;
  flex-shrink: 0;
  padding-top: 32px;
}

.schedule-timecol .time-label {
  height: 60px;
  font-size: 11px;
  color: var(--md-muted);
  text-align: right;
  padding-right: 8px;
}

.schedule-facilities {
  display: flex;
  gap: 12px;
  flex: 1;
}

.schedule-col {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

.schedule-col h3 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 600;
}

.events {
  position: relative;
  background: repeating-linear-gradient(
    to bottom,
    var(--md-surface-3) 0px,
    var(--md-surface-3) 1px,
    transparent 1px,
    transparent 60px
  );
  border-radius: var(--radius-sm);
  border: 1px solid var(--md-outline);
}

.event-block {
  position: absolute;
  left: 4px;
  right: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
}

.event-block .ev-time {
  font-weight: 500;
  opacity: 0.85;
}

.event-booking {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.event-blocked {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.event-noshow {
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #6d28d9;
}

.event-block.dragging {
  opacity: 0.85;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  cursor: grabbing !important;
}

.event-block.drag-pending {
  opacity: 0.5;
  pointer-events: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .schedule-col { min-width: 120px; }
}

/* Dark mode — auto OS detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-color-mode="light"]) {
    --md-surface: #0f172a;
    --md-surface-2: #1e293b;
    --md-surface-3: #334155;
    --md-on-surface: #f1f5f9;
    --md-muted: #94a3b8;
    --md-outline: #334155;
    --md-outline-variant: #475569;
    --md-error: #ef4444;
    --md-on-error: #ffffff;
    --elev-0: 0 0 0 rgba(0,0,0,0);
    --elev-1: 0 1px 2px rgba(0,0,0,0.2);
    --elev-2: 0 4px 10px rgba(0,0,0,0.3);
    --elev-3: 0 12px 24px rgba(0,0,0,0.4);
  }
}

/* Dark mode — manual override */
[data-color-mode="dark"] {
  --md-surface: #0f172a;
  --md-surface-2: #1e293b;
  --md-surface-3: #334155;
  --md-on-surface: #f1f5f9;
  --md-muted: #94a3b8;
  --md-outline: #334155;
  --md-outline-variant: #475569;
  --md-error: #ef4444;
  --md-on-error: #ffffff;
  --elev-0: 0 0 0 rgba(0,0,0,0);
  --elev-1: 0 1px 2px rgba(0,0,0,0.2);
  --elev-2: 0 4px 10px rgba(0,0,0,0.3);
  --elev-3: 0 12px 24px rgba(0,0,0,0.4);
}

[data-color-mode="dark"] .app-header {
  background: #0b1220;
  border-bottom-color: rgba(255,255,255,0.06);
}

[data-color-mode="dark"] .table tr:hover {
  background: var(--md-surface-3);
}

[data-color-mode="dark"] .card {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .input,
[data-color-mode="dark"] .select {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
  color: var(--md-on-surface);
}

[data-color-mode="dark"] .slot-btn {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
  color: var(--md-on-surface);
}

[data-color-mode="dark"] .queue-item {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .detail-sticky {
  background: var(--md-surface-2);
}

[data-color-mode="dark"] .btn-secondary {
  background: var(--md-surface-3);
  color: var(--md-on-surface);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .btn-ghost {
  color: var(--md-on-surface);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .btn-ghost:hover {
  background: var(--md-surface-3);
}

[data-color-mode="dark"] .app-org-dropdown {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .app-org-dropdown-item {
  color: var(--md-on-surface);
}

[data-color-mode="dark"] .app-org-dropdown-item:hover {
  background: var(--md-surface-3);
}

[data-color-mode="dark"] .app-org-dropdown-logout {
  color: var(--md-error);
}

[data-color-mode="dark"] .org-card {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .org-card-avatar {
  background: var(--md-surface-3);
}

[data-color-mode="dark"] .org-card-link-primary {
  background: #3b82f6;
  color: #fff;
}

[data-color-mode="dark"] .org-card-link-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

[data-color-mode="dark"] .org-card-link-pill:hover {
  background: rgba(255,255,255,0.14);
}

/* Org home hero */
.org-home-hero {
  background: var(--md-surface-2);
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--elev-1);
}

.org-home-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.org-home-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--md-outline);
  flex-shrink: 0;
}

.org-home-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--md-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--md-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.org-home-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.org-home-meta {
  font-size: var(--text-sm);
  color: var(--md-muted);
  margin-top: 4px;
}

.org-home-hours {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--md-surface-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--md-on-surface);
}

.org-home-hours-label {
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--md-muted);
  margin-bottom: 8px;
}

.org-home-hours-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Org nav cards */
.org-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--md-surface-2);
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  text-decoration: none;
  color: var(--md-on-surface);
  transition: border-color var(--dur-standard) var(--ease-standard), box-shadow var(--dur-standard) var(--ease-standard), transform var(--dur-standard) var(--ease-standard);
}

.org-nav-card:hover {
  border-color: var(--md-primary);
  box-shadow: var(--elev-2);
  transform: translateY(-1px);
}

.org-nav-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--md-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-muted);
  flex-shrink: 0;
}

.org-nav-card-text {
  flex: 1;
  min-width: 0;
}

.org-nav-card-title {
  font-size: var(--text-base);
  font-weight: 700;
}

.org-nav-card-desc {
  font-size: var(--text-sm);
  color: var(--md-muted);
  margin-top: 2px;
}

.org-nav-card-arrow {
  color: var(--md-muted);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity var(--dur-standard) var(--ease-standard);
}

.org-nav-card:hover .org-nav-card-arrow {
  opacity: 1;
}

[data-color-mode="dark"] .org-home-hero {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
}

[data-color-mode="dark"] .org-nav-card {
  background: var(--md-surface-2);
  border-color: var(--md-outline);
}
