@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =====================================================
   SOUTHERN CATS CLUB MANAGER - MAIN STYLESHEET
   Design: Dark Glassmorphism, Navy/Gold, Inter
   ===================================================== */

/* --- CSS Custom Properties --- */
:root {
  --navy:          #001B5E;
  --gold:          #F0A500;
  --white:         #FFFFFF;
  --dark-bg:       #121212;
  --surface:       #1a1a1a;
  --card:          #222222;
  --border:        rgba(255, 255, 255, 0.08);
  --text:          #e5e5e5;
  --muted:         #888888;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --transition:    250ms cubic-bezier(0.4, 0, 0.2, 1);
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 8px 48px rgba(0, 0, 0, 0.7);
  --glass:         rgba(30, 30, 30, 0.85);
  --glass-border:  rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
  --navy:          #001B5E;
  --gold:          #D4900A;
  --white:         #FFFFFF;
  --dark-bg:       #f0f2f5;
  --surface:       #ffffff;
  --card:          #ffffff;
  --border:        #e2e5ea;
  --text:          #1a1d23;
  --muted:         #6b7280;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:     0 8px 48px rgba(0, 0, 0, 0.12);
  --glass:         rgba(255, 255, 255, 0.85);
  --glass-border:  rgba(226, 229, 234, 0.8);
}

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

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

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.82; }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* --- App Layout --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--dark-bg);
  transition: margin-left var(--transition);
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition);
  overflow: hidden;
}

/* ── Brand / Logo ── */
.sidebar-brand {
  padding: 1.25rem 1.25rem 0.75rem;
  flex-shrink: 0;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  opacity: 1;
}

.sidebar-brand-link:hover { opacity: 1; }

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-brand-fallback {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #F0A500, #e07c00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ── User / Org Card ── */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0.75rem 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(160, 100, 30, 0.25);
  border: 1px solid rgba(200, 130, 50, 0.18);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  flex-shrink: 0;
}

.sidebar-user-card:hover {
  background: rgba(160, 100, 30, 0.35);
  opacity: 1;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-user-initials {
  background: linear-gradient(135deg, #F0A500, #d48e00);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

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

.sidebar-user-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: #999;
  line-height: 1.3;
}

.sidebar-user-chevron {
  font-size: 20px;
  color: #777;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.sidebar-user-card:hover .sidebar-user-chevron {
  color: #bbb;
}

/* ── Navigation ── */
.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  list-style: none;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-nav li { list-style: none; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  color: #c0c0c0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: 0;
  position: relative;
  margin: 0 0.5rem;
  border-radius: 8px;
}

.sidebar-link .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
  width: 24px;
  color: #999;
  transition: color var(--transition);
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.sidebar-link:hover .material-symbols-outlined {
  color: #ccc;
}

.sidebar-link.active {
  color: #F0A500;
  background: rgba(240, 165, 0, 0.1);
}

.sidebar-link.active .material-symbols-outlined {
  color: #F0A500;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Bottom Section ── */
.sidebar-bottom {
  flex-shrink: 0;
  padding: 0.5rem 0 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logout-link {
  color: #888 !important;
}

.sidebar-logout-link:hover {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.08) !important;
}

.sidebar-logout-link:hover .material-symbols-outlined {
  color: #f87171 !important;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  display: none;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.open { display: block; }

/* --- Theme Toggle --- */
.theme-toggle {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 44px;
  height: 24px;
  cursor: pointer;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  padding: 2px;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 300ms ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 27, 94, 0.1);
  border-color: rgba(0, 27, 94, 0.2);
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
  background: var(--navy);
}

.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  color: rgba(232, 237, 245, 0.72);
}

.theme-toggle-label {
  font-size: 0.75rem;
  color: rgba(232, 237, 245, 0.6);
}

/* --- Top Bar --- */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.topbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  border-radius: 6px;
  transition: background var(--transition);
}

.topbar-toggle:hover { background: rgba(255, 255, 255, 0.06); }

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
  border-radius: 6px;
  transition: background var(--transition);
}

.mobile-menu-btn:hover { background: rgba(255,255,255,0.08); }

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--gold); opacity: 1; }

.breadcrumb-sep {
  color: var(--border);
  font-size: 0.9rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

.topbar-user:hover { border-color: var(--gold); opacity: 1; color: var(--text); }

.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.card-body {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Stat Cards */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 165, 0, 0.3);
}

.stat-card-body { flex: 1; }

.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-icon {
  font-size: 1.75rem;
  opacity: 0.5;
}

/* Grid layouts */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, #F0A500 0%, #e69900 100%);
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(240, 165, 0, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #e69900 0%, #d48e00 100%);
  color: var(--navy);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  opacity: 1;
}

.btn-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #f87171;
  border-color: rgba(220, 38, 38, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.2);
  border-color: #f87171;
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  opacity: 1;
}

.btn-success {
  background: rgba(72, 187, 120, 0.1);
  color: #68d391;
  border-color: rgba(72, 187, 120, 0.3);
}

.btn-success:hover:not(:disabled) {
  background: rgba(72, 187, 120, 0.2);
  border-color: #68d391;
  opacity: 1;
}

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.form-control::placeholder { color: var(--muted); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

select.form-control option {
  background: var(--card);
  color: var(--text);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.form-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.76rem;
  color: #f87171;
  margin-top: 0.3rem;
}

.form-control.is-invalid { border-color: #f87171; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }

[data-theme="light"] .form-control {
  background: #f8f9fa;
  border-color: #d1d5db;
  color: var(--text);
}

[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 27, 94, 0.1);
}

[data-theme="light"] select.form-control option {
  background: #ffffff;
  color: var(--text);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; white-space: nowrap; flex-shrink: 0; }

.color-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-input-row input[type="color"] {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 2px;
  cursor: pointer;
  background: var(--surface);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Role badges */
.badge-committee { background: rgba(240,165,0,0.14); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); }
.badge-coach     { background: rgba(99,179,237,0.14); color: #63b3ed; border: 1px solid rgba(99,179,237,0.3); }
.badge-player    { background: rgba(104,211,145,0.14); color: #68d391; border: 1px solid rgba(104,211,145,0.3); }
.badge-volunteer { background: rgba(214,188,250,0.14); color: #d6bcfa; border: 1px solid rgba(214,188,250,0.3); }
.badge-supporter { background: rgba(136,150,179,0.14); color: var(--muted); border: 1px solid var(--border); }
.badge-guardian  { background: rgba(252,129,74,0.14); color: #fc814a; border: 1px solid rgba(252,129,74,0.3); }

/* Status badges */
.badge-success, .badge-attending    { background: rgba(72,187,120,0.14); color: #68d391; border: 1px solid rgba(72,187,120,0.3); }
.badge-danger, .badge-not-attending { background: rgba(245,101,101,0.14); color: #f87171; border: 1px solid rgba(245,101,101,0.3); }
.badge-warning, .badge-maybe        { background: rgba(246,224,94,0.14);  color: #f6e05e; border: 1px solid rgba(246,224,94,0.3); }
.badge-info, .badge-open            { background: rgba(99,179,237,0.14);  color: #63b3ed; border: 1px solid rgba(99,179,237,0.3); }
.badge-complete                     { background: rgba(72,187,120,0.14); color: #68d391; border: 1px solid rgba(72,187,120,0.3); }
.badge-in-progress                  { background: rgba(240,165,0,0.14); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); }
.badge-cancelled                    { background: rgba(245,101,101,0.14); color: #f87171; border: 1px solid rgba(245,101,101,0.3); }
.badge-neutral                      { background: rgba(136,150,179,0.14); color: var(--muted); border: 1px solid var(--border); }

/* Difficulty */
.badge-beginner    { background: rgba(72,187,120,0.14); color: #68d391; border: 1px solid rgba(72,187,120,0.3); }
.badge-intermediate { background: rgba(240,165,0,0.14); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); }
.badge-advanced    { background: rgba(245,101,101,0.14); color: #f87171; border: 1px solid rgba(245,101,101,0.3); }

/* Event type */
.badge-training { background: rgba(99,179,237,0.14); color: #63b3ed; border: 1px solid rgba(99,179,237,0.3); }
.badge-match    { background: rgba(240,165,0,0.14); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); }
.badge-social   { background: rgba(214,188,250,0.14); color: #d6bcfa; border: 1px solid rgba(214,188,250,0.3); }
.badge-meeting  { background: rgba(252,129,74,0.14); color: #fc814a; border: 1px solid rgba(252,129,74,0.3); }

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead { background: var(--surface); }

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tbody tr { transition: background var(--transition); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
tbody tr:nth-child(even):hover { background: rgba(255, 255, 255, 0.03); }

[data-theme="light"] thead {
  background: #f8f9fa;
}

[data-theme="light"] tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] tbody tr:hover {
  background: rgba(0, 27, 94, 0.04);
}

.table-action-cell { display: flex; gap: 0.4rem; align-items: center; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 200ms ease; }

/* --- Year filter tabs (Minutes) --- */
.year-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.year-tab-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}

.year-tab-btn:hover { border-color: var(--gold); color: var(--gold); }
.year-tab-btn.active { background: rgba(240,165,0,0.1); border-color: var(--gold); color: var(--gold); }

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 250ms ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-sm { max-width: 400px; }
.modal-lg { max-width: 720px; }

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

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

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color var(--transition);
  padding: 0.2rem;
  line-height: 1;
  border-radius: 4px;
}

.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.modal-body { padding: 1.5rem; }

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* --- Toasts --- */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  min-width: 280px;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.toast.show { transform: translateX(0); }
.toast-success { border-left: 3px solid #68d391; }
.toast-error   { border-left: 3px solid #f87171; }
.toast-warning { border-left: 3px solid #f6e05e; }
.toast-info    { border-left: 3px solid #63b3ed; }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.4; }

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem;
  flex-shrink: 0;
  transition: color var(--transition);
}

.toast-close:hover { color: var(--text); }

/* --- Flash Messages (Django alerts) --- */
.messages-container { padding: 1rem 2rem 0; }

.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid;
  animation: slideUp 250ms ease forwards;
  transition: opacity 350ms ease;
}

.alert-success { background: rgba(72,187,120,0.1); color: #68d391; border-color: rgba(72,187,120,0.28); }
.alert-error, .alert-danger { background: rgba(245,101,101,0.1); color: #f87171; border-color: rgba(245,101,101,0.28); }
.alert-warning { background: rgba(240,165,0,0.1); color: var(--gold); border-color: rgba(240,165,0,0.28); }
.alert-info    { background: rgba(99,179,237,0.1); color: #63b3ed; border-color: rgba(99,179,237,0.28); }

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.alert-close:hover { opacity: 1; }

/* --- RSVP Widget --- */
.rsvp-widget {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}

.rsvp-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.rsvp-btn[data-rsvp="attending"].active,
.rsvp-btn.active-attending {
  background: rgba(72,187,120,0.15);
  border-color: #68d391;
  color: #68d391;
}

.rsvp-btn[data-rsvp="maybe"].active,
.rsvp-btn.active-maybe {
  background: rgba(246,224,94,0.15);
  border-color: #f6e05e;
  color: #f6e05e;
}

.rsvp-btn[data-rsvp="not_attending"].active,
.rsvp-btn.active-not-attending {
  background: rgba(248,113,113,0.15);
  border-color: #f87171;
  color: #f87171;
}

.rsvp-counts {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.rsvp-count-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.rsvp-list-section { margin-top: 1.25rem; }

.rsvp-names { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

.name-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

/* --- Volunteer Roster --- */
.roster-list { display: flex; flex-direction: column; gap: 0.5rem; }

.roster-slot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color var(--transition);
}

.roster-slot:hover { border-color: rgba(240,165,0,0.2); }

.roster-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  width: 160px;
  flex-shrink: 0;
}

.roster-assignee {
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted);
}

.roster-assignee.assigned { color: var(--text); }

.roster-notes {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  flex: 1;
}

.roster-actions { display: flex; gap: 0.4rem; align-items: center; margin-left: auto; }

/* --- Meeting Minutes Layout --- */
.minutes-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.minutes-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.minutes-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.minutes-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.minutes-items { display: flex; flex-direction: column; gap: 1rem; }

.minutes-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color var(--transition);
}

.minutes-item.action-item { border-left: 3px solid var(--gold); }
.minutes-item.noting-item { border-left: 3px solid #63b3ed; }
.minutes-item.general-item { border-left: 3px solid var(--border); }

.minutes-item-number {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  min-width: 2rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.minutes-item-body { flex: 1; min-width: 0; }

.minutes-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.minutes-item-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.action-detail {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(240, 165, 0, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 165, 0, 0.14);
}

.action-assignee {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.action-due {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.attendee-section { margin-bottom: 1.5rem; }

.attendee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.attendee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.attendee-chip.present {
  background: rgba(72,187,120,0.1);
  color: #68d391;
  border: 1px solid rgba(72,187,120,0.25);
}

.attendee-chip.apology {
  background: rgba(248,113,113,0.1);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.25);
}

/* Minutes multi-step form */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--card);
  flex-shrink: 0;
  transition: all var(--transition);
}

.step-dot.active { border-color: var(--gold); color: var(--gold); background: rgba(240,165,0,0.1); }
.step-dot.completed { border-color: #68d391; background: rgba(72,187,120,0.1); color: #68d391; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.step-line.completed { background: rgba(72,187,120,0.4); }

.step-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 0.35rem;
  text-align: center;
}

/* Dynamic items list */
.dynamic-items { display: flex; flex-direction: column; gap: 1rem; }

.dynamic-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: relative;
}

.dynamic-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dynamic-item-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
  transition: color var(--transition);
}

.remove-item-btn:hover { color: #f87171; }

/* --- Drill Library --- */
.drill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.drill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(240, 165, 0, 0.2);
}

.drill-card-field {
  height: 140px;
  background: #1e5c1e;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Mini AFL field markings via CSS */
.drill-card-field::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 6%;
  right: 6%;
  bottom: 6%;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}

.drill-card-field::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  right: 25%;
  height: 1.5px;
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%);
}

.drill-card-field-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drill-card-field-inner::before {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

.drill-card-body { padding: 1rem; flex: 1; }

.drill-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.drill-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.drill-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

/* --- Drill Editor Layout --- */
.drill-editor-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--dark-bg);
}

.drill-title-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  height: 52px;
}

.drill-title-input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  outline: none;
  flex: 1;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition);
  padding: 0.2rem 0;
}

.drill-title-input:focus { border-bottom-color: var(--gold); }

.drill-editor-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.drill-toolbar {
  width: 76px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  gap: 0.4rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.tool-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

.tool-btn {
  width: 52px;
  height: 52px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.55rem;
  color: var(--muted);
  gap: 0.15rem;
  text-align: center;
  line-height: 1.2;
}

.tool-btn:hover { border-color: var(--gold); color: var(--text); }
.tool-btn.active { border-color: var(--gold); background: rgba(240,165,0,0.1); color: var(--gold); }

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

.drill-canvas-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  background: var(--dark-bg);
}

.canvas-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.canvas-container canvas {
  display: block;
}

.drill-steps-panel {
  width: 272px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.steps-panel-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.steps-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.steps-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: 0.25rem;
  border: 1.5px solid transparent;
}

.step-item:hover { background: rgba(255,255,255,0.04); }

.step-item.active {
  background: rgba(240,165,0,0.08);
  border-color: rgba(240,165,0,0.28);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.step-item.active .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.step-text {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-item.active .step-text { color: var(--text); }

.step-delete {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.15rem;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
  opacity: 0;
}

.step-item:hover .step-delete { opacity: 1; }
.step-delete:hover { color: #f87171; }

.step-instruction-area {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.step-instruction-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.step-instruction-area textarea {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  padding: 0.6rem 0.75rem;
  resize: none;
  height: 90px;
  outline: none;
  transition: border-color var(--transition);
}

.step-instruction-area textarea:focus { border-color: var(--gold); }

.drill-bottom-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.shortcut-hints {
  display: flex;
  gap: 1rem;
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: auto;
  flex-wrap: wrap;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.key {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  font-size: 0.62rem;
  font-family: monospace;
  color: var(--text);
}

/* Auto-save indicator */
.save-indicator {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.save-dot.saving { background: var(--gold); animation: spin 1s linear infinite; }
.save-dot.saved  { background: #68d391; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.filter-chip.active { background: rgba(240,165,0,0.1); border-color: var(--gold); color: var(--gold); }

.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input-wrap .form-control {
  padding-left: 2.5rem;
}

/* --- Member Cards --- */
.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(240,165,0,0.2);
  opacity: 1;
  color: inherit;
}

.member-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}

.member-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.member-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.member-detail-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Team Cards --- */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  opacity: 1;
  color: inherit;
}

.team-card-banner {
  height: 8px;
  background: var(--gold);
}

.team-card-body { padding: 1.25rem; }

.team-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.team-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Event Cards --- */
.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}

.event-date-block {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-date-day {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.event-date-month {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-body { flex: 1; min-width: 0; }

.event-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Profile Page --- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 2.2rem;
  overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
}

.avatar-upload-btn:hover { background: #e69900; }

.profile-info { flex: 1; }

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.profile-email { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.6rem; }

/* --- Landing Page --- */
.landing-layout {
  min-height: 100vh;
  background: var(--dark-bg);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.landing-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--navy);
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #111111 45%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(240,165,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--navy);
  top: -180px;
  left: -180px;
  animation: float 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--gold);
  bottom: -100px;
  right: -100px;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(240,165,0,0.3);
  background: rgba(240,165,0,0.07);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-title span { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features {
  padding: 5rem 2rem;
  background: var(--surface);
}

.features-inner { max-width: 1100px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,165,0,0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: center;
  display: block;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.landing-footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- Auth Pages --- */
.auth-layout {
  min-height: 100vh;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.auth-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--navy);
  top: -250px;
  left: -250px;
  opacity: 0.18;
  animation: float 12s ease-in-out infinite;
}

.auth-orb-2 {
  width: 450px;
  height: 450px;
  background: rgba(240,165,0,0.6);
  bottom: -200px;
  right: -180px;
  opacity: 0.08;
  animation: float 14s ease-in-out infinite reverse;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 auto 0.75rem;
  overflow: hidden;
}

.auth-logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.auth-logo-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  display: block;
}

.auth-logo-sub {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-footer a { color: var(--gold); }

.auth-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- Page layout helpers --- */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header-text { flex: 1; }

.page-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
  display: block;
}

.empty-state-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-state-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.03); }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.animate-fadeIn  { animation: fadeIn 300ms ease forwards; }
.animate-slideUp { animation: slideUp 350ms ease forwards; }

.shimmer {
  background: linear-gradient(90deg, var(--card) 25%, rgba(255,255,255,0.04) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

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

.content {
  animation: pageLoad 350ms ease-out;
}

.main-content {
  animation: pageLoad 350ms ease-out;
}

/* --- Context Menu --- */
.context-menu {
  position: fixed;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 300;
  min-width: 160px;
  overflow: hidden;
  animation: slideDown 150ms ease;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}

.context-menu-item:hover { background: rgba(255,255,255,0.05); }
.context-menu-item.danger { color: #f87171; }
.context-menu-item.danger:hover { background: rgba(248,113,113,0.08); }

/* --- Dropdown --- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 150;
  min-width: 180px;
  overflow: hidden;
  display: none;
  animation: slideDown 150ms ease;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.dropdown-item:hover { background: rgba(255,255,255,0.05); opacity: 1; color: var(--text); }
.dropdown-item.danger { color: #f87171; }
.dropdown-item.danger:hover { background: rgba(248,113,113,0.08); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }

/* Google Tasks button */
.gtasks-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1.5px solid rgba(66,133,244,0.4);
  background: rgba(66,133,244,0.1);
  color: #4285f4;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.gtasks-btn:hover { background: rgba(66,133,244,0.2); border-color: #4285f4; color: #4285f4; opacity: 1; }
.gtasks-btn.synced { border-color: rgba(52,168,83,0.4); background: rgba(52,168,83,0.1); color: #34a853; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.toggle-label { font-size: 0.875rem; color: var(--text); font-weight: 500; }
.toggle-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Pagination */
.pagination {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: rgba(240,165,0,0.1); border-color: var(--gold); color: var(--gold); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Quick action grid */
.quick-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.quick-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,165,0,0.06);
  opacity: 1;
  transform: translateY(-1px);
}

/* Colour swatch */
.colour-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: inline-block;
  flex-shrink: 0;
}

/* Pending invite list */
.invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 0.5rem;
}

/* Step-through viewer (drill detail) */
.step-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-viewer-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-counter {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.sidebar-backdrop { display: none; }

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 601;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 600;
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop.open { display: block; }
  .main-wrapper {
    margin-left: 0;
  }
  .topbar-toggle {
    display: flex;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 1rem;
  }
  .topbar {
    padding: 0 1rem;
  }
  .topbar-title { font-size: 1rem; }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .landing-nav {
    padding: 1rem 1.25rem;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .drill-editor-main {
    flex-direction: column;
  }
  .drill-toolbar {
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .tool-divider {
    width: 1px;
    height: 32px;
    margin: 0 0.25rem;
  }
  .drill-steps-panel {
    width: 100%;
    height: 200px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .minutes-item { flex-direction: column; gap: 0.5rem; }
  .roster-slot { flex-wrap: wrap; }
  .roster-role { width: auto; }
}

@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .btn-lg { padding: 0.75rem 1.5rem; }
  .hero-title { font-size: 2rem; }
}

/* --- Print Styles --- */
@media print {
  .sidebar,
  .topbar,
  .mobile-menu-btn,
  .rsvp-widget,
  .drill-toolbar,
  .drill-steps-panel,
  .drill-bottom-bar,
  .drill-title-bar,
  .messages-container,
  .toast-container,
  .btn:not(.no-print-hide),
  .modal-overlay {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
  }

  body {
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 11pt;
  }

  .card,
  .minutes-item,
  .minutes-header {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
  }

  .minutes-title { color: #000000 !important; font-size: 18pt; }
  .minutes-meta { color: #555555 !important; }
  .minutes-item-title { color: #000000 !important; }
  .minutes-item-text { color: #333333 !important; }
  .minutes-item-number { color: #000000 !important; }

  .badge {
    border: 1px solid #cccccc !important;
    color: #333333 !important;
    background: #f5f5f5 !important;
  }

  a { color: #000000 !important; text-decoration: underline; }
  .main-content { padding: 0 !important; }

  .attendee-chip.present { background: #e8f5e9 !important; color: #2e7d32 !important; }
  .attendee-chip.apology { background: #ffebee !important; color: #c62828 !important; }

  @page {
    margin: 2cm;
    size: A4;
  }
}

/* --- Utility Classes --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.text-sm  { font-size: 0.82rem; }
.text-xs  { font-size: 0.72rem; }
.text-lg  { font-size: 1.1rem; }
.text-xl  { font-size: 1.3rem; }
.text-muted   { color: var(--muted); }
.text-gold    { color: var(--gold); }
.text-white   { color: var(--white); }
.text-danger  { color: #f87171; }
.text-success { color: #68d391; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.relative { position: relative; }
.hidden { display: none !important; }
.opacity-50 { opacity: 0.5; }
.rounded { border-radius: var(--radius-sm); }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.min-w-0 { min-width: 0; }

/* ===================================================
   DRILL DETAIL / OVERVIEW
   =================================================== */

.drill-overview-card {
  margin-bottom: 1.5rem;
}

.drill-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.drill-overview-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.drill-overview-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.drill-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.drill-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  flex: 1 1 120px;
  min-width: 120px;
}

.drill-stat-icon {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.8;
}

.drill-stat-info {
  display: flex;
  flex-direction: column;
}

.drill-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.drill-stat-value small {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--muted);
  margin-left: 1px;
}

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

.drill-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.drill-purpose-section {
  margin-bottom: 1.25rem;
}

.drill-purpose-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 0.25rem;
}

.drill-skills-section {
  margin-bottom: 1.25rem;
}

.drill-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-chip {
  background: rgba(240, 165, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(240, 165, 0, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.drill-tags-section {
  margin-bottom: 1.25rem;
}

.drill-overview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.drill-author, .drill-date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Light mode overrides */
[data-theme="light"] .drill-stats-row {
  background: rgba(0,0,0,0.02);
}

[data-theme="light"] .skill-chip {
  background: rgba(180, 120, 0, 0.1);
  color: #8b5e00;
  border-color: rgba(180, 120, 0, 0.25);
}

/* ===================================================
   DRILL EDITOR LAYOUT
   =================================================== */

.drill-editor-page .main-wrapper { overflow: hidden; }

.drill-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  height: calc(100vh - var(--topbar-height));
  overflow: hidden;
  gap: 0;
}

.drill-main-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #111111;
}

.drill-toolbar-horizontal {
  background: var(--surface);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
}
.drill-toolbar-horizontal.top { border-bottom: 1px solid var(--border); }
.drill-toolbar-horizontal.bottom { border-top: 1px solid var(--border); }

.toolbar-section { display: flex; flex-direction: row; align-items: center; gap: 0.4rem; padding-right: 1rem; border-right: 1px solid rgba(255,255,255,0.1); }
.toolbar-section:last-child { border-right: none; }

.toolbar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 0.25rem;
}

.tool-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  text-align: left;
  transition: all var(--transition);
  line-height: 1.3;
}

.tool-btn:hover { background: rgba(240,165,0,0.1); border-color: var(--gold); }
.tool-btn.active { background: rgba(240,165,0,0.2); border-color: var(--gold); color: var(--gold); }
.tool-btn-danger:hover { background: rgba(220,38,38,0.15); border-color: #ef4444; color: #f87171; }

.tool-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 80px;
}
.tool-select:hover { border-color: var(--gold); }
.tool-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240,165,0,0.15); }
.tool-select option { background: var(--surface); color: var(--text); }

.toolbar-rotation-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 2.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.toolbar-shortcuts { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.shortcut-hint { font-size: 0.65rem; color: var(--muted); line-height: 1.8; }

.drill-canvas-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1rem;
  flex: 1;
}

#drillCanvas {
  border-radius: 12px;
  cursor: grab;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  max-width: 100%;
  max-height: 100%;
}

#drillCanvas:active { cursor: grabbing; }
.drill-canvas-readonly { cursor: default !important; }

.drill-steps-panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

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

.steps-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.step-item:hover { background: rgba(255,255,255,0.05); }
.step-item.step-active { background: rgba(240,165,0,0.12); border-color: rgba(240,165,0,0.3); }

.step-num {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
  min-width: 20px;
}

.step-preview { font-size: 0.8rem; color: var(--muted); flex: 1; }
.step-active .step-preview { color: var(--text); }

.step-delete {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.step-item:hover .step-delete { opacity: 1; }
.step-delete:hover { background: rgba(239,68,68,0.2); color: #f87171; }

.instruction-section {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.save-status { font-size: 0.8rem; color: var(--muted); }
.save-status.saving { color: var(--gold); }
.save-status.saved  { color: #68d391; }

.inline-editable {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  border-bottom: 1px dashed transparent;
  transition: border-color var(--transition);
}

.inline-editable:focus { border-color: var(--gold); }

/* ─── Metadata Slide-Out Panel ───────────────── */

.meta-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  backdrop-filter: blur(2px);
}
.meta-panel-overlay.open { display: block; }

.meta-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 950;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.meta-panel.open { transform: translateX(0); }

.meta-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.meta-panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.meta-panel-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.meta-panel-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.meta-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.meta-panel-body .form-group { margin-bottom: 0.85rem; }
.meta-panel-body .form-label { font-size: 0.78rem; }

.btn-block { width: 100%; }

/* ===================================================
   DRILL VIEWER (read-only)
   =================================================== */

.drill-viewer { max-width: 860px; margin: 0 auto; }
.step-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.step-counter { color: var(--muted); font-size: 0.9rem; }
.instruction-card { margin-top: 1rem; }
.drill-detail-page .drill-meta-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.drill-full-desc { color: var(--muted); font-size: 0.9rem; width: 100%; margin-top: 0.5rem; }

/* ===================================================
   AUTH PAGES
   =================================================== */

.auth-page { background: var(--dark-bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

.auth-bg { position: fixed; inset: 0; pointer-events: none; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.2; animation: orbFloat 8s ease-in-out infinite alternate; }
.auth-orb-1 { width: 500px; height: 500px; background: #F0A500; top: -150px; left: -100px; }
.auth-orb-2 { width: 400px; height: 400px; background: #F0A500; bottom: -100px; right: -80px; animation-delay: -4s; }
.auth-orb-3 { width: 300px; height: 300px; background: #888; top: 50%; left: 50%; animation-delay: -2s; }
@keyframes orbFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }

.auth-card-wrapper { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 1.5rem; }

.auth-card {
  background: rgba(30, 30, 30, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="light"] .auth-page {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8edf5 50%, #f0f2f5 100%);
}

[data-theme="light"] .auth-card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
}

[data-theme="light"] .topbar-user {
  background: var(--card);
  border-color: var(--border);
}

/* Light mode button overrides */
[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

[data-theme="light"] .btn-secondary:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-danger {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.2);
}

[data-theme="light"] .btn-success {
  background: rgba(22, 163, 74, 0.06);
  border-color: rgba(22, 163, 74, 0.2);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 2px 8px rgba(240, 165, 0, 0.2);
}

.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-club-logo { max-height: 80px; max-width: 200px; object-fit: contain; }
.auth-logo-text { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.auth-title { font-size: 1.6rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 0.4rem; }
.auth-subtitle { color: var(--muted); text-align: center; margin-bottom: 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-links { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.auth-link { color: var(--gold); text-decoration: none; font-size: 0.875rem; }
.auth-link:hover { text-decoration: underline; }
.auth-divider { color: var(--muted); }

/* ===================================================
   DASHBOARD
   =================================================== */

.dashboard-welcome { margin-bottom: 2rem; }
.welcome-heading { font-size: 2rem; font-weight: 800; color: var(--text); }
.welcome-sub { color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card-alert { border-color: rgba(240,165,0,0.3); }
.stat-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.stat-value { font-size: 2.25rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; font-weight: 500; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.section-link { color: var(--gold); text-decoration: none; font-size: 0.8rem; }
.section-link:hover { text-decoration: underline; }

.event-list { display: flex; flex-direction: column; gap: 0.6rem; }

.event-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.event-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(240,165,0,0.3); }

.event-date-badge { text-align: center; min-width: 44px; }
.event-day { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gold); line-height: 1; }
.event-month { display: block; font-size: 0.65rem; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.event-info { flex: 1; }
.event-title { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.event-meta { font-size: 0.75rem; color: var(--muted); }
.rsvp-chip { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 600; }
.rsvp-attending { background: rgba(72,187,120,0.2); color: #68d391; }
.rsvp-maybe { background: rgba(240,165,0,0.2); color: var(--gold); }
.rsvp-not_attending { background: rgba(239,68,68,0.2); color: #f87171; }
.rsvp-none { background: rgba(255,255,255,0.1); color: var(--muted); }

.meeting-list { display: flex; flex-direction: column; gap: 0.6rem; }
.meeting-card { display: block; padding: 0.75rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; transition: all var(--transition); }
.meeting-card:hover { border-color: rgba(240,165,0,0.3); background: rgba(255,255,255,0.05); }
.meeting-date { font-size: 0.75rem; color: var(--muted); }
.meeting-title { font-weight: 600; color: var(--text); }
.meeting-meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }

.quick-actions { margin-top: 1.5rem; }
.quick-actions-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.row-overdue td { color: #f87171 !important; }

/* ===================================================
   TEAMS / EVENTS
   =================================================== */

.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

.team-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-colour-bar { height: 4px; background: var(--team-colour, var(--navy)); }
.team-card-body { padding: 1.25rem; }
.team-name { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.team-age-group { color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }
.team-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }
.season-badge { background: rgba(240,165,0,0.15); color: var(--gold); padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.7rem; font-weight: 700; margin-top: 0.5rem; display: inline-block; }
.teams-section { margin-bottom: 2rem; }

.event-mini-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); text-decoration: none; background: rgba(255,255,255,0.03); border: 1px solid transparent; transition: all var(--transition); margin-bottom: 0.5rem; }
.event-mini-card:hover { border-color: var(--border); background: rgba(255,255,255,0.05); }
.past-event { opacity: 0.6; }
.emc-date { min-width: 40px; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--gold); }
.emc-info { flex: 1; }
.emc-title { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.emc-meta { font-size: 0.75rem; color: var(--muted); }
.event-type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Event detail */
.event-header-card { margin-bottom: 1.5rem; }
.event-header-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.event-type-badge { display: inline-block; padding: 0.3rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; width: fit-content; }
.event-detail-row { color: var(--muted); font-size: 0.9rem; }
.event-description { color: var(--text); margin-top: 0.5rem; }
.cancelled-banner { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.event-cancelled .elc-title { text-decoration: line-through; opacity: 0.7; }
.cancelled-chip { background: rgba(239,68,68,0.2); color: #f87171; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }

/* RSVP widget */
.rsvp-card { margin-bottom: 1.5rem; }
.rsvp-widget { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.rsvp-btn { flex: 1; min-width: 100px; padding: 0.65rem 1rem; border: 2px solid var(--border); background: rgba(255,255,255,0.04); color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 0.875rem; transition: all var(--transition); }
.rsvp-btn:hover { border-color: rgba(72,187,120,0.5); color: #68d391; }
.rsvp-btn.rsvp-active { border-color: #68d391; background: rgba(72,187,120,0.15); color: #68d391; }
.rsvp-btn-no:hover, .rsvp-btn-no.rsvp-active { border-color: #f87171 !important; color: #f87171 !important; background: rgba(239,68,68,0.1) !important; }
.rsvp-counts { display: flex; gap: 0.75rem; }
.rsvp-count-chip { padding: 0.3rem 0.75rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
.rsvp-count-attending { background: rgba(72,187,120,0.15); color: #68d391; }
.rsvp-count-maybe { background: rgba(240,165,0,0.15); color: var(--gold); }
.rsvp-count-no { background: rgba(239,68,68,0.15); color: #f87171; }

.rsvp-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rsvp-col-header { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); }
.attending-header { background: rgba(72,187,120,0.15); color: #68d391; }
.maybe-header { background: rgba(240,165,0,0.15); color: var(--gold); }
.no-header { background: rgba(239,68,68,0.15); color: #f87171; }
.rsvp-name { font-size: 0.875rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }

/* Volunteer roster */
.add-slot-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.assignee-chip { background: rgba(255,255,255,0.08); padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.8rem; }
.gtask-badge { background: rgba(72,187,120,0.15); color: #68d391; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }

/* Event list page */
.events-list { display: flex; flex-direction: column; gap: 0.75rem; }
.event-list-card { display: flex; align-items: center; gap: 0; text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.event-list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(240,165,0,0.3); }
.elc-type-bar { width: 4px; align-self: stretch; flex-shrink: 0; }
.elc-date { text-align: center; padding: 1rem; min-width: 64px; }
.elc-day { display: block; font-size: 1.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.elc-month { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }
.elc-info { flex: 1; padding: 0.75rem 1rem; }
.elc-title { font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.elc-meta { font-size: 0.8rem; color: var(--muted); }
.elc-rsvp { padding: 1rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }

/* ===================================================
   MINUTES
   =================================================== */

.minutes-page { max-width: 900px; }
.minutes-header.card { margin-bottom: 1.5rem; }
.minutes-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.meta-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin-bottom: 0.2rem; }
.meta-value { font-weight: 600; color: var(--text); }

.minutes-attendees { margin-bottom: 1.5rem; }
.attendee-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.attendee-group-label { font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-bottom: 0.5rem; }
.attendee-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.attendee-chip { background: rgba(0,27,94,0.4); border: 1px solid rgba(255,255,255,0.1); padding: 0.25rem 0.65rem; border-radius: 100px; font-size: 0.78rem; }
.attendee-apology { opacity: 0.6; text-decoration: line-through; }

.discussion-item { border-left: 3px solid var(--border); padding: 0.75rem 1rem; margin-bottom: 0.75rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(255,255,255,0.02); }
.discussion-item-noting { border-left-color: #3182ce; }
.discussion-item-action { border-left-color: var(--gold); }

.item-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.item-number { font-weight: 800; color: var(--gold); font-size: 0.95rem; }
.item-title { font-weight: 600; color: var(--text); flex: 1; }
.item-type-badge { font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 100px; font-weight: 700; }
.badge-noting { background: rgba(49,130,206,0.2); color: #63b3ed; }
.badge-action { background: rgba(240,165,0,0.2); color: var(--gold); }
.badge-general { background: rgba(255,255,255,0.08); color: var(--muted); }

.item-body { color: var(--muted); font-size: 0.875rem; margin: 0.5rem 0 0 1.5rem; }
.action-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0 0 1.5rem; padding: 0.4rem 0.75rem; background: rgba(240,165,0,0.06); border-radius: var(--radius-sm); font-size: 0.83rem; }
.action-label { font-weight: 700; color: var(--gold); }
.action-assignee { color: var(--text); font-weight: 600; }
.action-due { color: var(--muted); }
.action-due.overdue { color: #f87171; }

.status-select { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; }
.status-open { border-color: rgba(240,165,0,0.4); color: var(--gold); }
.status-in_progress { border-color: rgba(49,130,206,0.4); color: #63b3ed; }
.status-complete { border-color: rgba(72,187,120,0.4); color: #68d391; }

.meeting-list-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: all var(--transition); margin-bottom: 0.75rem; }
.meeting-list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(240,165,0,0.3); }
.meeting-list-date { text-align: center; min-width: 56px; }
.mlc-day { display: block; font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.mlc-month { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.meeting-list-info { flex: 1; }
.mlc-title { font-weight: 700; color: var(--text); }
.mlc-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.meeting-list-stats { display: flex; gap: 0.5rem; }
.stat-chip { background: rgba(255,255,255,0.08); padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.75rem; color: var(--muted); }
.stat-chip-alert { background: rgba(240,165,0,0.15); color: var(--gold); }
.card-arrow { color: var(--muted); font-size: 1.2rem; }

/* ===================================================
   PROFILE / MEMBER DETAIL
   =================================================== */

.profile-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-avatar-section { text-align: center; margin-bottom: 1.5rem; }
.profile-avatar-large { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.profile-avatar-initials-large { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #0d2d8a); color: var(--gold); font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; border: 3px solid var(--gold); }

.profile-form .form-grid { margin-bottom: 1.5rem; }
.profile-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.profile-detail-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.detail-label { color: var(--muted); }
.detail-value { color: var(--text); font-weight: 500; }
.success-text { color: #68d391; font-size: 0.875rem; margin-bottom: 1rem; }
.muted-text { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.member-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; text-align: center; transition: all var(--transition); }
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(240,165,0,0.3); }
.member-avatar-wrap { margin-bottom: 0.75rem; }
.member-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.member-avatar-initials { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #0d2d8a); color: var(--gold); font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.member-name { font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.member-phone { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

.member-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { .member-detail-grid { grid-template-columns: 1fr; } }
.member-detail-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.member-detail-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.member-detail-name { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.detail-rows { display: flex; flex-direction: column; gap: 0; }
.detail-row { display: flex; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }

.team-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-size: 0.875rem; font-weight: 600; transition: background var(--transition); margin-bottom: 0.4rem; }
.team-chip:hover { background: rgba(255,255,255,0.05); }
.team-chip-colour { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===================================================
   MISC / UTILITY
   =================================================== */

.add-member-panel { background: rgba(0,27,94,0.2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; }
.team-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .team-content-grid { grid-template-columns: 1fr; } }

.team-info-card .team-header-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.team-detail-name { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.team-age { color: var(--muted); }
.staff-row { font-size: 0.875rem; color: var(--muted); margin-top: 0.2rem; }
.team-desc { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }

.settings-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.logo-preview { display: block; max-height: 60px; margin-top: 0.5rem; }
.role-breakdown { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.role-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; }

.platform-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .platform-grid { grid-template-columns: 1fr; } }

.profile-count { font-size: 1.5rem; font-weight: 800; color: var(--gold); }

.drills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.drill-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; transition: all var(--transition); }
.drill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(240,165,0,0.3); }
.drill-card-header { display: flex; align-items: center; gap: 0.5rem; }
.difficulty-badge { padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.duration-badge { background: rgba(255,255,255,0.1); padding: 0.25rem 0.6rem; border-radius: 100px; font-size: 0.72rem; color: var(--muted); }
.team-badge { background: rgba(0,27,94,0.4); padding: 0.25rem 0.6rem; border-radius: 100px; font-size: 0.72rem; color: var(--muted); }
.drill-title { font-weight: 700; color: var(--text); font-size: 1rem; }
.drill-desc { color: var(--muted); font-size: 0.8rem; }
.drill-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag-chip { background: rgba(0,27,94,0.4); border: 1px solid rgba(255,255,255,0.1); padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.7rem; color: var(--muted); }
.drill-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.drill-meta { font-size: 0.75rem; color: var(--muted); }
.drill-actions { display: flex; gap: 0.4rem; }

.attendee-edit-form { margin-top: 1rem; border-top: 1px dashed var(--border); padding-top: 1rem; }
.attendee-checkboxes { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.attendee-check-row { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; }
.attendee-name { min-width: 140px; font-weight: 500; }

.add-item-form.card-inner { background: rgba(0,27,94,0.2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; }
.form-subtitle { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

/* ═══════════════════════════════════════════════════════
   MOBILE DRILL EDITOR — diagrams.net-inspired layout
   Hidden on desktop; all mobile elements use .mob- prefix
   ═══════════════════════════════════════════════════════ */

/* Mobile elements hidden by default (desktop) */
.mob-toolbar,
.mob-sidebar-backdrop,
.mob-sidebar,
.mob-step-tabs { display: none; }

@media (max-width: 768px) {

  /* ── Hide desktop chrome for drill editor ── */
  .drill-editor-page .sidebar,
  .drill-editor-page .topbar,
  .drill-editor-page .desktop-only {
    display: none !important;
  }

  /* ── Lock page to visible viewport ── */
  body.drill-editor-page {
    overflow: hidden !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0 !important;
  }
  .drill-editor-page .main-wrapper {
    margin-left: 0 !important;
    height: 100%;
    min-height: 0 !important;   /* override base min-height:100vh */
    overflow: hidden;
  }
  .drill-editor-page .content {
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: 0;   /* flex:1 controls size, not content */
  }

  /* ── Flex column: toolbar(44) → canvas(fill) → tabs(40) ── */
  .drill-editor-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: auto !important;    /* kill desktop calc(100vh - topbar) */
    min-height: 0 !important;   /* kill desktop min-height */
    overflow: hidden;
  }
  .drill-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
  }
  .drill-canvas-wrapper {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    background: #111;
  }
  #drillCanvas {
    display: block;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    max-height: 100%;
  }

  /* ═══════════════════════════════════════════
     MOBILE TOP TOOLBAR
     ═══════════════════════════════════════════ */
  .drill-editor-page .mob-toolbar {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    flex-shrink: 0;
    height: 44px;
    overflow: visible;
  }

  .mob-toolbar-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text);
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
  }
  .mob-toolbar-btn:hover,
  .mob-toolbar-btn:active {
    background: rgba(240,165,0,0.12);
    border-color: rgba(240,165,0,0.3);
  }
  .mob-toolbar-btn .material-symbols-outlined { font-size: 20px; }

  .mob-btn-label { font-size: 0.72rem; font-weight: 600; }
  .mob-chevron { font-size: 14px !important; opacity: 0.5; }

  .mob-save-status {
    font-size: 0.75rem;
    color: #68d391;
    margin-right: auto;
    white-space: nowrap;
  }

  .mob-btn-danger:hover,
  .mob-btn-danger:active {
    background: rgba(239,68,68,0.15) !important;
    border-color: rgba(239,68,68,0.3) !important;
    color: #f87171 !important;
  }

  .mob-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: auto;
  }

  /* ─── Dropdown menus ─── */
  .mob-dropdown-wrap {
    position: relative;
  }
  .mob-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 500;
    padding: 0.4rem 0;
    margin-top: 0.25rem;
    backdrop-filter: blur(12px);
  }
  .mob-dropdown-menu.open { display: block; }

  .mob-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
    text-align: left;
  }
  .mob-menu-item:hover,
  .mob-menu-item:active { background: rgba(240,165,0,0.1); }
  .mob-menu-item .material-symbols-outlined { font-size: 18px; color: var(--muted); }
  .mob-colour-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    border: 1.5px solid rgba(255,255,255,0.25);
  }

  .mob-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0;
  }
  .mob-menu-label {
    padding: 0.4rem 1rem 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }

  /* ═══════════════════════════════════════════
     MOBILE SIDEBAR (hamburger overlay)
     ═══════════════════════════════════════════ */
  .mob-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 600;
    backdrop-filter: blur(3px);
  }
  .mob-sidebar-backdrop.open { display: block; }

  .mob-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 650;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .mob-sidebar.open { transform: translateX(0); }

  .mob-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .mob-sidebar-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
  }
  .mob-sidebar-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    line-height: 1;
  }
  .mob-sidebar-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

  .mob-sidebar-body { padding: 0.75rem; }

  .mob-sidebar-section {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mob-sidebar-section:last-child { border-bottom: none; }

  .mob-sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.5rem;
  }

  .mob-sidebar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .mob-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    min-width: 80px;
    flex: 1;
  }

  .mob-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.75rem;
  }

  .mob-btn-danger-outline {
    color: #f87171 !important;
    border-color: rgba(239,68,68,0.3) !important;
  }
  .mob-btn-danger-outline:hover {
    background: rgba(239,68,68,0.12) !important;
  }

  /* ═══════════════════════════════════════════
     MOBILE BOTTOM STEP TABS (Excel-style)
     ═══════════════════════════════════════════ */
  .drill-editor-page .mob-step-tabs {
    display: flex !important;
    align-items: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    height: 40px;
    overflow: hidden;
  }

  .mob-step-tabs-scroll {
    display: flex;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    height: 100%;
  }
  .mob-step-tabs-scroll::-webkit-scrollbar { display: none; }

  .mob-step-tab {
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0 1rem;
    height: 100%;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
  }
  .mob-step-tab:hover,
  .mob-step-tab:active { background: rgba(240,165,0,0.06); color: var(--text); }

  .mob-step-tab-active {
    color: var(--gold) !important;
    background: rgba(240,165,0,0.12);
  }
  .mob-step-tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px 2px 0 0;
  }

  .mob-step-tab-add {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    padding: 0 0.9rem;
    border-right: none;
    border-left: 1px solid var(--border);
  }
  .mob-step-tab-add:hover { background: rgba(240,165,0,0.15); }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-wrapper { margin-left: 0 !important; }
  .minutes-page { max-width: 100%; }
  body { background: white; color: black; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
}
