/* ==========================================================================
   PART 1: THEME SYSTEMS, GLOBAL TYPOGRAPHY, & ISOLATION BLINDERS
   ========================================================================== */
:root {
    /* Light Mode Variables - Highly Legible, Reduced Contrast Vibrancy */
    --bg-color: #f0f4f8;
    --panel-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --focus-bg: #eef2ff;
    --focus-border: #4f46e5;
    --high-urgency: #ef4444;
    --med-urgency: #f59e0b;
    --low-urgency: #10b981;
    --radius: 12px;
    --item-bg: #f8fafc;
    --step-bg: #ffffff;
    --step-border: #dbeafe;
}

[data-theme="dark"] {
    /* Sensory-Friendly Low-Fatigue Dark Mode Slates to Prevent Cognitive Fatigue */
    --bg-color: #0f172a;
    --panel-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #818cf8;
    --focus-bg: #1e1b4b;
    --focus-border: #6366f1;
    --item-bg: #334155;
    --step-bg: #1e293b;
    --step-border: #312e81;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.panel, .focus-box, .task-item, input, select, button { 
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; 
}


.container {
    max-width: 1100px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
}

header p {
    color: var(--text-muted);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.btn-theme {
    background: var(--panel-bg);
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-theme:hover {
    border-color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--panel-bg);
}

/* Visual Choice Blinder Full Screen Isolation Mode */
.blinder-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

body.blinder-scroll-lock {
  overflow: hidden !important;
  height: 100vh !important;
}


.blinder-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.hidden {
    display: none !important;
}





/* ==========================================================================
   PART 2: PANELS, INTENDED MATRIX LISTS, TIMERS, BADGES & INTERACTION FORMS
   ========================================================================== */
/* Cognitive Shield (Current Top Focus Box) */
.focus-box {
    background: var(--focus-bg);
    border: 2px solid var(--focus-border);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
}

.focus-box h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.active-focus-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.step-breakdown {
    background: var(--step-bg);
    border: 1px solid var(--step-border);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
}

.step-breakdown p {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-breakdown ol {
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

.step-breakdown li {
    margin-bottom: 0.35rem;
}

/* Consolidated Master Layout Dashboard Panel Structure */
.panel {
    background: var(--panel-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.panel h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* 🌟 VISUAL FIX: Forcing uniform layout text styling colors across inputs to prevent distractions 🌟 */
input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--text-muted);
    background-color: var(--panel-bg);
    color: var(--text-main) !important; /* Locks color values securely */
    border-radius: 6px;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: 2px solid var(--primary);
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap; /* Gracefully wrap columns on small viewports */
}

@media (max-width: 480px) {
  .form-row > div {
    flex: 1 1 100% !important; /* Forces vertical stacking on mobile */
  }
}


.btn-primary {
    background: var(--primary);
    color: var(--panel-bg);
    border: none;
    padding: 0.75rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(0.9);
}

/* Task Checklists & Color Codings */
.task-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-left: 5px solid transparent;
  background: var(--item-bg);
  border-radius: 4px;
  gap: 0.75rem; /* Enhanced separation gap padding */
  width: 100%;
}

/* Force the text content to stay contained and wrap predictably */
.task-item span:first-child {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  text-align: left;
}


.task-item.high { border-left-color: var(--high-urgency); }
.task-item.medium { border-left-color: var(--med-urgency); }
.task-item.low { border-left-color: var(--low-urgency); }

.task-item.hibernated {
    border-left: 5px solid #94a3b8;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(148, 163, 184, 0.05) 10px, rgba(148, 163, 184, 0.05) 20px);
}

.task-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-action {
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-done { background: #dcfce7; color: #15803d; }
[data-theme="dark"] .btn-done { background: #166534; color: #bbf7d0; }

.btn-help { background: #e0f2fe; color: #0369a1; }
[data-theme="dark"] .btn-help { background: #0c4a6e; color: #bae6fd; }

.empty-text {
    color: var(--text-muted);
    font-style: italic;
}

/* Compact Visual Tags & Badges */
.energy-badge {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    display: inline-block;
    vertical-align: middle;
}

.boosted-badge {
    background: var(--high-urgency);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 0.4rem;
    display: inline-block;
    vertical-align: middle;
}

.warning-badge {
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

[data-theme="dark"] .warning-badge { background: #d97706; }

.fixed-badge {
    background: var(--primary);
    color: var(--panel-bg);
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Focus Flow Timer Box */
.timer-box {
    border: 2px solid var(--text-muted);
    background: var(--panel-bg);
}

.timer-modes .btn-action {
    background: var(--bg-color);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 0.4rem 1rem;
    font-weight: 600;
}

.timer-modes .btn-action.active-mode-btn {
    background: var(--primary);
    color: var(--panel-bg);
    border-color: var(--primary);
}

/* Timeline Slices with Transition Margins */
.timeline-slot {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--text-muted);
}

.time-label {
    font-weight: bold;
    color: var(--primary);
    min-width: 65px;
    font-variant-numeric: tabular-nums;
}

.slot-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.slot-title { font-weight: 500; }

.timeline-slot.fixed-event {
    background-color: rgba(79, 70, 229, 0.08);
    border-left: 5px double var(--primary);
    padding-left: 0.5rem;
    border-radius: 4px;
}

[data-theme="dark"] .timeline-slot.fixed-event {
    background-color: rgba(129, 140, 248, 0.12);
}

/* Demand Avoidance Modal Frame Configuration */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    text-align: left;
}

.victory-panel .task-item {
    background: rgba(39, 174, 96, 0.05);
    border-left: 5px solid #27ae60;
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-bottom: 0.35rem;
}

[data-theme="dark"] .victory-panel .task-item {
    background: rgba(39, 174, 96, 0.1);
    color: #bbf7d0;
}







/* ==========================================================================
   PART 3: RESPONSIVE SWITCHES, SYSTEM CHANNELS & TACTILE "SNAP"VECTORS
   ========================================================================== */
@media (max-width: 600px) { 
  body { 
    padding: 1rem 0.75rem; 
  } 
  header { 
    margin-bottom: 2rem; 
  } 
  header h1 { 
    font-size: 2rem; 
  } 
  
  /* REMOVE flex-direction: column to keep items row-aligned and highly scannable */ 
  .task-item { 
    padding: 0.85rem; 
    gap: 0.5rem; 
  } 
  .task-actions { 
    justify-content: flex-end; 
    width: auto; 
  }

  .chime-bar { 
    text-align: center !important; 
    justify-content: center !important; 
    align-items: center !important; 
    width: 100% !important; 
  } 
  #cloud-sync-status-row { 
    justify-content: center !important; 
    flex-direction: column; 
    gap: 0.75rem !important; 
  } 
  #fixed-form, #task-form { 
    align-items: center !important; 
    width: 100%; 
  } 
  .task-actions .btn-action { 
    flex: 1; 
    min-width: 70px; 
    padding: 0.5rem; 
  } 
  .timeline-slot { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 0.35rem; 
    padding: 0.75rem 0; 
  } 
  .time-label { 
    min-width: auto; 
  } 
  .slot-content { 
    align-items: center; 
    text-align: center; 
  } 
} /* This single bracket cleanly closes out your entire media query wrapper */

/* 🎧 ACOUSTIC VISUAL DAMPENER DIMMING RULE */
.task-item.acoustic-dimmed, .timeline-slot.acoustic-dimmed {
    opacity: 0.15 !important;
    filter: grayscale(80%) blur(0.3px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Visual Theme Pill Selector Container */
.theme-pill-selector {
    display: inline-flex;
    background: var(--panel-bg);
    border: 1px solid var(--text-muted);
    padding: 0.2rem;
    border-radius: 30px;
    gap: 0.15rem;
}

.theme-pill-opt {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s cubic-bezier(0.19, 1, 0.22, 1), transform 0.1s ease;
}
.theme-pill-opt:hover { transform: scale(1.05); }
.theme-pill-opt.active {
    background: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Master Operating Mode Selector Interface Layouts */
.master-pill-selector {
    display: inline-flex;
    background: var(--panel-bg);
    border: 2px solid var(--primary);
    padding: 0.3rem;
    border-radius: 40px;
    gap: 0.25rem;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.master-pill-opt {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    /* ⚡ PREMIUM SNAP INTERFACE TRANSITION MATRICES */
    transition: background-color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
                color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 0.1s cubic-bezier(0.19, 1, 0.22, 1) !important;
}
.master-pill-opt:hover { color: var(--text-main); }
.master-pill-opt.active {
    background: var(--primary);
    color: var(--panel-bg) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
[data-theme="dark"] .master-pill-opt.active { box-shadow: 0 4px 12px rgba(129, 140, 248, 0.2); }

/* Acoustic Context Tag Buttons */
.btn-tag-filter {
    background: var(--bg-color);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-tag-filter:hover { border-color: var(--primary); color: var(--text-main); }
.btn-tag-filter.active-tag {
    background: var(--primary);
    color: var(--panel-bg);
    border-color: var(--primary);
}

.category-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    background: var(--bg-color);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    margin-right: 0.5rem;
}

button, .master-pill-opt, .theme-pill-opt, .btn-tag-filter {
    transition: background-color 0.08s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.08s cubic-bezier(0.19, 1, 0.22, 1), transform 0.05s ease-out, opacity 0.15s ease !important;
}
button:active, .master-pill-opt:active, .theme-pill-opt:active, .btn-tag-filter:active { transform: scale(0.97); }










/* ==========================================================================
   PART 4: HORIZONTAL MATRICES, CIRCULAR NODE CHIPS & 100% FULL-WIDTH OVERRIDES
   ========================================================================== */
/* 🌟 ALARM-FREE PATH SELECTION PILL MODULES 🌟 */
.engine-pill-selector {
    display: inline-flex;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    padding: 0.25rem;
    border-radius: 30px;
    gap: 0.2rem;
    max-width: 400px;
    width: 100%;
}
.engine-pill-opt { 
  flex: 1; 
  background: transparent; 
  border: none; 
  color: var(--text-muted); 
  font-size: 0.95rem; 
  font-weight: bold; 
  padding: 0.5rem 1rem; 
  border-radius: 20px; 
  cursor: pointer; 
  text-align: center; 
  white-space: nowrap; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.35rem; 
  /* ⚡ UPDATED: Removed !important constraint to support smooth theme cross-fades */
  transition: background-color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              transform 0.1s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.18s cubic-bezier(0.19, 1, 0.22, 1); 
} 

.engine-pill-opt.active { 
  background: var(--primary) !important; 
  color: var(--panel-bg) !important; 
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2); 
} 

.engine-pill-opt:active, 
.matrix-choice-pill:active, 
.circular-day-node:active { 
  transform: scale(0.97); /* Physical thumb click feedback step */ 
}


/* 📥 UNTANGLED SINGLE-ROW CHOICE PILL MATRICES */
.pill-matrix-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    width: 100%;
}
.pill-matrix-label { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text-main); 
}
.pill-matrix-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

/* 🌟 FIX: Balanced horizontal flex stretching with strict inline content preservation 🌟 */
.matrix-choice-pill {
    flex: 1;
    text-align: center;
    background: var(--bg-color);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 0.6rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem; /* Prevents text and inner emoji icons from separating or stacking vertically */
    transition: all 0.18s cubic-bezier(0.19, 1, 0.22, 1) !important;
}
.matrix-choice-pill:hover { border-color: var(--primary); color: var(--text-main); }
.matrix-choice-pill.active-choice {
    background: var(--primary) !important;
    color: var(--panel-bg) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.15);
}

/* FROM CSS PART 4: TACTILE GEOMETRIC SELECTION NODES */
.circular-days-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 0.25rem;
  width: 100%;
}

.circular-day-node {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
  border-radius: 50% !important; /* Rigidly forces circular geometry */
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              transform 0.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.circular-day-node.active-day-node {
  background: var(--primary) !important;
  color: var(--panel-bg) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

/* 🔒 COLLAPSIBLE FORM TOGGLE BUTTONS */
.routine-toggle-pill-btn, .settings-toggle-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    margin: 1.25rem auto 0 auto;
}
.routine-toggle-pill-btn:hover, .routine-toggle-pill-btn.form-expanded,
.settings-toggle-pill-btn:hover, .settings-toggle-pill-btn.form-expanded {
    background: var(--primary) !important;
    color: var(--panel-bg) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

/* 📥 SYSTEM CONTROLS PILL TRAYS */
.rollover-pill-container { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rollover-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--panel-bg);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.19, 1, 0.22, 1);
}
.rollover-pill:hover { border-color: var(--primary); color: var(--text-main); }
.rollover-pill.active-pill {
    background: var(--primary) !important;
    color: var(--panel-bg) !important;
    border-color: var(--primary) !important;
}
.rollover-pill-delete { margin-left: 0.25rem; color: var(--high-urgency); font-weight: bold; cursor: pointer; }

/* 📅 CALMING CLEAN OPERATING SCHEDULE RUNWAY HEADERS */
.queue-section-heading { 
    font-size: 1.05rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--primary); 
    margin: 2rem 0 0.75rem 0; 
    text-align: left; 
    border-bottom: 2px dashed var(--bg-color); 
    padding-bottom: 0.35rem; 
}

/* 🕒 Glowing "Scanning Visor" Live Time Horizon Tracker Layout Overlays */
.timeline { position: relative !important; width: 100% !important; display: flex; flex-direction: column; gap: 0.5rem; }
.live-floating-time-horizon-frame {
    position: absolute !important; left: 0 !important; right: 0 !important; width: auto !important; box-sizing: border-box !important; height: 70px; z-index: 1000 !important; pointer-events: none; background: transparent !important; transition: top 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-top: 4px solid var(--primary) !important; border-bottom: 4px solid var(--primary) !important; border-left: none !important; border-right: none !important; border-radius: 2px;
    filter: drop-shadow(0 -3px 4px rgba(79, 70, 229, 0.4)) drop-shadow(0 3px 4px rgba(79, 70, 229, 0.4));
}
[data-theme="dark"] .live-floating-time-horizon-frame {
    filter: drop-shadow(0 -4px 6px rgba(129, 140, 248, 0.6)) drop-shadow(0 4px 6px rgba(129, 140, 248, 0.6));
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr !important; }
}






/* ==========================================================================
   PART 5: SYMMETRIC COCKPIT CONTROLS & CHECKABLE DYNAMIC SUB-TASKS
   ========================================================================== */

/* 🎯 Symmetric layout grid for your strategy button row */
.focus-button-row {
    display: flex;
    gap: 0.75rem;
    max-width: 440px; /* Aligns the container width perfectly with your timer module */
    width: 100%;
    margin: 0 auto 0.75rem auto; /* Creates balanced, even padding */
}

.focus-half-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  /* REMOVED: white-space: nowrap to protect small viewports */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--text-muted);
  text-align: center;
}

/* 🌟 VISUAL UPDATE: Apply an elegant, muted sensory-blue color fill strictly to the Stuck action trigger button */
.focus-half-btn.btn-stuck-trigger {
    background: rgba(14, 165, 233, 0.12) !important; 
    color: #0284c7 !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
}

[data-theme="dark"] .focus-half-btn.btn-stuck-trigger {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

/* Tactile hovering glow transitions */
.focus-half-btn.btn-stuck-trigger:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    transform: translateY(-1px);
}


/* 🎯 Large destination target completion button alignment */
.focus-complete-btn {
    display: block;
    max-width: 440px; /* Snaps the edges identically to your top row width boundary lines */
    width: 100%;
    margin: 0 auto;
    padding: 0.85rem 1.5rem; /* Larger touch target area */
    font-size: 1.15rem; /* Highly visible text indicator scale */
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

/* 📋 Calming, human-scaled micro checklist rows */
.micro-step-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.75rem 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
}

.micro-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background: var(--panel-bg);
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Subtle visual confirmation tint when a sub-task is completed */
.micro-step-item.step-done {
    opacity: 0.45;
    background: var(--bg-color);
}

.micro-step-checkbox {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  cursor: pointer;
  align-self: flex-start; /* Locks box tracking securely to top line */
}


/* Tactile snap scale transition effect specifically for the timer collapse button */
#timer-env-collapse-btn {
    margin: 0 auto 1.5rem auto !important;
    display: inline-flex;
}






/* ==========================================================================
   PART 6: ISOLATION ROOM SYMMETRIES & INTERACTIVE SENSORY SWITCH PILLS
   ========================================================================== */

.sensory-switch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--text-muted);
  border: 2px solid var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  max-width: 220px;
  width: 100%;
  text-align: center;
  /* Cleaned up cascade allows smooth theme swaps and quick thumb clicks to work together */
  transition: background-color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              border-color 0.18s cubic-bezier(0.19, 1, 0.22, 1), 
              transform 0.1s cubic-bezier(0.19, 1, 0.22, 1);
}


.sensory-switch-pill:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.sensory-switch-pill.active-switch {
    background: transparent !important; /* Rigidly preserves empty hollow transparency fill colors */
    color: var(--primary) !important; /* Turns the font text deep indigo */
    border-color: var(--primary) !important; /* Turns the outline border line deep indigo */
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.15);
}

.sensory-switch-pill:active {
    transform: scale(0.96);
}

/* MONOCHROMATIC ACCUMULATIVE VAULT RUNWAY CHIPS */
.vault-runway-chip {
  width: clamp(24px, 6vw, 32px);
  height: clamp(24px, 6vw, 32px);
  background: var(--bg-color);
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.8;
  transition: all 0.2s ease;
}
.vault-runway-chip:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}
