/* Solid, dark menu and action boxes with clear white icons. */
:root {
  --blue: #185ed4;
  --sky: #087e9c;
  --gold: #c08a22;
  --green: #137c58;
  --muted: #5e728a;
  --line: #dbe4ef;
  --bg: #edf2f8;
}
.icon { stroke-width: 2.1; }
a[href="#dashboard"] { --menu-ink: #1c53c6; --menu-soft: #e6eeff; --menu-line: #b6cdf6; }
a[href="#learn"] { --menu-ink: #087b85; --menu-soft: #e0f3f1; --menu-line: #9ed7d4; }
a[href="#files"] { --menu-ink: #6840c5; --menu-soft: #eee7fc; --menu-line: #cbb7ec; }
a[href="#notes"] { --menu-ink: #b85b12; --menu-soft: #fff0df; --menu-line: #efc99f; }
a[href="#practice"] { --menu-ink: #b92772; --menu-soft: #fce5ef; --menu-line: #eeb3d1; }
a[href="#mock"] { --menu-ink: #5141c0; --menu-soft: #ebe8fc; --menu-line: #bdb5ed; }
a[href="#review"] { --menu-ink: #117b51; --menu-soft: #e1f4e9; --menu-line: #a4d7bb; }
a[href="#analytics"] { --menu-ink: #086d9c; --menu-soft: #e0f1fb; --menu-line: #a9d4eb; }
a[href="#profile"] { --menu-ink: #8a3c96; --menu-soft: #f3e8f6; --menu-line: #d6b6de; }
a[href="#admin"] { --menu-ink: #264a73; --menu-soft: #e5edf7; --menu-line: #b4c7df; }

.nav-link {
  gap: 11px;
  color: white;
  background: var(--menu-ink);
  font-weight: 500;
  padding: 8px 12px;
}
.nav-link .icon {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  color: white;
  background: #ffffff21;
  stroke-width: 2.2;
}
.nav-link:hover, .nav-link.active {
  background: color-mix(in srgb, var(--menu-ink) 86%, #102a43);
  color: white;
}
.nav-link.active { box-shadow: inset 0 0 0 2px #ffffff55; }
.nav-link.active:before { background: var(--menu-ink); width: 4px; }
.nav-count { color: var(--menu-ink); background: white; }
.brand .icon { color: #1564c9; stroke-width: 2.2; }
.avatar { color: white; background: #28549b; }
.avatar.small { color: white; background: #853b91; }
.profile-link .icon { color: #8a3c96; }
.search-link .icon { color: #1564c9; }
.workspace-note { background: #e2eaf6; color: #506781; }
.topbar { background: #f9fbfed9; }

.library-links a {
  color: white;
  border-color: var(--menu-ink);
  background: var(--menu-ink);
  font-weight: 500;
}
.library-links a.selected, .library-links a:hover {
  background: color-mix(in srgb, var(--menu-ink) 86%, #102a43);
  color: white;
  border-color: #ffffff88;
}
.library-links a.selected { box-shadow: inset 0 0 0 1px #ffffff66; }
.library-links .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.mobile-nav a { color: var(--menu-ink); }
.mobile-nav a .icon {
  width: 32px;
  height: 30px;
  padding: 4px 5px;
  border-radius: 8px;
  background: var(--menu-ink);
  color: white;
  stroke-width: 2.2;
}
.mobile-nav a.active { color: var(--menu-ink); font-weight: 600; }
.mobile-nav a.active .icon { background: color-mix(in srgb, var(--menu-ink) 82%, #102a43); color: white; box-shadow: 0 0 0 2px var(--menu-soft); }
.mobile-nav a:nth-child(3) .icon { background: var(--menu-ink); color: white; }
.mobile-nav a:nth-child(3).active .icon { background: color-mix(in srgb, var(--menu-ink) 82%, #102a43); color: white; }

.blue { color: white; background: #1c53c6; }
.sky { color: white; background: #087d98; }
.amber { color: white; background: #ac660b; }
.green { color: white; background: #117b51; }
.stat-card:has(.blue) { --stat-color: #1c53c6; }
.stat-card:has(.sky) { --stat-color: #087d98; }
.stat-card:has(.amber) { --stat-color: #ac660b; }
.stat-card:has(.green) { --stat-color: #117b51; }
.stat-card { background: var(--stat-color, #1c53c6); border-color: var(--stat-color, #1c53c6); color: white; }
.stat-card .stat-icon { background: #ffffff21; }
.stat-card strong, .stat-card strong small, .stat-card div > span, .stat-card p { color: white; }
.stat-icon .icon, .task-icon .icon { width: 23px; height: 23px; stroke-width: 2.2; }
.subject-icon {
  width: 44px;
  height: 44px;
  background: var(--subject);
  color: white;
}
.subject-icon .icon { width: 25px; height: 25px; stroke-width: 2.25; }
.progress { background: #e0e8f3; }
.practice-feature { background: #1c53c6; border-color: #1c53c6; color: white; }
.practice-feature p, .practice-feature .eyebrow, .practice-number { color: white; }
.practice-feature .primary { background: white; color: #1c53c6; }
.practice-feature .primary:hover { background: #e6eeff; }
.practice-card[data-action="random"] { background: #6840c5; border-color: #6840c5; }
.practice-card[data-action="mistakes"] { background: #b85b12; border-color: #b85b12; }
.practice-card[data-action="weak"] { background: #117b51; border-color: #117b51; }
.practice-card, .practice-card p, .practice-card > span { color: white; }
.practice-card[data-action] > .icon { color: white; background: #ffffff21; }
.practice-card > .icon { width: 48px; height: 48px; padding: 10px; border-radius: 12px; }
.mock-stage > .large-icon { color: white; background: #5141c0; }
.mock-specs .icon { color: #5141c0; }
.mock-history .mock-bar i { background: #1a8bc0; }
.upload-area { background: #6840c5; border: 1px solid #5731ad; color: white; }
.upload-area p { color: white; }
.upload-area .large-icon { color: white; background: #ffffff21; }
.upload-area .primary { background: white; color: #5731ad; }
.upload-area .primary:hover { background: #eee7fc; }
.file-extension { color: white; background: #6840c5; border-color: #6840c5; }
.note-card .eyebrow { color: #b85b12; }
.note-card { border-top: 3px solid #d67a28; }
.note-editor .primary { background: #b85b12; }
.note-editor .primary:hover { background: #9f4d0c; }

@media (max-width: 900px) {
  .nav-link { padding-left: 7px; padding-right: 7px; gap: 8px; }
  .nav-link .icon { width: 30px; height: 30px; padding: 5px; }
}
@media (max-width: 700px) {
  .library-links a { padding: 9px 11px; }
  .library-links .icon { width: 20px; height: 20px; }
  .practice-card { grid-template-columns: 48px 1fr; }
  .stat-icon .icon { width: 21px; height: 21px; }
}
