/* ============================================================
   TRAVEL PLANNER — Styles
   Brand: graphite #14181E · petrol teal #0F766E · amber #d97706
   Fonts: PT Sans Narrow (body), Poppins (display)
   ============================================================ */

/* ── Variables — blended Trafigura-group palette ───────────── */
:root {
  /* Brand — graphite chassis, petrol teal primary, amber secondary.
     Token names kept stable; only values changed. */
  --primary:       #0F766E;   /* Petrol teal */
  --primary-dark:  #115E59;   /* Deeper teal — hover / pressed */
  --primary-light: #CCFBF1;   /* Pale teal tint for backgrounds */
  --puma-navy:     #14181E;   /* Graphite — heads / sidebar / deep accent */
  --puma-slate:    #4B5563;   /* Cool slate for secondary text */
  --puma-text:     #14181E;   /* Near-black graphite for headings */

  /* Status — semantic; kept distinct from brand so danger always reads as red */
  --green:         #15803D;
  --green-light:   #DCFCE7;
  --red:           #DC2626;
  --red-light:     #FEE2E2;
  --amber:         #d97706;
  --amber-light:   #fef3c7;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --gray-800:      #1f2937;
  --gray-900:      #111827;
  --white:         #ffffff;
  /* Softer, more diffuse shadows for a modern enterprise look */
  --shadow-sm:     0 1px 2px 0 rgba(20, 24, 30, .04);
  --shadow:        0 2px 8px -2px rgba(20, 24, 30, .06), 0 1px 3px -1px rgba(20, 24, 30, .04);
  --shadow-md:     0 8px 24px -8px rgba(20, 24, 30, .10), 0 2px 6px -2px rgba(20, 24, 30, .05);
  --shadow-lg:     0 24px 48px -16px rgba(20, 24, 30, .18), 0 8px 16px -8px rgba(20, 24, 30, .08);
  --shadow-glow:   0 4px 14px -4px rgba(15, 118, 110, .35);   /* primary-tinted lift */
  /* Roomier corners — closer to the reference mockups */
  --radius:        0.875rem;   /* 14px — cards, inputs */
  --radius-lg:     1.125rem;   /* 18px — large cards / hero panels */
  --radius-full:   9999px;
  --radius-pill:   999px;
  --transition:    0.2s ease;

  /* Typography stack — Inter for body (enterprise-dense), Poppins for display */
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:  "Poppins", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Material Symbols (Rounded) base ───────────────────────── */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--gray-100);
  color: var(--puma-slate);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--puma-text);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

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

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 90;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}
.header-spacer { flex: 1; }

/* Legacy container layout for any remaining .site-header .container usage */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR (fixed left, 260px on desktop, drawer on mobile)
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  z-index: 110;
  overflow-y: auto;
  transition: transform .25s ease;
}

.sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  border-bottom: 1px solid var(--gray-100);
}
.brand-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}
.brand-sub {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.2;
}
.brand-sub .product {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--puma-text);
  letter-spacing: -0.01em;
}
.brand-sub .tagline {
  font-size: 0.6875rem;
  color: var(--puma-slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 0.125rem;
}

.sidebar-nav {
  flex: 1;
  padding: 0.875rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-section-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 0.875rem 0.875rem 0.25rem;
}

.sidebar-nav .nav-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--puma-slate);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
  margin-bottom: 0;
  border-bottom: none;
}
.sidebar-nav .nav-btn .nav-ico {
  font-size: 20px;
  width: 1.5rem;
  text-align: center;
  color: var(--puma-slate);
  flex-shrink: 0;
}
.sidebar-nav .nav-btn.active .nav-ico { color: var(--primary); }
.sidebar-nav .nav-btn:hover .nav-ico { color: var(--puma-text); }
.sidebar-nav .nav-btn:hover {
  background: var(--gray-50);
  color: var(--puma-text);
}
.sidebar-nav .nav-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-bottom: none;
}

.sidebar-footer {
  padding: 0.875rem 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.sidebar-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--puma-slate);
  text-decoration: none;
  font-weight: 500;
}
.sidebar-footer-link:hover { color: var(--primary); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  z-index: 105;
}
.sidebar-backdrop.show { display: block; }

/* Hamburger button (shown only on mobile) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--puma-text);
  border-radius: 1px;
}

/* Push main content right of the sidebar */
#app-screen {
  padding-left: 260px;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.1;
}

.brand-mark {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.625rem 0.3125rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
}
.brand-name .product {
  font-size: 1rem;
  font-weight: 700;
  color: var(--puma-text);
  letter-spacing: -0.01em;
}
.brand-name .tagline {
  font-size: 0.6875rem;
  color: var(--puma-slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Backward-compat: any leftover .brand-icon shouldn't blow up the layout */
.brand-icon { display: none; }

.header-nav {
  display: flex;
  gap: 0.375rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--puma-slate);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}

.nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-btn:hover {
  color: var(--puma-text);
}

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

/* ── Main & Panels ─────────────────────────────────────────── */
.site-main { flex: 1; padding: 2rem 0 3rem; }

.panel { display: none; }
.panel.active { display: block; }
.hidden { display: none !important; }

/* ── Panel Intro ───────────────────────────────────────────── */
.panel-intro {
  margin-bottom: 1.25rem;
}

.panel-intro h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--puma-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.panel-intro p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  transition: background var(--transition);
}

.hiw-step:hover { background: var(--gray-50); }

.hiw-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-icon svg { width: 20px; height: 20px; }

.hiw-icon-1 { background: var(--primary-light); }
.hiw-icon-1 svg { stroke: var(--primary); }
.hiw-icon-2 { background: var(--green-light); }
.hiw-icon-2 svg { stroke: var(--green); }
.hiw-icon-3 { background: var(--amber-light); }
.hiw-icon-3 svg { stroke: var(--amber); }

.hiw-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
}

.hiw-text strong {
  font-size: 0.875rem;
  color: var(--gray-800);
}

.hiw-text span { color: var(--gray-500); line-height: 1.5; }
.hiw-text em   { font-style: normal; font-weight: 500; color: var(--gray-700); }

.hiw-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-300);
  flex-shrink: 0;
  padding: 0 0.25rem;
  border-left: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
}

/* ── Status Key ────────────────────────────────────────────── */
.status-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.key-label {
  font-weight: 600;
  color: var(--gray-600);
  flex-shrink: 0;
}

.key-item { color: var(--gray-600); }
.key-office { color: #15803d; }
.key-travel { color: var(--primary-dark); }
.key-leave  { color: #92400e; }
.key-sep    { color: var(--gray-300); }

/* ── Back Office Guide ─────────────────────────────────────── */
.bo-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.bo-guide-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid #bfdbfe;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.bo-guide-item:last-child { border-right: none; }

.bo-guide-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.bo-guide-item strong {
  color: var(--primary-dark);
  font-size: 0.8125rem;
}

.bo-guide-item em {
  font-style: normal;
  font-weight: 500;
  color: var(--gray-700);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  gap: 1rem;
}

.card-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.card-header h3 svg { width: 18px; height: 18px; stroke: var(--primary); }

.card-sub {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.125rem;
}

.card-body { padding: 1.5rem; }
.card-body.no-pad { padding: 0; }

.card-header.clickable {
  cursor: pointer;
  user-select: none;
}
.card-header.clickable:hover { background: var(--gray-50); }

.toggle-icon {
  font-size: 22px;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  display: inline-block;
}
.toggle-icon.open { transform: rotate(180deg); }

/* ── Form Grid ─────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 1rem;
}
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Fields ────────────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 0.375rem; }

.field-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--puma-text);
}

.req { color: var(--red); }

.field-input,
.field-select,
.field-textarea {
  display: block;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--puma-text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  font-family: inherit;
  min-height: 42px;
  line-height: 1.3;
  -webkit-appearance: none;  /* prevent iOS round-corner override */
  appearance: none;
}

/* Native date inputs: keep the calendar icon visible + comfortable layout */
input[type="date"].field-input,
input[type="datetime-local"].field-input,
input[type="time"].field-input {
  -webkit-appearance: none;  /* turn off iOS auto-styling */
  appearance: none;
  min-width: 220px;
  max-width: 360px;          /* date inputs look silly stretched to full width */
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--gray-400); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / .15);
}

.field-input.invalid { border-color: var(--red); }
.field-input.invalid:focus { box-shadow: 0 0 0 3px rgb(220 38 38 / .15); }

.field-err {
  font-size: 0.75rem;
  color: var(--red);
  min-height: 1rem;
}

.field-textarea {
  resize: vertical;
  min-height: 64px;
}

/* ── Days Grid ─────────────────────────────────────────────── */
.days-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
}

/* ── Day Card ──────────────────────────────────────────────── */
.day-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

/* Day card status states */
.day-card[data-status="traveling"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.day-card[data-status="office"] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.day-card[data-status="leave"] {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-light);
}
.day-card-holiday {
  border-color: var(--gray-300);
  background: var(--gray-50);
  opacity: .9;
}
.day-holiday-tile {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem 1rem;
  color: var(--puma-slate);
}
.day-holiday-tile .material-symbols-rounded {
  font-size: 28px;
  color: var(--amber);
  flex-shrink: 0;
}
.day-holiday-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}
.day-holiday-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--puma-text);
}

.day-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition), border-color var(--transition);
}

.day-card[data-status="traveling"] .day-card-head { background: var(--primary-light); border-bottom-color: #bfdbfe; }
.day-card[data-status="office"]    .day-card-head { background: var(--green-light);   border-bottom-color: #86efac; }
.day-card[data-status="leave"]     .day-card-head { background: var(--amber-light);   border-bottom-color: #fcd34d; }

.day-head-top { display: flex; align-items: center; justify-content: space-between; }

.day-name-wrap { display: flex; flex-direction: column; gap: 0.125rem; }

.day-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
  transition: color var(--transition);
}

.day-card[data-status="traveling"] .day-name { color: var(--primary-dark); }
.day-card[data-status="office"]    .day-name { color: #15803d; }
.day-card[data-status="leave"]     .day-name { color: #92400e; }

.day-date { font-size: 0.75rem; color: var(--gray-400); }

/* Status selector */
.status-selector { display: flex; flex-wrap: wrap; gap: 0.25rem; }

.status-opt {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--puma-slate);
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  font-family: inherit;
  line-height: 1.2;
}

.status-opt:hover { border-color: var(--gray-400); color: var(--gray-700); background: var(--gray-50); }

.status-opt[data-status-val="office"].selected    { background: var(--green-light);   border-color: var(--green);   color: #15803d; font-weight: 600; }
.status-opt[data-status-val="wfh"].selected       { background: #eff6ff;              border-color: #93c5fd;        color: #1d4ed8; font-weight: 600; }
.status-opt[data-status-val="traveling"].selected { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.status-opt[data-status-val="leave"].selected     { background: var(--amber-light);   border-color: var(--amber);   color: #92400e; font-weight: 600; }

/* Day fields — hidden until a status is chosen */
.day-fields {
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.625rem;
}

.day-card[data-status="office"] .day-fields,
.day-card[data-status="wfh"] .day-fields,
.day-card[data-status="traveling"] .day-fields,
.day-card[data-status="away"] .day-fields,
.day-card[data-status="leave"] .day-fields { display: flex; }

/* Travel-specific fields — only visible when status = traveling */
.travel-only { display: none; flex-direction: column; gap: 0.625rem; }
.day-card[data-status="traveling"] .travel-only { display: flex; }

/* Away-specific fields — only visible when status = away (multi-day off-site) */
.away-only { display: none; flex-direction: column; gap: 0.625rem; }
.day-card[data-status="away"] .away-only { display: flex; }

/* Leave-specific fields — only visible when status = leave */
.leave-only { display: none; flex-direction: column; gap: 0.625rem; }
.day-card[data-status="leave"] .leave-only { display: flex; }
.day-card[data-status="away"] .away-only .field-label::after {
  content: " *"; color: var(--primary); font-weight: 700;
}
.day-card[data-status="away"] .day-card-head {
  background: #ffedd5;
  border-bottom-color: rgba(154, 52, 18, .2);
}
.day-card[data-status="away"] .day-name { color: #9a3412; }

.day-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.day-field-row.single { grid-template-columns: 1fr; }

.day-fields .field-label { font-size: 0.8125rem; }

/* When a day is set to "traveling", From/To become required —
   show a red asterisk via ::after on those labels (no markup change). */
.day-card[data-status="traveling"] .travel-only .field-label::after {
  content: " *";
  color: var(--primary);
  font-weight: 700;
}

/* Invalid input ring (set by JS when submit fails on a missing route) */
.field-input.invalid,
.field-textarea.invalid {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Mobile: stack From/To and roomier inputs in the day card */
@media (max-width: 480px) {
  .day-field-row { grid-template-columns: 1fr; }
  .day-fields .field-input,
  .day-fields .field-textarea { font-size: 1rem; padding: 0.75rem 0.875rem; }
  .day-card-head { padding: 0.75rem 0.875rem; }
  .status-opt { font-size: 0.875rem; min-height: 44px; padding: 0.625rem 0.5rem; }
}

.day-fields .field-input,
.day-fields .field-select,
.day-fields .field-textarea {
  font-size: 0.8125rem;
  padding: 0.4375rem 0.625rem;
}

.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.transport-opt {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--gray-600);
  transition: all var(--transition);
  user-select: none;
}

.transport-opt:hover { border-color: var(--primary); color: var(--primary); }

.transport-opt input { display: none; }

.transport-opt.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 500;
}

/* Hotel checkbox */
.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  cursor: pointer;
  margin-top: 0.125rem;
}

.check-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ── Form Actions ──────────────────────────────────────────── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Buttons — modern pill, sentence case, soft lift ──────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  font-family: var(--font-body);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Primary — petrol teal with subtle tinted glow */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 6px 18px -4px rgba(15, 118, 110, .45); }
.btn-primary:active { background: var(--primary-dark); transform: translateY(1px); box-shadow: 0 2px 6px -2px rgba(15, 118, 110, .35); }

/* Ghost — slate text, soft outline */
.btn-ghost {
  background: transparent;
  color: var(--puma-slate);
  border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--puma-text); border-color: var(--gray-300); }

/* Outline — teal outline on white, fills on hover */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); box-shadow: var(--shadow-glow); }

.btn-sm {
  padding: 0.5625rem 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.btn-sm svg { width: 14px; height: 14px; }

.full-width { width: 100%; justify-content: center; }

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

/* ── Success Banner ────────────────────────────────────────── */
.success-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--green-light);
  border: 1px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}

.success-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-check .material-symbols-rounded {
  font-size: 32px;
  color: var(--white);
}
.success-check svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.success-body { flex: 1; }
.success-body h3 { font-size: 1.0625rem; font-weight: 600; color: #14532d; margin-bottom: 0.25rem; }
.success-body p { font-size: 0.875rem; color: #166534; }

/* ── Back Office Login ─────────────────────────────────────── */
.gate-container {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.login-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

.login-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--puma-text);
  margin-bottom: 0.375rem;
}

.login-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.login-card .field-group { text-align: left; margin-bottom: 1rem; }

.error-msg {
  font-size: 0.8125rem;
  color: var(--red);
  margin-top: 0.625rem;
  text-align: center;
}

/* ── Dashboard ─────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.dash-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--puma-text);
  letter-spacing: -0.03em;
}

.dash-header p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ── Stats ─────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* ── Chart cards ───────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.chart-card { margin-bottom: 0; }
.chart-card .card-body { padding: 1rem 1.25rem 1.25rem; }
.chart-card-wide { grid-column: span 2; }
.chart-wrap {
  position: relative;
  height: 220px;
  width: 100%;
}
.chart-wrap-sm { height: 200px; }
.chart-wrap-sparkline { height: 90px; }
@media (max-width: 980px) {
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card-wide { grid-column: span 1; }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-card.accent { border-top: 3px solid var(--primary); }

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--puma-text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-card.accent .stat-num { color: var(--primary); }

.stat-lbl {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Toolbar ───────────────────────────────────────────────── */
.toolbar-card .card-body { padding: 1rem 1.5rem; }

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-filters {
  display: flex;
  align-items: flex-end;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.toolbar-filters .field-group { min-width: 150px; }

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.plans-table thead { background: var(--gray-50); }

.plans-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--puma-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.plans-table td {
  padding: 1rem;
  color: var(--puma-text);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.plans-table tbody tr:last-child td { border-bottom: none; }

.plans-table tbody tr:hover td { background: var(--gray-50); }

.employee-name { font-weight: 600; color: var(--puma-text); }
.employee-email { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.125rem; }

/* Day cell in table */
.day-cell { display: flex; flex-direction: column; gap: 0.125rem; max-width: 110px; }
.day-dest { font-weight: 500; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.day-transport, .day-note { font-size: 0.7rem; color: var(--gray-400); }
.day-none { color: var(--gray-300); font-style: italic; font-size: 0.75rem; }

/* Status badges in back-office table */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge-office    { background: var(--green-light);   color: #15803d; }
.badge-wfh       { background: #eff6ff;              color: #1d4ed8; }
.badge-leave     { background: var(--amber-light);   color: #92400e; }
.badge-traveling { background: var(--primary-light); color: var(--primary-dark); }

.empty-cell { text-align: center; padding: 3rem 1rem; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-400);
}
.empty-state svg { width: 36px; height: 36px; }
.empty-state p { font-size: 0.875rem; }

/* ── Report ────────────────────────────────────────────────── */
.report-section { margin-bottom: 1.75rem; }

.report-section h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.report-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  text-align: center;
}

.report-stat .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.report-stat .lbl {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.report-table th {
  background: var(--gray-100);
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.report-table td {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.report-table tr:nth-child(even) td { background: var(--gray-50); }

/* Per-status block within a day's report — coloured header strip + table */
.report-status-block {
  margin-top: .75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.report-status-block:first-child { margin-top: .5rem; }
.report-status-head {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--gray-100);
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.report-status-head .report-row-ico {
  font-size: 16px;
  vertical-align: -3px;
}
.report-status-label { flex: 1; }
.report-status-count {
  background: rgba(0,0,0,.06);
  color: inherit;
  font-size: .6875rem;
  font-weight: 700;
  padding: .0625rem .4rem;
  border-radius: 999px;
}
.report-status-block .report-table { font-size: .8125rem; }
.report-status-block .report-table th,
.report-status-block .report-table td { border-left: 0; border-right: 0; }
.report-status-block .report-table tr:first-child th { border-top: 0; }
.report-status-block .report-table tr:last-child td  { border-bottom: 0; }

/* Status-tinted header strips */
.report-grp-travel .report-status-head { background: var(--primary-light); color: var(--primary-dark); }
.report-grp-office .report-status-head { background: #DCFCE7; color: #166534; }
.report-grp-wfh    .report-status-head { background: #DBEAFE; color: #1E40AF; }
.report-grp-leave  .report-status-head { background: #FEF3C7; color: #92400E; }

/* ── Birthdays panel ──────────────────────────────────────── */
.bday-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}
@media (min-width: 920px) {
  .bday-list { grid-template-columns: repeat(2, 1fr); }
}
.bday-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bday-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding: .875rem 1rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-bottom: 1px solid #FBBF24;
}
.bday-head-left { display: flex; align-items: center; gap: .75rem; }
.bday-icon {
  font-size: 32px; color: #B45309;
  flex-shrink: 0;
}
.bday-name { font-weight: 700; color: var(--puma-text); font-size: 1rem; }
.bday-meta { font-size: .75rem; color: var(--gray-600); margin-top: 2px; }
.bday-when {
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.bday-when-today  { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.bday-when-soon   { background: #FBBF24; color: #78350F; }
.bday-when-later  { background: var(--gray-100); color: var(--gray-700); }
.bday-body { padding: .875rem 1rem 1rem; }
.bday-groups {
  display: flex; flex-wrap: wrap; gap: .375rem;
}
.bday-group-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: 6px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--puma-slate);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.bday-group-pill input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--primary);
  margin: 0;
}
.bday-group-pill:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}
.bday-actions {
  display: flex; justify-content: flex-end; gap: .5rem;
  margin-top: .75rem;
}

/* Transport tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
}

.tag-flight { background: #ede9fe; color: #7c3aed; }
.tag-driving { background: var(--green-light); color: var(--green); }
.tag-train { background: var(--amber-light); color: var(--amber); }
.tag-ferry { background: #e0f2fe; color: #0369a1; }
.tag-other { background: var(--gray-100); color: var(--gray-600); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 30, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.modal {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--puma-text);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0.25rem;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--gray-700); }

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* Wider modal variant for Settings */
.modal.modal-wide {
  max-width: 780px;
}

/* Dash header — multiple action buttons */
.dash-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Settings modal */
.settings-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.settings-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--puma-text);
  margin: 0 0 0.5rem 0;
}
.settings-help {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.settings-help code {
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.8125rem;
}
.settings-test {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.settings-result {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-right: 0.5rem;
}
.settings-result.ok  { color: #15803d; }
.settings-result.err { color: #b91c1c; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  padding: 1rem 0;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-align: center;
}

/* ── Tour Button ───────────────────────────────────────────── */
.tour-nav-btn {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: var(--white) !important;
  border: none;
  box-shadow: var(--shadow-sm);
}
.tour-nav-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
  color: var(--white) !important;
  box-shadow: var(--shadow);
}
.tour-nav-btn svg { stroke: var(--white); }

/* ── Tour Overlay Elements ─────────────────────────────────── */

/* Dark backdrop — used for centered (no-target) steps */
#tour-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 490;
  backdrop-filter: blur(2px);
}

/* Spotlight ring — used for targeted steps.
   The massive box-shadow creates the dim overlay;
   the ring itself outlines the highlighted element. */
#tour-ring {
  display: none;
  position: fixed;
  border-radius: 10px;
  box-shadow:
    0 0 0 3px #7c3aed,
    0 0 0 6px rgba(124, 58, 237, 0.25),
    0 0 0 9999px rgba(0, 0, 0, 0.62);
  z-index: 490;
  pointer-events: none;
  transition: top 0.32s cubic-bezier(.4,0,.2,1),
              left 0.32s cubic-bezier(.4,0,.2,1),
              width 0.32s cubic-bezier(.4,0,.2,1),
              height 0.32s cubic-bezier(.4,0,.2,1);
}

/* Tour card — shared base */
#tour-card {
  position: fixed;
  z-index: 500;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08);
  animation: tourPop .22s cubic-bezier(.34,1.56,.64,1) both;
  max-height: 88vh;
  overflow-y: auto;
}

/* Centered variant (welcome / summary steps) */
#tour-card.tour-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, calc(100vw - 2rem));
}

/* Floating variant (next to a target element) */
#tour-card.tour-float {
  /* top / left / width set by JS */
}

@keyframes tourPop {
  from { opacity: 0; transform: scale(.92) translateY(6px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}

#tour-card.tour-center {
  animation: tourFade .25s ease both;
}
@keyframes tourFade {
  from { opacity: 0; transform: translate(-50%,-48%); }
  to   { opacity: 1; transform: translate(-50%,-50%); }
}

/* ── Tour Card Interior ────────────────────────────────────── */
.tour-inner { padding: 1.5rem; }

.tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.tour-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tour-x {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem 0.375rem;
  border-radius: var(--radius);
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.tour-x:hover { color: var(--gray-700); background: var(--gray-100); }

.tour-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--puma-text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.tour-body {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.tour-body p   { margin-bottom: 0.625rem; }
.tour-body p:last-child { margin-bottom: 0; }
.tour-body ul  { padding-left: 1.25rem; margin-bottom: 0.625rem; }
.tour-body li  { margin-bottom: 0.3rem; }
.tour-body strong { color: var(--gray-800); }

/* Benefit callout line */
.tour-benefit {
  display: block;
  margin-top: 0.75rem !important;
  padding: 0.5rem 0.75rem;
  background: #f0fdf4;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #166534 !important;
  font-size: 0.8125rem !important;
  font-style: italic;
}

/* Small note line */
.tour-note {
  margin-top: 0.625rem !important;
  color: var(--gray-400) !important;
  font-size: 0.8125rem !important;
}

/* ── Tour Footer ───────────────────────────────────────────── */
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  gap: 0.75rem;
}

.tour-dots {
  display: flex;
  gap: 0.3125rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 180px;
}

.tdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.tdot.done { background: #c4b5fd; }
.tdot.cur  { background: #7c3aed; transform: scale(1.4); }

.tour-btns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── Before/After comparison table ────────────────────────── */
.tour-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.25rem;
}

.tour-compare-col {
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8125rem;
}

.tour-compare-bad  { background: #fef2f2; border: 1px solid #fecaca; }
.tour-compare-good { background: #f0fdf4; border: 1px solid #86efac; }

.tour-compare-head {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
}

.tour-compare-bad  .tour-compare-head { color: #991b1b; }
.tour-compare-good .tour-compare-head { color: #14532d; }

.tour-compare-col ul {
  padding-left: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.tour-compare-bad  ul { color: #7f1d1d; }
.tour-compare-good ul { color: #166534; }

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .toolbar-card,
  .btn,
  #bo-login-gate,
  .days-grid,
  #submit-panel { display: none !important; }

  .site-main { padding: 0; }
  #backoffice-panel,
  #bo-dashboard { display: block !important; }

  .stats-row { grid-template-columns: repeat(4, 1fr); break-inside: avoid; }
  .card { break-inside: avoid; box-shadow: none; }
  .plans-table { font-size: 0.75rem; }

  #report-body { display: block !important; }
  #report-output { display: block !important; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .days-grid  { grid-template-columns: repeat(3, 1fr); }
  .stats-row  { grid-template-columns: repeat(2, 1fr); }
  .bo-guide   { grid-template-columns: repeat(2, 1fr); }
  .bo-guide-item:nth-child(2) { border-right: none; }
  .bo-guide-item:nth-child(1),
  .bo-guide-item:nth-child(2) { border-bottom: 1px solid #bfdbfe; }
}

@media (max-width: 768px) {
  .form-grid.cols-3,
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .days-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-filters { flex-direction: column; }
  .toolbar-filters .field-group { min-width: unset; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { justify-content: center; }
  .nav-btn span { display: none; }
  .success-banner { flex-direction: column; text-align: center; }
  .how-it-works { flex-direction: column; }
  .hiw-arrow { display: none; }
  .hiw-step { border-bottom: 1px solid var(--gray-100); }
  .hiw-step:last-child { border-bottom: none; }
  .bo-guide { grid-template-columns: 1fr; }
  .bo-guide-item { border-right: none; border-bottom: 1px solid #bfdbfe; }
  .bo-guide-item:last-child { border-bottom: none; }
  .status-key { flex-direction: column; gap: 0.375rem; }
  .key-sep { display: none; }
}

@media (max-width: 480px) {
  .days-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 1.75rem 1.25rem; }
  .panel-intro h2 { font-size: 1.375rem; }
}

/* ── Edit-mode banner ─────────────────────────────────────── */
.edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  background: var(--amber-light);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  color: #78350f;
  font-size: .9rem;
}

/* ── Row actions in the back-office table ─────────────────── */
.row-actions {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.row-actions .delete-btn { color: var(--red); }
.row-actions .delete-btn:hover { background: var(--red-light); }

/* ── My Submissions panel ─────────────────────────────────── */
.my-lookup {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}
.my-lookup .field-group { flex: 1; }
#my-results .empty-cell { padding: 2rem; text-align: center; color: var(--gray-400); }

/* ════════════════════════════════════════════════════════════════
   PHASE 1: AUTH SHELL + USER UI
   ════════════════════════════════════════════════════════════════ */

/* Login & accept-invite full-screen layout */
.auth-shell,
body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14181E 0%, #0F766E 100%);
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.auth-brand {
  margin-bottom: 1.5rem;
  text-align: center;
  border-left: none;
  padding-left: 0;
}
.auth-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.auth-tagline {
  font-family: var(--font-display);
  font-size: .8125rem;
  color: var(--puma-slate);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: .75rem;
}
/* Legacy auth-wordmark — keep harmless if any template still references it */
.auth-wordmark { display: none; }
/* Keep legacy auth-brand .brand-name from breaking if used elsewhere */
.auth-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Comfortable spacing between fields and the submit button on auth screens */
.auth-card form .field-group { margin-bottom: 1.125rem; }
.auth-card form .btn,
.auth-card form button[type="submit"] { margin-top: 0.5rem; }
.auth-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 .5rem 0;
  color: var(--puma-text);
  text-align: center;
}
.auth-help {
  font-size: .9375rem;
  color: var(--puma-slate);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  text-align: center;
}
.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-500);
}

/* Header right: user chip + logout */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .625rem;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Role / status badges */
.role-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--gray-200);
  color: var(--gray-700);
  vertical-align: middle;
}
.badge-role-employee { background: #dbeafe; color: #1e40af; }
.badge-role-bo       { background: #ede9fe; color: #5b21b6; }
.badge-role-fire     { background: #fee2e2; color: #991b1b; }
.badge-role-super    { background: var(--puma-navy); color: #fff; border: 1px solid var(--puma-navy); }

/* Capability chips (orthogonal to role) */
.badge-cap-fire { background: #fee2e2; color: #991b1b; }
.badge-cap-pa   { background: #ecf4dd; color: #166534; }
.badge-active        { background: #dcfce7; color: #166534; }
.badge-disabled      { background: #f3f4f6; color: #6b7280; }

/* Role select inside users table */
.role-select {
  font-size: .8125rem;
  padding: .25rem .375rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
}

/* ════════════════════════════════════════════════════════════════
   PHASE 2: toasts, template editor, audit, mobile
   ════════════════════════════════════════════════════════════════ */

/* Toast notifications */
#toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}
.toast {
  background: var(--gray-900);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  line-height: 1.4;
  max-width: 380px;
  word-wrap: break-word;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
  border-left: 3px solid transparent;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: #16a34a; }
.toast-error   { border-left-color: #dc2626; background: #7f1d1d; }
.toast-info    { border-left-color: #2563eb; }

/* Forgot password link in login footer */
.link-subtle {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.link-subtle:hover { text-decoration: underline; }

/* Wide modal for template editor */
.modal-wide {
  width: 100%;
  max-width: 860px !important;
}

/* Provider fieldsets */
.provider-fields {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.provider-fields legend {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0 .5rem;
}

/* Code-style textarea for HTML template body */
.code-input {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .8125rem;
  line-height: 1.5;
}

/* Settings test row */
.settings-test {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Settings results inline */
.settings-result {
  font-size: .8125rem;
  color: var(--gray-500);
}
.settings-result.ok  { color: #15803d; }
.settings-result.err { color: #b91c1c; }

/* ── Mobile responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sidebar becomes a narrower off-canvas drawer */
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  #app-screen { padding-left: 0; }

  /* Trim sidebar chrome so the menu reads quicker */
  .sidebar-brand { padding: 1rem 1rem .875rem; }
  .brand-logo    { width: 140px; }
  .sidebar-nav   { padding: .5rem .375rem; }
  .sidebar-nav .nav-btn {
    padding: .625rem .75rem;
    font-size: .875rem;
    gap: .5rem;
  }
  .sidebar-nav .nav-btn .nav-ico { font-size: .9375rem; width: 1.1rem; }
  .sidebar-section-label { padding: .625rem .75rem .125rem; font-size: .625rem; }

  /* More visible, easier-to-hit hamburger */
  .hamburger {
    display: flex;
    width: 44px; height: 44px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-right: .25rem;
  }
  .hamburger span { background: var(--primary); height: 2.5px; }

  /* Slimmer top bar */
  .site-header { position: sticky; top: 0; z-index: 90; background: var(--white); }
  .header-bar  { padding: .5rem .75rem; gap: .5rem; }
  .user-chip   { font-size: .75rem; padding: .25rem .5rem; gap: .25rem; }
  #user-chip-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .role-badge  { font-size: .625rem; padding: .125rem .375rem; }

  /* Trim main + panel padding for more usable area */
  .site-main      { padding: 1rem 0 2rem; }
  .container      { padding-left: .75rem; padding-right: .75rem; }
  .panel-intro    { margin-bottom: 1rem; }
  .panel-intro h2 { font-size: 1.25rem; }
  .panel-intro p  { font-size: .8125rem; }

  /* Cards more compact */
  .card        { border-radius: 10px; }
  .card-header { padding: .75rem 1rem; }
  .card-header h3 { font-size: 1rem; }
  .card-body   { padding: 1rem; }
  .card-body.no-pad { padding: 0; }

  /* Buttons easier to tap, less bulky */
  .btn { padding: .625rem 1rem; font-size: .8125rem; min-height: 40px; }
  .btn-sm { padding: .375rem .75rem; font-size: .75rem; min-height: 32px; }

  /* Stat cards stack 2x2 */
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .5rem;
  }
  .stat-card { padding: .75rem; }
  .stat-num { font-size: 1.5rem; }

  /* Tables: horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plans-table { min-width: 720px; font-size: .8125rem; }

  /* Form grids collapse to single column */
  .form-grid.cols-2,
  .form-grid.cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Wider modals shrink */
  .modal, .modal-wide {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0;
    min-height: 100vh;
  }

  /* Auth cards take more screen */
  .auth-card { max-width: 100%; padding: 1.25rem 1rem; }

  /* Toasts full-width */
  #toast-host { left: .75rem; right: .75rem; bottom: .75rem; }
  .toast { max-width: 100%; font-size: .8125rem; padding: .625rem .875rem; }

  /* Toolbar wraps cleanly */
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-filters { flex-wrap: wrap; }

  /* Sidebar backdrop fades a touch quicker, fully clickable */
  .sidebar-backdrop { background: rgba(17, 24, 39, 0.55); }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr !important; }
  .panel-intro h2 { font-size: 1.125rem; }
  .brand-logo    { width: 120px; }
  /* Body type a fraction smaller on phones for density */
  body { font-size: 14px; }
  .badge-layout { gap: 1rem; }
}

/* ════════════════════════════════════════════════════════════════
   PHASE 3: bookings (status badges, subtabs, queue cards, visitors)
   ════════════════════════════════════════════════════════════════ */

/* Booking status badges (re-use role-badge pill shape) */
.badge-status-pending   { background: #fef3c7; color: #92400e; }
.badge-status-approved  { background: #dcfce7; color: #166534; }
.badge-status-rejected  { background: #fee2e2; color: #991b1b; }
.badge-status-cancelled { background: #f3f4f6; color: #6b7280; }

/* Sub-tabs (Queue / All / Rooms) */
.subtabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.subtab {
  background: transparent;
  border: none;
  padding: .625rem 1rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  transition: color var(--transition), border-color var(--transition);
}
.subtab:hover { color: var(--gray-800); }
.subtab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.subtab-badge {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .6875rem;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.subtab.active .subtab-badge {
  background: var(--primary-light);
  color: var(--primary);
}
.subtab-panel { display: none; }
.subtab-panel.active { display: block; }

/* Queue card (BO pending review) */
.queue-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  background: var(--white);
}
.queue-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.queue-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--puma-text);
  margin-bottom: .25rem;
}
.queue-meta {
  font-size: .8125rem;
  color: var(--gray-500);
  margin-bottom: .25rem;
}
.queue-when {
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary-dark);
}
.queue-agenda {
  margin-top: .625rem;
  padding-top: .625rem;
  border-top: 1px solid var(--gray-100);
  font-size: .875rem;
  color: var(--gray-700);
  white-space: pre-wrap;
}

/* Visitor capture rows in employee form */
.visitor-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  margin: 1rem 0;
}
.visitor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--gray-700);
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; }
.visitor-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
}
.visitor-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr auto;
  gap: .5rem;
  align-items: center;
}
.visitor-remove {
  font-size: 1rem;
  padding: .375rem .625rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .visitor-row { grid-template-columns: 1fr 1fr auto; }
  .visitor-row > input[data-vfield="phone"],
  .visitor-row > input[data-vfield="company"] { grid-column: span 2; }
  .queue-card-head { flex-direction: column; }
  .queue-card-head > button { align-self: stretch; }
}

/* ════════════════════════════════════════════════════════════════
   PHASE 5: OTP login + per-user MFA toggle
   ════════════════════════════════════════════════════════════════ */

.otp-input {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 1.5rem;
  letter-spacing: .4em;
  text-align: center;
  padding-left: 1rem;
}

.mfa-toggle {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  cursor: pointer;
  font-size: .8125rem;
  color: var(--puma-slate);
}
.mfa-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.mfa-toggle input:checked + span { color: var(--primary); font-weight: 600; }

/* ── My QR Badge ─────────────────────────────────────── */
.badge-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .badge-layout { grid-template-columns: 1fr; }
}
.badge-preview {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.badge-preview img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.badge-actions h4 {
  margin: 0 0 .25rem;
  font-size: 1.375rem;
  color: var(--puma-navy, #002147);
}
.badge-sub {
  color: var(--gray-500, #6b7280);
  font-size: .9375rem;
  margin-bottom: 1rem;
}
.badge-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0 .25rem;
}
.badge-buttons .btn { text-decoration: none; }

/* "Enabled" pill used alongside card titles (e.g. Passkeys: Enabled ✓) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: #dcfce7;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, .18);
  padding: .125rem .5rem .125rem .375rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
  margin-left: .5rem;
}
.status-pill svg { stroke: currentColor; }
.status-pill .pill-ico {
  font-size: 14px;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 20;
  color: currentColor;
}

/* Material icons inside day-status picker buttons + plan badges + report rows */
.status-opt .status-ico {
  font-size: 18px;
  margin-right: .375rem;
  color: currentColor;
  vertical-align: -3px;
}
.status-badge .badge-ico {
  font-size: 14px;
  margin-right: .25rem;
  color: currentColor;
  vertical-align: -2px;
}
.report-row-ico {
  font-size: 16px;
  vertical-align: -3px;
  color: currentColor;
  margin-right: .125rem;
}

/* ── Passkey sign-in row on the login screen ─────────── */
.passkey-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 0 .75rem;
  color: var(--gray-400, #9ca3af);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.passkey-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200, #e5e7eb);
}
.passkey-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border: 1px solid var(--puma-navy, #002147);
  color: var(--puma-navy, #002147);
}
.passkey-login-btn:hover:not([disabled]) {
  background: var(--puma-navy, #002147);
  color: #fff;
}
.passkey-login-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════
   Searchable user picker (on-behalf-of)
   ══════════════════════════════════════════════════════════════ */
.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: var(--radius, 8px);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--puma-text, #1d1d1b);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.picker-trigger:hover { border-color: var(--primary); }
.picker-trigger:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.picker-trigger-text { color: var(--gray-500, #6b7280); }
.picker-trigger-text-selected { color: var(--puma-text, #1d1d1b); font-weight: 600; }
.picker-trigger-chevron { color: var(--gray-400, #9ca3af); font-size: .75rem; margin-left: .5rem; }

.modal-picker { max-width: 560px; }

#user-picker-search {
  width: 100%;
  margin-bottom: .75rem;
  font-size: 1rem;
}

.user-picker-list {
  max-height: 55vh;
  overflow-y: auto;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius, 8px);
  background: var(--white);
}
.user-picker-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .625rem .875rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
  transition: background .12s;
}
.user-picker-row:last-child { border-bottom: none; }
.user-picker-row:hover,
.user-picker-row:focus-visible {
  background: var(--primary-light, #fde6e7);
  outline: none;
}
.user-picker-self {
  background: #f8fafc;
  border-bottom: 2px solid var(--gray-200, #e5e7eb);
}
.user-picker-self:hover { background: #f1f5f9; }
.user-picker-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--puma-navy, #002147);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .02em;
}
.user-picker-avatar-self {
  background: var(--gray-200, #e5e7eb);
  color: var(--gray-600, #475569);
  font-weight: 400;
  font-size: 1rem;
}
.user-picker-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.user-picker-name {
  font-weight: 600;
  color: var(--puma-text, #1d1d1b);
  font-size: .9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-picker-sub {
  color: var(--gray-500, #6b7280);
  font-size: .8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.user-picker-empty {
  padding: 1rem;
  text-align: center;
  color: var(--gray-500, #6b7280);
  font-size: .875rem;
}

@media (max-width: 480px) {
  .user-picker-list { max-height: 65vh; }
  .modal-picker .modal-body { padding: .875rem !important; }
}

/* ── Multi-org logo strip on login screen ────────────── */
.login-orgs {
  width: 100%;
  max-width: 420px;
  margin: 1.5rem auto 0;
  text-align: center;
}
.login-orgs-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500, #6b7280);
  margin-bottom: .625rem;
}
.login-orgs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: .875rem 1rem;
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.login-orgs-strip img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .15s;
}
.login-orgs-strip img:hover { opacity: 1; }
