/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Colors */
  --bg-app: #0b0f19;
  --bg-surface: #121826;
  --bg-surface-elevated: #1e2538;
  --bg-input: #171d2c;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-color: #242c3d;
  --border-focus: #4b5563;
  
  /* Brand Accents (Embark Brand Palette) */
  --brand-orange: #f97316;
  --brand-teal: #14b8a6;
  --brand-coral: #ef4444;
  --brand-orange-rgb: 249, 115, 22;
  --brand-teal-rgb: 20, 184, 166;
  
  /* Difficulty Indicators */
  --easy-color: #10b981;
  --medium-color: #f59e0b;
  --medium-hard-color: #f97316;
  --hard-color: #ef4444;
  
  /* Layout & Elevations */
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 3px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(20, 184, 166, 0.2);
  
  /* Animations */
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

:root[data-theme="light"] {
  --bg-app: #faf8ff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f0fb;
  --bg-input: #eaeafa;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #d2d9f4;
  --border-focus: #9ca3af;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px rgba(20, 184, 166, 0.1);
}

/* ==========================================================================
   GLOBAL RESET & BASICS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 76px; /* Space for sticky nav */
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   APP CONTAINER & NAVIGATION
   ========================================================================== */
#app {
  max-width: 480px; /* Constrain on desktop, center it */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.app-header {
  background-color: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-info h1 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.brand-info .subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Progress Circle Animation */
.progress-circle-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-circle {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 3.5;
}

.progress-circle circle.bg {
  stroke: var(--border-color);
}

.progress-circle circle.fg {
  stroke: var(--brand-teal);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease-out;
  filter: drop-shadow(0 0 3px rgba(20, 184, 166, 0.4));
}

.progress-circle-wrapper .progress-text {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-teal);
}

/* Sticky Bottom Navigation */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

/* Constrain nav bar width matching app bounds on desktop - removed width constraint to stretch full width on mobile site */

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  width: 25%;
  height: 100%;
  transition: var(--transition-fast);
}

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition-fast);
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--brand-teal);
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 5px rgba(20, 184, 166, 0.3));
}

/* ==========================================================================
   APP VIEWS
   ========================================================================== */
.app-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px 0;
}

.section-title h2 {
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.view-all-link {
  font-size: 0.8rem;
  color: var(--brand-teal);
  font-weight: 500;
}

/* ==========================================================================
   CARDS & COMMON LAYOUTS
   ========================================================================== */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card:hover {
  border-color: var(--border-focus);
}

/* ==========================================================================
   VIEW: DASHBOARD SPECIFICS
   ========================================================================== */
.dashboard-header-block {
  margin-bottom: 20px;
}

.dashboard-welcome h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.dashboard-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.dashboard-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.quick-stat-block {
  display: flex;
  flex-direction: column;
}

.quick-stat-block .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.quick-stat-block .stat-main-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.quick-stat-block .stat-sub-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.text-accent {
  color: var(--brand-orange);
}

/* Progress bar elements */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-input);
  border-radius: var(--radius-pill);
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.phase1 { background: var(--brand-orange); }
.progress-bar-fill.phase2 { background: var(--brand-teal); }
.progress-bar-fill.phase3 { background: var(--brand-coral); }
#dash-stage-progress-fill { background: var(--brand-teal); }

/* Phase Progression Cards Container */
.phase-progression-cards {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.phase-progress-card {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-bottom: 0;
}

.phase-progress-card:last-child {
  border-bottom: none;
}

.phase-progress-card:hover {
  background-color: var(--bg-surface-elevated);
}

/* Recommended Task List Container */
#dash-next-tasks {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phase-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.phase-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-orange);
  letter-spacing: 0.05em;
}

.phase-title-info h3 {
  font-size: 0.95rem;
  margin: 2px 0;
}

.phase-title-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phase-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   VIEW: CHECKLIST & LISTING ITEMS
   ========================================================================== */
.sticky-filter-bar {
  background-color: var(--bg-app);
  padding: 4px 0 16px 0;
  position: sticky;
  top: 0; /* Align relative to scroll container top */
  z-index: 90;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.search-box input {
  flex: 1;
  margin-left: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

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

.filters-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.segmented-control {
  display: flex;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  flex: 2;
}

.segmented-control button {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 0;
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.segmented-control button.active {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.filter-dropdown {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.stage-scroller {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 4px;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.stage-scroller::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbar */
}

.stage-tab {
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.stage-tab.active {
  background-color: rgba(20, 184, 166, 0.15);
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

/* Task Item Listing Grid */
.tasks-container {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.task-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.task-item:last-child {
  border-bottom: none;
}

.task-item:hover {
  background-color: var(--bg-surface-elevated);
}

.task-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.task-item.completed .custom-checkbox {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.custom-checkbox svg {
  opacity: 0;
  stroke: var(--bg-app);
  stroke-width: 4;
  fill: none;
  transition: var(--transition-fast);
}

.task-item.completed .custom-checkbox svg {
  opacity: 1;
}

.task-item-content {
  flex: 1;
  min-width: 0; /* Enable text truncation */
}

.task-item-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-fast);
}

.task-item.completed .task-item-content h3 {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-cat { background-color: var(--bg-surface-elevated); color: var(--text-secondary); }
.badge-diff-easy { background-color: rgba(16, 185, 129, 0.1); color: var(--easy-color); }
.badge-diff-medium { background-color: rgba(245, 158, 11, 0.1); color: var(--medium-color); }
.badge-diff-medium-hard { background-color: rgba(249, 115, 22, 0.1); color: var(--medium-hard-color); }
.badge-diff-hard { background-color: rgba(239, 68, 68, 0.1); color: var(--hard-color); }

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

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   VIEW: GUIDED ROADMAP SPECIFICS
   ========================================================================= */
.roadmap-intro {
  margin-bottom: 20px;
}

.roadmap-intro h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.roadmap-intro p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.roadmap-timeline {
  position: relative;
  padding-left: 20px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  background: var(--border-color);
}

.roadmap-node {
  position: relative;
  margin-bottom: 24px;
}

.roadmap-bullet {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-app);
  border: 2px solid var(--border-focus);
  z-index: 5;
  transition: var(--transition-fast);
}

.roadmap-node.completed .roadmap-bullet {
  border-color: var(--brand-teal);
  background-color: var(--brand-teal);
  box-shadow: var(--shadow-glow);
}

.roadmap-node.current .roadmap-bullet {
  border-color: var(--brand-orange);
  background-color: var(--brand-orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.roadmap-node-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.roadmap-node.locked .roadmap-node-content {
  opacity: 0.5;
}

.roadmap-node-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.roadmap-node-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   VIEW: SETTINGS / PROFILE
   ========================================================================== */
.settings-header {
  margin-bottom: 24px;
}

.settings-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.settings-panel-card {
  padding: 24px;
  margin-bottom: 24px;
}

.settings-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

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

.settings-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-teal);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-section-danger {
  border-top: 1px solid rgba(239, 68, 68, 0.15);
  margin-top: 24px;
  padding-top: 24px;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
}

.form-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-teal);
  color: #0b0f19;
}

.btn-primary:hover {
  background-color: #11a292;
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #272f44;
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--brand-coral);
  color: var(--brand-coral);
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.25);
}

.btn-danger-text {
  color: var(--brand-coral);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-block {
  width: 100%;
}

.settings-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   VIEW: TASK DETAILS
   ========================================================================== */
.detail-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.detail-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
  cursor: pointer;
}

.detail-priority-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.detail-priority-star-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

.detail-priority-star-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
}

.detail-priority-star-btn.active {
  color: var(--brand-orange);
}

.detail-priority-star-btn.active svg {
  fill: var(--brand-orange);
  stroke: var(--brand-orange);
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.3));
}

.detail-stage-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange);
  background-color: rgba(249, 115, 22, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.detail-info-card h2 {
  font-size: 1.25rem;
  margin: 12px 0 8px 0;
}

.detail-meta {
  display: flex;
  gap: 6px;
}

.detail-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.detail-logistics {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.detail-deadline-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-orange);
  background-color: rgba(249, 115, 22, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.15);
  align-self: flex-start;
}

/* Tips Card */
.tips-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: rgba(20, 184, 166, 0.04);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.tips-icon-wrapper {
  background-color: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  filter: drop-shadow(0 0 4px rgba(20, 184, 166, 0.2));
  flex-shrink: 0;
}

#detail-tips {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.45;
}

/* Verification Card */
.completion-toggle-wrapper {
  margin-bottom: 16px;
}

.complete-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.complete-toggle-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.complete-toggle-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.complete-toggle-circle svg {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  opacity: 0;
  transform: scale(0.6);
  transition: stroke-dashoffset 0.35s ease 0.1s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, opacity 0.2s ease;
  color: #0b0f19;
}

.complete-toggle-btn.completed {
  border-color: var(--brand-teal);
  background-color: rgba(20, 184, 166, 0.08);
  color: var(--brand-teal);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.1);
}

.complete-toggle-btn.completed .complete-toggle-circle {
  border-color: var(--brand-teal);
  background-color: var(--brand-teal);
}

.complete-toggle-btn.completed .complete-toggle-circle svg {
  stroke-dashoffset: 0;
  opacity: 1;
  transform: scale(1);
}

.complete-toggle-btn:active {
  transform: scale(0.98);
}



/* Photo Upload Elements */
.photo-attachment-area {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.photo-preview-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-color: var(--bg-input);
  border: 1.5px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.photo-preview-box:hover {
  border-color: var(--border-focus);
}

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

.photo-preview-box .placeholder-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* ==========================================================================
   GLOBAL TOAST ALERT
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background-color: #1e293b;
  border: 1px solid var(--brand-teal);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   VIEW: PROGRAM OVERVIEW / STRUCTURE
   ========================================================================== */
.overview-intro {
  margin-bottom: 20px;
}

.overview-intro h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.overview-intro p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Phase Header Block */
.ov-phase {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.ov-phase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  border-radius: 0;
}

.ov-phase-header-info .ov-phase-number {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: 2px;
}

.ov-phase-header-info h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ov-phase-header-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ov-phase-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-teal);
  white-space: nowrap;
  padding-left: 12px;
}

/* Stage Card */
.ov-stage {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.ov-stage:last-child {
  border-bottom: none;
}

.ov-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  background-color: transparent;
}

.ov-stage-header:hover {
  background-color: var(--bg-surface-elevated);
}

.ov-stage-title-block {
  flex: 1;
  min-width: 0;
}

.ov-stage-timeframe {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-teal);
  margin-bottom: 2px;
}

.ov-stage-title-block h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.ov-stage-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov-stage-progress-bar {
  flex: 1;
  height: 4px;
  background-color: var(--bg-input);
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 100px;
}

.ov-stage-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--brand-teal);
  transition: width 0.4s ease;
}

.ov-stage-progress-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ov-stage-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-reward-chip {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-orange);
  background-color: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ov-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.ov-stage.open .ov-chevron {
  transform: rotate(180deg);
}

/* Stage Expanded Body */
.ov-stage-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0,1,0,1);
  background-color: rgba(0, 0, 0, 0.12);
}

.ov-stage.open .ov-stage-body {
  max-height: 2400px;
  transition: max-height 0.5s ease-in-out;
  border-bottom: 1px solid var(--border-color);
}

.ov-stage-body-inner {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Verification line */
.ov-verified-by {
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 8px 10px;
  background-color: var(--bg-input);
  border-radius: var(--radius-sm);
}

.ov-verified-by strong {
  color: var(--text-primary);
}

/* Group Block (the official named category) */
.ov-group {
  border: none;
  border-left: 2px solid var(--border-color);
  border-radius: 0;
  padding-left: 14px;
  margin-bottom: 4px;
  overflow: visible;
  background-color: transparent;
}

.ov-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 6px 0;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: transparent;
}

.ov-group-header:hover {
  background-color: transparent;
  opacity: 0.8;
}

.ov-group-header-left {
  flex: 1;
  min-width: 0;
}

.ov-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ov-group-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ov-group-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  flex-shrink: 0;
}

.ov-group-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ov-group-pct-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ov-group-pct-badge.done-0   { background: rgba(107,114,128,0.15); color: var(--text-muted); }
.ov-group-pct-badge.done-partial { background: rgba(245,158,11,0.12); color: var(--medium-color); }
.ov-group-pct-badge.done-100 { background: rgba(16,185,129,0.12); color: var(--easy-color); }

.ov-group-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.ov-group.open .ov-group-chevron {
  transform: rotate(180deg);
}

/* Group task list body */
.ov-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0,1,0,1);
}

.ov-group.open .ov-group-body {
  max-height: 1600px;
  transition: max-height 0.45s ease-in-out;
  border-top: none;
}

.ov-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: none;
}

.ov-task-row:last-child {
  border-bottom: none;
}

.ov-task-row:hover {
  background-color: transparent;
  color: var(--brand-teal);
}

.ov-task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.ov-task-dot.completed {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.ov-task-row-title {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-width: 0;
}

.ov-task-row.completed .ov-task-row-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ov-task-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Maintain compliance section */
.ov-maintain-section {
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.ov-maintain-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ov-maintain-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ov-maintain-item {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Card active state interaction & hover shifts */
.card, .task-item, .roadmap-node-content, .phase-progress-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast), background-color var(--transition-fast);
}

.card:active, .task-item:active, .roadmap-node-content:active, .phase-progress-card:active {
  transform: scale(0.97) !important;
}

.card:hover, .task-item:hover, .roadmap-node-content:hover {
  background-color: var(--bg-surface-elevated);
}

/* Custom Category Badges Color System */
.badge-cat-clinical-relational { background-color: rgba(20, 184, 166, 0.1) !important; color: var(--brand-teal) !important; }
.badge-cat-admin-compliance { background-color: rgba(139, 92, 246, 0.1) !important; color: #8b5cf6 !important; }
.badge-cat-core-training { background-color: rgba(59, 130, 246, 0.1) !important; color: #3b82f6 !important; }
.badge-cat-reading-study { background-color: rgba(249, 115, 22, 0.1) !important; color: var(--brand-orange) !important; }
.badge-cat-operational-duty { background-color: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }
.badge-cat-leadership-mentorship { background-color: rgba(236, 72, 153, 0.1) !important; color: #ec4899 !important; }

/* Desktop Fixed Sidebar Navigation */
.desktop-sidebar {
  display: none; /* Hidden on mobile */
  width: 256px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 24px 20px;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 101;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-logo-glow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.sidebar-brand h2 {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 700;
}

.sidebar-brand .subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sidebar Profile */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 0.9rem;
}

.avatar-status-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand-teal);
  border: 2px solid var(--bg-input);
}

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

.profile-details h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 0.7rem;
  color: var(--brand-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.profile-supervisor {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Header Action Bar */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sidebar Menu */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: auto; /* Push items below to bottom */
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition-fast);
}

.sidebar-nav-item:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background-color: rgba(20, 184, 166, 0.08);
  color: var(--brand-teal);
  border-left: 3px solid var(--brand-teal);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.sidebar-nav-item.active svg {
  filter: drop-shadow(0 0 4px rgba(20, 184, 166, 0.3));
}

/* Sidebar progress */
.sidebar-progress {
  border-top: 1px solid var(--border-color);
  padding: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.sidebar-progress .progress-info h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sidebar-progress .progress-info span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-teal);
}

/* Responsive Overrides for Widescreen Landscape Devices */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
  
  #app {
    max-width: 100%;
    margin: 0;
    flex-direction: row;
    box-shadow: none;
    background-color: var(--bg-app);
  }
  
  .desktop-sidebar {
    display: flex;
  }
  
  .app-header {
    display: none;
  }
  
  .app-nav {
    display: none;
  }
  
  .app-main {
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
    width: calc(100vw - 256px);
  }
  
  /* Dashboard View Columns */
  .dashboard-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
  }
  
  .dashboard-welcome {
    flex: 1;
  }
  
  .dashboard-quick-stats {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    width: 480px;
    flex-shrink: 0;
    gap: 32px;
  }

  .phase-progression-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    flex-direction: row;
  }
  
  .phase-progress-card {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    padding: 20px;
  }
  
  .phase-progress-card:last-child {
    border-right: none;
  }
  
  .next-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  /* Checklist View Grid */
  .tasks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .task-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
  }
  
  .task-item:hover {
    border-color: var(--border-focus);
  }
  
  .task-item:last-child {
    border-bottom: 1px solid var(--border-color); /* Restore bottom border for last item on desktop view */
  }
  
  .sticky-filter-bar {
    top: 0;
    padding-top: 0;
    padding-bottom: 20px;
    background-color: var(--bg-app);
  }
  
  /* Overview (Structure) View */
  #overview-structure-tree {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
  }
  
  .ov-phase {
    margin-bottom: 0;
  }
  
  /* Settings View Split */
  .settings-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* Theme Selection Button Styles (Settings View) */
.theme-selection-group {
  display: flex;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-top: 12px;
}

.theme-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
}

.theme-btn:hover {
  color: var(--text-primary);
}

.theme-btn.active {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--brand-teal) !important;
  box-shadow: var(--shadow-sm);
}

.theme-btn svg {
  stroke-width: 2.2;
}

/* ==========================================================================
   CHECKLIST SUB-NAVIGATION TABS
   ========================================================================== */
.checklist-subnav {
  margin-bottom: 20px;
  position: sticky;
  top: 0; /* Align relative to scroll container top */
  z-index: 95;
  background-color: var(--bg-app);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
  .checklist-subnav {
    top: 0;
    padding-top: 0;
  }
}

.subnav-control {
  max-width: 100%;
}

.checklist-subview-panel {
  display: none;
}

.checklist-subview-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Adjust sticky filter bar when sub-navigation is present */
.checklist-subview-panel .sticky-filter-bar {
  top: 54px; /* Positioned below sticky subnav */
}

@media (min-width: 1024px) {
  .checklist-subview-panel .sticky-filter-bar {
    top: 54px;
  }
}

/* ==========================================================================
   STAR/PRIORITY TOGGLE AND HIGHLIGHTS
   ========================================================================== */
.btn-priority-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-priority-toggle:hover {
  color: var(--brand-orange);
  transform: scale(1.15);
  background-color: rgba(249, 115, 22, 0.08);
}

.btn-priority-toggle.active {
  color: var(--brand-orange);
  filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4));
}

.btn-priority-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

/* Task Item Prioritized Highlight State */
.task-item.prioritized, .ov-task-row.prioritized {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.15), var(--shadow-sm);
  background-color: rgba(249, 115, 22, 0.03);
  position: relative;
  z-index: 2; /* Raise highlighted card to draw borders over neighbors */
}

.task-item.prioritized:hover, .ov-task-row.prioritized:hover {
  background-color: rgba(249, 115, 22, 0.06);
}

/* For structured overview items styling adjustments */
.ov-task-row.prioritized {
  border-left: 2px solid var(--brand-orange) !important;
  padding-left: 6px;
  margin-left: -8px;
  border-radius: 4px;
}

.ov-task-row {
  border-left: 2px solid transparent;
  padding-left: 6px;
  margin-left: -8px;
  border-radius: 4px;
}

/* Position adjustment in task DOM items */
.task-item-content {
  flex: 1;
  min-width: 0;
}

.task-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Priority Indicator inside detail view completion form */
.form-priority-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   ONBOARDING IMMERSIVE VIEW & SPECIAL STATES
   ========================================================================== */
#app.onboarding-mode {
  max-width: 440px;
  margin: 6vh auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-height: auto;
  overflow: hidden;
}

#app.onboarding-mode .app-header,
#app.onboarding-mode .app-nav,
#app.onboarding-mode .desktop-sidebar {
  display: none !important;
}

#app.onboarding-mode .app-main {
  width: 100% !important;
  padding: 24px;
  height: auto;
}

.onboarding-container {
  padding: 12px 6px;
}

.onboarding-welcome {
  text-align: center;
  margin-bottom: 24px;
}

.onboarding-welcome h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 12px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hidden {
  display: none !important;
}
