:root {
  color-scheme: light;
  --page: #f7f5ef;
  --sidebar: #f1eee6;
  --surface: #fffefa;
  --surface-2: #eeebe3;
  --surface-3: #e7e3d9;
  --line: #ded9ce;
  --line-strong: #cbc5b8;
  --ink: #20211e;
  --muted: #77786f;
  --faint: #a3a39a;
  --accent: #718d55;
  --accent-bright: #9bbd6b;
  --accent-soft: #e4edd9;
  --accent-ink: #39542d;
  --blue: #547c96;
  --amber: #b7803f;
  --danger: #a34d42;
  --shadow: 0 16px 40px rgba(45, 42, 32, .06), 0 2px 8px rgba(45, 42, 32, .04);
  --radius: 10px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --page: #090909;
  --sidebar: #0d0d0d;
  --surface: #141414;
  --surface-2: #191919;
  --surface-3: #202020;
  --line: #292929;
  --line-strong: #3a3a3a;
  --ink: #f0f0ec;
  --muted: #a1a19d;
  --faint: #686864;
  --accent: #c5f36a;
  --accent-bright: #d4fa83;
  --accent-soft: #202c16;
  --accent-ink: #d2f58a;
  --blue: #88b5d2;
  --amber: #e0aa63;
  --danger: #ee978b;
  --shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}
button, input, textarea, select { font: inherit; }
button, a, label { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 3px; }

.workspace { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--page);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--surface-3);
}
.side-label {
  margin: 48px 11px 10px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.3px;
}
.sidebar nav { display: grid; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); transform: translateX(2px); }
.nav-link.selected {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}
.nav-link.selected::before {
  position: absolute;
  left: -16px;
  width: 3px;
  height: 19px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  content: "";
}
.nav-icon {
  width: 18px;
  color: var(--faint);
  text-align: center;
  font-size: 16px;
  line-height: 1;
}
.nav-link.selected .nav-icon { color: var(--accent); }
.sidebar-bottom { display: grid; gap: 14px; margin-top: auto; }
.side-caption { padding: 0 10px; color: var(--faint); font-size: 10px; }

.main-column { min-height: 100vh; margin-left: 238px; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 0 clamp(22px, 3.8vw, 60px);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.mobile-brand { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.theme-toggle, .quiet-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.theme-toggle span:first-child { color: var(--accent); font-size: 16px; }
.quiet-button, .text-button { padding: 7px 9px; }
.quiet-button:hover, .text-button:hover { color: var(--ink); text-decoration: underline; }
.import-label { cursor: pointer; }
#import-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
main {
  width: min(1440px, 100%);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 38px clamp(22px, 3.8vw, 60px) 74px;
}
footer {
  position: fixed;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 238px;
  display: flex;
  justify-content: space-between;
  padding: 8px clamp(22px, 3.8vw, 60px);
  color: var(--faint);
  background: color-mix(in srgb, var(--page) 93%, transparent);
  border-top: 1px solid var(--line);
  font-size: 10px;
  backdrop-filter: blur(10px);
}
footer .error { color: var(--danger); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.page-heading { margin: 0 0 31px; }
.page-heading h1, .home-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.description, .muted { color: var(--muted); font-size: 12px; }
.description { max-width: 56ch; margin: 9px 0 0; }
.home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 27px;
}
.home-heading .eyebrow { font-size: 10px; }
.focus-tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(265px, .78fr);
  align-items: start;
  gap: 30px;
}
.home-main, .right-rail { min-width: 0; }
.focus-card {
  position: relative;
  overflow: hidden;
  padding: 25px 26px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.focus-card::after {
  position: absolute;
  top: -100px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.focus-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.focus-top h2 { margin: 1px 0; font-size: 22px; letter-spacing: -.035em; }
.focus-problem { max-width: 70ch; margin: 10px 0 21px; color: var(--muted); font-size: 13px; }
.focus-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.focus-stats > div { display: grid; align-content: start; gap: 6px; padding: 14px 16px 14px 0; }
.focus-stats > div + div { padding-left: 17px; border-left: 1px solid var(--line); }
.focus-stats small, .next-action small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1px;
}
.focus-stats b { font-size: 12px; font-weight: 650; }
.blocker-text { color: var(--danger); }
.next-action { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
.action-icon {
  width: 29px;
  height: 29px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--page);
  font-size: 15px;
  font-weight: 800;
}
.next-action > span:last-child { display: grid; gap: 3px; }
.next-action b { font-size: 13px; }

.plan-section { margin-top: 31px; }
.section-head, .rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}
.section-head h2, .rail-title h2, .rail-section h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.section-head .eyebrow { margin-bottom: 2px; }
.plan-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plan-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: start;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.plan-time { padding-top: 2px; color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.plan-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.plan-check input { position: absolute; opacity: 0; }
.checkmark {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}
.plan-check input:checked + .checkmark { border-color: var(--accent); background: var(--accent); }
.plan-check input:checked + .checkmark::after {
  display: block;
  width: 5px;
  height: 8px;
  margin: 3px 0 0 5px;
  border: solid var(--page);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}
.plan-copy { display: grid; gap: 3px; }
.plan-copy b { font-size: 13px; font-weight: 650; }
.plan-copy small { color: var(--muted); font-size: 10px; }
.plan-check input:checked + .checkmark + .plan-copy b { color: var(--muted); text-decoration: line-through; }
.empty-plan { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); }
.empty-plan > span { color: var(--accent); font-size: 17px; }
.empty-plan p { margin: 0; font-size: 12px; }

.right-rail { display: grid; gap: 13px; }
.calendar-widget, .rail-section, .next-deadline, .selected-day-panel, .today-focus, .project-card, .subject-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.calendar-widget { padding: 17px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.calendar-head h2 { margin: 0; font-size: 14px; }
.calendar-controls { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.calendar-controls button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.calendar-controls button:hover { border-color: var(--accent); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar-weekdays { margin-bottom: 5px; color: var(--faint); font-size: 9px; font-weight: 700; }
.calendar-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
}
.calendar-day:hover { background: var(--surface-2); }
.calendar-day.is-today { outline: 1px solid var(--accent); color: var(--accent-ink); }
.calendar-day.is-selected { background: var(--accent); color: var(--page); font-weight: 750; }
.calendar-day i { position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.calendar-day.is-selected i { background: var(--page); }
.calendar-empty { aspect-ratio: 1; }
.selected-calendar-events { padding-top: 11px; margin-top: 8px; border-top: 1px solid var(--line); }
.selected-calendar-events h3 { margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 650; }
.selected-calendar-events .event-list li { padding: 6px 0; }
.selected-calendar-events .event-time { width: auto; font-size: 9px; }
.calendar-open { display: block; margin: 7px auto 0; }
.rail-section { padding: 15px 17px; }
.rail-title { margin-bottom: 7px; }
.deadline-row, .milestone-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.deadline-row > span:first-child, .milestone-row > span:last-child { display: grid; gap: 2px; min-width: 0; }
.deadline-row b, .milestone-row b { font-size: 11px; font-weight: 650; }
.deadline-row small, .milestone-row small { color: var(--muted); font-size: 9px; }
.days-left { color: var(--accent-ink); font-size: 9px; font-weight: 650; white-space: nowrap; }
.milestone-row { justify-content: flex-start; }
.milestone-dot { flex: none; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
.next-deadline { display: flex; align-items: center; gap: 12px; padding: 16px 17px; background: var(--accent-soft); border-color: transparent; }
.deadline-icon { color: var(--accent); font-size: 21px; }
.next-deadline div { display: grid; gap: 2px; }
.next-deadline small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .7px; }
.next-deadline b { font-size: 12px; }
.next-deadline span { color: var(--muted); font-size: 9px; }

.quick-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 14px; }
.field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 10px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.button {
  min-height: 37px;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #15200d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.button:hover { filter: brightness(1.05); }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.backlog-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 14px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.backlog-strip b { font-size: 11px; font-weight: 550; }
.backlog-strip .eyebrow { margin-bottom: 3px; }

.calendar-page-grid { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.3fr); align-items: start; gap: 20px; }
.calendar-page-grid .calendar-widget { padding: 20px; }
.calendar-page-grid .calendar-day { font-size: 12px; }
.calendar-page-grid .calendar-weekdays { font-size: 10px; }
.selected-day-panel { padding: 20px; }
.selected-day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.selected-day-head h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.event-time { flex: none; width: 68px; color: var(--accent-ink); font-size: 10px; }
.event-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.event-copy b { font-size: 11px; }
.event-copy span, .event-copy small { color: var(--muted); font-size: 10px; }
.danger-text { color: var(--danger); }
.event-form, .note-compose { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 9px; }
.note-compose { display: grid; max-width: 760px; gap: 12px; }
.note-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.note-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.note-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-card h2 { margin: 0; font-size: 14px; }
.note-card small { color: var(--muted); font-size: 9px; }
.note-card p { white-space: pre-wrap; color: var(--muted); font-size: 12px; }
.empty { margin: 10px 0; color: var(--muted); font-size: 11px; }
.section-block { margin-top: 28px; }
.section-block > h2, .subject-card h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.today-focus, .project-card, .subject-card { padding: 20px; }
.focus-line { display: grid; grid-template-columns: 145px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; }
.task-list, .topic-list, .simple-list { list-style: none; padding: 0; margin: 0; }
.task-list li, .topic-list li, .simple-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.task-list label, .topic-list label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.task-list input, .topic-list input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--accent); }
.task-list small, .topic-list small, .simple-list span { color: var(--muted); font-size: 10px; text-align: right; }
.done { color: var(--muted); text-decoration: line-through; }
.inline-form, .project-form.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; margin-top: 14px; }
.project-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 17px 0; }
.project-meta div { display: grid; align-content: start; gap: 4px; font-size: 11px; }
.project-meta b { color: var(--muted); font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.project-meta span { white-space: pre-wrap; }
.status-pill { display: inline-block; padding: 3px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-size: 8px; letter-spacing: .7px; text-transform: uppercase; vertical-align: middle; }
.status-pill.completed { background: var(--surface-2); }
.status-pill.abandoned { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.project-row, .add-project { padding: 14px 3px; border-top: 1px solid var(--line); }
.project-row summary, .add-project summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.project-detail { padding: 9px 0; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.links { display: flex; gap: 12px; font-size: 11px; }
.project-card details { padding-top: 13px; border-top: 1px solid var(--line); }
.project-card details summary { cursor: pointer; font-size: 11px; font-weight: 650; }
.project-task-form { margin: 12px 0 6px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 2px; border-top: 1px solid var(--line); }
.list-row p { margin: 3px 0; }
.list-row .row-actions select { max-width: 110px; padding: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 10px; }
.compact-form { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.subject-card { margin-bottom: 14px; }
.exam-form { grid-template-columns: minmax(150px, 1fr) auto; justify-content: start; margin: 13px 0; }
.topic-form { grid-template-columns: 2fr 1.5fr auto; }
.notice { margin-bottom: 14px; font-size: 11px; }
.notice.error { color: var(--danger); }
.backlog-preview { padding-bottom: 20px; }
.notes { color: var(--muted); font-size: 11px; white-space: pre-wrap; }
.mini-check { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.mini-check input { accent-color: var(--accent); }

.button:focus-visible, .quiet-button:focus-visible, .text-button:focus-visible, .nav-link:focus-visible, .theme-toggle:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .calendar-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .sidebar { width: 210px; }
  .main-column { margin-left: 210px; }
  footer { left: 210px; }
  main { padding-right: 28px; padding-left: 28px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(235px, .85fr); gap: 18px; }
}
@media (max-width: 820px) {
  .sidebar {
    position: sticky;
    inset: 0 auto auto;
    width: auto;
    height: auto;
    padding: 10px 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand, .side-label, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 4px; overflow-x: auto; padding: 3px 0 5px; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-link { width: auto; flex: none; height: 37px; padding: 0 10px; font-size: 10px; }
  .nav-link.selected::before { top: auto; right: 10px; bottom: -1px; left: 10px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
  .nav-icon { font-size: 14px; }
  .main-column { margin-left: 0; }
  .topbar { height: 52px; padding: 0 15px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 10px; letter-spacing: .7px; }
  .mobile-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; box-shadow: none; }
  .header-actions { gap: 0; }
  .quiet-button { padding: 6px; font-size: 10px; }
  main { padding: 27px 16px 70px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .right-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .calendar-widget { grid-row: span 2; }
  .calendar-page-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-page-grid .calendar-widget { max-width: none; }
  .calendar-page-grid .calendar-day { width: 100%; max-width: 46px; justify-self: center; }
  .note-list { grid-template-columns: 1fr; }
  footer { position: static; left: 0; padding-right: 14px; padding-left: 14px; }
}
@media (max-width: 520px) {
  .home-heading { align-items: flex-start; }
  .focus-tag { max-width: 120px; text-align: center; font-size: 8px; }
  .page-heading h1, .home-heading h1 { font-size: 27px; }
  .focus-card { padding: 20px 17px 18px; }
  .focus-top h2 { font-size: 19px; }
  .focus-stats > div { padding-right: 8px; }
  .focus-stats > div + div { padding-left: 10px; }
  .focus-stats b { font-size: 10px; }
  .quick-add { grid-template-columns: 1fr; }
  .quick-add .button { justify-self: start; }
  .right-rail { grid-template-columns: minmax(0, 1fr); }
  .calendar-widget { grid-row: auto; }
  .calendar-widget.compact { width: 100%; max-width: 380px; justify-self: center; }
  .form-grid, .inline-form, .project-form.form-grid { grid-template-columns: minmax(0, 1fr); }
  .wide { grid-column: auto; }
  .focus-line { grid-template-columns: 1fr; gap: 3px; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .task-list li, .topic-list li, .simple-list li { align-items: flex-start; }
  .task-list li { display: grid; }
  .task-list small { max-width: none; text-align: left; }
  .backlog-strip { flex-direction: column; align-items: flex-start; gap: 4px; }
  .list-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .list-row .row-actions { width: 100%; }
  .exam-form, .topic-form { grid-template-columns: 1fr; }
  .header-actions .quiet-button { padding: 5px; font-size: 9px; }
  .calendar-page-grid .calendar-day { font-size: 11px; }
}
