/* RIFTLAB STUDIOS WEBSITE - GLOBAL STYLESHEET */
/* Consolidated from all HTML inline <style> tags */

/* ========================================
   FONT IMPORTS - MODERN & FUTURISTIC
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@400;700;900&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES & VARIABLES
   ======================================== */
:root {
  /* Modern Font Families */
  --font-futuristic: "Orbitron", "Space Grotesk", sans-serif;
  --font-main: "Inter", "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  /* Breach Protocol Theme Variables */
  --bp-bg: #050505;
  --bp-surface: #101010;
  --bp-surface-soft: #171717;
  --bp-border: #2b2b2b;
  --bp-text: #f2f2f2;
  --bp-text-muted: #b5b5b5;
  --bp-white: #ffffff;
  --bp-black: #000000;

  /* Dashboard Theme (Light Mode) */
  --bg-primary: #d6d0c8;
  --bg-secondary: #e9e2d9;
  --bg-tertiary: #dcd4ca;
  --text-primary: #171411;
  --text-secondary: #4b443d;
  --text-tertiary: #6d645a;
  --border-color: #b9afa3;
  --hover-bg: rgba(23, 20, 17, 0.06);
  --hover-bg-darker: rgba(23, 20, 17, 0.13);
  --accent-primary: #111111;
  --accent-strong: #000000;
  --accent-surface: #d3cbc1;
  --accent-cyan: #111111;
  --accent-red: #6b1d1d;
  --shadow: 0 1px 2px rgba(23, 20, 17, 0.08), 0 8px 24px rgba(23, 20, 17, 0.05);
  --shadow-elevated: 0 4px 10px rgba(23, 20, 17, 0.08), 0 18px 36px rgba(23, 20, 17, 0.06);
  --shadow-glow: 0 0 0 1px rgba(23, 20, 17, 0.1), 0 8px 24px rgba(23, 20, 17, 0.12);
  --glass-bg: rgba(236, 230, 222, 0.92);
  --glass-border: rgba(23, 20, 17, 0.1);
  --button-bg: #111111;
  --button-bg-hover: #000000;
  --button-text: #ffffff;

  /* Transition variables */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Font defaults */
  font-family: var(--font-main);
}

/* Dashboard Dark Mode */
body.dark-mode {
  --bg-primary: #050505;
  --bg-secondary: #101010;
  --bg-tertiary: #171717;
  --text-primary: #f2f2f2;
  --text-secondary: #b8b8b8;
  --text-tertiary: #888888;
  --border-color: #2b2b2b;
  --hover-bg: rgba(255, 255, 255, 0.1);
  --hover-bg-darker: rgba(255, 255, 255, 0.18);
  --accent-primary: #ffffff;
  --accent-strong: #e0e0e0;
  --accent-surface: #1a1a1a;
  --accent-cyan: #00d4ff;
  --accent-red: #ff6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 4px 6px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 8px 24px rgba(0, 212, 255, 0.2);
  --glass-bg: rgba(16, 16, 16, 0.9);
  --glass-border: rgba(255, 255, 255, 0.15);
  --button-bg: #ffffff;
  --button-bg-hover: #e0e0e0;
  --button-text: #000000;
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Global focus-visible styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

html.page-loading body {
  overflow: hidden;
}

html.page-loading body > :not(.page-loader) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(214, 208, 200, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(10, 9, 8, 0.98) 100%);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

html:not(.page-loading) .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-card {
  display: grid;
  place-items: center;
  gap: 0.9rem;
  min-width: 220px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(214, 208, 200, 0.12);
  border-radius: 16px;
  background: rgba(17, 15, 13, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color: #d8d0c6;
  text-align: center;
}

.page-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(214, 208, 200, 0.16);
  border-top-color: #d8d0c6;
  animation: pageLoaderSpin 0.9s linear infinite;
}

.page-loader-text {
  margin: 0;
  font-family: var(--font-futuristic);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d2c9bf;
}

@keyframes pageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Smooth scrolling for main content */
.main-content {
  scroll-behavior: smooth;
}

/* Content section transitions */
.content-section {
  animation: fadeInSection 0.3s ease forwards;
}

.content-section:not(.active) {
  display: none;
}

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

/* Navigation panel animations */
.nav-panel {
  transition: all var(--transition-base);
}

.nav-panel-header {
  transition: all var(--transition-fast);
}

.nav-panel-toggle {
  transition: transform var(--transition-base);
}

.nav-panel.collapsed .nav-panel-toggle {
  transform: rotate(-90deg);
}

.nav-panel-content {
  animation: panelExpand 0.2s ease forwards;
}

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

/* Navigation link animations */
.sidebar .nav-link {
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sidebar .nav-link::before {
  content: '';
  position: absolute;
  left:0;
  top:50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 70%;
  background: var(--accent-cyan);
  border-radius:0 2px 2px 0;
  transition: transform var(--transition-base);
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
  transform: translateY(-50%) scaleY(1);
}

.sidebar .nav-link:active {
  transform: translateX(2px) scale(0.98);
}

/* Button animations */
.btn-primary,
.btn-secondary,
.view-btn,
button[type="submit"],
button[type="button"] {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  transform: translateX(100%);
}

.btn-primary:active,
.btn-secondary:active,
.view-btn:active {
  transform: scale(0.96);
}

/* View button animations */
.view-btn {
  transition: all var(--transition-base);
}

.view-btn.active {
  animation: activeTabPulse 0.3s ease;
}

@keyframes activeTabPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Task card animations */
.task-card,
.team-member-card,
.report-card,
.absences-panel,
.ideas-list-item,
.list-container {
  transition: all var(--transition-base);
  animation: fadeInCard 0.3s ease forwards;
}

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

.task-card:hover,
.team-member-card:hover,
.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

/* Table row animations */
.absences-table tbody tr,
table tbody tr {
  transition: all var(--transition-fast);
}

.absences-table tbody tr:hover,
table tbody tr:hover {
  background: var(--hover-bg);
  transform: scale(1.002);
}

/* Form input focus animations */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea,
select {
  transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

/* Modal animations */
.modal,
[class*="modal"] {
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal.active,
[class*="modal"].active {
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content,
[class*="modal"] > div {
  animation: modalSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Message animations */
.message {
  animation: messageSlideIn 0.3s ease forwards;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding: 0;
    margin: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
}

/* Global search focus animation */
.global-search input:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.12);
}

/* Mobile nav select animation */
.mobile-nav-select {
  transition: all var(--transition-base);
}

.mobile-nav-select:focus {
  transform: translateY(-1px);
}

/* Bulk actions bar animation */
.bulk-actions-bar {
  animation: slideUpFade 0.3s ease forwards;
}

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

/* Resources tab button animations */
.resources-tab-btn {
  transition: all var(--transition-base);
}

.resources-tab-btn:active {
  transform: scale(0.97);
}

.resources-tab-btn.active {
  animation: activeTabGlow 0.4s ease;
}

@keyframes activeTabGlow {
  0% { box-shadow: 0 0 0 rgba(0, 212, 255, 0); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  100% { box-shadow: var(--shadow-glow); }
}

/* Details/summary expand animation */
details > summary {
  transition: all var(--transition-base);
  cursor: pointer;
}

details > summary:hover {
  background: var(--hover-bg);
  padding-left: 0.5rem;
}

details[open] > summary {
  margin-bottom: 0.5rem;
}

details > div,
details > .absences-disclosure-content {
  animation: detailsExpand 0.3s ease forwards;
}

@keyframes detailsExpand {
  from {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  to {
    opacity: 1;
    max-height: 2000px;
    overflow: visible;
  }
}

/* ========================================
   DASHBOARD CORE STYLES - OBSIDIAN/CLAUDEFLARE INSPIRED
   ======================================== */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right:1px solid var(--border-color);
  position: fixed;
  top:0;
  left:0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  transition: transform var(--transition-base);
}

.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

/* Floating toggle button when sidebar is hidden */
.sidebar-toggle-floating {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 20px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  padding: 0;
}

.sidebar-toggle-floating:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  width: 24px;
}

.sidebar-collapsed .sidebar-toggle-floating {
  display: flex;
}

.sidebar-header {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.sidebar-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.sidebar-logo:hover {
  transform: scale(1.05);
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex: 1;
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-collapse-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.sidebar-nav-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
}

.sidebar-nav-wrapper::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.sidebar-nav {
  padding: 0.25rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav-panel {
  margin: 0 0.5rem 0.25rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.nav-panel:hover {
  border-color: var(--border-color);
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  border-radius: 6px;
  margin: 0.125rem;
}

.nav-panel-header:hover {
  background: var(--hover-bg);
}

.nav-panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-panel-toggle {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
  display: inline-flex;
}

.nav-panel.collapsed .nav-panel-toggle {
  transform: rotate(-90deg);
}

.nav-panel.collapsed .nav-panel-content {
  display: none;
}

.nav-panel-content {
  padding: 0.125rem 0 0.25rem;
  animation: panelExpand 0.2s ease forwards;
}

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

.nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 0.35rem 0.75rem;
  opacity: 0.5;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  margin: 0.0625rem 0.25rem;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
  position: relative;
  gap: 0.5rem;
}

.sidebar .nav-link:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  background: var(--accent-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent-cyan);
}

.sidebar .nav-link:active {
  transform: translateX(2px) scale(0.98);
}

.nav-link-icon {
  font-size: 0.875rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

/* Lucide icon styling */
.lucide, [data-lucide] {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 1.5;
  vertical-align: middle;
}

.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* Nav panel icon colors */
.nav-panel[data-panel="main"] .nav-link-icon { color: #00d4ff; }
.nav-panel[data-panel="team"] .nav-link-icon { color: #a78bfa; }
.nav-panel[data-panel="resources"] .nav-link-icon { color: #34d399; }
.nav-panel[data-panel="planning"] .nav-link-icon { color: #fbbf24; }
.nav-panel[data-panel="insights"] .nav-link-icon { color: #fb923c; }
.nav-panel[data-panel="support"] .nav-link-icon { color: #f472b6; }
.nav-panel[data-panel="administration"] .nav-link-icon { color: #f87171; }

/* Priority icon colors */
.g-icon-priority-low { color: #27ae60; }
.g-icon-priority-medium { color: #f2c94c; }
.g-icon-priority-high { color: #eb5757; }
.g-icon-priority-critical { color: #ff6b6b; }

.icon-priority-low { color: #27ae60; }
.icon-priority-medium { color: #f2c94c; }
.icon-priority-high { color: #eb5757; }
.icon-priority-critical { color: #ff6b6b; }

/* Status icon colors */
.g-icon-status-pending { color: #f2c94c; }
.g-icon-status-progress { color: #00d4ff; }
.g-icon-status-completed { color: #27ae60; }
.g-icon-status-canceled { color: #888; }
.g-icon-status-hold { color: #f2994a; }

.g-icon-overdue { color: #eb5757; }
.g-icon-due-today { color: #eb5757; }
.g-icon-due-tomorrow { color: #f2994a; }
.g-icon-due-week { color: #f2c94c; }
.g-icon-due-month { color: #00d4ff; }
.g-icon-future { color: #a78bfa; }
.g-icon-no-deadline { color: #888; }
.g-icon-no-category { color: #888; }
.g-icon-branch { color: #34d399; }
.g-icon-default { color: #888; }
.g-icon-bug { color: #eb5757; }

/* Category icon colors */
.g-icon-cat-game { color: #667eea; }
.g-icon-cat-web { color: #764ba2; }
.g-icon-cat-web { color: #00d4ff; }
.g-icon-cat-other { color: #888; }

/* Assignee icons */
.g-icon-assigned-me { color: #27ae60; }
.g-icon-assigned-not-me { color: #888; }
.g-icon-user { color: #667eea; }
.g-icon-milestone { color: #f2c94c; }

/* Context menu icon sizing */
.context-menu-icon { width: 1em; height: 1em; }
.context-menu [data-lucide] { width: 1em; height: 1em; }

/* Admin widget icon colors */
.admin-icon { color: #00d4ff; }
.admin-stat-icon { color: #a78bfa; }
.admin-btn-icon { color: #fbbf24; }

/* Section header icons */
.section-header-icon { color: #00d4ff; vertical-align: middle; margin-right: 0.35rem; }

/* Tab icons (resources sub-tabs) */
.tab-icon { vertical-align: middle; margin-right: 0.35rem; color: #00d4ff; }

/* Permission icons */
.permission-icon { vertical-align: middle; margin-right: 0.35rem; color: #a78bfa; }

/* Activity log icons */
.activity-icon { vertical-align: middle; margin-right: 0.25rem; }
.activity-icon-wrap [data-lucide] { width: 1.1em; height: 1.1em; vertical-align: middle; }

/* Floating controls */
.admin-toggle-btn [data-lucide] { width: 1.2em; height: 1.2em; }

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-info-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-info-name {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  width: 100%;
  padding: 0.375rem 0.5rem;
  margin-top: 0.25rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  background: var(--hover-bg-darker);
  color: var(--text-primary);
}

.sidebar-collapsed .sidebar {
  width: 48px;
}

.sidebar-collapsed .sidebar-header {
  padding: 0.5rem 0;
  justify-content: center;
}

.sidebar-collapsed .sidebar-title,
.sidebar-collapsed .nav-panel-header span:not(.nav-panel-toggle),
.sidebar-collapsed .nav-link span:not(.nav-link-icon),
.sidebar-collapsed .sidebar-footer {
  display: none;
}

.sidebar-collapsed .sidebar-logo {
  width: 32px;
  height: 32px;
}

.sidebar-collapsed .nav-panel {
  margin: 0 0.25rem;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 0.5rem;
  margin: 0.125rem 0.25rem;
}

.sidebar-collapsed .nav-link-icon {
  width: auto;
  font-size: 1rem;
}

.sidebar-collapsed .nav-panel-header {
  justify-content: center;
  padding: 0.5rem 0.25rem;
}

.sidebar-collapsed .nav-panel-toggle {
  display: none;
}

.sidebar-collapsed .nav-panel-content {
  display: none;
}

.sidebar-collapsed .main-content {
  margin-left: 48px;
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform var(--transition-base);
}

.sidebar-collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}

.sidebar-collapse-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .mobile-nav-select-wrap {
    display: block !important;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-nav-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-nav-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  }

  .mobile-top-actions {
    display: block !important;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-top-actions-toggle {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
  }

  .mobile-top-actions-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--text-tertiary);
  }

  .mobile-top-actions-toggle[aria-expanded="true"] {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  }

  .mobile-quick-actions-menu {
    display: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex-direction: column;
    gap: 0.375rem;
  }

  .mobile-quick-actions-menu.active {
    display: flex;
    animation: slideDown 0.2s ease forwards;
  }

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

  .mobile-quick-actions-menu .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.8125rem;
  }
}

.mobile-nav-select-wrap {
  display: none;
}

.user-info {
  margin-top: auto;
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

#logoutBtn {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

#logoutBtn:hover {
  background: var(--hover-bg);
}

.main-content {
  margin-left: 260px;
  flex:1;
  min-width:0;
  padding: 1.5rem 2rem 2.5rem;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
  position: relative;
  transition: margin-left var(--transition-base);
  background: var(--bg-primary);
}

/* Content section panel styling */
.content-section {
  animation: fadeInSection 0.3s ease forwards;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.content-section:not(.active) {
  display: none;
}

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

/* Section header panel style */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.section-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Global search panel style */
.global-search {
  display: block;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 40;
}

.global-search input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.global-search input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: var(--bg-secondary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.12);
}

.global-search {
  display: block;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 40;
}
.global-search input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.global-search input::placeholder {
  color: var(--text-tertiary);
}
.global-search input:focus {
  border-color: var(--accent-cyan);
}

.content-section {
  display: none;
  opacity: 0;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.content-section.permission-hidden {
  display: none !important;
}

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

.section-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.875rem;
}

.message.success {
  background: #d1f4e0;
  color: #2d6e4e;
  border: 1px solid #a5d6c0;
}

.message.error {
  background: #ffe2dd;
  color: #d44c47;
  border: 1px solid #f5b5af;
}

.message.active {
  display: block;
}

.view-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
  padding: 0.375rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.view-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  border-color: var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: activeTabPulse 0.3s ease;
}

@keyframes activeTabPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.tasks-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.task-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  transition: all var(--transition-base);
  cursor: pointer;
  animation: fadeInCard 0.3s ease forwards;
}

.task-card:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

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

.task-card:last-child {
  border-bottom: 1px solid var(--border-color);
}

.task-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.task-description {
  color: var(--text-secondary);
  margin: 0.45rem 0 0.7rem;
  font-size: 0.88rem;
}

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

.task-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.15s ease;
  font-weight: 500;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--hover-bg-darker);
}

.btn-edit {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

.btn-delete {
  background: rgba(235, 87, 87, 0.15);
  color: var(--accent-red);
  border-color: rgba(235, 87, 87, 0.35);
  transition: all 0.2s ease;
}
.btn-delete:hover {
  background: rgba(235, 87, 87, 0.25);
  border-color: rgba(235, 87, 87, 0.6);
  box-shadow: 0 4px 12px rgba(235, 87, 87, 0.2);
  transform: translateY(-1px);
}

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

.team-card,
.category-item,
.role-item,
.widget-card,
.report-card,
.list-card,
.milestone-item,
.activity-item,
.profile-edit-container {
  background: var(--bg-primary);
  border:1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all var(--transition-base);
}

.team-card:hover,
.report-card:hover,
.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-cyan);
}

.report-card {
  animation: fadeInCard 0.3s ease forwards;
}

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

/* Bulk actions bar */
.bulk-actions-bar {
  position: sticky;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-elevated);
  animation: slideUpFade 0.3s ease forwards;
  z-index: 30;
}

@keyframes slideUpFade {
  from {
    opacity:0;
    transform: translateY(20px);
  }
  to {
    opacity:1;
    transform: translateY(0);
  }
}
  padding: 1rem;
}

.table-view,
.ideas-table,
.absences-table,
.admin-table,
.list-items-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.table-view th,
.table-view td,
.ideas-table th,
.ideas-table td,
.absences-table th,
.absences-table td,
.list-items-table th,
.list-items-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 0.8rem;
  text-align: left;
  color: var(--text-primary);
}

.table-view th,
.ideas-table th,
.absences-table th,
.list-items-table th {
  background: var(--bg-tertiary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* form-group styles are in DASHBOARD EXTENDED STYLES section below */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: min(92vw, 600px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.3s ease-out;
}

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

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

.close-modal {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.35rem;
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow-y: visible;
  }

  .main-content {
    margin-left: 0;
    padding: 1.1rem;
    min-width: 0;
    width: 100%;
  }

  .mobile-nav-select-wrap {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .nav-row {
    display: none;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .section-header h1 {
    font-size: 1.45rem;
  }

  /* View selector - hide buttons, show dropdown */
  .view-selector {
    display: none;
  }

  .mobile-view-select {
    display: block !important;
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
  }

  .mobile-view-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  }

  /* Workload tab - compact on mobile */
  .workload-widgets,
  #workloadChart {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  .workload-member,
  .workload-card {
    padding: 0.75rem;
  }

  /* Lists - scrollable items on mobile */
  .lists-container,
  #listsContainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .list-container,
  .list-card {
    min-width: 300px;
  }

  /* Ensure view selectors stay as buttons on PC */
  .view-selector {
    display: flex;
  }

  .mobile-view-select {
    display: none;
  }
}

  table {
    min-width: 600px;
    width: 100%;
  }

  .mobile-table-message {
    display: none;
  }

  /* Personal Tasks - compact on mobile */
  #personalTasksColumns {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Absence panels - compact on mobile */
  .absences-panel {
    padding: 0.75rem;
    overflow-x: auto;
  }

  .absences-section-block {
    margin-bottom: 1rem;
  }

  .absences-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .absences-panel--glass {
    padding: 0.75rem;
  }

  .absences-table {
    font-size: 0.75rem;
  }

  .absences-table th,
  .absences-table td {
    padding: 0.375rem;
    white-space: nowrap;
  }

  /* Modal compact on mobile */
  .modal-content {
    width: 95vw;
    max-width: none;
    margin: 1rem;
    padding: 1rem;
  }
}

/* ========================================
   DASHBOARD EXTENDED STYLES
   (All component styles for tabs & dynamic content)
   ======================================== */

/* Override the global "color: white" rule that pollutes all dashboard buttons */
.dashboard-container button {
  color: inherit;
  font-family: inherit;
}
.dashboard-container .btn-primary  { color: var(--button-text) !important; }
.dashboard-container .btn-secondary { color: var(--text-primary) !important; }
.dashboard-container .btn-small    { color: var(--text-primary) !important; }
.dashboard-container .btn-edit     { color: var(--button-text) !important; }

/* --- btn-secondary --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--hover-bg-darker);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-claim {
  background: #9ee8f7 !important;
  border-color: #63cada !important;
  color: #000000 !important;
  font-weight: 700;
}
.btn-claim:hover {
  background: #86dceb !important;
  color: #000000 !important;
}

.dashboard-container .btn-small.btn-claim,
.dashboard-container .btn-small.btn-claim:hover,
.dashboard-container .btn-small.btn-claim:focus,
.dashboard-container .btn-small.btn-claim:active,
.dashboard-container .btn-small.btn-claim * {
  color: #000000 !important;
}
body .dashboard-container .btn-small.btn-claim {
  color: #000000 !important;
}

body:has(.dashboard-container) {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #d6d0c8 0%, #cfc7be 100%);
  color: var(--text-primary);
}
body.dark-mode:has(.dashboard-container) {
  background: var(--bg-primary);
}

body:not(.dark-mode) .dashboard-container {
  background: transparent;
}

body:not(.dark-mode) .sidebar,
body:not(.dark-mode) .user-info,
body:not(.dark-mode) .modal-content,
body:not(.dark-mode) .widget-card,
body:not(.dark-mode) .report-card,
body:not(.dark-mode) .team-card,
body:not(.dark-mode) .list-card,
body:not(.dark-mode) .milestone-item,
body:not(.dark-mode) .activity-item,
body:not(.dark-mode) .release-note-card,
body:not(.dark-mode) .workload-member,
body:not(.dark-mode) .resources-tab-btn,
body:not(.dark-mode) .group-card,
body:not(.dark-mode) .role-item,
body:not(.dark-mode) .category-item,
body:not(.dark-mode) .absences-panel,
body:not(.dark-mode) .absences-guide,
body:not(.dark-mode) .task-card,
body:not(.dark-mode) .idea-card,
body:not(.dark-mode) .idea-probability-column,
body:not(.dark-mode) .admin-personal-task-widget,
body:not(.dark-mode) .profile-edit-container,
body:not(.dark-mode) .table-view,
body:not(.dark-mode) .ideas-table,
body:not(.dark-mode) .absences-table,
body:not(.dark-mode) .admin-table,
body:not(.dark-mode) .list-items-table,
body:not(.dark-mode) .calendar-controls,
body:not(.dark-mode) .calendar-view,
body:not(.dark-mode) .search-results-dropdown,
body:not(.dark-mode) .context-menu,
body:not(.dark-mode) #personalTaskEditModal,
body:not(.dark-mode) #adminWidget.admin-widget {
  background: linear-gradient(180deg, rgba(240, 234, 226, 0.98), rgba(229, 221, 212, 0.98));
  border-color: rgba(23, 20, 17, 0.12);
  box-shadow: var(--shadow);
}

body:not(.dark-mode) .main-content {
  color: var(--text-primary);
}

body:not(.dark-mode) .section-header h1,
body:not(.dark-mode) .milestone-title,
body:not(.dark-mode) .report-title,
body:not(.dark-mode) .widget-title,
body:not(.dark-mode) .handbook-title,
body:not(.dark-mode) .game-feature-title {
  color: var(--text-primary);
}

body:not(.dark-mode) .view-btn,
body:not(.dark-mode) .resources-tab-btn,
body:not(.dark-mode) .btn-small,
body:not(.dark-mode) .btn-secondary,
body:not(.dark-mode) #logoutBtn,
body:not(.dark-mode) .calendar-nav button,
body:not(.dark-mode) .handbook-toolbar button,
body:not(.dark-mode) .admin-btn,
body:not(.dark-mode) .admin-toggle-btn,
body:not(.dark-mode) .dark-mode-toggle,
body:not(.dark-mode) .hint-fab {
  background: var(--bg-tertiary);
  border-color: rgba(23, 20, 17, 0.12);
  color: var(--text-primary);
}

body:not(.dark-mode) .view-btn.active,
body:not(.dark-mode) .resources-tab-btn.active,
body:not(.dark-mode) .admin-toggle-btn.active {
  background: #1b1815;
  color: #f7f2ec;
  border-color: #1b1815;
  box-shadow: 0 10px 20px rgba(23, 20, 17, 0.16);
}

body:not(.dark-mode) .global-search input,
body:not(.dark-mode) .form-group input,
body:not(.dark-mode) .form-group textarea,
body:not(.dark-mode) .form-group select,
body:not(.dark-mode) .personal-task-edit-form input,
body:not(.dark-mode) .personal-task-edit-form textarea,
body:not(.dark-mode) .personal-task-edit-form select,
body:not(.dark-mode) .list-item-title,
body:not(.dark-mode) .list-item-description,
body:not(.dark-mode) .list-item-assignee,
body:not(.dark-mode) .list-item-status,
body:not(.dark-mode) .list-item-due-date,
body:not(.dark-mode) .admin-select,
body:not(.dark-mode) .mobile-nav-select,
body:not(.dark-mode) .handbook-editor {
  background: rgba(248, 244, 239, 0.96);
  border-color: rgba(23, 20, 17, 0.14);
  color: var(--text-primary);
}

body:not(.dark-mode) .calendar-header,
body:not(.dark-mode) .list-items-table th,
body:not(.dark-mode) .table-view th,
body:not(.dark-mode) .ideas-table th,
body:not(.dark-mode) .absences-table th,
body:not(.dark-mode) #bugsTableContainer th,
body:not(.dark-mode) .group-header,
body:not(.dark-mode) .task-group h3,
body:not(.dark-mode) .admin-widget-header {
  background: rgba(216, 207, 197, 0.78);
}

body:not(.dark-mode) .message.success {
  background: #d7eadc;
  color: #284f37;
  border-color: #a8c7b2;
}

body:not(.dark-mode) .message.error {
  background: #f3d9d5;
  color: #7e302a;
  border-color: #dbaca7;
}

/* --- btn-save (modal save action) --- */
.btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  background: var(--button-bg);
  color: var(--button-text) !important;
  border: 1px solid var(--button-bg);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn-save:hover { opacity: 0.85; }

/* --- btn-approve / btn-deny --- */
.btn-approve {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(39,174,96,0.5);
  background: rgba(39,174,96,0.1);
  color: #27ae60;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-approve:hover { background: rgba(39,174,96,0.22); }
.btn-deny {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(235,87,87,0.4);
  background: rgba(235,87,87,0.1);
  color: #eb5757;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-deny:hover { background: rgba(235,87,87,0.22); }

/* --- Form fields — improved look --- */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: auto;
  appearance: auto;
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(0, 212, 255, 0.3);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.02);
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Priority badges --- */
.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.priority-badge-low {
  background: rgba(39,174,96,0.12);
  color: #27ae60;
  border-color: rgba(39,174,96,0.3);
}
.priority-badge-low:hover {
  background: rgba(39,174,96,0.22);
  border-color: rgba(39,174,96,0.6);
}
.priority-badge-medium {
  background: rgba(242,153,74,0.12);
  color: #c97910;
  border-color: rgba(242,153,74,0.3);
}
.priority-badge-medium:hover {
  background: rgba(242,153,74,0.22);
  border-color: rgba(242,153,74,0.6);
}
body.dark-mode .priority-badge-medium { color: #f2994e; }
.priority-badge-high {
  background: rgba(235,87,87,0.12);
  color: #c0392b;
  border-color: rgba(235,87,87,0.3);
}
.priority-badge-high:hover {
  background: rgba(235,87,87,0.22);
  border-color: rgba(235,87,87,0.6);
}
body.dark-mode .priority-badge-high { color: #eb5757; }
.priority-badge-critical {
  background: #c0392b;
  color: #fff;
  border-color: #9b2318;
}
.priority-badge-critical:hover {
  background: #a03220;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* --- Role / miscellaneous badges --- */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.role-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Team cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 1.5rem 1rem 1rem;
  gap: 0.25rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
}
.team-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}
.team-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.6rem;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.team-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.1rem;
}
.team-card .email {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  word-break: break-all;
  margin-bottom: 0.2rem;
}
.team-card p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}
.team-card-badges {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
}
.team-card-role-row,
.team-card-group-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}
.team-card-absence-badge {
  background: rgba(235,87,87,0.15) !important;
  color: #eb5757 !important;
  border-color: rgba(235,87,87,0.35) !important;
}
.team-group-badge { font-size: 0.68rem; }

/* --- Task inner components --- */
.task-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.task-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.task-assignee,
.task-branch,
.task-category {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* --- Section widget stats row --- */
.section-widgets,
.widget-grid,
.reports-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.widget-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.widget-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

/* --- Reports --- */
.reports-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.reports-section-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}
.reports-section-header { margin-bottom: 1rem; }
.reports-section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.section-subtitle,
.reports-section-header p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 0;
}
.reports-header { flex-wrap: wrap; }
.reports-grid { display: grid; gap: 0.9rem; margin-bottom: 0.9rem; }
.reports-grid--standard { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.reports-grid--wide { grid-template-columns: 1fr; }
.report-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.1rem;
}
.report-card--accent { border-left: 3px solid var(--accent-primary); }
.report-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.report-body { font-size: 0.87rem; color: var(--text-primary); }
.report-body-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* --- Ideas --- */
.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.idea-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.2s ease;
}
.idea-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.12);
  transform: translateX(2px);
}
.idea-card h3 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.idea-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
#quick-dev-notes-section .idea-card {
  padding-left: 0.65rem;
}

#quick-dev-notes-section .idea-card p {
  margin-left: 0;
}
.idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.idea-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}
.idea-actions,
.idea-admin-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.idea-sort-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.idea-sort-control select {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 0.82rem;
}
.idea-probability-column {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}
.idea-probability-column h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ideas-probability {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}
.ideas-table-container { overflow-x: auto; }
.idea-table-row {
  cursor: pointer;
  transition: all 0.2s ease;
}
.idea-table-row:hover {
  background: var(--hover-bg);
  border-left: 3px solid var(--accent-cyan);
}

/* --- Lists --- */
.lists-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.list-card:hover { box-shadow: var(--shadow); }
.list-header {
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.list-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.list-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.list-sort {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 0.8rem;
}
.list-toggle { font-size: 0.8rem; }
.list-body {
  border-top: 1px solid var(--border-color);
  padding: 1rem;
}
.list-card.collapsed .list-body { display: none; }
.list-item-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}
.list-item-title,
.list-item-description,
.list-item-assignee,
.list-item-status,
.list-item-due-date {
  flex: 1;
  min-width: 110px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
}
.list-item-title { min-width: 160px; flex: 2; }
.list-item-title:focus,
.list-item-description:focus,
.list-item-assignee:focus,
.list-item-status:focus,
.list-item-due-date:focus { outline: none; border-color: var(--accent-primary); }
.list-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.list-items-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
.list-items-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}
.list-items-table tr:last-child td { border-bottom: none; }
.list-items-table tr:hover td { background: var(--hover-bg); }

/* --- Milestones --- */
#milestonesContainer { display: flex; flex-direction: column; gap: 0.75rem; }
.milestone-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
}
.milestone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.milestone-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.milestone-toggle {
  transition: transform 0.2s ease;
  display: inline-block;
}
.milestone-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}
.milestone-progress { margin-top: 0.75rem; }
/* CSS-named variant */
.milestone-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  overflow: hidden;
  margin-top: 0.4rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.milestone-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}
/* JS-named variant: .progress-bar / .progress-fill inside .milestone-progress */
.milestone-progress .progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  overflow: hidden;
  margin: 0.4rem 0 0.25rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.milestone-progress .progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}
.milestone-progress .progress-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: right;
}
.milestone-progress-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}
.milestone-tasks {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.milestone-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* --- Activity log --- */
#activityContainer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.activity-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.activity-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.activity-content { flex: 1; min-width: 0; }
.activity-title {
  font-size: 0.87rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}
.activity-description {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.18rem;
}
.activity-timestamp {
  font-size: 0.73rem;
  color: var(--text-tertiary);
  margin-top: 0.22rem;
}

/* --- Bulk actions bar --- */
.bulk-actions-bar {
  display: none;
  position: sticky;
  bottom: 1.5rem;
  margin-top: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-elevated);
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bulk-actions-bar.visible { display: flex; }
.bulk-count { font-size: 0.87rem; font-weight: 600; color: var(--text-primary); }
.bulk-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

#bugsTableContainer td:last-child .btn-small {
  margin-right: 0.6rem;
}
#bugsTableContainer td:last-child .btn-small:last-child {
  margin-right: 0;
}

/* --- Search results dropdown --- */
.search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 90;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-top: 0;
  max-height: 350px;
  overflow-y: auto;
}
.search-results.active { display: block; }
.search-results-dropdown {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-top: 0.5rem;
  max-height: 350px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--text-primary);
  transition: background 0.1s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover { 
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
}
.search-result-item-category {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.4rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  flex-shrink: 0;
}

/* --- Resources section --- */
.resources-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.resources-tab-btn {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-width: 130px;
}
.resources-tab-btn:hover {
  background: var(--hover-bg);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}
.resources-tab-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
.resources-tab-btn.active .resources-tab-title,
.resources-tab-btn.active .resources-tab-subtitle,
.resources-tab-btn.active .resources-tab-icon {
  color: #000;
}
.resources-tab-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.87rem;
  font-weight: 600;
}
.resources-tab-icon { font-size: 0.95rem; }
.resources-tab-subtitle {
  font-size: 0.73rem;
  color: var(--text-tertiary);
  margin-top: 0.12rem;
}
.resources-panel { display: none; }
.resources-panel.active { display: block; }
.resources-panel-header { margin-bottom: 1rem; }
.resources-panel-actions { display: flex; gap: 0.5rem; align-items: center; }

/* --- Absences section --- */
.absences-header { flex-wrap: wrap; }
.absences-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}
.absences-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0;
  line-height: 1.5;
}
.absences-guide {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.absences-guide-header { margin-bottom: 0.9rem; }
.absences-guide-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.absences-disclosures {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.absences-disclosure {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.absences-disclosure > summary {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.absences-disclosure > summary::-webkit-details-marker { display: none; }
.absences-disclosure > summary::before {
  content: "▶";
  font-size: 0.6rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.absences-disclosure[open] > summary::before { transform: rotate(90deg); }
.absences-disclosure-content {
  padding: 0.9rem 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.absences-callout {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(235,87,87,0.07);
  border-left: 3px solid #eb5757;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--text-primary);
}
.absences-list {
  margin: 0.5rem 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.absences-list li {
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.absences-section-block { margin-bottom: 1.75rem; }
.absences-block-header { margin-bottom: 1rem; }
.absences-block-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.absences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}
.absences-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}
.absences-panel h2 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.absences-panel--glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}
.absences-panel--manage {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.absences-form { display: flex; flex-direction: column; gap: 0.65rem; }
.absences-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}
.absences-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.absences-form .form-group { margin-bottom: 0; }
.absences-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.absences-table-wrapper .absences-table {
  border: none;
  border-radius: 0;
}
.absences-manager-grid,
.absences-extension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.absences-manage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.absences-manage-header h2 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}
.absences-manage-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.absences-manage-controls label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.absences-manage-controls select {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 0.8rem;
}
.absences-expired-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.absences-expired-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  font-size: 0.62rem;
  color: var(--text-tertiary);
  cursor: help;
}

/* --- Groups / Roles / Categories item cards --- */
.group-card,
.role-item,
.category-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
#groupsContainer,
.roles-grid,
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* --- Workload view --- */
.workload-member {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.workload-member h3 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* --- Release notes --- */
.release-note-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}
.release-note-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.release-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.release-body {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* --- Avatar color picker --- */
.color-option {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease, border-color 0.1s ease;
}
.color-option:hover { transform: scale(1.12); }
.color-option.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--accent-primary);
  transform: scale(1.06);
}
body.dark-mode .color-option.selected {
  border-color: #00d4ff;
  box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px #00d4ff;
}

/* --- Calendar / Timeline --- */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.calendar-nav { display: flex; gap: 0.4rem; }
.calendar-nav button {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.calendar-nav button:hover { background: var(--hover-bg); }
.calendar-month-year { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.calendar-view {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}
#timelineContainer {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#calendarContainer {
  overflow-x: auto;
}

.gantt-container {
  min-width: 0;
  overflow-x: hidden;
}

.gantt-shell {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  max-width: 100%;
  overflow: hidden;
}

.gantt-scroll-area {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.gantt-canvas {
  max-width: none;
}

body.timeline-window-scrollbars-hidden {
  overflow-x: hidden;
}

/* --- Bugs table --- */
#bugsTableContainer table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
#bugsTableContainer th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}
#bugsTableContainer td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}
#bugsTableContainer tr:last-child td { border-bottom: none; }
#bugsTableContainer tr:hover td { background: var(--hover-bg); }

/* --- Context menu --- */
.context-menu {
  position: fixed;
  z-index: 9999;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-elevated);
  padding: 0.4rem 0;
  min-width: 155px;
}
.context-menu-item {
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.1s;
}
.context-menu-item:hover { background: var(--hover-bg); }
.context-menu-item.danger { color: var(--accent-red); }
.context-menu-divider { height: 1px; background: var(--border-color); margin: 0.25rem 0; }

/* --- Admin personal task widget --- */
.admin-personal-task-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

/* --- Profile edit (Staff Card tab) --- */
.profile-edit-container { max-width: 600px; }
.profile-edit-container h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ===========================
   HIDE SCROLLBARS GLOBALLY
   =========================== */
/* Thin scrollbar style everywhere in dashboard */
.dashboard-container ::-webkit-scrollbar { width: 4px; height: 4px; }
.dashboard-container ::-webkit-scrollbar-track { background: transparent; }
.dashboard-container ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.dashboard-container { scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }

/* Hidden scrollbars for specific panels */
.sidebar,
.modal-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar,
.modal-content::-webkit-scrollbar { display: none; }

/* ===========================
   CALENDAR INNER CELLS
   =========================== */
.calendar-view .calendar-header {
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}
.calendar-day {
  min-height: 90px;
  padding: 0.4rem 0.45rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  vertical-align: top;
  background: var(--bg-secondary);
  transition: background 0.1s ease;
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day:hover { background: var(--hover-bg); }
.calendar-day.today {
  background: var(--accent-surface);
}
.calendar-day.today .calendar-day-number {
  color: var(--accent-strong);
  font-weight: 700;
}
.calendar-day.other-month {
  opacity: 0.38;
}
.calendar-day-number {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.calendar-event {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 500;
}
.calendar-event.task {
  background: rgba(102, 126, 234, 0.18);
  color: #667eea;
  border-left: 2px solid #667eea;
}
body.dark-mode .calendar-event.task { color: #a5b4fc; }
.calendar-event.milestone {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
  border-left: 2px solid #27ae60;
}
body.dark-mode .calendar-event.milestone { color: #6ee7b7; }
.calendar-event.release {
  background: rgba(242, 153, 74, 0.15);
  color: #c97910;
  border-left: 2px solid #f2994e;
}
body.dark-mode .calendar-event.release { color: #fbbf24; }

/* ===========================
   AVATAR COLOR PICKER (modal)
   =========================== */
.avatar-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* ===========================
   ROLE TAGS (member modal)
   =========================== */
.roles-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}
.roles-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.roles-section .roles-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.role-tag:hover {
  background: var(--hover-bg);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.role-tag.selected {
  background: var(--button-bg);
  color: var(--button-text) !important;
  border-color: var(--button-bg);
}

/* ===========================
   HANDBOOK + GAME FEATURES
   =========================== */
.handbook-list,
.game-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.handbook-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.handbook-card,
.game-feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.15s ease;
}
.handbook-card:hover,
.game-feature-card:hover { box-shadow: var(--shadow); }
.handbook-card-header,
.game-feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.handbook-tag,
.game-feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
/* Tag group — ops (teal) */
.handbook-tag--ops,
.handbook-tag--default {
  background: rgba(0, 180, 216, 0.1);
  color: #0094a8;
  border-color: rgba(0, 180, 216, 0.3);
}
body.dark-mode .handbook-tag--ops,
body.dark-mode .handbook-tag--default { color: #67e8f9; }
.game-feature-tag--ops,
.game-feature-tag--default {
  background: rgba(0, 180, 216, 0.1);
  color: #0094a8;
  border-color: rgba(0, 180, 216, 0.3);
}
body.dark-mode .game-feature-tag--ops,
body.dark-mode .game-feature-tag--default { color: #67e8f9; }
/* Tag group — people (violet) */
.handbook-tag--people {
  background: rgba(118, 75, 162, 0.1);
  color: #764ba2;
  border-color: rgba(118, 75, 162, 0.3);
}
body.dark-mode .handbook-tag--people { color: #c4b5fd; }
/* Tag group — pipeline (amber) */
.handbook-tag--pipeline {
  background: rgba(242, 153, 74, 0.12);
  color: #c97910;
  border-color: rgba(242, 153, 74, 0.3);
}
body.dark-mode .handbook-tag--pipeline { color: #fbbf24; }
/* Tag group — external (rose) */
.handbook-tag--external {
  background: rgba(235, 87, 87, 0.1);
  color: #c0392b;
  border-color: rgba(235, 87, 87, 0.28);
}
body.dark-mode .handbook-tag--external { color: #fca5a5; }
/* Tag group — core (green) */
.handbook-tag--core {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border-color: rgba(39, 174, 96, 0.28);
}
body.dark-mode .handbook-tag--core { color: #6ee7b7; }
/* Game mechanics category groups */
.handbook-tag--systems {
  background: rgba(52, 152, 219, 0.12);
  color: #1f78b4;
  border-color: rgba(52, 152, 219, 0.32);
}
body.dark-mode .handbook-tag--systems { color: #93c5fd; }
.game-feature-tag--systems {
  background: rgba(52, 152, 219, 0.12);
  color: #1f78b4;
  border-color: rgba(52, 152, 219, 0.32);
}
body.dark-mode .game-feature-tag--systems { color: #93c5fd; }

.handbook-tag--content {
  background: rgba(46, 204, 113, 0.12);
  color: #1f9d5a;
  border-color: rgba(46, 204, 113, 0.3);
}
body.dark-mode .handbook-tag--content { color: #86efac; }
.game-feature-tag--content {
  background: rgba(46, 204, 113, 0.12);
  color: #1f9d5a;
  border-color: rgba(46, 204, 113, 0.3);
}
body.dark-mode .game-feature-tag--content { color: #86efac; }

.handbook-tag--experience {
  background: rgba(155, 89, 182, 0.12);
  color: #8e44ad;
  border-color: rgba(155, 89, 182, 0.3);
}
body.dark-mode .handbook-tag--experience { color: #d8b4fe; }
.game-feature-tag--experience {
  background: rgba(155, 89, 182, 0.12);
  color: #8e44ad;
  border-color: rgba(155, 89, 182, 0.3);
}
body.dark-mode .game-feature-tag--experience { color: #d8b4fe; }

.handbook-tag--operations {
  background: rgba(230, 126, 34, 0.14);
  color: #c56a12;
  border-color: rgba(230, 126, 34, 0.34);
}
body.dark-mode .handbook-tag--operations { color: #fdba74; }
.game-feature-tag--operations {
  background: rgba(230, 126, 34, 0.14);
  color: #c56a12;
  border-color: rgba(230, 126, 34, 0.34);
}
body.dark-mode .game-feature-tag--operations { color: #fdba74; }
.handbook-title,
.game-feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.2rem 0;
}
.handbook-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.game-feature-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.handbook-excerpt,
.game-feature-excerpt {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.4rem;
}
.handbook-content,
.game-feature-content {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.75;
}
.handbook-content.expanded,
.game-feature-content.expanded { display: block; }
.handbook-content h2,
.game-feature-content h2 { font-size: 1rem; font-weight: 700; margin: 1rem 0 0.4rem; color: var(--text-primary); }
.handbook-content h3,
.game-feature-content h3 { font-size: 0.9rem; font-weight: 600; margin: 0.8rem 0 0.3rem; color: var(--text-primary); }
.handbook-content ul,
.handbook-content ol,
.game-feature-content ul,
.game-feature-content ol { padding-left: 1.4rem; margin: 0.35rem 0; }
.handbook-content li,
.game-feature-content li { margin-bottom: 0.3rem; }
.handbook-content code,
.game-feature-content code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  transition: all 0.2s ease;
}
.handbook-content code:hover,
.game-feature-content code:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}
.handbook-content pre,
.game-feature-content pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}
.handbook-content pre:hover,
.game-feature-content pre:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}
/* Handbook / Game-mechanic editor toolbar */
.handbook-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.handbook-toolbar button {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 5px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s;
}
.handbook-toolbar button:hover { background: var(--hover-bg); }
.handbook-editor {
  min-height: 200px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.7;
  outline: none;
}
.handbook-editor:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.handbook-editor[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--text-tertiary);
  pointer-events: none;
}
.handbook-modal .modal-content { max-width: 720px; width: 90vw; }
.form-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.3rem;
}

/* ===========================
   GROUPED TASKS VIEW
   =========================== */
.grouped-tasks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0;
}
.task-group {
  margin-top: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.task-group h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  margin: 0;
  padding: 0.65rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
}
.group-tasks {
  display: flex;
  flex-direction: column;
}
.group-task-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.12s ease;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.group-task-item:last-child { border-bottom: none; }
.group-task-item:hover { background: var(--hover-bg); }
.group-task-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===========================
   PERSONAL TASK EDIT MODAL
   =========================== */
#personalTaskEditBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 599;
  backdrop-filter: blur(2px);
}
#personalTaskEditBackdrop.active { display: block; }

#personalTaskEditModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  width: min(480px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}
#personalTaskEditModal.active { display: block; }
#personalTaskEditModal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.personal-task-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.personal-task-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.personal-task-edit-form input,
.personal-task-edit-form textarea,
.personal-task-edit-form select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.personal-task-edit-form input:focus,
.personal-task-edit-form textarea:focus,
.personal-task-edit-form select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.personal-task-edit-form textarea { min-height: 80px; resize: vertical; }
.personal-task-edit-buttons {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-cancel:hover { background: var(--hover-bg-darker); }

/* ===========================
   ADMIN WIDGET
   =========================== */
#adminWidget.admin-widget {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-elevated);
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
}
#adminWidget.admin-widget.u-224b51a7b4 {
  display: none;
}
#adminWidget.admin-widget.visible { display: flex; flex-direction: column; }
.admin-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  border-radius: 14px 14px 0 0;
  cursor: grab;
}
.admin-widget-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.admin-widget-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-secondary);
  padding: 0;
  line-height: 1;
}
.admin-widget-content { padding: 1rem; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.stat-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
}
.stat-label { font-size: 0.68rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.admin-section { margin-bottom: 1rem; }
.admin-section h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 0.5rem; }
.admin-btn {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.admin-btn:hover { background: var(--hover-bg); }
.admin-btn.admin-btn--danger { color: var(--accent-red); border-color: rgba(235,87,87,0.3); }
.admin-btn.admin-btn--danger:hover { background: rgba(235,87,87,0.08); }
.admin-select-label { font-size: 0.78rem; color: var(--text-secondary); display: block; margin-bottom: 0.3rem; }
.admin-select {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

/* ===========================
   FLOATING CONTROLS
   =========================== */
.floating-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.dark-mode-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.15s, box-shadow 0.15s;
}
.dark-mode-toggle:hover { background: var(--hover-bg); box-shadow: var(--shadow-elevated); }
.hint-fab {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.hint-fab:hover {
  background: var(--hover-bg);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hint-icon { font-weight: 700; }
.hint-tooltip {
  display: none;
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.hint-fab:hover .hint-tooltip {
  display: block;
  transform: translateY(-50%) scaleX(1);
}
.admin-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.15s;
}
.admin-toggle-btn#adminWidgetToggle.u-224b51a7b4 {
  display: flex;
}
.admin-toggle-btn:hover { background: var(--hover-bg); }
.admin-toggle-btn.active {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

/* ===========================
   PERMISSION SECTIONS (Role modal)
   =========================== */
.permission-section { margin-bottom: 1.25rem; }
.permission-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.permission-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.86rem;
  color: var(--text-primary);
  cursor: pointer;
}
.permission-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

/* ===========================
   MOBILE NAV SELECT
   =========================== */
.mobile-nav-select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}
.mobile-nav-select-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}

.mobile-top-actions {
  display: none;
  margin: 0 0.75rem 0.75rem;
  position: relative;
}

.mobile-top-actions-toggle {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mobile-top-actions-toggle::after {
  content: "▾";
  float: right;
  color: var(--text-secondary);
}

.mobile-quick-actions-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 35;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.45rem;
  box-shadow: var(--shadow-elevated);
  gap: 0.4rem;
}

.mobile-quick-actions-menu.active {
  display: grid;
}

.mobile-quick-actions-menu .btn-secondary {
  width: 100%;
  justify-content: flex-start;
}

/* Responsive additions */
@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .absences-grid,
  .absences-manager-grid,
  .absences-extension-grid { grid-template-columns: 1fr; }
  .reports-grid--standard { grid-template-columns: 1fr; }
  .section-widgets,
  .widget-grid,
  .reports-widgets { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

@media (max-width: 900px) {
  .floating-controls {
    display: none;
  }

  .mobile-top-actions {
    display: block;
  }
}

/* ========================================
   BASE STYLES & RESETS
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--bp-bg);
  color: var(--bp-text);
  font-family: var(--font-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-futuristic);
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

button,
input[type="submit"],
input[type="button"] {
  color: var(--bp-white);
}

/* ========================================
   LAYOUT & CONTAINER UTILITIES
   ======================================== */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.shell {
  width: min(1000px, calc(100% - 2rem));
  margin: 1.5rem auto;
}

.panel {
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ========================================
   COMPONENT STYLES
   ======================================== */
.bp-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 10px;
}

.bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: var(--bp-surface-soft);
  color: var(--bp-white);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bp-button:hover {
  background: var(--bp-white);
  color: var(--bp-black);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  background: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--button-bg);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.word-with-tiny {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 1rem;
}

.bp-heading {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-muted {
  color: var(--bp-text-muted);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #050505;
  border-bottom: 1px solid #2b2b2b;
}

.nav-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 1.2rem;
}

.logo span {
  font-family: var(--font-futuristic);
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #0f0f0f;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  padding: 2px;
}

.mobile-toggle {
  display: none;
  border: 1px solid #2b2b2b;
  color: #fff;
  background: #101010;
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 0.45rem 0.65rem;
}

.nav-links {
  display: flex;
  gap: 0.55rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #2b2b2b;
  background: #101010;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: #fff;
  color: #000;
}

.nav a:active,
.nav a:focus-visible,
.nav-links a:active,
.nav-links a:focus-visible {
  background: var(--bp-white);
  color: var(--bp-black);
  outline: none;
}

.nav {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: #171717;
  padding: 0.48rem 0.75rem;
}

.nav a:hover,
.nav a.active {
  background: #fff;
  color: #000;
}

/* ========================================
   PRESENTATION MAKER PAGE
   ======================================== */

.presentation-maker-page {
  background: var(--bg-primary);
  color: var(--text-primary);
}

#makerRoot {
  display: none;
}

.maker-unlock-panel {
  max-width: 560px;
  padding-top: 5rem;
}

.presentation-maker {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  align-items: stretch;
}

.presentation-maker.settings-hidden {
  grid-template-columns: 280px 1fr;
}

.presentation-maker.settings-hidden #settingsPanel {
  display: none;
}

.maker-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  min-height: 0;
}

.presentation-maker > .maker-panel:first-child {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#presentationList {
  max-height: 26vh;
  overflow: auto;
  padding-right: 0.2rem;
}

#pageList {
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

#presentationList,
#pageList,
.maker-panel,
.page-canvas {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#presentationList::-webkit-scrollbar,
#pageList::-webkit-scrollbar,
.maker-panel::-webkit-scrollbar,
.page-canvas::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.maker-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

#toggleSettingsPanelButtonSecondary {
  padding: 0.3rem 0.55rem;
  font-size: 0.76rem;
}

.maker-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.maker-intro-text {
  margin-bottom: 1.15rem;
}

.maker-scale-value {
  color: var(--accent-primary);
  font-weight: 600;
}

.maker-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.maker-select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.36rem 0.5rem;
  min-width: 140px;
}

.text-format-toolbar {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.55rem;
  background: var(--bg-tertiary);
  margin-bottom: 0.8rem;
}

.text-format-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.text-format-row:last-child {
  margin-bottom: 0;
}

.text-format-row .btn-secondary {
  padding: 0.28rem 0.44rem;
  font-size: 0.74rem;
}

#textColorInput {
  width: 34px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  padding: 0;
}

#textBuildInput {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.7rem;
  line-height: 1.35;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.text-build-legend {
  margin: 0 0 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: pre-wrap;
}

#shareLinkText {
  margin: 0.55rem 0 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-tertiary);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: copy;
}

#shareLinkText:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.share-link-label {
  font-weight: 700;
  text-decoration: underline;
}

.page-canvas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 2rem);
  padding-right: 0.25rem;
  min-height: 0;
}

.page-item {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 12px;
  min-height: 170px;
  padding: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  overflow: visible;
  opacity: 0.62;
}

.page-item .block-inline-text,
.page-item .page-notes-input,
.page-item figcaption {
  font-size: calc(1rem * var(--presentation-text-scale, 1));
}

.page-item .page-header h2 {
  font-size: calc(1.35rem * var(--presentation-text-scale, 1));
}

.page-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
  min-height: 420px;
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  opacity: 1;
}

.page-item.active .page-blocks {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  padding-right: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-item.active .page-blocks::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-item.active .page-notes-section {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.page-item.active .page-notes-input {
  min-height: 110px;
  max-height: 30vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.page-nav-item,
.block-list-item {
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  user-select: none;
}

.page-nav-item {
  background: var(--bg-tertiary);
}

.page-nav-item:hover,
.block-list-item:hover {
  background: var(--hover-bg);
}

.page-nav-item.active,
.block-list-item.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.12);
}

.dragging {
  opacity: 0.45;
}

.drag-over {
  border-color: var(--accent-cyan) !important;
  box-shadow: inset 0 0 0 2px rgba(0, 212, 255, 0.28);
}

.block {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-tertiary);
}

.page-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.block.block--full {
  grid-column: 1 / -1;
}

.block.block--half {
  grid-column: span 1;
}

.block.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18);
}

.block img,
.block iframe {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.inline-editable {
  outline: none;
  border: 1px dashed transparent;
  border-radius: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.inline-editable:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.05);
}

.inline-editable:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.09);
}

.block-inline-text {
  min-height: 2.5rem;
  padding: 0.4rem;
  line-height: 1.45;
}

.block-inline-text h1,
.block-inline-text h2,
.block-inline-text h3,
.viewer-page .block h1,
.viewer-page .block h2,
.viewer-page .block h3 {
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.block-inline-text p,
.viewer-page .block p {
  margin: 0 0 0.55rem;
}

.block-inline-text ul,
.block-inline-text ol,
.viewer-page .block ul,
.viewer-page .block ol {
  margin: 0.25rem 0 0.6rem;
  padding-left: 1.2rem;
}

.block-inline-text blockquote,
.viewer-page .block blockquote {
  margin: 0.35rem 0 0.65rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  border-radius: 8px;
}

.block-inline-text a,
.viewer-page .block a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.block-inline-input {
  width: 100%;
  margin-bottom: 0.45rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
}

.block iframe {
  min-height: 260px;
}

.block-list {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.4rem;
  background: var(--bg-tertiary);
  margin-bottom: 1rem;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.palette-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.86rem;
  user-select: none;
}

.palette-item:active {
  cursor: grabbing;
}

.drop-slot {
  border: 1px dashed transparent;
  border-radius: 8px;
  min-height: 22px;
  grid-column: 1 / -1;
  position: relative;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.drop-slot.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.12);
}

.drop-slot.active::after {
  content: "Drop block here";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

.selected-block-tools {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.block-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.block-action-button {
  font-size: 0.74rem;
  padding: 0.25rem 0.45rem;
}

.block-drag-handle {
  cursor: grab;
  user-select: none;
}

.block-drag-handle:active {
  cursor: grabbing;
}

.kbd {
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  font-size: 0.74rem;
  background: var(--bg-tertiary);
}

.presentation-style {
  border-radius: 12px;
  padding: 1rem;
}

.presentation-style h1,
.presentation-style h2,
.presentation-style h3 {
  margin-top: 0;
}

.presentation-style p:last-child,
.presentation-style ul:last-child,
.presentation-style blockquote:last-child {
  margin-bottom: 0;
}

.presentation-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

.presentation-note {
  font-size: 0.84rem;
  opacity: 0.82;
}

.presentation-style--hero {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.32);
}

.presentation-style--hero h1 {
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1.06;
  margin-bottom: 0.45rem;
}

.presentation-style--card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.presentation-style--card ul {
  margin-top: 0.45rem;
  padding-left: 1.1rem;
}

.presentation-style--quote {
  background: rgba(0, 212, 255, 0.08);
  border-left: 3px solid var(--accent-primary);
}

.presentation-style--quote blockquote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.presentation-style--checklist {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.presentation-style--checklist ul {
  list-style: none;
  padding-left: 0;
}

.presentation-style--checklist li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.28rem;
}

.presentation-style--checklist li::before {
  content: "\2713";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  top: 0;
}

.presentation-style--spotlight {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(255, 145, 0, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ========================================
   PRESENTATION VIEWER PAGE
   ======================================== */

.presentation-viewer-page {
  background: var(--bg-primary);
  color: var(--text-primary);
}

#unlockSection,
#viewerLayout {
  display: none;
}

.viewer-layout {
  --viewer-sidebar-width: 260px;
  --presentation-stage-max-width: 1080px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--viewer-sidebar-width) 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.viewer-sidebar,
.viewer-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-primary);
}

.presentation-viewer-page #presentationTitle {
  margin-bottom: 0.65rem;
}

.presentation-viewer-page #presentationSummary {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.presentation-viewer-page #pageNav {
  margin-top: 1.2rem;
}

.viewer-main {
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding-bottom: 4.6rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: margin-left 0.24s ease, margin-right 0.26s ease;
}

.presentation-scale-root {
  width: min(100%, var(--presentation-stage-max-width));
  margin-left: auto;
  margin-right: auto;
  transform-origin: top left;
}

.viewer-main::-webkit-scrollbar,
.viewer-layout::-webkit-scrollbar,
#pageContainer::-webkit-scrollbar,
#pageNav::-webkit-scrollbar {
  display: none;
}

.viewer-page {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: calc(1rem * var(--presentation-text-scale, 1));
}

.viewer-end-spacer {
  height: min(44vh, 420px);
}

.viewer-page h2 {
  margin-bottom: 1rem;
  font-size: 1.2em;
}

.page-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.viewer-page .block {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.viewer-page .block--full {
  grid-column: 1 / -1;
}

.viewer-page .block--half {
  grid-column: span 1;
}

.viewer-page .block img,
.viewer-page .block iframe {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.viewer-page figure {
  margin: 0;
}

.viewer-page figcaption {
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.viewer-page .block-image-centered img,
.page-item .block-image-centered img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.viewer-page .block-image-centered figcaption,
.page-item .block-image-centered figcaption {
  text-align: center;
}

.viewer-nav-item {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.viewer-nav-item:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.12);
}

.viewer-nav-item.active {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.18);
}

.presenter-panel {
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-tertiary);
  padding: 0.75rem;
}

.presenter-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.presenter-timer {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--accent-primary);
}

.laser-pointer {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ff3333;
  background: radial-gradient(circle at 30% 30%, rgba(255, 100, 100, 0.9), rgba(255, 20, 20, 0.7));
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.12s ease;
  box-shadow: 
    0 0 8px 2px rgba(255, 50, 50, 0.8),
    0 0 16px 4px rgba(255, 30, 30, 0.5),
    0 0 24px 6px rgba(255, 0, 0, 0.3),
    inset -1px -1px 3px rgba(0, 0, 0, 0.3);
}

.laser-pointer.active {
  opacity: 1;
  animation: laser-pulse 0.8s ease-in-out infinite;
}

@keyframes laser-pulse {
  0%, 100% {
    box-shadow: 
      0 0 8px 2px rgba(255, 50, 50, 0.8),
      0 0 16px 4px rgba(255, 30, 30, 0.5),
      0 0 24px 6px rgba(255, 0, 0, 0.3),
      inset -1px -1px 3px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 
      0 0 12px 3px rgba(255, 60, 60, 0.9),
      0 0 20px 5px rgba(255, 40, 40, 0.6),
      0 0 32px 8px rgba(255, 10, 10, 0.4),
      inset -1px -1px 3px rgba(0, 0, 0, 0.3);
  }
}

body.laser-active {
  cursor: none;
}

.page-notes-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.page-notes-section h3 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.page-notes-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
}

.page-item .page-notes-input {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-item .page-notes-input::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-notes-input::placeholder {
  color: var(--text-secondary);
}

.viewer-presenter-mode .viewer-layout {
  grid-template-columns: 330px 1fr;
}

.viewer-presenter-mode .viewer-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.viewer-presenter-mode .viewer-sidebar::-webkit-scrollbar {
  display: none;
}

.viewer-presenter-mode #pageNav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.viewer-presenter-mode #pageNav::-webkit-scrollbar {
  display: none;
}

body.viewer-presenter-mode::before {
  content: "PRESENTER VIEW";
  position: fixed;
  top: 142px;
  right: -42px;
  width: 260px;
  height: 34px;
  transform: rotate(45deg);
  transform-origin: top right;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d61f1f;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 22px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

@media (max-width: 1000px), (max-height: 760px) {
  body.viewer-presenter-mode::before {
    top: 48px;
    right: -64px;
    width: 236px;
    height: 32px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 700px), (max-height: 600px) {
  body.viewer-presenter-mode::before {
    top: 44px;
    right: -56px;
    width: 210px;
    height: 30px;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }
}

.viewer-sidebar {
  transition: transform 0.24s ease, opacity 0.2s ease;
}

body.viewer-sidebar-hidden .viewer-sidebar {
  transform: translateX(-108%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

body.viewer-sidebar-hidden .viewer-main {
  margin-left: calc((var(--viewer-sidebar-width) * -1) - 1rem);
}

.presenter-notes-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: min(360px, 32vw);
  min-width: 280px;
  height: calc(100vh - 2rem);
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow);
  z-index: 900;
  overflow: hidden;
  transform: translateX(0);
  transition: transform 0.26s ease;
  display: none;
  grid-template-rows: auto 1fr;
  gap: 0.9rem;
}

.viewer-presenter-mode .presenter-notes-panel {
  display: grid;
}

.presenter-notes-panel[hidden] {
  display: none !important;
}

.presenter-notes-panel h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.presenter-notes-panel .presenter-notes-text {
  margin: 0;
  padding: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-y: auto;
  min-height: 180px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.presenter-notes-panel .presenter-notes-text:empty::before {
  content: "No notes for this slide yet.";
  color: var(--text-secondary);
  font-style: italic;
}

.presenter-notes-panel .presenter-notes-text::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.presenter-notes-panel .presenter-notes-text::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.presenter-notes-panel .presenter-notes-text::-webkit-scrollbar-track {
  background: transparent;
}

.viewer-presenter-mode.presenter-notes-hidden .presenter-notes-panel {
  transform: translateX(calc(100% + 1.5rem));
}
.viewer-presenter-mode.presenter-notes-bottom-dock .presenter-notes-panel {
  top: auto;
  right: 1rem;
  left: calc(330px + 2rem);
  bottom: 1rem;
  width: auto;
  min-width: 0;
  height: clamp(170px, 30vh, 290px);
  transform: translateY(0);
  transition: transform 0.26s ease;
}
.viewer-presenter-mode.presenter-notes-bottom-dock.presenter-notes-hidden .presenter-notes-panel {
  transform: translateY(calc(100% + 1.5rem));
}
.viewer-presenter-mode.presenter-notes-bottom-dock:not(.presenter-notes-hidden) .viewer-main {
  margin-right: 0;
  margin-bottom: calc(clamp(170px, 30vh, 290px) + 1rem);
}

.viewer-presenter-mode:not(.presenter-notes-hidden) .viewer-main {
  margin-right: calc(min(360px, 32vw) + 1rem);
}

.viewer-presenter-mode .viewer-main,
.viewer-presenter-mode #pageContainer {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.viewer-presenter-mode .viewer-main::-webkit-scrollbar,
.viewer-presenter-mode #pageContainer::-webkit-scrollbar {
  display: none;
}

.viewer-presenter-mode .presenter-panel .viewer-controls-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.viewer-presenter-mode .presenter-panel .viewer-controls-row .btn-secondary {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.15;
  padding: 0.26rem 0.44rem;
}

.viewer-presenter-mode .presenter-panel .viewer-controls-row + .viewer-controls-row {
  margin-top: 0.45rem;
}

.viewer-presenter-mode .presenter-panel .viewer-shortcuts-hint {
  margin-top: 0.6rem;
}

@media (max-width: 950px) {
  .presenter-notes-panel {
    width: min(320px, 44vw);
    min-width: 220px;
  }

  .viewer-presenter-mode:not(.presenter-notes-hidden) .viewer-main {
    margin-right: calc(min(320px, 44vw) + 1rem);
  }
  .viewer-presenter-mode.presenter-notes-bottom-dock .presenter-notes-panel {
    left: 1rem;
  }
}

.viewer-page img,
.viewer-page iframe {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.unlock-modal {
  max-width: 540px;
  margin: 12vh auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-primary);
}

.unlock-modal input,
.unlock-modal label,
.unlock-modal p,
.unlock-modal h1,
.viewer-sidebar h2,
.viewer-sidebar p,
.viewer-page h2,
.viewer-page figcaption,
.viewer-page div,
.viewer-page span {
  color: var(--text-primary);
}

.unlock-modal input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.viewer-page a {
  color: var(--accent-cyan);
}

.viewer-controls {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-tertiary) 75%, transparent);
  opacity: 0.64;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  position: fixed;
  left: 0.65rem;
  bottom: 0.65rem;
  width: fit-content;
  max-width: calc(100vw - 1.3rem);
  z-index: 200;
  box-shadow: var(--shadow);
}

.viewer-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: grab;
  user-select: none;
}

.viewer-controls-header:active {
  cursor: grabbing;
}

.viewer-controls-header-buttons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.viewer-controls-body {
  display: grid;
  gap: 0.3rem;
}

#toggleViewerControlsButtonSecondary {
  font-size: 0.62rem;
  line-height: 1.1;
  padding: 0.18rem 0.34rem;
  opacity: 0.92;
}

.viewer-controls:hover,
.viewer-controls:focus-within {
  opacity: 1;
  background: var(--bg-tertiary);
}

.viewer-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.viewer-zoom-row {
  display: grid;
  gap: 0.25rem;
}

.viewer-zoom-row label {
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.viewer-zoom-row input[type="range"] {
  width: 100%;
}

.viewer-shortcuts-hint {
  margin: 0;
  font-size: 0.62rem;
  color: var(--text-secondary);
  opacity: 0.55;
}

#modeToggleButton {
  font-size: 0.68rem;
  line-height: 1.15;
  padding: 0.25rem 0.4rem;
  opacity: 0.9;
}

#prevPageButton,
#nextPageButton {
  font-size: 0.66rem;
  line-height: 1.1;
  padding: 0.22rem 0.38rem;
}

#pageCounter {
  font-size: 0.66rem;
  opacity: 0.85;
}

.viewer-layout.viewer-single-mode .viewer-page {
  display: none;
}

.viewer-layout.viewer-single-mode .viewer-page.active {
  display: block;
}

@media (max-width: 1200px) {
  .presentation-maker {
    grid-template-columns: 1fr;
  }

  .maker-panel,
  .page-canvas {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .viewer-main {
    max-height: none;
  }

  .viewer-controls {
    position: static;
    width: 100%;
    left: auto;
    bottom: auto;
    margin-bottom: 0.9rem;
  }

  .viewer-main {
    padding-bottom: 1rem;
  }

  body.viewer-sidebar-hidden .viewer-main {
    margin-left: 0;
  }
}

/* ========================================
   HERO & BANNER STYLES
   ======================================== */
.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #101010;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero p {
  margin-top: 1rem;
  color: #d0d0d0;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons a {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  background: #171717;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.hero-buttons a:hover {
  background: #fff;
  color: #000;
}

.hero-buttons a:active,
.hero-buttons a:focus-visible {
  background: #fff;
  color: #000;
}

.nav-account-circle {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: stretch;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  aspect-ratio: 1 / 1;
  padding: 0;
  line-height: 1;
  border-radius: 9999px !important;
  overflow: hidden;
  background: #171717;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 0 0 36px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.nav-account-avatar,
.nav-account-initial {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  box-sizing: border-box;
  pointer-events: none;
}

.nav-account-avatar {
  display: block;
  object-fit: cover;
  object-position: center;
}

.nav-account-initial {
  display: none;
  place-items: center;
  background: #171717;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

#navAccountIndicator {
  display: flex;
  align-items: center;
  position: relative;
}

#navAccountIndicator::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 190px;
  height: 10px;
}

.nav-links #navAccountIndicator .nav-account-circle {
  flex: 0 0 36px;
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #0e0e0e;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.nav-account-dropdown a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
  background: #141414;
}

.nav-account-dropdown a:hover {
  background: #ffffff;
  color: #000000;
}

#navAccountIndicator:hover .nav-account-dropdown,
#navAccountIndicator:focus-within .nav-account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-account-circle.staff-unlocked {
  border-color: #00d4ff !important;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35);
}

@media (max-width: 720px) {
  .nav-account-circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
  }
}

@media (max-width: 850px) {
  #navAccountIndicator {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px solid #2b2b2b;
    justify-content: center;
  }

  #navAccountIndicator::after {
    display: none;
  }

  #navAccountIndicator .nav-account-circle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    flex: 0 0 34px !important;
    align-self: center;
    margin-bottom: 0.45rem;
  }

  .nav-account-dropdown {
    position: static;
    margin-top: 0.45rem;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
}

/* ========================================
   SECTION & CONTENT STYLES
   ======================================== */
.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #101010;
  padding: 2rem;
}

.section h2 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.45rem;
}

.section > p {
  color: #b5b5b5;
  margin-top: 0.8rem;
  margin-bottom: 1.25rem;
}

.lead {
  margin-top: 1rem;
  color: #b5b5b5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  background: #171717;
  color: #b5b5b5;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================================
   CARD & GRID LAYOUTS
   ======================================== */
.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

.card {
  border: 1px solid #2b2b2b;
  border-radius: 9px;
  padding: 1rem;
  text-decoration: none;
  color: #fff;
  background: #171717;
}

.card:hover {
  background: #fff;
  color: #000;
}

.card:active,
.card:focus-visible {
  background: var(--bp-white);
  color: var(--bp-black);
  outline: none;
}

.card p {
  margin-top: 0.5rem;
  color: #b5b5b5;
}

.card:hover p {
  color: #222;
}

.discord-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.widget {
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  overflow: hidden;
  background: #171717;
}

.widget h3 {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid #2b2b2b;
  padding: 0.75rem 0.9rem;
}

.widget iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
}

/* ========================================
   STAFF & PROFILE STYLES
   ======================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 0;
  color: #9c9c9c;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.back {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: #171717;
  padding: 0.5rem 0.75rem;
}

.back:hover {
  background: #fff;
  color: #000;
}

.back:active,
.back:focus-visible {
  background: var(--bp-white);
  color: var(--bp-black);
  outline: none;
}

.back-button {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.back-button:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateX(-4px);
}

.back-button:active,
.back-button:focus-visible {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.staff-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.staff-top img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  object-fit: cover;
}

.role {
  color: #b5b5b5;
  margin-top: 0.3rem;
}

.card:hover .role {
  color: #222;
}

.logo-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.4rem;
  border: 1px solid #2b3036;
  border-radius: 8px;
  background: #171717;
  text-decoration: none;
  transition: all 0.2s ease;
}

.logo-home-btn:hover {
  background: #212121;
  border-color: #00aaff;
}

.logo-home-btn:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 2px;
}

.dotted-background {
  background-color: #050505;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.layout-container {
  overflow-x: hidden;
}

.error-box {
  background: rgba(120, 0, 0, 0.2);
  border: 1px solid rgba(255, 90, 90, 0.45);
  border-radius: 12px;
  padding: 1rem;
  color: #ffd6d6;
}

.link-list a {
  color: #00aaff;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ========================================
   LOGIN & AUTHENTICATION STYLES
   ======================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #050505;
  padding: 1rem;
}

.login-box {
  background: #101010;
  border: 1px solid #2b2b2b;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
}

.login-box h2 {
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.45rem;
}

.login-box .intro {
  margin-bottom: 1.5rem;
  color: #b5b5b5;
  font-size: 0.95rem;
}

.login-box input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  font-size: 1rem;
  background: #171717;
  color: #ffffff;
  box-sizing: border-box;
}

.login-box input[readonly] {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Shared account form helpers */
.field-label {
  display: block;
  margin: 0.25rem 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #cfcfcf;
}

.field-help {
  margin: -0.45rem 0 0.9rem;
  font-size: 0.8rem;
  color: #9b9b9b;
}

.login-box button {
  width: 100%;
  padding: 0.8rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-bottom: 1rem;
}

.login-box button:hover {
  opacity: 0.88;
}

.login-box button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  color: #ff9696;
  background: #240f0f;
  border: 1px solid #4d1f1f;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  display: none;
}

/* ========================================
   PRESENTATIONS: SELECTOR + LINKS PAGES
   ======================================== */
.presentations-selector-page .selector-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.presentations-selector-page .selector-header h1 {
  flex: 1;
}

.presentations-selector-page #newPresentationBtn {
  margin-left: auto;
}

.presentations-selector-page .selector-content {
  margin-top: 0.85rem;
}

.presentations-selector-page #presentationList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.presentations-selector-page .selector-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #141414;
  padding: 0.65rem 0.75rem;
}

.presentations-selector-page .selector-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ededed;
}

.presentations-selector-page .selector-actions {
  margin-left: auto;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.presentations-selector-page #newPresentationBtn,
.presentations-selector-page .selector-actions .btn-secondary {
  background: #1b1b1b;
  color: #f2f2f2;
  border: 1px solid #363636;
}

.presentations-selector-page #newPresentationBtn:hover,
.presentations-selector-page .selector-actions .btn-secondary:hover {
  background: #242424;
}

.presentations-selector-page #noPresentationsMsg,
.presentations-links-page #noPresentationsMsg {
  display: none;
}

.presentations-links-page .links-content {
  margin-top: 0.85rem;
}

.presentations-links-page #presentationsTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  overflow: hidden;
}

.presentations-links-page #presentationsTable col:nth-child(1) {
  width: 30%;
}

.presentations-links-page #presentationsTable col:nth-child(2) {
  width: 14%;
}

.presentations-links-page #presentationsTable col:nth-child(3) {
  width: 22%;
}

.presentations-links-page #presentationsTable col:nth-child(4) {
  width: 20%;
}

.presentations-links-page #presentationsTable col:nth-child(5) {
  width: 14%;
}

.presentations-links-page #presentationsTable th,
.presentations-links-page #presentationsTable td {
  border: 1px solid #2f2f2f;
  padding: 0.6rem 0.5rem;
  vertical-align: middle;
  background: #141414;
}

.presentations-links-page #presentationsTable th {
  background: #1c1c1c;
  color: #f2f2f2;
  font-weight: 600;
  text-align: center;
}

.presentations-links-page #presentationsTable td {
  color: #e7e7e7;
  text-align: center;
  word-break: break-word;
}

.presentations-links-page #presentationsTable th:first-child,
.presentations-links-page #presentationsTable td:first-child {
  text-align: left;
}

.presentations-links-page #presentationsTable .link-action-btn {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  white-space: nowrap;
  background: #1b1b1b;
  color: #f2f2f2;
  border: 1px solid #363636;
}

.presentations-links-page #presentationsTable a {
  color: #d7d7d7;
  text-decoration: underline;
}

.presentations-links-page #presentationsTable tr:nth-child(even) td {
  background: #191919;
}

.presentations-links-page #presentationsTable tr:hover td {
  background: #242424;
}

@media (max-width: 960px) {
  .presentations-links-page #presentationsTable {
    table-layout: auto;
  }

  .presentations-links-page #presentationsTable .link-action-btn {
    white-space: normal;
  }
}

.success-message {
  color: #d6ffd6;
  background: #102212;
  border: 1px solid #27472b;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  display: none;
}

.back-link {
  margin-top: 0.25rem;
}

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

.auth-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.account-action-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-action-card {
  display: block;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: linear-gradient(180deg, #161616 0%, #121212 100%);
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.account-action-card:hover {
  border-color: #3d3d3d;
  background: linear-gradient(180deg, #1b1b1b 0%, #151515 100%);
  transform: translateY(-1px);
}

.account-action-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.account-action-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.83rem;
  color: #b7b7b7;
}

.auth-section {
  background: #111111;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 0.95rem;
  margin-bottom: 0;
}

.auth-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0f0f0;
}

.auth-actions-row a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #2b2b2b;
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease;
}

.auth-actions-row a:hover {
  border-bottom-color: #ffffff;
}

.auth-divider {
  border: 0;
  border-top: 1px solid #2b2b2b;
  margin: 1rem 0;
}

.secondary-auth-btn {
  width: 100%;
  padding: 0.8rem;
  background: #171717;
  color: #ffffff;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin: 0.2rem 0 1rem;
}

.secondary-auth-btn:hover {
  opacity: 0.88;
}

.auth-redirect-page .login-box h2,
.auth-redirect-page #pageTitle {
  color: #ffffff;
}

.auth-redirect-page .login-box button,
.auth-redirect-page .login-box .btn-primary,
.auth-redirect-page #resetForm button,
.auth-redirect-page #continueBtn {
  background: #111111;
  color: #ffffff;
  border: 1px solid #2b2b2b;
  box-shadow: none;
}

.auth-redirect-page .login-box button:hover,
.auth-redirect-page .login-box .btn-primary:hover,
.auth-redirect-page #resetForm button:hover,
.auth-redirect-page #continueBtn:hover {
  background: #1b1b1b;
  box-shadow: none;
}

.back-link a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #2b2b2b;
  padding-bottom: 0.1rem;
  transition: all 0.2s ease;
}

.back-link a:hover {
  border-bottom-color: #ffffff;
  transform: translateX(-2px);
}

/* ========================================
   404 PAGE STYLES
   ======================================== */
body.error-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
  color: #ffffff;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #2b2b2b;
  background: #171717;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.action:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: #000000;
}

.action-primary,
.action-primary:link,
.action-primary:visited,
.action-primary:active {
  background: #ffffff;
  color: #000000;
}

.action-primary:hover {
  background: #dcdcdc;
}

.quick-links {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2b2b2b;
}

.quick-links h2 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-links-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.quick-link {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #2b2b2b;
  background: #141414;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.quick-link strong {
  display: block;
  font-size: 0.95rem;
}

.quick-link span {
  display: block;
  margin-top: 0.35rem;
  color: #9c9c9c;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.quick-link:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quick-link:hover span {
  color: #333333;
}

/* ========================================
   WALLPAPERS PAGE STYLES
   ======================================== */
.wallpaper-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.wallpaper-card {
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  overflow: hidden;
  background: #101010;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallpaper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 212, 255, 0.15);
}

.wallpaper-preview {
  width: 100%;
  height: 220px;
  background: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #b5b5b5;
}

.wallpaper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-label {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  background: #171717;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #b5b5b5;
  margin-top: 0.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: opacity 0.2s ease;
}

.download-btn:hover {
  opacity: 0.85;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 2rem;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 1rem;
  background: #101010;
}

footer p {
  color: #b5b5b5;
}

/* ========================================
   HELP & DOCUMENTATION STYLES
   ======================================== */
.help-guide-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #050505 0%, #0d0d0d 100%);
  color: var(--text-primary);
}

.help-guide-page,
.help-guide-page * {
  box-sizing: border-box;
}

.help-guide-page a,
.help-guide-page a:visited {
  color: inherit;
}

.help-guide-page .help-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.help-guide-page .help-container > header {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.8), rgba(16, 16, 16, 0.95)),
    #0f0f0f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.help-guide-page .help-container > header h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--text-primary);
  max-width: 11ch;
}

.help-guide-page .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.help-guide-page .back-button:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 212, 255, 0.2);
}

.help-guide-page .toc {
  position: sticky;
  top: 1.25rem;
  z-index: 2;
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.help-guide-page .toc h2 {
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.help-guide-page .toc ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.help-guide-page .toc li {
  margin: 0;
}

.help-guide-page .toc a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.help-guide-page .toc a:hover {
  transform: translateY(-1px);
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.5);
  text-decoration: none;
}

.help-guide-page .help-container section {
  margin-bottom: 0;
  scroll-margin-top: 6rem;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 16, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.help-guide-page .help-container section h2 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.help-guide-page .help-container section h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.help-guide-page .help-container p,
.help-guide-page .help-container li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.help-guide-page .feature-box,
.help-guide-page .menu-item,
.help-guide-page .steps,
.help-guide-page .tip-box {
  border-radius: 16px;
}

.help-guide-page .feature-box {
  background: rgba(23, 23, 23, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 1.2rem 1.25rem;
  margin: 0.9rem 0;
}

.help-guide-page .feature-box h4 {
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.help-guide-page .feature-box p {
  color: var(--text-secondary);
  margin: 0;
}

.help-guide-page .accordion {
  background: rgba(23, 23, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  margin: 0.85rem 0;
  overflow: hidden;
  box-shadow: none;
}

.help-guide-page .accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s ease;
}

.help-guide-page .accordion summary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.help-guide-page .accordion summary::-webkit-details-marker {
  display: none;
}

.help-guide-page .accordion summary::after {
  content: "+";
  font-size: 1.2rem;
  color: #009db2;
  flex-shrink: 0;
}

.help-guide-page .accordion[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 212, 255, 0.12);
}

.help-guide-page .accordion[open] summary::after {
  content: "-";
}

.help-guide-page .accordion .accordion-body {
  padding: 1rem 1.2rem 1.2rem;
  color: var(--text-secondary);
}

.help-guide-page .accordion .accordion-body p {
  margin-bottom: 0.75rem;
}

.help-guide-page .accordion .accordion-body ul,
.help-guide-page .accordion .accordion-body ol {
  margin: 0.55rem 0 0 1.15rem;
}

.help-guide-page .accordion .accordion-body li {
  margin: 0.45rem 0;
}

.help-guide-page .steps {
  background: rgba(23, 23, 23, 0.8);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.help-guide-page .steps ol {
  margin-left: 1.15rem;
  color: var(--text-secondary);
}

.help-guide-page .steps li {
  margin: 0.55rem 0;
  line-height: 1.75;
}

.help-guide-page code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  color: var(--text-primary);
}

.help-guide-page .menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.help-guide-page .menu-item {
  background: rgba(23, 23, 23, 0.8);
  padding: 1.15rem;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.help-guide-page .menu-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.help-guide-page .menu-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.help-guide-page .tip-box {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 1rem 1.1rem;
  margin: 1.15rem 0 0;
}

.help-guide-page .tip-box strong {
  color: var(--text-primary);
}

.help-guide-page .notice {
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(160, 118, 8, 0.28);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 12px;
  color: #6b4f00;
}

.help-guide-page .admin-table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  background: rgba(23, 23, 23, 0.7);
  border-radius: 16px;
  overflow: hidden;
}

.help-guide-page .admin-table th {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.help-guide-page .admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.help-guide-page .admin-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.help-guide-page footer {
  margin-top: 0;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 16, 0.92);
  color: var(--text-secondary);
  width: 100%;
}

/* ========================================
   CLI PAGE STYLES
   ======================================== */
.cli-page {
  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.14), transparent 32%),
    radial-gradient(circle at right top, rgba(0, 212, 255, 0.08), transparent 28%),
    var(--bp-bg);
}

.cli-page .cli-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0 2.5rem;
}

.cli-page .cli-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(16, 16, 16, 0.92);
  box-shadow: var(--shadow-elevated);
}

.cli-page .cli-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.35rem;
}

.cli-page .cli-header p {
  color: var(--text-secondary);
  max-width: 62ch;
}

.cli-page .cli-back-link {
  flex: 0 0 auto;
  align-self: center;
}

.cli-page .cli-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.cli-page .cli-terminal,
.cli-page .cli-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(12, 14, 18, 0.96);
  box-shadow: var(--shadow-elevated);
}

.cli-page .cli-terminal {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100vh - 9rem));
  min-height: 620px;
}

.cli-page .cli-terminal-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.cli-page .cli-terminal-bar #cliTitle {
  justify-self: center;
  text-align: center;
}

.cli-page .cli-terminal-bar .cli-status-pill {
  justify-self: end;
}

.cli-page .cli-terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.cli-page .cli-terminal-dots span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.cli-page .cli-terminal-dots span:nth-child(1) { background: #ff5f56; }
.cli-page .cli-terminal-dots span:nth-child(2) { background: #ffbd2e; }
.cli-page .cli-terminal-dots span:nth-child(3) { background: #27c93f; }

.cli-page .cli-terminal-output {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
  font-size: 0.93rem;
  line-height: 1.55;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cli-page .cli-terminal-output::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cli-page .cli-line {
  margin-bottom: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.cli-page .cli-line:last-child {
  margin-bottom: 0;
}

.cli-page .cli-line--welcome {
  color: var(--text-primary);
}

.cli-page .cli-line--prompt {
  color: #b8c8ff;
}

.cli-page .cli-line--system {
  color: var(--text-secondary);
}

.cli-page .cli-line--success {
  color: #7bffbf;
}

.cli-page .cli-line--error {
  color: #ff8e8e;
}

.cli-page .cli-line code,
.cli-page .cli-sidebar code {
  font-family: inherit;
  color: #9be9ff;
}

.cli-page .cli-input-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cli-page .cli-prompt {
  color: #00d4ff;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
  font-weight: 700;
  flex: 0 0 auto;
}

.cli-page .cli-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
  outline: none;
}

.cli-page .cli-run-button {
  flex: 0 0 auto;
}

.cli-page .cli-command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}

.cli-page .cli-chip {
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cli-page .cli-chip:hover {
  transform: translateY(-1px);
  background: rgba(0, 212, 255, 0.14);
}

.cli-page .cli-sidebar {
  padding: 1.1rem 1.1rem 1.2rem;
  position: sticky;
  top: 1.25rem;
}

.cli-page .cli-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.cli-page .cli-sidebar p,
.cli-page .cli-sidebar li {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.cli-page .cli-sidebar ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.cli-page .cli-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cli-page .cli-shell {
    width: min(1180px, calc(100% - 1rem));
    padding-top: 0.75rem;
  }

  .cli-page .cli-header,
  .cli-page .cli-terminal,
  .cli-page .cli-sidebar {
    border-radius: 18px;
  }

  .cli-page .cli-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cli-page .cli-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cli-page .cli-back-link {
    align-self: flex-start;
  }

  .cli-page .cli-sidebar {
    position: static;
  }

  .cli-page .cli-terminal {
    height: min(700px, calc(100vh - 7.5rem));
    min-height: 560px;
  }

  .cli-page .cli-terminal-output {
    flex: 1 1 auto;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .cli-page .cli-input-row {
    flex-wrap: wrap;
  }

  .cli-page .cli-input {
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .cli-page .cli-run-button {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .help-guide-page .help-container {
    padding: 1.25rem 0.9rem 2.5rem;
  }

  .help-guide-page .help-container > header,
  .help-guide-page .help-container section,
  .help-guide-page footer,
  .help-guide-page .toc {
    border-radius: 18px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .help-guide-page .toc {
    position: static;
  }

  .help-guide-page .toc ul,
  .help-guide-page .menu-items {
    grid-template-columns: 1fr;
  }

  .help-guide-page .help-container > header h1 {
    max-width: none;
  }
}

/* ========================================
   AUTH REDIRECT STYLES
   ======================================== */
.container-auth {
  position: relative;
  z-index: 10;
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(102, 126, 234, 0.5);
  max-width: 420px;
  width: 90%;
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#pageTitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

#statusText {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  min-height: 20px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#resetForm {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.5rem;
  text-align: left;
}

#resetForm input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #f8fafc;
  font-family: inherit;
}

#resetForm input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#resetForm input::placeholder {
  color: #94a3b8;
}

.form-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.375rem;
  text-align: left;
}

#resetForm button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#resetForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#resetForm button:active {
  transform: translateY(0);
}

#resetForm button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#errorBox,
#successBox {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
  border-left: 4px solid;
}

#errorBox {
  background: #fef2f2;
  color: #991b1b;
  border-left-color: #dc2626;
}

#errorBox::before {
  content: "⚠️ ";
  margin-right: 0.5rem;
}

#successBox {
  background: #f0fdf4;
  color: #166534;
  border-left-color: #16a34a;
}

#successBox::before {
  content: "✓ ";
  margin-right: 0.5rem;
  font-weight: bold;
}

#continueBtn {
  display: none;
  width: 100%;
  padding: 0.875rem;
  background: #00d4ff;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

#continueBtn:hover {
  background: #00b8d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

#continueBtn:active {
  transform: translateY(0);
}

.divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

.auth-footer {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 1.5rem;
  text-align: center;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

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

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

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

/* ========================================
   RESPONSIVE DESIGN - TABLETS & MOBILE
   ======================================== */
@media (max-width: 850px) {
  .nav-container {
    width: calc(100% - 1.25rem);
    padding: 0.7rem 0;
  }

  .mobile-toggle {
    display: inline-block;
    padding: 0.5rem 0.72rem;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.65rem;
    right: 0.65rem;
    padding: 0.65rem;
    background: #050505;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    flex-direction: column;
    gap: 0.45rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      max-height 0.32s ease,
      opacity 0.24s ease,
      transform 0.24s ease;
  }

  .nav-links.active {
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    text-align: center;
  }

  .hero {
    width: calc(100% - 1.25rem);
    margin-top: 1rem;
    padding: 1.35rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .hero p {
    margin-top: 0.75rem;
  }

  .hero-buttons {
    margin-top: 1rem;
    gap: 0.6rem;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .section,
  footer {
    width: calc(100% - 1.25rem);
    padding: 1.25rem 1rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .discord-widgets {
    grid-template-columns: 1fr;
  }

  .widget iframe {
    min-height: 420px;
  }

  .panel {
    padding: 1.4rem;
    border-radius: 14px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .actions {
    flex-direction: column;
  }

  .action {
    width: 100%;
  }

  .help-container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  header {
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  section h2 {
    font-size: 1.5rem;
  }

  section h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 520px) {
  .logo {
    gap: 0.6rem;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  .mobile-toggle {
    font-size: 1rem;
    padding: 0.42rem 0.58rem;
  }

  .hero-buttons a {
    max-width: none;
  }

  .widget iframe {
    min-height: 360px;
  }

  .container-auth {
    padding: 2rem;
  }

  #pageTitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  header .flex.items-center.gap-8 {
    width: 100%;
    justify-content: space-between;
  }

  header .flex.items-center.gap-8 > .flex.items-center.gap-9 {
    width: 100%;
  }
}

/* INLINE STYLE UTILITIES START */

.u-0087482414 {
  font-size: 0.8rem; color: var(--text-secondary); margin-top: 1rem;
}

.u-008dd5276b {
  color: #d0d0d0;
}

.u-03a93a1fb4 {
  margin-bottom: 0.35rem;
}

.u-049eb96e94 {
  margin-top: 0.75rem; color: var(--text-secondary);
}

.u-095a8124e8 {
  background: #f39c12;
}

.u-09e5bcbf35 {
  margin: 0; color: var(--text-primary);
}

.u-0acc4ad61d {
  background: var(--bg-secondary); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color);
}

.u-0bb450f7e1 {
  width: 100%; margin-bottom: 0.5rem;
}

.u-0dd0513458 {
  display: flex; gap: 1rem; align-items: center;
}

.u-1974fe2fb5 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}

.u-199b6f0e58 {
  width: 100%;
}

.u-1bf72780f4 {
  color: #b9b9b9;
}

.u-1c0eba1eec {
  display: none; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}

.u-1c9116ee05 {
  text-align: center; margin-top: 32px; color: var(--bp-text-muted); font-size: 1em;
}

.u-1dac0b9a38 {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}

.u-1dd1863b80 {
  background: #f39c12; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-1def6ee70f {
  color: #999; font-size: 0.875rem;
}

.u-1df16cd7f0 {
  display: grid; grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 1fr); gap: 1.25rem; align-items: start;
}

.staff-card-list-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.staff-card-text-row {
  grid-template-columns: 1fr auto;
}

.staff-card-link-row {
  grid-template-columns: 1fr 1fr auto;
}

.staff-card-list-row input {
  min-width: 0;
  width: 100%;
}

.u-1e52ae17aa {
  font-size: 2rem;
}

.u-21fcbdc5bf {
  padding: 1rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease; display: flex; align-items: center; gap: 0.75rem;
}

.u-224b51a7b4 {
  display: none;
}

.u-24b531c61c {
  cursor: pointer;
}

.u-263210f0a2 {
  background: #00d4ff; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-268fb78f11 {
  display: grid; gap: 1.5rem;
}

.u-2a56b75d43 {
  font-size: 0.85rem; color: var(--text-secondary);
}

.u-2b60c12362 {
  font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.5rem 0;
}

.u-2ee324e727 {
  display: flex; flex-direction: column; gap: 1.5rem;
}

.u-2fa130aeca {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}

.u-2ff859d80c {
  height: 30px; width: auto;
}

.u-31e1062ded {
  padding: 1.5rem; text-align: center; color: var(--text-secondary); border: 1px dashed var(--border-color); border-radius: 12px; background: var(--bg-secondary); margin-bottom: 1.5rem;
}

.u-3229ae90bb {
  margin-bottom: 1rem; color: var(--text-primary);
}

.u-35042daded {
  color: var(--text-secondary);
}

.u-3587d3e88d {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500;
}

.u-35c8a4631f {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
}

.u-36f1b69f37 {
  background: #667eea;
}

.u-38e6a142a1 {
  width: 100%; max-width: 260px; border-radius: 10px;
}

.u-3a17f2ae9e {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}

.u-3b84c0ff31 {
  background: #27ae60; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-3ce9d1792d {
  background: var(--bg-secondary); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color);
}

.u-3d67c26026 {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}

.u-3dde037a00 {
  background: #00d4ff;
}

.u-3eca9ee6b1 {
  font-weight: 600; color: var(--text-primary);
}

.u-3fa598650f {
  margin-bottom: 1.5rem; color: var(--text-primary);
}

.u-402084f055 {
  border: 1px solid #2b2b2b; border-radius: 10px; background: rgba(43, 43, 43, 0.7); padding: 0.8rem; display: flex; justify-content: center;
}

.u-45cebc9ae6 {
  background: #764ba2; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-476a5d7777 {
  min-height: 200px;
}

.u-49cdf8748d {
  flex: 1;
}

.u-4c4849545f {
  margin-bottom: 1.5rem; color: var(--text-secondary);
}

.u-4d1e5c7dd7 {
  max-width: 600px;
}

.u-4f5f61b5ee {
  white-space: pre-wrap;
}

.u-50b87a3659 {
  width: 18px; height: 18px; cursor: pointer;
}

.u-51fc983900 {
  font-size: 1.5rem; color: #27ae60;
}

.u-5485aed367 {
  margin: 0.45rem 0 0 1.25rem;
}

.u-55fa2208d3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem;
}

.u-5af732c821 {
  margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center;
}

.u-5fa1c6fb07 {
  display: flex; gap: 0.5rem;
}

.u-5fec6b39e3 {
  background: #050505; border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem;
}

.u-61059eac0c {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

.u-61fee814a6 {
  margin-top: 0.6rem;
}

.u-66e68c6e5d {
  font-size: 0.8rem; color: var(--text-secondary); margin-top: 1rem; max-height: 200px; overflow-y: auto;
}

.u-685eb7ba5e {
  display: flex; flex-direction: column; gap: 0.5rem;
}

.u-696da6315e {
  margin-top: 1rem; display: grid; gap: 0.85rem;
}

.u-6ae0910156 {
  margin-top: 1rem; font-size: 0.9rem;
}

.u-6e2da47641 {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}

.u-7012d5d10a {
  width: 100%; padding: 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-family: inherit; resize: vertical;
}

.u-70c6772cf9 {
  display: none; color: #eb5757;
}

.u-7350084f98 {
  width: 100%; padding: 0.5rem; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); border-radius: 6px;
}

.u-73f912af3d {
  background: #9b59b6; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-75d90b69cf {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center;
}

.u-765bbe80a6 {
  margin-top: 1.25rem; width: 100%;
}

.u-766e2ce949 {
  padding: 0.5rem; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); border-radius: 4px;
}

.u-77a3ec2317 {
  margin-bottom: 0.75rem;
}

.u-783be4376a {
  font-size: 1.5rem; color: #f2994e;
}

/* ========================================
   WHITEBOARD UTILITY PAGE
   ======================================== */
body.whiteboard-page .tool-shell {
  margin-top: 1rem;
}

body.whiteboard-page .tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0;
}

body.whiteboard-page .tool-toolbar .bp-muted {
  margin: 0;
}

body.whiteboard-page .color-spawn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.whiteboard-page .color-spawn-btn {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  color: #fff;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

body.whiteboard-page .color-spawn-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.whiteboard-page .whiteboard {
  position: relative;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px)
      0 0 / 20px 20px,
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 20px
      20px,
    #101010;
  min-height: 65vh;
  overflow: hidden;
}

body.whiteboard-page .note {
  position: absolute;
  width: min(280px, 78vw);
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.whiteboard-page .note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  cursor: grab;
  touch-action: none;
}

body.whiteboard-page .note-header:active {
  cursor: grabbing;
}

body.whiteboard-page .note-actions {
  display: inline-flex;
  gap: 0.35rem;
}

body.whiteboard-page .note-icon-btn {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
}

body.whiteboard-page .note textarea {
  width: 100%;
  border: 0;
  border-top: 1px solid #2b2b2b;
  background: transparent;
  color: #fff;
  min-height: 130px;
  resize: vertical;
  padding: 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
}

body.whiteboard-page .note textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: -2px;
}

body.whiteboard-page .empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #b5b5b5;
  padding: 1rem;
  pointer-events: none;
}

/* ========================================
   TEXT TOOLS UTILITY PAGE
   ======================================== */
body.text-tools-page .tool-shell {
  margin-top: 1rem;
}

body.text-tools-page .tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

body.text-tools-page .tool-column {
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #101010;
  padding: 1rem;
}

body.text-tools-page .tool-column h3 {
  margin-bottom: 0.55rem;
}

body.text-tools-page .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

body.text-tools-page .tool-column textarea,
body.text-tools-page .tool-column input {
  width: 100%;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: #151515;
  color: #ffffff;
  padding: 0.6rem;
  font-family: inherit;
}

body.text-tools-page .tool-column textarea {
  min-height: 180px;
  resize: vertical;
}

body.text-tools-page .slug-output {
  margin-top: 0.6rem;
}

/* ========================================
   DRAWING BOARD UTILITY PAGE
   ======================================== */
body.drawing-board-page {
  overflow: hidden;
  background: #ffffff;
}

body.drawing-board-page .drawing-shell {
  position: fixed;
  inset: 0;
}

body.drawing-board-page #drawingCanvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
  background: #ffffff;
}

body.drawing-board-page .drawing-hint {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 5;
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: 0.94rem;
  line-height: 1.35;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

body.drawing-board-page .drawing-status {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(10px);
}

body.drawing-board-page .drawing-toolbar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1120px, calc(100vw - 1rem));
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

body.drawing-board-page .toolbar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: #161616;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.drawing-board-page .toolbar-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5d5d5d;
}

body.drawing-board-page .toolbar-body {
  padding: 0 1rem 1rem;
}

body.drawing-board-page .toolbar-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.drawing-board-page .toolbar-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

body.drawing-board-page .toolbar-page-nav {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 0 auto;
}

body.drawing-board-page .file-menu {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.15);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  min-width: 160px;
}

body.drawing-board-page .file-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #171717;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

body.drawing-board-page .file-menu-item:hover {
  background: #f0f0f0;
}

body.dark-mode.drawing-board-page .file-menu {
  background: rgba(20, 20, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .file-menu-item {
  color: #f2f2f2;
}

body.dark-mode.drawing-board-page .file-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.drawing-board-page .toolbar-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.drawing-board-page .toolbar-section + .toolbar-section {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(17, 17, 17, 0.12);
}

body.drawing-board-page .toolbar-size-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #f6f6f6;
}

body.drawing-board-page .toolbar-size-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2a2a2a;
  white-space: nowrap;
}

body.drawing-board-page .toolbar-size-slider {
  width: 130px;
  accent-color: #171717;
}

body.drawing-board-page .toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #f6f6f6;
  color: #171717;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

body.drawing-board-page .toolbar-button:hover {
  background: #ededed;
}

body.drawing-board-page .toolbar-button.is-active {
  background: #171717;
  color: #ffffff;
  border-color: #171717;
}

body.drawing-board-page .toolbar-page-button {
  min-width: 44px;
  padding-left: 0;
  padding-right: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

body.drawing-board-page .drawing-toolbar.is-collapsed .toolbar-body {
  display: none;
}

@media (max-width: 820px) {
  body.drawing-board-page .drawing-toolbar {
    width: calc(100vw - 0.75rem);
    bottom: 0.375rem;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  body.drawing-board-page .toolbar-toggle {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.drawing-board-page .toolbar-grid {
    flex-wrap: wrap;
  }

  body.drawing-board-page .toolbar-page-nav {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  body.drawing-board-page .toolbar-meta {
    margin-left: 0;
  }

  body.drawing-board-page .drawing-hint {
    left: 0.75rem;
    right: 0.75rem;
    top: 0.75rem;
    max-width: none;
  }

  body.drawing-board-page .drawing-status {
    right: 0.75rem;
    top: auto;
    bottom: 4.75rem;
  }
}

body.drawing-board-page .color-selector {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 22px;
  padding: 0.75rem;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(14px);
}

body.drawing-board-page .color-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.drawing-board-page .color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(17, 17, 17, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.drawing-board-page .color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.drawing-board-page .color-swatch.active {
  border: 2px solid #161616;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 0 3px #161616;
}

body.drawing-board-page .eraser-cursor {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 18;
}

body.drawing-board-page .drawing-utilities {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 25;
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(14px);
}

body.drawing-board-page .utility-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
  background: #f6f6f6;
  color: #171717;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.drawing-board-page .utility-button:hover {
  background: #ededed;
}

body.drawing-board-page .utility-button svg {
  display: block;
}

body.dark-mode.drawing-board-page {
  background: #0d0d0d;
}

body.dark-mode.drawing-board-page #drawingCanvas {
  background: #0d0d0d;
}

body.dark-mode.drawing-board-page .drawing-toolbar {
  background: rgba(16, 16, 16, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .toolbar-toggle {
  color: #f2f2f2;
}

body.dark-mode.drawing-board-page .toolbar-meta {
  color: #888888;
}

body.dark-mode.drawing-board-page .toolbar-button {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
}

body.dark-mode.drawing-board-page .toolbar-button:hover {
  background: #2a2a2a;
}

body.dark-mode.drawing-board-page .toolbar-button.is-active {
  background: #f2f2f2;
  color: #0d0d0d;
  border-color: #f2f2f2;
}

body.dark-mode.drawing-board-page .toolbar-size-control {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .toolbar-size-label {
  color: #f2f2f2;
}

body.dark-mode.drawing-board-page .toolbar-size-slider {
  accent-color: #f2f2f2;
}

body.dark-mode.drawing-board-page .toolbar-section + .toolbar-section {
  border-left-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .color-selector {
  background: rgba(16, 16, 16, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .color-swatch {
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .color-swatch.active {
  border-color: #f2f2f2;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 3px #f2f2f2;
}

body.dark-mode.drawing-board-page .drawing-hint {
  background: rgba(16, 16, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
}

body.dark-mode.drawing-board-page .drawing-status {
  background: rgba(16, 16, 16, 0.9);
  color: #f2f2f2;
}

body.dark-mode.drawing-board-page .eraser-cursor {
  border-color: rgba(255, 255, 255, 0.55);
}

body.dark-mode.drawing-board-page .drawing-utilities {
  background: rgba(16, 16, 16, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .utility-button {
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.drawing-board-page .utility-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 768px) {
  body.whiteboard-page .whiteboard {
    min-height: 72vh;
  }
}

.u-78bf8b3eba {
  padding: 1rem; background: var(--bg-secondary); border: 1px solid #27ae60; border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease; display: flex; align-items: center; gap: 0.75rem;
}

.u-7d4a58262a {
  font-size: 1.5rem; color: #eb5757;
}

.u-7d4ab9b9be {
  background: #f2994e;
}

.u-8321c50225 {
  display: flex; gap: 0.75rem; justify-content: flex-end;
}

.u-84df9acdb4 {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.u-858c693486 {
  font-family: var(--font-main);
}

.u-85affc642c {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}

.u-87024db3a0 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1rem;
}

.u-88aa25c3d4 {
  margin-top: 0;
}

.u-89cc0b3ebb {
  background: #eb5757; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-8ab75eb6f7 {
  margin: 0; color: var(--text-secondary); font-size: 0.9rem;
}

.u-8c30c208aa {
  display: block; margin: 1rem 0 0.5rem;
}

.u-8c5a3241b8 {
  margin-top: 1rem; color: var(--text-secondary); font-size: 0.9rem;
}

.u-8d0e4371f4 {
  background: #eb5757;
}

.u-90453e4dea {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

.u-911727de86 {
  max-height: 500px; overflow-y: auto;
}

.u-937a5949da {
  background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border-color); overflow-x: auto;
}

.u-9831a28ecb {
  font-size: 0.9rem; color: var(--text-primary); margin: 0 0 1rem 0; word-break: break-all;
}

.u-988c5fa7c7 {
  margin-top: 1rem;
}

.u-9bd95a40cb {
  font-size: 1.5rem; color: #c0392b;
}

.u-9fc0e0a851 {
  color: #eb5757;
}

.u-a0558bdc54 {
  background: #2980b9; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-a067122837 {
  color: #667eea; text-decoration: underline;
}

.u-a36f4eb8b1 {
  display: inline-flex; align-items: center; gap: 0.5rem;
}

.u-a674e7ccbb {
  background: var(--hover-bg); border: 1px solid var(--border-color);
}

.u-a7af3b4aaa {
  padding: 1rem; background: var(--bg-secondary); border: 1px solid #f2994e; border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease; display: flex; align-items: center; gap: 0.75rem;
}

.u-a7e2e72c52 {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-tertiary); color: var(--text-primary);
}

.u-aa0da8a6b4 {
  padding: 1.5rem;
}

.u-abed483693 {
  background: var(--bg-secondary); padding: 1rem; border-radius: 8px; border-left: 4px solid #667eea; margin-bottom: 1rem;
}

.u-ac43701498 {
  margin-top: 1rem; display: none; width: 100%;
}

.u-ac79cce730 {
  margin-bottom: 0.5rem;
}

.u-ad5bf8667b {
  background-color: var(--accent-red); opacity: 0.7;
}

.u-ad9e4850ec {
  min-width: 220px;
}

.u-afcd7ed5ec {
  display: flex; gap: 0.5rem; align-items: center;
}

.u-b09de88da2 {
  font-size: 0.8rem; color: var(--text-secondary);
}

.u-b2fd88effd {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem;
}

.u-b56f4ebe1c {
  padding: 1rem; background: var(--bg-secondary); border: 1px solid #c0392b; border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease; display: flex; align-items: center; gap: 0.75rem;
}

.u-bcbbdaa073 {
  color: var(--accent-color);
}

.u-bf0623942c {
  display: none; margin-top: 2rem; background: var(--bg-secondary); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color);
}

.u-c0dc2c6378 {
  max-width: 300px;
}

.u-c1739c5098 {
  display: block; margin-bottom: 0.5rem;
}

.u-c2c1c46766 {
  background: #27ae60;
}

.u-c2e712755d {
  background: #9b59b6;
}

.u-c4cec173c4 {
  background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem;
}

.u-c7167c3929 {
  margin: 0 0 0.75rem 0; color: var(--text-primary);
}

.u-ca9a6c17ab {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem;
}

.u-cd23822094 {
  background: #2980b9;
}

.u-cf0f3aef04 {
  margin-top: 2rem;
}

.u-d06efe6845 {
  display: none; margin-top: 1rem;
}

.u-d6fcdc85b9 {
  display: flex; gap: 0.75rem; margin-top: 1rem;
}

.u-d8a5730c92 {
  padding: 0.75rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 8px;
}

.u-d8e4a1cc83 {
  background: #764ba2;
}

.u-d9ec21c6ec {
  width: 100%; height: 600px; border: 1px solid var(--border-color); border-radius: 8px; background: white;
}

.u-da7ecfaa82 {
  max-width: 760px;
}

.u-dac869a571 {
  display: none; margin-top: 0.75rem;
}

.u-dfdae1b11d {
  background: var(--hover-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.8rem; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.9rem;
}

.u-e0f8bd9907 {
  background: #667eea; width: 50px; height: 50px; border-radius: 8px; cursor: pointer;
}

.u-e1db3de24b {
  display: none; margin-bottom: 2rem; padding: 1.5rem; background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border-color);
}

.u-e4905fb3c3 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

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

.u-e5e334a232 {
  max-width: 640px; margin: 3rem auto; padding: 2rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow);
}

.u-e7992da274 {
  font-size: 0.85rem;
}

.u-e7e3a87746 {
  padding: 1rem; background: var(--bg-secondary); border: 1px solid #eb5757; border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease; display: flex; align-items: center; gap: 0.75rem;
}

.u-ebd636fb4b {
  display: flex; flex-direction: column; gap: 0.35rem;
}

.u-edce5f108a {
  justify-content: flex-start; margin-top: 0.75rem;
}

.u-ee3fc845c5 {
  margin-top: 1.25rem; display: none;
}

.u-ef2a287c19 {
  font-size: 0.85rem; color: var(--text-secondary); margin-top: 1rem;
}

.u-f2020e1409 {
  margin-left: 1.2rem;
}

.u-f48bc238f1 {
  display: flex; flex-direction: column; gap: 1rem;
}

.u-f6fed3cf80 {
  display: none; padding: 0.75rem; background: var(--bg-tertiary); border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-secondary); border-left: 3px solid var(--accent-primary);
}

.u-fa415b955f {
  font-size: 1.5rem;
}

.u-fbe98b0a2a {
  max-width: 400px;
}

/* INLINE STYLE UTILITIES END */

/* STAFF UTILITY CLASSES (Tailwind replacement) */
.flex { display: flex; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.flex-1 { flex: 1 1 0%; }
.grow { flex-grow: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-9 { gap: 2.25rem; }
.h-full { height: 100%; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.w-full { width: 100%; }
.size-full { width: 100%; height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-72 { min-width: 18rem; }
.max-w-\[1200px\] { max-width: 1200px; }
.max-w-\[280px\] { max-width: 280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.object-cover { object-fit: cover; }
.overflow-x-hidden { overflow-x: hidden; }
.text-white { color: #ffffff; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-\[22px\] { font-size: 22px; }
.text-\[33px\] { font-size: 33px; }
.text-\[53px\] { font-size: 53px; }
.text-\[\#00aaff\] { color: #00aaff; }
.text-\[\#bcbcbc\] { color: #bcbcbc; }
.text-\[\#d1d1d1\] { color: #d1d1d1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.underline { text-decoration: underline; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-\[\#2b3036\] { border-color: #2b3036; }
.bg-\[\#050505\] { background-color: #050505; }
.bg-\[\#1a1d22\] { background-color: #1a1d22; }
.bg-\[\#2b2b2b\] { background-color: #2b2b2b; }
.bg-red-600 { background-color: #dc2626; }
.bg-opacity-80 { opacity: 0.8; }
.bg-\[\#1a1d22\].bg-opacity-80 { background-color: rgba(26, 29, 34, 0.8); opacity: 1; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:text-white:hover { color: #ffffff; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.group\/design-root { position: relative; }

@media (min-width: 768px) {
  .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .md\:px-20 { padding-left: 5rem; padding-right: 5rem; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/3 { width: 33.333333%; }
  .lg\:px-40 { padding-left: 10rem; padding-right: 10rem; }
}

/* Breach Protocol styles merged from htmltobreachprotocol/styles.css */
.breach-protocol-page {
  --bp-red-700: #6b0f0f;
  --bp-red-500: #b51919;
  --bp-red-300: #ff6b6b;
  --bp-white: #f5f5f5;
  --bp-gray-200: #c9c9c9;
  --bp-gray-900: #121212;
  --bp-black: #0a0a0a;
  --bp-glow: rgba(255, 55, 55, 0.45);
  --bp-font-main: "Orbitron", "Space Grotesk", sans-serif;
  --bp-font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 55, 55, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 55, 55, 0.12), transparent 45%),
    linear-gradient(145deg, #0a0a0a 0%, #141414 55%, #0f0f0f 100%);
  color: var(--bp-white);
  font-family: var(--bp-font-main);
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

.breach-protocol-page .grid-glow {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(255, 55, 55, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 55, 55, 0.1) 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: 0.12;
  pointer-events: none;
}

.breach-protocol-page .topbar,
.breach-protocol-page .panel,
.breach-protocol-page .btn,
.breach-protocol-page .pill,
.breach-protocol-page .btn-icon,
.breach-protocol-page .layout,
.breach-protocol-page .panel-header,
.breach-protocol-page .menu-list,
.breach-protocol-page .stat-grid,
.breach-protocol-page .preset-group,
.breach-protocol-page .icon-row,
.breach-protocol-page .preset-row,
.breach-protocol-page .panel-row,
.breach-protocol-page .actions,
.breach-protocol-page .status,
.breach-protocol-page .brand {
  font-family: inherit;
}

.breach-protocol-page .topbar { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255, 55, 55, 0.3); background: linear-gradient(120deg, rgba(76, 12, 12, 0.6), rgba(18, 18, 18, 0.9)); padding: 16px 20px; border-radius: 14px; box-shadow: 0 0 20px rgba(255, 55, 55, 0.15); margin-bottom: 24px; }
.breach-protocol-page .brand { display: flex; gap: 14px; align-items: center; }
.breach-protocol-page .brand-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--bp-red-500), var(--bp-red-300)); box-shadow: 0 0 16px var(--bp-glow); }
.breach-protocol-page .brand-title { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.breach-protocol-page .brand-sub { font-size: 0.7rem; color: var(--bp-gray-200); letter-spacing: 0.2em; text-transform: uppercase; }
.breach-protocol-page .status { display: flex; align-items: center; gap: 12px; font-family: var(--bp-font-mono); color: var(--bp-gray-200); }
.breach-protocol-page .pill { font-size: 0.7rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 55, 55, 0.6); background: rgba(255, 55, 55, 0.12); text-transform: uppercase; letter-spacing: 0.12em; }
.breach-protocol-page .layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.breach-protocol-page .panel { background: linear-gradient(160deg, rgba(17, 17, 17, 0.95), rgba(27, 27, 27, 0.85)); border: 1px solid rgba(255, 55, 55, 0.25); border-radius: 16px; padding: 20px; box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4); }
.breach-protocol-page .panel--raised { box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.35); }
.breach-protocol-page .panel--outline { background: rgba(8, 8, 8, 0.4); border: 1px solid rgba(255, 107, 107, 0.45); box-shadow: none; }
.breach-protocol-page .panel--flat { background: rgba(10, 10, 10, 0.8); box-shadow: none; }
.breach-protocol-page .panel--edge { border-left: 3px solid var(--bp-red-300); background: rgba(12, 12, 12, 0.75); box-shadow: none; }
.breach-protocol-page .panel--glass { background: rgba(20, 20, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 30px rgba(255, 55, 55, 0.08); backdrop-filter: blur(12px); }
.breach-protocol-page .panel--frame { background: rgba(10, 10, 10, 0.7); border: 1px solid rgba(255, 55, 55, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 18px rgba(0, 0, 0, 0.5); }
.breach-protocol-page .panel--split { background: linear-gradient(90deg, rgba(255, 55, 55, 0.12), rgba(12, 12, 12, 0.8)); border: 1px solid rgba(255, 55, 55, 0.3); box-shadow: none; }
.breach-protocol-page .panel--glow { background: rgba(12, 12, 12, 0.8); border: 1px solid rgba(255, 55, 55, 0.4); box-shadow: 0 0 18px rgba(255, 55, 55, 0.25); }
.breach-protocol-page .panel--heavy { background: rgba(6, 6, 6, 0.95); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6); }
.breach-protocol-page .panel--cut { background: rgba(14, 14, 14, 0.85); border: 1px solid rgba(255, 55, 55, 0.3); clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 0 100%); box-shadow: none; }
.breach-protocol-page .panel--dense { padding: 12px 14px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.breach-protocol-page .panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.breach-protocol-page .panel-header h1, .breach-protocol-page .panel-header h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.breach-protocol-page .menu-list { display: grid; gap: 12px; }
.breach-protocol-page .btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: var(--bp-white); font-family: var(--bp-font-main); text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; }
.breach-protocol-page .btn--primary { background: linear-gradient(135deg, var(--bp-red-700), var(--bp-red-300)); border: none; box-shadow: 0 0 14px var(--bp-glow); }
.breach-protocol-page .btn--outline { background: transparent; border: 1px solid rgba(255, 107, 107, 0.6); }
.breach-protocol-page .btn--soft { background: rgba(255, 55, 55, 0.12); border: 1px solid rgba(255, 55, 55, 0.3); }
.breach-protocol-page .btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); }
.breach-protocol-page .btn--danger { background: rgba(255, 55, 55, 0.18); border: 1px solid rgba(255, 55, 55, 0.5); }
.breach-protocol-page .btn--muted { background: rgba(255, 255, 255, 0.03); color: var(--bp-gray-200); }
.breach-protocol-page .btn--wide { width: 100%; justify-content: flex-start; }
.breach-protocol-page .btn--compact { padding: 6px 12px; font-size: 0.75rem; letter-spacing: 0.12em; }
.breach-protocol-page .btn--square { width: 44px; height: 44px; padding: 0; justify-content: center; }
.breach-protocol-page .btn-icon { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; color: var(--bp-white); cursor: pointer; }
.breach-protocol-page .icon { width: 18px; height: 18px; display: inline-block; background-color: currentColor; mask-size: cover; mask-repeat: no-repeat; mask-position: center; }
.breach-protocol-page .icon--play { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M8 5v14l11-7z'/></svg>"); }
.breach-protocol-page .icon--back { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 6l-6 6 6 6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.breach-protocol-page .icon--grid { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/></svg>"); }
.breach-protocol-page .icon--shield { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2l8 4v6c0 5-3.4 9.4-8 10-4.6-.6-8-5-8-10V6l8-4z'/></svg>"); }
.breach-protocol-page .icon--bolt { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/></svg>"); }
.breach-protocol-page .icon--eye { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12zm11 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/></svg>"); }
.breach-protocol-page .icon--settings { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zm8.6 3.1-.9-.5.1-1.2-1.3-2.2-1.1.2-.7-.9-2.5-.7-.6 1-1.2-.1-2.2 1.3.2 1.1-.9.7-.7 2.5 1 .6-.1 1.2 1.3 2.2 1.1-.2.7.9 2.5.7.6-1 1.2.1 2.2-1.3-.2-1.1.9-.7.7-2.5z'/></svg>"); }
.breach-protocol-page .icon--audio { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 9v6h4l5 4V5L8 9H4zm11.5 3a4.5 4.5 0 0 0-2.2-3.9v7.8a4.5 4.5 0 0 0 2.2-3.9zm2.5 0a7 7 0 0 0-3.7-6.2v12.4A7 7 0 0 0 18 12z'/></svg>"); }
.breach-protocol-page .icon--save { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M5 3h11l3 3v15H5V3zm2 2v4h8V5H7zm0 8v6h10v-6H7z'/></svg>"); }
.breach-protocol-page .icon--map { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2a6 6 0 0 0-6 6c0 4.5 6 12 6 12s6-7.5 6-12a6 6 0 0 0-6-6zm0 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/></svg>"); }
.breach-protocol-page .icon--info { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M11 10h2v7h-2zm0-3h2v2h-2zm1-5a10 10 0 1 0 0 20 10 10 0 0 0 0-20z'/></svg>"); }
.breach-protocol-page .icon--power { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M11 2h2v10h-2V2zm6.7 3.3-1.4 1.4A7 7 0 1 1 7.7 6.7L6.3 5.3A9 9 0 1 0 21 12a8.9 8.9 0 0 0-3.3-6.7z'/></svg>"); }
.breach-protocol-page .stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-family: var(--bp-font-mono); }
.breach-protocol-page .stat-grid span { display: block; font-size: 0.7rem; color: var(--bp-gray-200); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.breach-protocol-page .pill--solid { background: rgba(255, 55, 55, 0.25); border-color: rgba(255, 55, 55, 0.8); }
.breach-protocol-page .pill--muted { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: var(--bp-gray-200); }
.breach-protocol-page .preset-group { margin-top: 18px; display: grid; gap: 12px; }
.breach-protocol-page .preset-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--bp-gray-200); }
.breach-protocol-page .icon-row { display: flex; flex-wrap: wrap; gap: 10px; }
.breach-protocol-page .preset-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.breach-protocol-page .panel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.breach-protocol-page .actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

@media (max-width: 900px) {
  .breach-protocol-page .layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .breach-protocol-page { padding: 16px; }
  .breach-protocol-page .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .breach-protocol-page .actions { justify-content: stretch; flex-direction: column; }
  .breach-protocol-page .btn { width: 100%; justify-content: center; }
}

/* ========================================
   TERMS OF SERVICE PAGE
   ======================================== */
.tos-page .shell {
  width: min(1100px, calc(100% - 2rem));
}

.tos-page .legal-doc {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 12px;
  padding: 1.4rem;
}

.tos-page .header {
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bp-border);
}

.tos-page .brand h1 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.tos-page .lead {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  background: var(--bp-surface-soft);
  color: var(--bp-text-muted);
  font-size: 0.92rem;
}

.tos-page .legal-doc > p {
  color: var(--bp-text-muted);
  max-width: 90ch;
  line-height: 1.75;
  margin-bottom: 0.95rem;
}

.tos-page .legal-doc > p:last-child {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--bp-border);
  font-size: 0.92rem;
}

.tos-page .section {
  width: 100%;
  margin: 1rem 0 0;
  border: 1px solid var(--bp-border);
  border-radius: 10px;
  background: var(--bp-surface-soft);
  padding: 1.15rem;
}

.tos-page .section h2 {
  font-size: 1.08rem;
  letter-spacing: 0.035em;
  line-height: 1.3;
  color: var(--bp-white);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--bp-border);
}

.tos-page .section h3 {
  margin: 1rem 0 0.55rem;
  color: var(--bp-white);
  font-size: 0.99rem;
  letter-spacing: 0.02em;
}

.tos-page .section > p {
  color: var(--bp-text-muted);
  max-width: 90ch;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.72;
}

.tos-page .section ul {
  margin: 0.2rem 0 0.9rem 1.2rem;
}

.tos-page .section li {
  color: var(--bp-text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.72;
  max-width: 88ch;
}

.tos-page .section li:last-child {
  margin-bottom: 0;
}

.tos-page .conf-levels-dropdown {
  margin-top: 0.9rem;
  border: 1px solid var(--bp-border);
  border-radius: 10px;
  background: rgba(5, 5, 5, 0.35);
  overflow: hidden;
}

.tos-page .conf-levels-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 0.9rem;
  font-weight: 600;
  color: var(--bp-white);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.tos-page .conf-levels-dropdown summary::-webkit-details-marker {
  display: none;
}

.tos-page .conf-levels-dropdown[open] summary {
  border-bottom-color: var(--bp-border);
}

.tos-page .conf-levels-dropdown > :not(summary) {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.tos-page .conf-levels-dropdown > p,
.tos-page .conf-levels-dropdown > ul,
.tos-page .conf-levels-dropdown > h3,
.tos-page .conf-levels-dropdown > h4,
.tos-page .conf-levels-dropdown .levels-table-wrap {
  margin-top: 0.8rem;
}

.tos-page .conf-levels-dropdown > :last-child {
  margin-bottom: 0.9rem;
}

.tos-page .conf-levels-dropdown h4 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-white);
}

.tos-page .conf-levels-dropdown .level-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.tos-page .conf-levels-dropdown .level-title {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  border: 1px solid transparent;
  margin-left: 0.45rem;
}

.tos-page .level-public .level-badge,
.tos-page .level-title.level-public {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #8ff3cc;
}

.tos-page .level-not-public .level-badge,
.tos-page .level-title.level-not-public {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.45);
  color: #9ec6ff;
}

.tos-page .level-confidential .level-badge,
.tos-page .level-title.level-confidential {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.45);
  color: #ffe38a;
}

.tos-page .level-frontier .level-badge,
.tos-page .level-title.level-frontier,
.tos-page .level-frontier-relic .level-badge {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
  color: #d9b0ff;
}

.tos-page .level-relic .level-badge,
.tos-page .level-title.level-relic {
  background: rgba(107, 114, 128, 0.28);
  border-color: rgba(156, 163, 175, 0.45);
  color: #e4e7ec;
}

.tos-page .level-restricted .level-badge,
.tos-page .level-title.level-restricted {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.45);
  color: #ffc996;
}

.tos-page .level-redacted .level-badge,
.tos-page .level-title.level-redacted {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffadad;
}

.tos-page .level-exceptional .level-badge,
.tos-page .level-title.level-exceptional {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.conf-page .tier-jump-panel {
  display: none;
}

.conf-page {
  scroll-behavior: smooth;
}

@media (min-width: 1360px) {
  .conf-page .shell {
    width: min(980px, calc(100% - 22rem));
  }

  .conf-page .tier-jump-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: fixed;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 0.8rem;
    border: 1px solid var(--bp-border);
    border-radius: 10px;
    background: rgba(16, 16, 16, 0.94);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    z-index: 40;
  }

  .conf-page .tier-jump-panel h3 {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-text-muted);
  }

  .conf-page .tier-jump-panel a {
    display: block;
    text-decoration: none;
    color: var(--bp-text);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    background: var(--bp-surface-soft);
    padding: 0.4rem 0.56rem;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .conf-page .tier-jump-panel a.level-public { color: #8ff3cc; }
  .conf-page .tier-jump-panel a.level-not-public { color: #9ec6ff; }
  .conf-page .tier-jump-panel a.level-confidential { color: #ffe38a; }
  .conf-page .tier-jump-panel a.level-frontier { color: #d9b0ff; }
  .conf-page .tier-jump-panel a.level-relic { color: #e4e7ec; }
  .conf-page .tier-jump-panel a.level-restricted { color: #ffc996; }
  .conf-page .tier-jump-panel a.level-redacted { color: #ffadad; }
  .conf-page .tier-jump-panel a.level-exceptional {
    color: #ffffff;
    background: #000000;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .conf-page .tier-jump-panel a:hover,
  .conf-page .tier-jump-panel a:focus-visible {
    background: var(--bp-white);
    color: var(--bp-black);
    outline: none;
  }

  .conf-page .conf-levels-dropdown [id] {
    scroll-margin-top: 1rem;
  }
}

.tos-page .levels-table-wrap {
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  overflow-x: auto;
}

.tos-page .levels-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.tos-page .levels-table th,
.tos-page .levels-table td {
  border-bottom: 1px solid var(--bp-border);
  padding: 0.58rem 0.68rem;
  text-align: left;
  color: var(--bp-text-muted);
  vertical-align: top;
}

.tos-page .levels-table th {
  color: var(--bp-white);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.03);
}

.tos-page .levels-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .tos-page .legal-doc {
    padding: 1.05rem;
  }

  .tos-page .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tos-page .back {
    width: auto;
  }

  .tos-page .section {
    padding: 1rem;
  }

  .tos-page .conf-levels-dropdown > :not(summary) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ========================================
   DASHBOARD MOBILE POLISH
   ======================================== */
.dashboard-container .view-btn.active {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
}

.dashboard-container .task-compact-toggle {
  display: none;
}

.dashboard-container .task-icon-strip {
  display: none;
}

.dashboard-container .bug-compact-toggle,
.dashboard-container .bug-icon-strip {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-container .sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
    z-index: auto;
  }

  .dashboard-container .sidebar-top {
    position: static;
    top: auto;
    z-index: auto;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }

  .dashboard-container .sidebar nav {
    overflow-y: visible;
  }

  .dashboard-container .user-info {
    margin-top: 0;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
  }

  .dashboard-container .main-content {
    margin-left: 0;
    padding: 0.9rem;
  }

  .dashboard-container .task-card {
    padding: 0.75rem !important;
    border-radius: 10px !important;
  }

  .dashboard-container .task-compact-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
  }

  .dashboard-container .task-icon-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.4rem;
  }

  .dashboard-container .task-icon-badge {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--hover-bg);
    font-size: 0.72rem;
    line-height: 1;
  }

  .dashboard-container .task-icon-priority-high {
    background: rgba(235, 87, 87, 0.18);
    color: #eb5757;
    border-color: rgba(235, 87, 87, 0.45);
  }

  .dashboard-container .task-icon-priority-medium {
    background: rgba(242, 153, 78, 0.2);
    color: #f2994e;
    border-color: rgba(242, 153, 78, 0.45);
  }

  .dashboard-container .task-icon-priority-low {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.45);
  }

  .dashboard-container .task-icon-status-completed {
    background: rgba(39, 174, 96, 0.18);
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.42);
  }

  .dashboard-container .task-icon-status-pending,
  .dashboard-container .task-icon-status-in-progress,
  .dashboard-container .task-icon-status-in_progress {
    background: rgba(0, 212, 255, 0.16);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.38);
  }

  .dashboard-container .task-icon-status-planned {
    background: rgba(102, 126, 234, 0.16);
    color: #8ea2ff;
    border-color: rgba(142, 162, 255, 0.4);
  }

  .dashboard-container .task-icon-status-upcoming {
    background: rgba(168, 85, 247, 0.2);
    color: #d7b7ff;
    border-color: rgba(168, 85, 247, 0.42);
  }

  .dashboard-container .task-icon-status-canceled,
  .dashboard-container .task-icon-status-cancelled {
    background: rgba(235, 87, 87, 0.16);
    color: #eb5757;
    border-color: rgba(235, 87, 87, 0.4);
  }

  .dashboard-container .task-icon-assignee.is-me {
    background: rgba(39, 174, 96, 0.18);
    border-color: rgba(39, 174, 96, 0.4);
    color: #27ae60;
  }

  .dashboard-container .task-icon-assignee.not-me {
    background: rgba(142, 150, 163, 0.18);
    border-color: rgba(142, 150, 163, 0.4);
    color: #b0bac8;
  }

  .dashboard-container .task-icon-critical {
    animation: taskCriticalPulse 1.15s ease-in-out infinite;
  }

  @keyframes taskCriticalPulse {
    0%,
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(235, 87, 87, 0);
    }
    50% {
      transform: scale(1.08);
      box-shadow: 0 0 0 4px rgba(235, 87, 87, 0.22);
    }
  }

  .dashboard-container .task-card .task-compact-details {
    display: none;
  }

  .dashboard-container .task-card.compact-open .task-compact-details {
    display: block;
  }

  .dashboard-container .task-card-header {
    margin-bottom: 0.55rem !important;
  }

  .dashboard-container .task-title {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  .dashboard-container .task-description {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin: 0 0 0.55rem !important;
  }

  .dashboard-container .task-meta-row {
    margin-bottom: 0.55rem !important;
    gap: 0.35rem !important;
  }

  .dashboard-container .task-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    line-height: 1.1;
    font-weight: 600 !important;
  }

  .dashboard-container .task-pill-priority::before {
    content: "\26A1";
    font-size: 0.72rem;
  }

  .dashboard-container .task-pill-status::before {
    content: "\25CF";
    font-size: 0.6rem;
  }

  .dashboard-container .task-pill-start::before {
    content: "\1F4C5";
    font-size: 0.72rem;
  }

  .dashboard-container .task-footer {
    gap: 0.25rem;
    margin-top: 0.35rem;
  }

  .dashboard-container .task-assignee,
  .dashboard-container .task-branch,
  .dashboard-container .task-category {
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    font-size: 0.68rem;
    gap: 0.2rem;
  }

  .dashboard-container .task-assignee::before {
    content: "\1F464";
  }

  .dashboard-container .task-branch::before {
    content: "\1F9E9";
  }

  .dashboard-container .task-category::before {
    content: "\1F3F7";
  }

  .dashboard-container .task-subtask-actions {
    margin-top: 0.45rem !important;
    gap: 0.35rem !important;
  }

  .dashboard-container .task-subtask-toggle,
  .dashboard-container .task-subtask-add {
    font-size: 0.72rem !important;
    padding: 0.22rem 0.48rem !important;
    border-radius: 999px !important;
  }

  .dashboard-container .deadline-indicator {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.65rem !important;
  }

  .dashboard-container .task-card:hover {
    transform: none;
    padding-left: 0.75rem;
  }

  .dashboard-container .bugs-mobile-grid {
    padding: 0.9rem;
    display: grid;
    gap: 0.7rem;
  }

  .dashboard-container .bug-card {
    border-radius: 10px !important;
    padding: 0.75rem !important;
  }

  .dashboard-container .bug-icon-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.1rem 0 0.4rem;
  }

  .dashboard-container .bug-icon-badge {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--hover-bg);
    font-size: 0.72rem;
    line-height: 1;
  }

  .dashboard-container .bug-icon-priority-critical {
    background: rgba(235, 87, 87, 0.18);
    border-color: rgba(235, 87, 87, 0.45);
    color: #eb5757;
  }

  .dashboard-container .bug-icon-priority-high {
    background: rgba(242, 153, 78, 0.18);
    border-color: rgba(242, 153, 78, 0.45);
    color: #f2994e;
  }

  .dashboard-container .bug-icon-priority-medium {
    background: rgba(0, 212, 255, 0.18);
    border-color: rgba(0, 212, 255, 0.42);
    color: #00d4ff;
  }

  .dashboard-container .bug-icon-priority-low {
    background: rgba(39, 174, 96, 0.18);
    border-color: rgba(39, 174, 96, 0.42);
    color: #27ae60;
  }

  .dashboard-container .bug-icon-category-game {
    background: rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.42);
    color: #98aaff;
  }

  .dashboard-container .bug-icon-category-web {
    background: rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
  }

  .dashboard-container .bug-icon-category-other {
    background: rgba(142, 150, 163, 0.18);
    border-color: rgba(142, 150, 163, 0.4);
    color: #b0bac8;
  }

  .dashboard-container .bug-icon-assignee.is-me {
    background: rgba(39, 174, 96, 0.18);
    border-color: rgba(39, 174, 96, 0.4);
    color: #27ae60;
  }

  .dashboard-container .bug-icon-assignee.not-me {
    background: rgba(142, 150, 163, 0.18);
    border-color: rgba(142, 150, 163, 0.4);
    color: #b0bac8;
  }

  .dashboard-container .bug-compact-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
    margin-bottom: 0.4rem;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
  }

  .dashboard-container .bug-card .bug-compact-details {
    display: none;
  }

  .dashboard-container .bug-card.compact-open .bug-compact-details {
    display: block;
  }
}

@media (max-width: 900px) {
  #resources-section .resources-tabs,
  #quick-dev-notes-section .resources-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
  }

  #resources-section .resources-tab-btn,
  #quick-dev-notes-section .resources-tab-btn {
    min-width: 0;
    padding: 0.52rem 0.72rem;
    border-radius: 8px;
  }

  #resources-section .resources-tab-title,
  #quick-dev-notes-section .resources-tab-title {
    font-size: 0.82rem;
  }

  #resources-section .resources-tab-subtitle,
  #quick-dev-notes-section .resources-tab-subtitle {
    font-size: 0.7rem;
  }

  #resources-section .resources-panel-header {
    margin-bottom: 0.75rem;
  }

  #resources-section .resources-panel-actions {
    width: 100%;
  }

  #resources-section .resources-panel-actions .btn-primary {
    width: 100%;
  }

  #resourcesContainer {
    display: grid;
    gap: 0.62rem;
  }

  #resourcesContainer > div {
    display: block !important;
    padding: 0.8rem !important;
    border-radius: 10px !important;
  }

  #resourcesContainer > div h3 {
    font-size: 0.92rem;
    margin-bottom: 0.35rem !important;
  }

  #resourcesContainer > div p {
    font-size: 0.8rem !important;
    margin-bottom: 0.55rem !important;
  }

  #resourcesContainer > div > div:last-child {
    margin-top: 0.6rem;
  }

  #staff-card-section .u-1df16cd7f0 {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  #staff-card-section .u-c4cec173c4,
  #staff-card-section .u-af9bd09b64 {
    padding: 0.85rem;
    border-radius: 10px;
  }

  #staff-card-section .form-group label {
    font-size: 0.76rem;
  }

  #staff-card-section .form-group input,
  #staff-card-section .form-group textarea,
  #staff-card-section .form-group select {
    font-size: 0.84rem;
    padding: 0.48rem 0.62rem;
  }

  #staff-card-section .u-c4cec173c4,
  #staff-card-section .u-5fec6b39e3,
  #staff-card-section .u-696da6315e {
    min-width: 0;
    width: 100%;
  }

  #staff-card-section .u-5fec6b39e3 {
    padding: 0.75rem;
  }

  #staff-card-section .u-696da6315e {
    padding: 0.8rem;
  }

  #staff-card-section .u-55fa2208d3 {
    grid-template-columns: 1fr;
  }

  #staff-card-section .staff-card-link-row {
    grid-template-columns: 1fr;
  }

  #staff-card-section .staff-card-text-row {
    grid-template-columns: 1fr;
  }

  #staff-card-section .staff-card-list-row .btn-delete {
    width: 100%;
    justify-self: stretch;
  }

  #lists-section .lists-container {
    gap: 0.72rem;
  }

  #lists-section .list-header {
    padding: 0.72rem 0.78rem;
  }

  #lists-section .list-body {
    padding: 0.72rem;
  }

  #lists-section .list-item-form {
    gap: 0.42rem;
  }

  #lists-section .list-items-table {
    font-size: 0.8rem;
  }

  #lists-section .list-items-table th,
  #lists-section .list-items-table td {
    padding: 0.42rem 0.45rem;
  }

  #quick-dev-notes-section .idea-card,
  #ideas-section .idea-card,
  #release-notes-section .release-note-card {
    border-radius: 10px;
    padding: 0.78rem;
  }

  #quick-dev-notes-section .idea-actions,
  #ideas-section .idea-actions,
  #release-notes-section .section-header .btn-primary {
    width: 100%;
  }

  #quick-dev-notes-section .idea-actions .btn-small,
  #ideas-section .idea-actions .btn-small,
  #ideas-section .idea-admin-actions .btn-small {
    flex: 1;
    min-width: 0;
  }

  #quick-dev-notes-section .idea-meta,
  #ideas-section .idea-meta {
    gap: 0.3rem;
  }

  #quick-dev-notes-section .idea-meta > span:not(.idea-badge),
  #ideas-section .idea-meta > span:not(.idea-badge) {
    font-size: 0.73rem;
    color: var(--text-secondary);
  }

  #quick-dev-notes-section .view-selector,
  #ideas-section .view-selector {
    gap: 0.35rem;
    padding-bottom: 0.2rem;
  }

  #quick-dev-notes-section .view-btn,
  #ideas-section .view-btn {
    padding: 0.35rem 0.62rem;
    font-size: 0.78rem;
  }

  #release-notes-section .u-abed483693 {
    margin-bottom: 0.7rem;
  }

  #release-notes-section .release-meta {
    font-size: 0.72rem;
  }

  #release-notes-section .release-body {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  #timeline-section .section-header {
    gap: 0.5rem;
  }

  #timeline-section .section-header select {
    width: 100%;
  }

  #timelineContainer,
  .gantt-container {
    overflow-x: hidden !important;
  }

  #calendarContainer,
  .gantt-scroll-area {
    overflow-x: auto !important;
  }

  #timelineContainer > div {
    padding: 0.8rem !important;
  }

  .gantt-shell {
    padding: 0.8rem;
  }

  .calendar-controls {
    padding: 0.62rem 0.72rem;
  }

  .calendar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-nav button {
    width: 100%;
    padding: 0.34rem 0.45rem;
    font-size: 0.76rem;
  }

  .calendar-month-year {
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
  }
}

/* ========================================
   CLI PAGE STYLES - MATCH DASHBOARD DESIGN
   ======================================== */

.cli-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

.cli-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
}

/* Fade animation for desktop tab/content switching */
@media (min-width: 901px) {
  .content-section {
    animation: fadeInSection 0.3s ease forwards;
  }

  .nav-panel-content {
    animation: panelExpand 0.2s ease forwards;
  }

  .view-btn.active {
    animation: activeTabPulse 0.3s ease;
  }

  .task-card,
  .team-card,
  .report-card,
  .list-card {
    animation: fadeInCard 0.3s ease forwards;
  }
}

/* Content section animation */
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes activeTabPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.cli-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
}

/* CLI Header */
.cli-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cli-header h1 {
  font-family: var(--font-futuristic);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.25rem 0 0;
  letter-spacing: 0.02em;
}

.cli-header .eyebrow {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.cli-header p:last-child {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.cli-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.cli-back-link:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  transform: translateX(-2px);
}

/* CLI Grid Layout */
.cli-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  flex: 1;
}

@media (max-width: 900px) {
  .cli-grid {
    grid-template-columns: 1fr;
  }

  .cli-sidebar {
    order: -1;
  }

  .cli-header {
    flex-direction: column;
  }
}

/* CLI Terminal */
.cli-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  animation: fadeInSection 0.3s ease forwards;
}

.cli-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.cli-terminal-dots {
  display: flex;
  gap: 0.375rem;
}

.cli-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.cli-terminal-dots span:first-child { background: #ff5f57; }
.cli-terminal-dots span:nth-child(2) { background: #febc2e; }
.cli-terminal-dots span:last-child { background: #28c840; }

#cliTitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
}

.cli-status-pill {
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cli-status-pill.online {
  background: rgba(40, 200, 64, 0.15);
  color: #28c840;
  border-color: rgba(40, 200, 64, 0.3);
}

.cli-status-pill.checking {
  background: rgba(254, 188, 46, 0.15);
  color: #febc2e;
  border-color: rgba(254, 188, 46, 0.3);
}

/* CLI Output Area */
.cli-terminal-output {
  flex: 1;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.cli-terminal-output::-webkit-scrollbar {
  width: 6px;
}

.cli-terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

.cli-terminal-output::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.cli-output-line {
  margin-bottom: 0.25rem;
  animation: fadeInCard 0.2s ease forwards;
}

.cli-output-line.error {
  color: var(--accent-red);
}

.cli-output-line.success {
  color: #28c840;
}

.cli-output-line.system {
  color: var(--accent-cyan);
}

/* CLI Input Row */
.cli-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

.cli-prompt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  font-weight: 600;
  white-space: nowrap;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  outline: none;
}

.cli-input::placeholder {
  color: var(--text-tertiary);
}

.cli-run-button {
  padding: 0.375rem 0.875rem;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cli-run-button:hover {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.cli-run-button:active {
  transform: scale(0.96);
}

/* CLI Command Chips */
.cli-command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cli-chip {
  padding: 0.25rem 0.625rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cli-chip:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
}

.cli-chip:active {
  transform: scale(0.96);
}

/* CLI Sidebar */
.cli-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  height: fit-content;
  animation: fadeInSection 0.3s ease forwards;
}

.cli-sidebar h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.cli-sidebar p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 0 0 0.75rem;
}

.cli-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cli-sidebar li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.cli-sidebar code {
  padding: 0.125rem 0.375rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.cli-sidebar .tip {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}


