/* DoIt Orbital Todo — LCARS Star Trek Theme */

:root {
  --lcars-gold: #ffcc00;
  --lcars-gold-dim: rgba(255, 204, 0, 0.15);
  --lcars-cyan: #00e3fd;
  --lcars-bg: #0a0a1a;
  --lcars-surface: #121222;
  --lcars-panel: #1a1a2b;
  --lcars-panel-hi: #29283a;
  --lcars-text: #e3e0f8;
  --lcars-text-dim: rgba(227, 224, 248, 0.35);
  --lcars-border: rgba(78, 70, 50, 0.3);
  --lcars-red: #b50d28;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a1a;
  overscroll-behavior: none;
}
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--lcars-text);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* Scan-line overlay */
.scan-line {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(to bottom, rgba(18,18,34,0) 50%, rgba(0,0,0,0.08) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.15;
}

/* LCARS Label Style */
.lcars-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--lcars-text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 296px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--lcars-gold);
  background: linear-gradient(135deg, var(--lcars-gold), #ff8800);
  color: var(--lcars-surface);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.4), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 100;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.6), 0 6px 16px rgba(0,0,0,0.5);
}

.fab:active {
  transform: scale(0.95);
}

/* Sound Toggle */
.sound-toggle {
  position: fixed;
  bottom: 296px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lcars-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--lcars-text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lcars-text);
}

.sound-toggle.active {
  background: var(--lcars-gold-dim);
  border-color: rgba(255, 204, 0, 0.4);
  color: var(--lcars-gold);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.2);
}

/* Stats Bar */
.stats {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 20px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--lcars-text-dim);
  letter-spacing: 1.5px;
  z-index: 50;
  pointer-events: none;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,10,26,0.7) 0%, transparent 100%);
  text-transform: uppercase;
}

.stats-label {
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.stats-row {
  display: inline;
}

.stat-stage {
  color: var(--lcars-gold);
  font-weight: 600;
}

/* HP Bar — fixed below guide ticker */
.hp-bar-container {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 55;
  pointer-events: none;
  width: min(500px, 80vw);
}

.hp-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
}

.hp-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-bar-fill {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width 0.5s ease, background 0.5s ease;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.hp-bar-fill.warning {
  background: linear-gradient(90deg, #ffb74d, #f59e0b);
  box-shadow: 0 0 8px rgba(255, 183, 77, 0.4);
}

.hp-bar-fill.danger {
  background: linear-gradient(90deg, #ff6b6b, #ef4444);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
  animation: hpPulse 1.5s ease-in-out infinite;
}

@keyframes hpPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
  50% { box-shadow: 0 0 16px rgba(255, 60, 60, 0.8); }
}

.hp-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #4ade80;
  min-width: 40px;
  text-align: right;
}

.hp-value.warning { color: #ffb74d; }
.hp-value.danger { color: #ff6b6b; }
.hp-value.dead { color: #ff3c3c; }

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  background: var(--lcars-surface);
  border-radius: 16px;
  padding: 28px 28px 24px 28px;
  width: min(440px, 92vw);
  box-shadow: 0 0 60px rgba(255, 204, 0, 0.12), 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* LCARS Panel accent */
.lcars-panel {
  border-top: 4px solid var(--lcars-gold);
  border-left: 6px solid var(--lcars-gold);
}

.lcars-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--lcars-gold);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lcars-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--lcars-gold);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lcars-gold);
  letter-spacing: -0.5px;
}

.modal-subtitle {
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--lcars-panel-hi);
  border: none;
  border-left: 3px solid var(--lcars-gold);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-family: 'Be Vietnam Pro', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.modal-content input[type="text"]:focus {
  border-left-color: var(--lcars-cyan);
  box-shadow: 0 0 15px rgba(0, 227, 253, 0.1);
}

.modal-content input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.modal-options {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}

/* Type picker */
.type-picker {
  flex: 1;
}

.type-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.type-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--lcars-panel);
  color: var(--lcars-text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.type-btn .type-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.type-btn .type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--lcars-text);
  display: block;
}

.type-btn .type-desc {
  font-size: 10px;
  opacity: 0.45;
  display: block;
  line-height: 1.3;
}

.type-btn.active {
  background: var(--lcars-panel-hi);
  border-color: rgba(255, 204, 0, 0.3);
  border-right: 3px solid var(--lcars-gold);
}

.type-btn.active .type-icon {
  background: var(--lcars-gold-dim);
  color: var(--lcars-gold);
}

.type-btn.active .type-name {
  color: var(--lcars-gold);
}

/* Size buttons */
.size-buttons {
  display: flex;
  background: var(--lcars-panel-hi);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.size-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--lcars-text-dim);
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.size-btn.active {
  background: var(--lcars-gold);
  color: var(--lcars-surface);
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

/* Color buttons */
.color-buttons {
  display: flex;
  gap: 8px;
}

.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.color-btn.active {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 12px currentColor;
}

/* Deadline group */
.deadline-group {
  margin-top: 16px;
}

.deadline-group.hidden {
  display: none;
}

.deadline-optional {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.deadline-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--lcars-panel-hi);
  border: none;
  border-bottom: 2px solid var(--lcars-cyan);
  border-radius: 8px;
  color: #fff;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  outline: none;
  color-scheme: dark;
}

.deadline-input:focus {
  box-shadow: 0 0 12px rgba(0, 227, 253, 0.15);
}

/* Modal actions */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 24px;
  border: none;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel {
  background: transparent;
  border: 1px solid rgba(181, 13, 40, 0.4);
  color: rgba(255, 180, 171, 0.6);
}

.btn-cancel:hover {
  background: rgba(181, 13, 40, 0.15);
  color: #ffb4ab;
}

.btn-add {
  flex: 2;
  background: linear-gradient(135deg, var(--lcars-gold), #ffaa00);
  color: var(--lcars-surface);
  font-weight: 800;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.3);
}

.btn-add:hover {
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.5);
}

/* ========== DETAIL PANEL ========== */
.detail-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 95vw);
  max-height: 70vh;
  overflow-y: auto;
  background: var(--lcars-surface);
  border: 1px solid var(--lcars-border);
  border-top: 4px solid var(--lcars-gold);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 20px 24px;
  z-index: 150;
  animation: slideUp 0.25s ease;
}

.detail-panel.hidden {
  display: none;
}

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

.detail-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.detail-close {
  background: none;
  border: none;
  color: var(--lcars-text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
}

.detail-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--lcars-text-dim);
  letter-spacing: 0.5px;
}

.detail-priority {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.priority-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--lcars-text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.priority-auto-hint {
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  color: var(--lcars-cyan);
  opacity: 0.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.priority-auto-hint.hidden {
  display: none;
}

.priority-buttons {
  display: flex;
  gap: 4px;
}

.priority-btn {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--lcars-border);
  background: transparent;
  color: var(--lcars-text-dim);
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.priority-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--lcars-text);
}

.priority-btn.active {
  background: var(--lcars-gold-dim);
  border-color: rgba(255, 204, 0, 0.4);
  color: var(--lcars-gold);
}

.detail-deadline {
  margin-top: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--lcars-cyan);
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-deadline.hidden {
  display: none;
}

/* Subtasks */
.detail-subtasks {
  margin-top: 16px;
  border-top: 1px solid var(--lcars-border);
  padding-top: 12px;
}

.detail-subtasks.hidden {
  display: none;
}

.subtask-header {
  margin-bottom: 8px;
}

.subtask-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--lcars-text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subtask-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.subtask-item.done .subtask-label {
  text-decoration: line-through;
  opacity: 0.4;
}

.subtask-check {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.subtask-label {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.subtask-del {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.12);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s;
}

.subtask-del:hover {
  color: rgba(255, 80, 80, 0.6);
}

.subtask-add-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.subtask-add-row input {
  flex: 1;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lcars-border);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.subtask-add-row input:focus {
  border-color: rgba(255, 204, 0, 0.3);
}

.subtask-add-row input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.subtask-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--lcars-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--lcars-text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.subtask-add-btn:hover {
  background: var(--lcars-gold-dim);
  color: var(--lcars-gold);
}

.subtask-hint {
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 4px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Detail actions */
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-complete,
.btn-delete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 10px 8px;
}

.btn-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-hint {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 1px;
}

.btn-complete {
  background: linear-gradient(135deg, var(--lcars-gold), #ff8800);
  color: var(--lcars-surface);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.25);
}

.btn-complete .btn-hint {
  opacity: 0.4;
}

.btn-delete {
  background: rgba(181, 13, 40, 0.15);
  color: rgba(255, 180, 171, 0.7);
  border: 1px solid rgba(181, 13, 40, 0.25);
}

.btn-delete:hover {
  background: rgba(181, 13, 40, 0.3);
  color: #ffb4ab;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); }
  to { transform: translateX(-50%) translateY(0); }
}

/* Scrollbar */
.detail-panel::-webkit-scrollbar { width: 4px; }
.detail-panel::-webkit-scrollbar-track { background: transparent; }
.detail-panel::-webkit-scrollbar-thumb { background: rgba(255, 204, 0, 0.15); border-radius: 2px; }

/* ========== GUIDE TICKER ========== */
.guide-ticker {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 60;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.guide-ticker.active {
  opacity: 1;
  transform: translateY(0);
}

.guide-text-wrap {
  max-width: 90vw;
  overflow: hidden;
  display: inline-block;
  padding: 6px 20px;
  background: rgba(0, 227, 253, 0.06);
  border: 1px solid rgba(0, 227, 253, 0.12);
  border-radius: 20px;
}

.guide-text {
  display: inline-block;
  font-family: 'Be Vietnam Pro', 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--lcars-cyan);
  text-shadow: 0 0 8px rgba(0, 227, 253, 0.4);
  white-space: nowrap;
  animation: tickerGlow 3s ease-in-out infinite;
}

.guide-text.scrolling {
  animation: tickerScroll 8s linear;
}

@keyframes tickerGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 227, 253, 0.3); }
  50% { text-shadow: 0 0 16px rgba(0, 227, 253, 0.6); }
}

@keyframes tickerScroll {
  0% { transform: translateX(80vw); }
  100% { transform: translateX(-100%); }
}

/* Corner messages */
.corner-msg {
  position: fixed;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.corner-msg.active {
  opacity: 1;
}

.corner-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.corner-top-left {
  top: 40px;
  left: 16px;
}

.corner-top-left .corner-text {
  color: rgba(74, 222, 128, 0.5);
}

.corner-top-right {
  top: 40px;
  right: 16px;
  text-align: right;
}

.corner-top-right .corner-text {
  color: rgba(255, 204, 0, 0.5);
}

.corner-bottom-left {
  bottom: 310px;
  left: 16px;
}

.corner-bottom-left .corner-text {
  color: rgba(0, 227, 253, 0.35);
}

@media (max-width: 600px) {
  .corner-bottom-left {
    bottom: calc(45vh + 40px);
  }
  .corner-msg .corner-text {
    font-size: 8px;
  }
}

/* FAB pulse animation */
.fab-pulse {
  animation: fabPulse 0.6s ease-in-out 5;
}

@keyframes fabPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.4), 0 4px 12px rgba(0,0,0,0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.8), 0 6px 16px rgba(0,0,0,0.5);
  }
}

/* ========== TODO LIST PANEL (all screens) ========== */
.todo-list-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 280px;
  background: rgba(18, 18, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 3px solid var(--lcars-gold);
  z-index: 40;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.todo-list-panel.collapsed {
  max-height: 36px;
}

.todo-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: rgba(26, 26, 43, 0.95);
  border-bottom: 1px solid var(--lcars-border);
}

.todo-list-header .lcars-label {
  margin-bottom: 0;
}

.list-toggle {
  background: none;
  border: none;
  color: var(--lcars-gold);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  transition: transform 0.3s;
}

.todo-list-panel.collapsed .list-toggle {
  transform: rotate(180deg);
}

.todo-list-body {
  overflow-y: auto;
  max-height: calc(280px - 36px);
  padding: 0;
}

.todo-list {
  display: flex;
  flex-direction: column;
}

.todo-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(78, 70, 50, 0.12);
  cursor: pointer;
  transition: background 0.15s;
}

.todo-list-item:hover {
  background: rgba(255, 204, 0, 0.04);
}

.todo-list-item:active {
  background: var(--lcars-panel-hi);
}

.todo-list-item-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.todo-list-item-text {
  flex: 1;
  font-size: 13px;
  color: var(--lcars-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todo-list-item-priority {
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lcars-text-dim);
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.todo-list-item-priority.urgent {
  color: var(--lcars-gold);
  background: var(--lcars-gold-dim);
}

.todo-list-item-deadline {
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--lcars-cyan);
  flex-shrink: 0;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.todo-list-item-deadline.overdue {
  color: #ff6b6b;
  opacity: 1;
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.todo-list-empty {
  text-align: center;
  padding: 24px 16px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--lcars-text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* FAB/Sound collapsed state */
.todo-list-panel.collapsed ~ .fab {
  bottom: 52px;
}

.todo-list-panel.collapsed ~ .sound-toggle {
  bottom: 52px;
}

/* ========== MOBILE ========== */
@media (max-width: 600px) {
  .fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .sound-toggle {
    bottom: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .stats {
    font-size: 10px;
  }

  .modal-content {
    padding: 20px 20px 18px 20px;
  }

  .detail-panel {
    max-height: 60vh;
  }

  .modal-title {
    font-size: 17px;
  }

  /* Mobile: taller todo list */
  .todo-list-panel {
    max-height: 45vh;
  }

  .todo-list-body {
    max-height: calc(45vh - 36px);
  }

  .fab {
    bottom: calc(45vh + 8px);
  }

  .todo-list-panel.collapsed ~ .fab {
    bottom: 48px;
  }

  .sound-toggle {
    bottom: calc(45vh + 8px);
  }

  .todo-list-panel.collapsed ~ .sound-toggle {
    bottom: 48px;
  }
}
