/* ═══════════════════════════════════════════════════════════════
   Burger Love Staff Portal — Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-canvas:       #E5DDF5;
  --bg-screen:       #F5F0FF;
  --surface-card:    #FFFFFF;
  --surface-chip:    #EDE8F8;

  /* Brand purples */
  --purple-900: #1A0840;
  --purple-800: #2E1270;
  --purple-700: #4A2298;
  --purple-600: #5B2DBF;
  --purple-500: #7B3FE4;
  --purple-400: #7B50D4;
  --purple-300: #9B4FFF;
  --purple-200: #9B60F4;
  --purple-100: #B060FF;
  --purple-50:  #F0E8FF;

  /* Text */
  --text-primary:   #1A0A3D;
  --text-secondary: #9B8AC0;
  --text-disabled:  #C0B0DC;
  --text-on-dark:   #FFFFFF;

  /* Status */
  --status-success:      #2E7A30;
  --status-success-bg:   #D4F0D8;
  --status-warning:      #C87820;
  --status-warning-fill: #F0A820;
  --status-danger:       #C83020;
  --status-danger-bg:    #F9DEDA;
  --status-danger-fill:  #E85030;

  /* Shadows */
  --shadow-heavy:  0 5px 9px #2E127038;
  --shadow-light:  0 3px 7px #2E127028;
  --shadow-search: 0 2px 5px #2E127020;

  /* Gradients */
  --grad-dark-card:     linear-gradient(135deg, #2E1270, #5B2AB0);
  --grad-progress:      linear-gradient(to right, #7B3FE4, #B060FF);
  --grad-button-cta:    linear-gradient(to right, #5B2DBF, #9B4FFF);
  --grad-avatar-purple: linear-gradient(135deg, #5B2DBF, #9B4FFF);
  --grad-avatar-profile:linear-gradient(to right, #7B3FE4, #B060FF);
  --grad-avatar-green:  linear-gradient(135deg, #1A6A20, #3AAA40);
  --grad-avatar-red:    linear-gradient(135deg, #7A0A0A, #B03030);
  --grad-avatar-amber:  linear-gradient(135deg, #904010, #C87820);
  --grad-avatar-black:  linear-gradient(135deg, #1a1a1a, #3a3a3a);

  /* Spacing */
  --page-margin: 15px;
  --card-gap:    12px;
  --section-gap: 20px;

  /* Typography */
  --font-stack: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-stack);
  background: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.screen {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-screen);
  min-height: 100vh;
  position: relative;
}

/* ─── Layout Helpers ─────────────────────────────────────────── */
.page-content {
  padding: 0 var(--page-margin);
  padding-bottom: 84px; /* clear nav bar */
}

.section-gap { margin-top: var(--section-gap); }

/* ─── Header Bar ─────────────────────────────────────────────── */
.header-bar {
  background: linear-gradient(135deg, #3E1A90 0%, #5B2DBF 60%, #7B3FE4 100%);
  height: 118px;
  padding: 0 var(--page-margin);
  display: flex;
  align-items: flex-end;
  padding-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.header-bar--profile {
  height: 150px;
  padding-bottom: 0;
  align-items: flex-start;
  padding-top: 20px;
}

.header-bar__back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid rgba(200,180,255,0.45);
}

.header-bar__back svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-bar__title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.header-bar__action {
  background: rgba(255,255,255,0.20);
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  border: 2px solid rgba(200,180,255,0.45);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-bar__action svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-bar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  border: 2px solid rgba(200,180,255,0.45);
}

/* Slim header variant (no title — title lives below) */
.header-bar--slim {
  height: 60px;
  align-items: center;
  padding-bottom: 0;
  justify-content: space-between;
}


.header-bar__logo {
  height: 38px;
  width: auto;
}

.header-bar > a {
  position: relative;
  z-index: 2;
}

.header-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Page Title Row (below header) ─────────────────────────── */
.page-title-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px var(--page-margin) 0px;
}

.page-title-row__back {
  position: absolute;
  left: var(--page-margin);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}

.page-title-row__back svg {
  width: 18px;
  height: 18px;
  stroke: var(--purple-900);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--purple-900);
  text-align: center;
}

/* Greeting header variant */
.header-bar--greeting {
  height: 130px;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 18px;
}

.header-bar__greeting-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-bar__greeting-sub {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}

.header-bar__greeting-name {
  font-size: 24px;
  font-weight: 800;
  color: white;
}

/* ── Teaching Quote in header ───────────────────────────────── */

/* Row layout when a quote is present */
.header-bar--with-quote {
  height: auto;
  min-height: 130px;
  padding-top: 20px;
  padding-bottom: 18px;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
}

/* Left column: quote text + author */
.header-bar__quote-block {
  flex: 1;
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Quote body — scales from mobile to desktop */
.header-bar__quote-body {
  font-size: clamp(11.5px, 3.2vw, 16px);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  white-space: pre-line;
}

/* Author attribution */
.header-bar__quote-author {
  font-size: clamp(10px, 2.4vw, 12px);
  font-style: normal;
  font-weight: 500;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.02em;
}

/* ─── Bottom Navigation ───────────────────────────────────────── */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  height: 74px;
  background: var(--purple-600);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.nav-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  padding-top: 6px;
  cursor: pointer;
  text-decoration: none;
}

.nav-bar__item::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 1.5px;
  background: transparent;
}

.nav-bar__item.active::before {
  background: white;
}

.nav-bar__icon {
  width: 30px;
  height: 30px;
  stroke: rgba(255,255,255,0.50);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  top: -4px;
}

.nav-bar__item.active .nav-bar__icon {
  stroke: white;
}

.nav-bar__label {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.60);
  position: relative;
  top: -5px;
}

.nav-bar__item.active .nav-bar__label {
  font-weight: 700;
  color: white;
}

.nav-bar__badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #E85030;
  color: white;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.badge[hidden] { display: none; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.card--feature {
  border-radius: 18px;
  box-shadow: var(--shadow-heavy);
}

.card--dark {
  background: var(--grad-dark-card);
  border-radius: 18px;
  box-shadow: var(--shadow-heavy);
  color: white;
  position: relative;
  overflow: hidden;
}

.card--lavender {
  background: linear-gradient(135deg, #C4B8E8, #E2D8F8);
  border-radius: 18px;
  box-shadow: var(--shadow-heavy);
  color: #2E1270;
  position: relative;
  overflow: hidden;
}

.card--lavender::before,
.card--lavender::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(91,45,191,0.10);
}

.card--lavender::before {
  width: 120px;
  height: 120px;
  top: -30px;
  right: -20px;
}

.card--lavender::after {
  width: 80px;
  height: 80px;
  bottom: -20px;
  right: 40px;
}

.card--lavender .progress-track {
  background: rgba(120,100,200,0.18);
}

.card--lavender .progress-label {
  color: #2E1270;
}

.card--dark::before,
.card--dark::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.055);
}

.card--dark::before {
  width: 120px;
  height: 120px;
  top: -30px;
  right: -20px;
}

.card--dark::after {
  width: 80px;
  height: 80px;
  bottom: -20px;
  right: 40px;
}

.card--lavender {
  background: linear-gradient(135deg, #C4B8E8, #E2D8F8);
  border-radius: 18px;
  box-shadow: 0 5px 9px rgba(120,100,200,0.18);
  color: var(--purple-800);
  position: relative;
  overflow: hidden;
}

.card--lavender::before,
.card--lavender::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(91,45,191,0.10);
}

.card--lavender::before {
  width: 120px;
  height: 120px;
  top: -30px;
  right: -20px;
}

.card--lavender::after {
  width: 80px;
  height: 80px;
  bottom: -20px;
  right: 40px;
}

/* ─── Tile Cards (Home screen) ────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  margin-top: var(--section-gap);
}

.tile-card {
  background: var(--surface-card);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.tile-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-search);
}

.tile-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-chip);
}

.tile-card__icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface-chip);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-card__icon-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-secondary);
  stroke-width: 1.5;
  fill: none;
}

.tile-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.tile-card__desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: var(--grad-button-cta);
  box-shadow: var(--shadow-light);
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,0.08);
  border-radius: 25px 25px 0 0;
  pointer-events: none;
}

.btn-cta:active { opacity: 0.88; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: var(--surface-chip);
  border: none;
  color: var(--purple-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-danger {
  display: block;
  width: 100%;
  background: white;
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  color: var(--status-danger);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
}

/* ─── Chips / Filter Pills ───────────────────────────────────── */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--surface-chip);
  border: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--purple-700);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.chip--active {
  background: var(--purple-800);
  color: white;
  font-weight: 600;
}

/* ─── Progress Bar ───────────────────────────────────────────── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-track {
  flex: 1;
  height: 9px;
  border-radius: 4.5px;
  background: var(--surface-chip);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4.5px;
  background: var(--purple-500);
  transition: width 0.4s ease;
}

.progress-fill--gradient { background: var(--grad-progress); }
.progress-fill--amber    { background: var(--status-warning-fill); }
.progress-fill--danger   { background: var(--status-danger-fill); }

.progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-600);
  min-width: 34px;
  text-align: right;
}

.progress-label--amber  { color: var(--status-warning); }
.progress-label--danger { color: var(--status-danger); }
.progress-label--complete { color: var(--status-success); }

/* ─── Progress Ring ──────────────────────────────────────────── */
.progress-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--purple-500) 0deg,
    var(--purple-100) calc(var(--p, 0) / 100 * 360deg),
    #D8CCEE            calc(var(--p, 0) / 100 * 360deg),
    #D8CCEE            360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-heavy);
  flex-shrink: 0;
}
.progress-ring__inner {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.progress-ring__pct {
  font-size: 42px;
  font-weight: 900;
  color: var(--purple-600);
  line-height: 1;
  letter-spacing: -1px;
}
.progress-ring__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Avatars ────────────────────────────────────────────────── */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  background: var(--grad-avatar-purple);
  position: relative;
}

.avatar--green  { background: var(--grad-avatar-green); }
.avatar--red    { background: var(--grad-avatar-red); }
.avatar--amber  { background: var(--grad-avatar-amber); }
.avatar--black  { background: var(--grad-avatar-black); }
.avatar--profile {
  width: 82px;
  height: 82px;
  font-size: 26px;
  background: var(--grad-avatar-profile);
  box-shadow: 0 0 0 4px rgba(200,180,255,0.55);
}

/* Photo overlay — sits on top of initials, fully covers the circle */
.avatar__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Camera badge — bottom-right of profile avatar */
.avatar-camera-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 26px;
  height: 26px;
  background: var(--purple-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(200,180,255,0.7);
  cursor: pointer;
  pointer-events: none;
}

/* Full-screen crop overlay */
.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.crop-overlay__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.crop-overlay__title {
  font-size: 15px;
  font-weight: 700;
  color: white;
}
.crop-overlay__hint {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 0 20px 10px;
  flex-shrink: 0;
}
.crop-overlay__canvas {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.crop-overlay__canvas img {
  max-width: 100%;
  display: block;
}
.crop-overlay__actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.crop-overlay__actions .btn-cta {
  flex: 1;
}
.crop-overlay__cancel {
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  flex: 1;
}

.avatar__complete-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--status-success);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.avatar__complete-badge svg {
  width: 10px;
  height: 10px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Tags ───────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--purple-700);
  color: white;
  font-size: 9.5px;
  font-weight: 500;
}

/* ─── Overline Label ─────────────────────────────────────────── */
.overline {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─── Section Heading ────────────────────────────────────────── */
.section-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--purple-800);
}

/* ─── Form Elements ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--surface-chip);
  background: white;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--purple-500);
}

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

.form-textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--surface-chip);
  background: white;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  resize: vertical;
  min-height: 90px;
}

.form-textarea:focus {
  border-color: var(--purple-500);
}

.form-error {
  font-size: 12px;
  font-weight: 500;
  color: var(--status-danger);
  padding: 10px 14px;
  background: #FFEAEA;
  border-radius: 10px;
}

.form-success {
  font-size: 12px;
  font-weight: 500;
  color: var(--status-success);
  padding: 10px 14px;
  background: var(--status-success-bg);
  border-radius: 10px;
}

/* ─── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 21px;
  background: white;
  box-shadow: var(--shadow-search);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--text-disabled);
}

/* ─── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 680px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--purple-800);
  color: white;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-heavy);
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}

.toast--success { background: var(--status-success); }
.toast--error   { background: var(--status-danger); }
.toast--warning { background: var(--status-warning); }

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

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ─── Complete Pill ──────────────────────────────────────────── */
.pill-complete {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 8px;
  border-radius: 8.5px;
  background: var(--status-success-bg);
  color: var(--status-success);
  font-size: 9.5px;
  font-weight: 600;
  gap: 3px;
}

/* ─── Row Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--surface-chip);
  margin: 14px 0;
}

/* ─── Three-dot Menu ─────────────────────────────────────────── */
.three-dot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.three-dot__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-disabled);
}

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px var(--page-margin) 32px;
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--surface-chip);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-secondary);
  stroke-width: 1.5;
  fill: none;
}

.empty-state__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state__body {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Banner (warning/info strip) ───────────────────────────── */
.banner {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner--warning {
  background: #FFF8E6;
  color: var(--status-warning);
  border: 1px solid #F0D080;
}

.banner--info {
  background: var(--purple-50);
  color: var(--purple-700);
  border: 1px solid var(--surface-chip);
}

.banner--danger {
  background: #FFF0EE;
  color: var(--status-danger);
  border: 1px solid #F0C0B8;
}

.banner--success {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid #A8DEB0;
}

/* ─── Training Unit List Items ───────────────────────────────── */
.unit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}

.unit-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--surface-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unit-status-icon--passed {
  background: var(--status-success-bg);
  border-color: var(--status-success);
}

.unit-status-icon--failed {
  background: #FFF0EE;
  border-color: var(--status-danger);
}

.unit-status-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.unit-status-icon--passed svg { stroke: var(--status-success); }
.unit-status-icon--failed svg { stroke: var(--status-danger); }

/* ─── Completed Units Accordion Card ────────────────────────── */
.completed-accordion {
  background: var(--surface-card);
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  margin-bottom: 10px;
}

.completed-accordion__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.completed-accordion.is-open .completed-accordion__header {
  border-bottom-color: rgba(155,138,192,0.18);
}

.completed-accordion__icon-stack {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.completed-accordion__icon-stack .unit-status-icon--passed:nth-child(2) {
  position: absolute;
  top: -3px;
  left: 3px;
  opacity: 0.45;
  z-index: -1;
}

.completed-accordion__icon-stack .unit-status-icon--passed:nth-child(3) {
  position: absolute;
  top: -6px;
  left: 6px;
  opacity: 0.22;
  z-index: -2;
}

.completed-accordion__title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.completed-accordion__subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1px;
}

.completed-accordion__chevron {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.completed-accordion.is-open .completed-accordion__chevron {
  transform: rotate(180deg);
}

.completed-accordion__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.30s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease;
}

.completed-accordion.is-open .completed-accordion__body {
  max-height: 3000px;
  opacity: 1;
}

.completed-accordion__inner {
  padding: 10px 14px 4px;
}

/* unit-rows inside accordion get slightly reduced opacity */
.completed-accordion__inner .unit-row {
  opacity: 0.72;
  transition: opacity 0.15s;
}

.completed-accordion__inner .unit-row:hover,
.completed-accordion__inner .unit-row:focus {
  opacity: 1;
}

/* ─── Video Card (Netflix style) ─────────────────────────────── */
.video-card {
  flex-shrink: 0;
  width: 150px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.video-card__thumb {
  position: relative;
  width: 150px;
  height: 90px;
  border-radius: 10px;
  background: var(--purple-900);
  overflow: hidden;
  margin-bottom: 7px;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__play svg {
  width: 12px;
  height: 12px;
  fill: white;
  margin-left: 2px;
}

.video-card__duration {
  position: absolute;
  bottom: 5px;
  right: 6px;
  height: 14px;
  padding: 0 5px;
  border-radius: 7px;
  background: rgba(0,0,0,0.68);
  color: white;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.video-card__lock {
  position: absolute;
  top: 5px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__lock svg {
  width: 10px;
  height: 10px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.video-card__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-card__meta .avatar {
  width: 18px;
  height: 18px;
  font-size: 7px;
}

.video-card__uploader {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Horizontal scroll row */
.scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.scroll-row::-webkit-scrollbar { display: none; }

/* ─── Login Screen ───────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  background: var(--bg-screen);
  display: flex;
  flex-direction: column;
}

.login-hero {
  background: var(--grad-dark-card);
  padding: 60px var(--page-margin) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

@keyframes hero-bubble-up {
  0%, 100% { transform: translateY(0px)   translateX(0px) scale(1.000); }
  50%       { transform: translateY(-14px) translateX(0px) scale(1.100); }
}
@keyframes hero-bubble-down {
  0%, 100% { transform: translateY(0px)  translateX(0px) scale(1.000); }
  50%       { transform: translateY(14px) translateX(0px) scale(0.900); }
}
@keyframes hero-bubble-up-sway-l {
  0%, 100% { transform: translateY(0px)   translateX(0px)  scale(1.000); }
  50%       { transform: translateY(-14px) translateX(-9px) scale(1.100); }
}
@keyframes hero-bubble-up-sway-r {
  0%, 100% { transform: translateY(0px)   translateX(0px) scale(1.000); }
  50%       { transform: translateY(-14px) translateX(9px) scale(1.100); }
}
@keyframes hero-bubble-down-sway-l {
  0%, 100% { transform: translateY(0px)  translateX(0px)  scale(1.000); }
  50%       { transform: translateY(14px) translateX(-9px) scale(0.900); }
}
@keyframes hero-bubble-down-sway-r {
  0%, 100% { transform: translateY(0px)  translateX(0px) scale(1.000); }
  50%       { transform: translateY(14px) translateX(9px) scale(0.900); }
}

.login-hero__bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Individual bubble styles are generated at runtime by login.njk */

.login-hero__logo {
  height: 72px;
  width: auto;
}

.login-hero__sub {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.login-form {
  flex: 1;
  padding: 32px var(--page-margin) var(--page-margin);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── Profile Page ───────────────────────────────────────────── */
.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -41px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.profile-name-display {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-role-display {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-transform: capitalize;
}

/* ─── Training Progress Teaser ───────────────────────────────── */
.training-teaser {
  margin-top: var(--section-gap);
  background: var(--surface-card);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  padding: 16px;
}

.training-teaser__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.training-teaser__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-400);
}

/* ─── Quiz UI ────────────────────────────────────────────────── */
.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quiz-question {
  padding: 16px 0;
}

.quiz-question--border {
  border-bottom: 1px solid var(--surface-chip);
}

.quiz-question__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--surface-chip);
  background: white;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.quiz-option:has(.quiz-option__radio-input:checked) {
  border-color: var(--purple-500);
  background: var(--purple-50);
}

.quiz-option--correct {
  border-color: var(--status-success) !important;
  background: var(--status-success-bg) !important;
  color: var(--status-success);
  font-weight: 600;
  cursor: default;
}

.quiz-option--wrong {
  border-color: var(--status-danger) !important;
  background: #FFF0EE !important;
  color: var(--status-danger);
  cursor: default;
}

.quiz-option--grey {
  border-color: var(--surface-chip);
  background: white;
  color: var(--text-secondary);
  cursor: default;
}

.quiz-option__radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.quiz-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-disabled);
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.quiz-option:has(.quiz-option__radio-input:checked) .quiz-option__radio {
  border-color: var(--purple-500);
  border-width: 5px;
}

.quiz-option__radio--correct {
  border-color: var(--status-success);
  border-width: 5px;
}

.quiz-option__radio--wrong {
  border-color: var(--status-danger);
  border-width: 5px;
}

.quiz-option__radio--grey {
  border-color: var(--text-disabled);
}

.quiz-option__icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  margin-left: auto;
}

.quiz-option__icon--correct { stroke: var(--status-success); }
.quiz-option__icon--wrong   { stroke: var(--status-danger); }

/* ─── Admin Unit / Question Rows ─────────────────────────────── */
.admin-unit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  margin-bottom: 10px;
}

.admin-unit-row--unpublished {
  opacity: 0.6;
  background: var(--surface-chip);
  box-shadow: none;
  border: none;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='14' ry='14' stroke='%23aaa' stroke-width='3' stroke-dasharray='6%2c 7' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
}

.admin-unit-row__drag {
  cursor: grab;
  flex-shrink: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-unit-row__drag:active { cursor: grabbing; }

.icon-btn-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-chip);
  color: var(--purple-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn-round--danger {
  background: #FFF0EE;
  color: var(--status-danger);
}

.icon-btn-round--success {
  background: #EDFAF1;
  color: var(--status-success);
}

.icon-btn-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: none;
  background: var(--surface-chip);
  color: var(--purple-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn-pill--success {
  background: var(--status-success);
  color: #fff;
}

.icon-btn-pill--success:hover {
  background: #236024;
}

.icon-btn-pill--danger {
  background: var(--status-danger-fill);
  color: #fff;
}

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

/* ─── Quiz editor: answer rows ───────────────────────────────── */
.q-answers-edit { display: flex; flex-direction: column; gap: 6px; }

.q-ans-row-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1.5px solid var(--surface-chip);
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
  user-select: none;
}
.q-ans-row-edit:hover { background: var(--surface-chip); }
.q-ans-row-edit--correct {
  border-color: var(--status-success);
  background: var(--status-success-bg, #F0FDF4);
}

.q-ans-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-disabled);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-ans-radio--correct { border-color: var(--status-success); background: var(--status-success); }
.q-ans-radio-dot { width: 5px; height: 5px; border-radius: 50%; background: white; }

.sortable-ghost {
  opacity: 0.4;
  background: var(--surface-chip);
  border-radius: 10px;
}

/* ─── Responsive / PWA ───────────────────────────────────────── */
@media (max-width: 480px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  /* Intentionally not implementing dark mode for now */
}

/* ═══════════════════════════════════════════════════════════════
   Video System — Phase 4
   ═══════════════════════════════════════════════════════════════ */

/* ─── Upload Zone ────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--purple-300);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: background 0.15s, border-color 0.15s;
  outline: none;
}
.upload-zone:focus { border-color: var(--purple-600); }
.upload-zone--active {
  background: var(--surface-chip);
  border-color: var(--purple-600);
}

/* ─── Video Browse Section (deep plum) ──────────────────────── */
.video-section-fade {
  height: 32px;
  margin: 4px calc(-1 * var(--page-margin)) 0;
  background: linear-gradient(to bottom, var(--bg-screen), #1e1040);
  pointer-events: none;
}
.video-browse-section {
  background: #1e1040;
  margin: 0 calc(-1 * var(--page-margin));
  padding: 16px var(--page-margin) 84px;
  --text-primary:   #E8E0F8;
  --text-secondary: #9B80C8;
  --surface-chip:   rgba(255,255,255,0.10);
}
.video-browse-section .chip {
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.18);
}
.video-browse-section .chip--active {
  background: var(--purple-600);
  color: #fff;
  border-color: transparent;
}

/* ─── Video Row (Netflix horizontal scroll) ──────────────────── */
.video-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.video-row::-webkit-scrollbar { display: none; }
.video-row.is-dragging { cursor: grabbing; }

/* ─── Video Card ─────────────────────────────────────────────── */
.video-card {
  flex: 0 0 min(calc((100vw - 30px) / 2.5), 200px);
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-card__thumb {
  width: min(calc((100vw - 30px) / 2.5), 200px);
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--purple-900);
  position: relative;
}
.video-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.15s;
}
.video-card:hover .video-card__play-overlay {
  background: rgba(0,0,0,0.3);
}
.video-card__duration {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
}
.video-card__title-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,0,24,0.88) 0%, rgba(8,0,24,0.4) 65%, transparent 100%);
  padding: 20px 8px 7px;
}
.video-card__title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.video-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── Chip row (horizontal scroll for filter chips) ─────────── */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.chip-row::-webkit-scrollbar { display: none; }

/* ─── Search input ───────────────────────────────────────────── */
.search-input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: none;
  background: white;
  box-shadow: var(--shadow-search);
  padding: 0 18px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.search-input::placeholder { color: var(--text-disabled); }
.search-input:focus { box-shadow: 0 0 0 2px var(--purple-400); }
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* ─── Toggle Switch ──────────────────────────────────────────── */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__track {
  width: 38px;
  height: 22px;
  background: #C4C4C4;
  border-radius: 11px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle-switch__track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.toggle-switch__input:checked + .toggle-switch__track {
  background: var(--purple-600);
}

.toggle-switch__input:checked + .toggle-switch__track::after {
  transform: translateX(16px);
}

.toggle-switch__label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Tag toggles (in submit/detail forms) ───────────────────── */
.tag-toggle {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--surface-chip);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}
.tag-toggle--active {
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: white;
}

/* ─── Queue pulsing progress bar ─────────────────────────────── */
@keyframes queuePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.queue-pulse { animation: queuePulse 1.5s ease infinite; }

/* ─── Banner variants ────────────────────────────────────────── */
.banner--warning {
  background: #FEF3C7;
  border-left: 3px solid var(--status-warning);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #92400E;
  margin-bottom: 12px;
}

