/* ─────────────────────────────────────────────────
   Luna · Design tokens
   ───────────────────────────────────────────────── */
:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --bg-3: #141822;
  --surface: rgba(22, 26, 35, 0.62);
  --surface-2: rgba(28, 33, 44, 0.55);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e8ecf3;
  --text-dim: #9aa3b2;
  --text-mute: #6b7384;
  --neon: #9affc8;
  --neon-2: #6dffb1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.18);
  --neon-soft: rgba(154, 255, 200, 0.16);
  --warn: #ffb347;
  --danger: #ff6b8a;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-glow: 0 0 0 1px rgba(154, 255, 200, 0.28),
    0 12px 48px -12px rgba(34, 211, 238, 0.35);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --font: "Inter", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ─────────────────────────────────────────────────
   Aurora background
   ───────────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.aurora .orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--neon) 0%, transparent 70%);
  top: -120px;
  left: -80px;
}
.aurora .orb-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -6s;
}
.aurora .orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: 40%;
  left: 45%;
  opacity: 0.18;
  animation-delay: -12s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ─────────────────────────────────────────────────
   App shell
   ───────────────────────────────────────────────── */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  gap: 0;
}

/* ─────────────────────────────────────────────────
   Sidebar
   ───────────────────────────────────────────────── */
.sidebar {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.8), rgba(10, 12, 16, 0.4));
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(154, 255, 200, 0.08);
  border: 1px solid rgba(154, 255, 200, 0.18);
  box-shadow: 0 0 24px -6px rgba(154, 255, 200, 0.55);
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: all 0.22s ease;
  position: relative;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(154, 255, 200, 0.14), rgba(34, 211, 238, 0.06));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(154, 255, 200, 0.2);
}
.nav-item.active .nav-icon {
  color: var(--neon);
  filter: drop-shadow(0 0 8px rgba(154, 255, 200, 0.6));
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: currentColor;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.nav-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  letter-spacing: 0.06em;
}

.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  color: #082019;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
}
.user-grade {
  font-size: 11px;
  color: var(--text-mute);
}

/* ─────────────────────────────────────────────────
   Main
   ───────────────────────────────────────────────── */
.main {
  padding: 28px 36px 60px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.topbar h1 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ghost-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text-dim);
  transition: all 0.2s ease;
  cursor: pointer;
}
.ghost-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.ghost-btn svg {
  width: 18px;
  height: 18px;
}
.ghost-btn .dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mute);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ghost-btn .dot.active {
  opacity: 1;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

/* Notification panel */
.notif-wrap {
  position: relative;
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--neon);
  color: #0a1410;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: rgba(14, 22, 28, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(154, 255, 200, 0.04);
  padding: 14px 14px 10px;
  z-index: 60;
  animation: notifFadeIn 0.18s ease both;
}
@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-head strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.notif-mark {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.notif-mark:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 320px;
  overflow-y: auto;
}
.notif-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: default;
  transition: background 0.15s ease;
}
.notif-list li:hover {
  background: rgba(255, 255, 255, 0.03);
}
.notif-list li.unread {
  background: rgba(0, 255, 170, 0.05);
  border-left: 2px solid var(--neon);
  padding-left: 10px;
}
.notif-list li .n-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.notif-list li .n-when {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.notif-list li .n-when.urgent { color: #ff7b7b; }
.notif-list li .n-when.soon { color: var(--neon); }
.notif-list li .n-sub {
  font-size: 12px;
  color: var(--text-mute);
}
.notif-list li.notif-empty {
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  padding: 18px 8px;
  font-style: italic;
  cursor: default;
}
.notif-list li.notif-empty:hover { background: transparent; }
.notif-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 8px 4px 2px;
  font-size: 12px;
  color: var(--text-dim);
}
.notif-link {
  background: none;
  border: none;
  color: var(--neon-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.notif-link:hover {
  color: var(--neon);
  background: rgba(0, 255, 170, 0.06);
}

/* ─────────────────────────────────────────────────
   Views
   ───────────────────────────────────────────────── */
.view {
  display: none;
  animation: fadeUp 0.45s ease both;
}
.view.active {
  display: block;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ─────────────────────────────────────────────────
   Card / Glass
   ───────────────────────────────────────────────── */
.card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}
.card.glass:hover {
  border-color: var(--border-strong);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.link {
  font-size: 12px;
  color: var(--neon);
  cursor: pointer;
  transition: color 0.2s ease;
}
.link:hover { color: #fff; }

/* ─────────────────────────────────────────────────
   Hero card (Dashboard)
   ───────────────────────────────────────────────── */
.hero-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  padding: 28px 30px;
  background:
    radial-gradient(800px 280px at -10% -40%, rgba(154, 255, 200, 0.18), transparent 60%),
    radial-gradient(600px 220px at 110% 120%, rgba(34, 211, 238, 0.16), transparent 60%),
    var(--surface);
}
.hero-meta h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  letter-spacing: -0.025em;
  font-weight: 700;
  background: linear-gradient(120deg, #ffffff 0%, #c5fae0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta p {
  margin: 0 0 18px;
  color: var(--text-dim);
  max-width: 460px;
}
.hero-actions { display: flex; gap: 10px; }

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  border: 1px solid rgba(154, 255, 200, 0.22);
}
.chip.soft {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border-color: var(--border);
}

.primary {
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13.5px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  color: #042418;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(154, 255, 200, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px -8px rgba(154, 255, 200, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.primary.small { padding: 8px 14px; font-size: 12.5px; }

.ghost {
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}
.ghost.small { padding: 8px 14px; font-size: 12.5px; }

.hero-ring {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-ring svg {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 14px rgba(154, 255, 200, 0.35));
}
.ring-label {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.ring-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ring-sub {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Stat stack */
.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.stat-trend {
  font-size: 11px;
  color: var(--text-mute);
}
.stat-trend.up { color: var(--neon); }

/* ─────────────────────────────────────────────────
   Task list
   ───────────────────────────────────────────────── */
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
}
.task-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.task-list li.done {
  opacity: 0.55;
}
.task-list li.done .task-title { text-decoration: line-through; }
.checkbox {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}
.checkbox.checked {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(154, 255, 200, 0.5);
}
.checkbox.checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #042418;
  border-bottom: 2px solid #042418;
  transform: rotate(-45deg) translate(1px, -1px);
}
.task-meta { flex: 1; display: flex; flex-direction: column; }
.task-title { font-size: 14px; font-weight: 500; }
.task-sub { font-size: 11.5px; color: var(--text-mute); }
.task-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.task-tag.math { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.2); background: rgba(196, 181, 253, 0.08); }
.task-tag.eng  { color: #fda4af; border-color: rgba(253, 164, 175, 0.2); background: rgba(253, 164, 175, 0.08); }
.task-tag.bio  { color: #86efac; border-color: rgba(134, 239, 172, 0.2); background: rgba(134, 239, 172, 0.08); }
.task-tag.hist { color: #fcd34d; border-color: rgba(252, 211, 77, 0.2); background: rgba(252, 211, 77, 0.08); }

/* Recommendations */
.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.rec-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(154, 255, 200, 0.08);
  font-size: 18px;
  flex-shrink: 0;
}
.rec strong { font-size: 13.5px; }
.rec p { margin: 2px 0 0; font-size: 12px; color: var(--text-dim); }

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rec-tile {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.22s ease;
}
.rec-tile:hover {
  border-color: rgba(154, 255, 200, 0.22);
  transform: translateY(-2px);
}
.rec-tile .rec-ico { width: 42px; height: 42px; font-size: 20px; }
.rec-tile strong { font-size: 14px; }
.rec-tile p { margin: 0; font-size: 12.5px; color: var(--text-dim); flex: 1; }
.rec-tile .ghost { align-self: flex-start; margin-top: 6px; }

/* Deadline list */
.deadline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deadline-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
}
.deadline-list li:hover {
  border-color: var(--border-strong);
}
.date-block {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(154, 255, 200, 0.1), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(154, 255, 200, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.date-block span { font-size: 16px; font-weight: 700; color: #fff; }
.date-block small { font-size: 9px; letter-spacing: 0.1em; color: var(--neon); margin-top: 2px; }
.deadline-list li > div:nth-child(2) { flex: 1; }
.deadline-list strong { font-size: 13.5px; }
.deadline-list p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-mute); }
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.pill.warn {
  background: rgba(255, 179, 71, 0.1);
  color: var(--warn);
  border-color: rgba(255, 179, 71, 0.22);
}

/* ─────────────────────────────────────────────────
   Chat
   ───────────────────────────────────────────────── */
.chat-shell {
  height: calc(100vh - 160px);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.chat-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-head-left { display: flex; align-items: center; gap: 12px; }
.chat-head h3 { margin: 0; font-size: 15px; }
.status { margin: 2px 0 0; font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 6px; }
.online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.luna-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(154, 255, 200, 0.08);
  border: 1px solid rgba(154, 255, 200, 0.18);
  display: grid;
  place-items: center;
  position: relative;
}
.luna-avatar svg { width: 22px; height: 22px; }
.luna-avatar .pulse {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1.5px solid rgba(154, 255, 200, 0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 0; }
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }

.chat-msg {
  display: flex;
  animation: msgIn 0.32s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-msg.luna .bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}
.chat-msg.user .bubble {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  color: #042418;
  border-top-right-radius: 4px;
  box-shadow: 0 6px 20px -8px rgba(154, 255, 200, 0.55);
}

.chat-msg.luna.typing .bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 18px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.5;
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 22px 12px;
  flex-wrap: wrap;
}
.suggestion {
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.suggestion:hover {
  color: var(--text);
  border-color: rgba(154, 255, 200, 0.3);
  background: rgba(154, 255, 200, 0.06);
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.4);
}
.chat-input input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}
.chat-input input:focus {
  border-color: rgba(154, 255, 200, 0.32);
  box-shadow: 0 0 0 4px rgba(154, 255, 200, 0.06);
}
.send {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #042418;
  display: grid;
  place-items: center;
  transition: all 0.22s ease;
  box-shadow: 0 8px 22px -8px rgba(154, 255, 200, 0.6);
}
.send:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.05); }
.send svg { width: 20px; height: 20px; }

/* ─────────────────────────────────────────────────
   Focus Mode
   ───────────────────────────────────────────────── */
.focus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px;
}
.timer {
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}
.timer-ring { width: 280px; height: 280px; filter: drop-shadow(0 0 18px rgba(154, 255, 200, 0.3)); }
.timer-display {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.timer-display span {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 0%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timer-display small {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-top: 2px;
}
.timer-controls { display: flex; gap: 10px; }

.motivational { display: flex; flex-direction: column; gap: 18px; }
.mantra {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: #fff;
  margin: 6px 0;
  font-style: italic;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #fff 0%, #c5fae0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.session-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.session-stats > div {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.presets { margin-top: auto; }
.preset-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 8px;
}
.preset-row { display: flex; gap: 8px; }
.preset {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.preset:hover { color: var(--text); border-color: var(--border-strong); }
.preset.active {
  background: linear-gradient(135deg, rgba(154, 255, 200, 0.16), rgba(34, 211, 238, 0.08));
  border-color: rgba(154, 255, 200, 0.3);
  color: var(--neon);
}

/* ─────────────────────────────────────────────────
   Progress
   ───────────────────────────────────────────────── */
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
}
.metric-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.metric-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(120deg, #fff 0%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-trend {
  font-size: 12px;
  color: var(--text-dim);
}
.metric-trend.up { color: var(--neon); }
.spark { width: 100%; height: 36px; }
.spark svg { width: 100%; height: 100%; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 220px;
  padding: 18px 6px 6px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  background: linear-gradient(180deg, var(--neon) 0%, rgba(34, 211, 238, 0.6) 100%);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  transition: filter 0.2s ease;
  box-shadow: 0 0 18px -6px rgba(154, 255, 200, 0.45);
  animation: barGrow 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transform-origin: bottom;
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar:hover { filter: brightness(1.15); }
.bar-label { font-size: 11px; color: var(--text-mute); }

.subject-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.subject-list li {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}
.fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(154, 255, 200, 0.4);
  animation: fillIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes fillIn { from { width: 0 !important; } }
.subject-list strong { text-align: right; font-size: 12.5px; color: var(--neon); }

/* ─────────────────────────────────────────────────
   Settings
   ───────────────────────────────────────────────── */
.settings-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.settings-row:first-of-type { border-top: none; }
.settings-row label { font-size: 13px; color: var(--text-dim); }
.text-input {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  outline: none;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s ease;
}
.text-input:focus {
  border-color: rgba(154, 255, 200, 0.3);
  box-shadow: 0 0 0 4px rgba(154, 255, 200, 0.06);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.toggle-row:first-of-type { border-top: none; }
.toggle-row strong { font-size: 13.5px; display: block; }
.toggle-row p { margin: 2px 0 0; font-size: 12px; color: var(--text-mute); }

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
}
.switch input:checked + span {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 12px rgba(154, 255, 200, 0.4);
}
.switch input:checked + span::before {
  left: 21px;
  background: #042418;
}

.about-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.about-card h3 { margin: 0 0 4px; }
.about-card p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* ─────────────────────────────────────────────────
   Toast
   ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 18px;
  background: rgba(20, 24, 32, 0.95);
  border: 1px solid rgba(154, 255, 200, 0.25);
  border-radius: 14px;
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-ring { justify-self: center; }
  .rec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: row;
    padding: 10px 12px;
    gap: 8px;
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 50;
    overflow-x: auto;
  }
  .brand, .sidebar-footer { display: none; }
  .nav { flex-direction: row; gap: 6px; }
  .nav-item {
    padding: 10px 12px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    min-width: 64px;
  }
  .nav-item span:not(.nav-icon):not(.nav-pill) { font-size: 10px; }
  .nav-pill { display: none; }
  .main { padding: 18px 16px 120px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .topbar-actions { justify-content: flex-end; }
  .notif-panel { width: 300px; }
  .rec-grid { grid-template-columns: 1fr; }
  .timer { width: 220px; height: 220px; }
  .timer-ring { width: 220px; height: 220px; }
  .timer-display span { font-size: 44px; }
  .settings-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────
   Task composer (Luna-powered planner input)
   ───────────────────────────────────────────────── */
.task-composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(154, 255, 200, 0.05), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(154, 255, 200, 0.18);
  box-shadow: 0 0 0 1px rgba(154, 255, 200, 0.04) inset;
}
.composer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.5);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.composer-icon svg { width: 22px; height: 22px; }
.task-composer textarea {
  resize: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  outline: none;
  transition: all 0.2s ease;
}
.task-composer textarea::placeholder { color: var(--text-dim); }
.task-composer textarea:focus {
  border-color: rgba(154, 255, 200, 0.32);
  box-shadow: 0 0 0 4px rgba(154, 255, 200, 0.06);
}
#task-composer-submit {
  align-self: flex-end;
  white-space: nowrap;
  min-width: 134px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#task-composer-submit.loading { opacity: 0.75; cursor: wait; }
#task-composer-submit:disabled { cursor: not-allowed; }

@media (max-width: 720px) {
  .task-composer {
    grid-template-columns: auto 1fr;
  }
  #task-composer-submit {
    grid-column: 1 / -1;
    align-self: stretch;
  }
}

/* ─────────────────────────────────────────────────
   Onboarding modal
   ───────────────────────────────────────────────── */
.onboarding {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: lunaFade 0.32s ease both;
}
.onboarding[hidden] { display: none; }

.onboarding-card {
  width: min(480px, 100%);
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.95), rgba(12, 14, 20, 0.95));
  border: 1px solid rgba(154, 255, 200, 0.18);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(154, 255, 200, 0.04) inset,
    0 0 60px -20px rgba(34, 211, 238, 0.35);
  animation: lunaPop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

.onboarding-luna {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.onboarding-luna svg { width: 56px; height: 56px; position: relative; z-index: 2; }
.onboarding-luna .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 255, 200, 0.35), transparent 70%);
  animation: pulse 2.4s ease-in-out infinite;
}

.onboarding-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.onboarding-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.onboarding-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onboarding-field > span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.onboarding-field em {
  color: var(--text-dim);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  font-size: 11.5px;
  margin-left: 4px;
}
.onboarding-field input {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.onboarding-field input:focus {
  border-color: rgba(154, 255, 200, 0.32);
  box-shadow: 0 0 0 4px rgba(154, 255, 200, 0.06);
}

.onboarding-grades {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.grade-pill {
  padding: 12px 0;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.grade-pill:hover {
  border-color: rgba(154, 255, 200, 0.3);
  background: rgba(154, 255, 200, 0.05);
}
.grade-pill.selected {
  background: linear-gradient(135deg, rgba(154, 255, 200, 0.22), rgba(34, 211, 238, 0.18));
  border-color: rgba(154, 255, 200, 0.55);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(154, 255, 200, 0.2) inset, 0 6px 18px -8px rgba(154, 255, 200, 0.4);
}

.onboarding-submit {
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  font-size: 14.5px;
}

@keyframes lunaFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lunaPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Empty-state polish for stats UI */
.bar.empty {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
.subject-list li.empty {
  display: block;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  padding: 18px 4px;
  border-bottom: none;
}
.stat-trend { transition: color 0.2s ease; }

/* ─────────────────────────────────────────────────
   Task priority pills
   ───────────────────────────────────────────────── */
.priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
}
.priority-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.priority-pill.urgent {
  color: #ff7b7b;
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.3);
}
.priority-pill.important {
  color: #ffd66e;
  background: rgba(255, 200, 80, 0.1);
  border: 1px solid rgba(255, 200, 80, 0.28);
}
.priority-pill.optional {
  color: #9affc8;
  background: rgba(154, 255, 200, 0.08);
  border: 1px solid rgba(154, 255, 200, 0.22);
}

.task-deadline {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-left: 6px;
}
.task-deadline.urgent { color: #ff7b7b; font-weight: 600; }
.task-deadline.overdue { color: #ff7b7b; font-weight: 700; }

/* ─────────────────────────────────────────────────
   Deadline list (planner)
   ───────────────────────────────────────────────── */
.deadline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.deadline-list li.empty {
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  padding: 24px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

/* ─────────────────────────────────────────────────
   Auto study plan
   ───────────────────────────────────────────────── */
.study-plan { display: flex; flex-direction: column; gap: 16px; }
.study-plan-empty {
  text-align: center;
  color: var(--text-mute);
  padding: 32px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin: 0;
}
.plan-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.plan-block.urgent { border-color: rgba(255, 90, 90, 0.3); background: rgba(255, 90, 90, 0.04); }
.plan-block.important { border-color: rgba(255, 200, 80, 0.25); background: rgba(255, 200, 80, 0.03); }
.plan-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.plan-block-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.plan-block.urgent .plan-block-title { color: #ff7b7b; }
.plan-block.important .plan-block-title { color: #ffd66e; }
.plan-block-meta { font-size: 12px; color: var(--text-mute); }
.plan-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
.plan-step:first-of-type { border-top: none; padding-top: 4px; }
.plan-step-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(154, 255, 200, 0.08);
  border: 1px solid rgba(154, 255, 200, 0.18);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--neon);
}
.plan-step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-step-title { font-size: 14px; font-weight: 500; color: var(--text); }
.plan-step-meta { font-size: 11.5px; color: var(--text-mute); }
.plan-step-est {
  font-size: 11px;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────
   Focus task picker
   ───────────────────────────────────────────────── */
.focus-task-picker {
  width: 100%;
  margin: 4px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.focus-task-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.focus-task-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.focus-task-row select {
  flex: 1;
  font-size: 14px;
  padding: 10px 12px;
  /* Force a dark control surface so the closed select matches the rest of
     the inputs and never renders as white-on-white in any browser. */
  background: rgba(15, 23, 30, 0.85);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%239aa3ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
/* The dropdown list itself (rendered by the OS/browser) inherits color
   from the <select> but keeps a white background by default — force a
   dark background + light text so the options stay readable. */
.focus-task-row select option {
  background-color: #0f1720;
  color: var(--text);
}
.focus-task-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(154, 255, 200, 0.1);
  color: var(--neon);
  border: 1px solid rgba(154, 255, 200, 0.22);
}
.focus-task-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}
.focus-task-hint.error { color: #ff7b7b; }

/* ─────────────────────────────────────────────────
   Spotify focus card
   ───────────────────────────────────────────────── */
.spotify-card { padding: 20px 22px; }
.spotify-warn {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 0 0 12px;
  padding: 8px 12px;
  background: rgba(255, 200, 80, 0.05);
  border: 1px solid rgba(255, 200, 80, 0.15);
  border-radius: 10px;
}

/* ─────────────────────────────────────────────────
   Settings org note
   ───────────────────────────────────────────────── */
.org-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-mute);
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 10px;
}
.org-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan, #22d3ee);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}
.toggle-row.locked { opacity: 0.55; }
.toggle-row.locked .switch input { pointer-events: none; }

/* ─────────────────────────────────────────────────
   Reduce-motion mode (kills decorative motion)
   ───────────────────────────────────────────────── */
body.no-motion .aurora,
body.no-motion .orb { display: none !important; }
body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.05s !important;
}

