:root {
  --bg: oklch(0.975 0.004 250);
  --bg-2: oklch(0.955 0.006 250);
  --paper: oklch(0.995 0.002 250);
  --ink: oklch(0.20 0.014 255);
  --ink-2: oklch(0.36 0.014 255);
  --muted: oklch(0.55 0.010 255);
  --line: oklch(0.89 0.006 250);
  --line-soft: oklch(0.93 0.005 250);
  --accent: oklch(0.48 0.06 230);
  --accent-soft: oklch(0.93 0.018 230);
  --warn: oklch(0.55 0.10 35);
  --warn-soft: oklch(0.94 0.04 35);
  --highlight: oklch(0.62 0.04 90);
  --r-card: 14px;
  --r-pill: 999px;
  --r-soft: 10px;
  --pad-y: 26px;
  --pad-x: 28px;
  --shadow-card: 0 1px 0 rgba(28, 24, 18, 0.02), 0 8px 24px -16px rgba(28, 24, 18, 0.10);
  --max: 1100px;
  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
  z-index: 1;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad-x) 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 22px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}

.brand span:last-child {
  color: var(--accent);
}

.nav {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.nav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
}

.nav-button.active {
  background: var(--ink);
  color: var(--bg);
}

.greet {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.who {
  font-size: 14px;
  color: var(--muted);
}

.who strong {
  color: var(--ink);
  font-weight: 500;
}

.last-refresh {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 13px;
}

.status {
  background: var(--warn-soft);
  color: color-mix(in oklch, var(--warn) 70%, var(--ink));
  border: 1px solid color-mix(in oklch, var(--warn) 35%, var(--line));
  border-radius: var(--r-soft);
  padding: 12px 14px;
  margin-bottom: 24px;
  font-size: 14px;
}

.hidden,
.tab {
  display: none !important;
}

.tab.active {
  display: block !important;
}

.hello {
  margin-bottom: 28px;
}

.hello.compact {
  margin-bottom: 24px;
}

.hello h1 {
  max-width: 980px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
}

.hello-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.hello-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.muted {
  opacity: 0.55;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: live-blink 1.6s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.arc-card,
.tile,
.focus,
.rec,
.settings-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.arc-card {
  padding: 22px 24px 16px;
  margin-bottom: 44px;
}

.arc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.arc-head h3,
.tile h3,
.mini-title {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arc-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.arc {
  position: relative;
  height: 90px;
}

.arc svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.arc-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.arc-dot:hover {
  transform: translate(-50%, -50%) scale(1.16);
}

.arc-dot.warn {
  border-color: var(--warn);
  color: var(--warn);
}

.arc-dot.now {
  z-index: 2;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 0 0 6px color-mix(in oklch, var(--ink) 12%, transparent);
  animation: now-breathe 2.6s ease-in-out infinite;
}

@keyframes now-breathe {
  0%, 100% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--ink) 12%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--ink) 6%, transparent); }
}

.arc-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.section {
  margin-bottom: 44px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.focus-list {
  display: grid;
  gap: 14px;
}

.focus {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: var(--pad-y) var(--pad-x);
  transition: transform 160ms ease, border-color 160ms ease;
}

.focus:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--line));
}

.focus .num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding-top: 6px;
}

.focus .body {
  min-width: 0;
}

.focus .verb {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin-right: 8px;
  letter-spacing: -0.015em;
}

.focus .what {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.focus .why {
  max-width: 56ch;
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.focus .tag {
  align-self: start;
  white-space: nowrap;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.focus.kind-decide .num,
.focus.kind-decide .verb {
  color: var(--warn);
}

.focus .check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  transition: 160ms ease;
}

.focus .check:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.focus.done {
  opacity: 0.55;
}

.focus.done .check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.focus.done .what {
  text-decoration: line-through;
}

.one-thing {
  position: relative;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.one-thing .pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--highlight);
  animation: one-pulse 2s ease-in-out infinite;
  flex: none;
}

@keyframes one-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--highlight) 60%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklch, var(--highlight) 0%, transparent); }
}

.one-thing .label {
  color: color-mix(in oklch, var(--bg) 65%, var(--ink));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.one-thing .text {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.narrative {
  max-width: 38em;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 76px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.tl-row {
  display: contents;
}

.tl-time {
  position: relative;
  align-self: start;
  padding: 16px 18px 16px 0;
  text-align: right;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tl-time .dur {
  display: block;
  margin-top: 4px;
  opacity: 0.6;
  font-size: 10px;
}

.tl-card {
  position: relative;
  margin-left: 22px;
  margin-bottom: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, border-color 200ms ease;
}

.tl-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
}

.tl-card::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.tl-card.kind-class {
  background: var(--bg-2);
}

.tl-card.kind-class::before {
  border-color: var(--ink);
}

.tl-card.kind-club::before {
  border-color: var(--warn);
}

.tl-card.kind-social::before {
  border-color: var(--highlight);
}

.tl-card.kind-open {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.tl-card.now {
  border-color: var(--accent);
  border-width: 1.5px;
}

.tl-card.now::before {
  background: var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 0%, transparent); }
}

.tl-title {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.kind-pill {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-note {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}

.tl-tight {
  grid-column: 2;
  margin: -4px 0 8px 22px;
  padding: 10px 14px;
  background: var(--warn-soft);
  border: 1px solid color-mix(in oklch, var(--warn) 35%, var(--line));
  border-radius: var(--r-soft);
  color: color-mix(in oklch, var(--warn) 70%, var(--ink));
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-tight strong {
  color: var(--warn);
  font-weight: 500;
  white-space: nowrap;
}

.aside-grid,
.calendar-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tile {
  padding: 22px;
}

.tile h3 {
  margin-bottom: 14px;
}

.assn {
  display: grid;
  gap: 12px;
}

.assn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.assn-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.assn-title {
  color: var(--ink);
}

.assn-course {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.assn-due {
  align-self: start;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--bg-2);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.tomorrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.tomorrow .tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tomorrow .txt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
}

.recs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rec {
  position: relative;
  min-height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.rec:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
}

.save-pin {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: 180ms ease;
}

.rec:hover .save-pin,
.rec.saved .save-pin {
  opacity: 1;
  transform: translateY(0);
}

.save-pin:hover,
.rec.saved .save-pin {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.rec .when {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rec .title {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rec .where {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.rec .why {
  flex: 1;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.rec .more {
  align-self: start;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.mini-title {
  margin-bottom: 12px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-event,
.empty-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  padding: 14px 16px;
}

.mini-event {
  display: grid;
  gap: 5px;
}

.mini-event strong {
  font-size: 14px;
  font-weight: 500;
}

.mini-event span,
.empty-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-event a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.settings-wrap {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.settings-group {
  padding: 26px 28px;
}

.settings-group h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.desc {
  max-width: 54ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.field input:focus {
  border-color: var(--accent);
  background: var(--paper);
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.feed-row,
.footer .feeds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-row {
  margin-top: 18px;
}

.feed-pill {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.feed-pill.ok::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 6px;
  transform: translateY(-1px);
}

.feed-pill.error {
  color: var(--warn);
  border-color: color-mix(in oklch, var(--warn) 35%, var(--line));
  background: var(--warn-soft);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.toggle-row .lbl,
.toggle-row .sub {
  display: block;
}

.toggle-row .lbl {
  font-size: 15px;
}

.toggle-row .sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.toggle-row input {
  width: 44px;
  height: 26px;
  accent-color: var(--accent);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 14px;
}

.btn:hover {
  border-color: var(--accent);
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn.danger {
  color: var(--warn);
  border-color: color-mix(in oklch, var(--warn) 35%, var(--line));
}

.btn.danger:hover {
  background: var(--warn-soft);
}

.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.calendar-main {
  min-width: 0;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.calendar-nav,
.calendar-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-mode {
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.mode-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: var(--r-pill);
  padding: 8px 13px;
  font-size: 13px;
}

.mode-button.active {
  background: var(--ink);
  color: var(--bg);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.icon-btn:hover {
  border-color: var(--accent);
}

.calendar-board {
  min-width: 0;
}

.cal-day {
  display: grid;
  gap: 10px;
}

.cal-day h3 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-weekdays {
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.month-weekdays span {
  padding: 0 8px;
}

.month-grid {
  gap: 8px;
}

.month-cell {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper);
  padding: 10px;
  text-align: left;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.month-cell:hover,
.month-cell.selected {
  border-color: color-mix(in oklch, var(--accent) 40%, var(--line));
  transform: translateY(-1px);
}

.month-cell.muted-month {
  opacity: 0.45;
}

.month-cell.today-cell .date-num {
  color: var(--accent);
}

.date-num {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.month-events {
  display: grid;
  gap: 4px;
}

.month-events span,
.more-count {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
}

.more-count {
  color: var(--muted);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.week-day {
  min-height: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  padding: 12px;
}

.week-day.selected {
  border-color: color-mix(in oklch, var(--accent) 40%, var(--line));
}

.week-day-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.week-day-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}

.week-events,
.day-event-list {
  display: grid;
  gap: 10px;
}

.day-event-list {
  max-width: 760px;
}

.cal-event {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.cal-event:hover,
.cal-event.selected {
  border-color: color-mix(in oklch, var(--accent) 36%, var(--line));
  transform: translateY(-1px);
}

.cal-event-button {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 16px 18px;
}

.cal-time,
.cal-source,
.editor-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cal-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.cal-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cal-source {
  justify-self: end;
  padding: 5px 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.calendar-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.event-editor,
.day-brief {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.day-brief h2 {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.day-brief p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.brief-priorities,
.selected-events {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.brief-priority {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-soft);
  padding: 10px 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}

.selected-events h3 {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-form {
  display: grid;
  gap: 14px;
}

.event-form h2 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.field select:focus {
  border-color: var(--accent);
  background: var(--paper);
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .greet {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .recs,
  .aside-grid,
  .calendar-columns,
  .calendar-workspace {
    grid-template-columns: 1fr;
  }

  .calendar-side {
    position: static;
  }

  .section-head {
    display: grid;
  }

  .lede {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 22px 18px 72px;
  }

  .topbar {
    margin-bottom: 28px;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav-button {
    flex: 1;
  }

  .focus {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .focus .tag,
  .focus .check {
    display: none;
  }

  .focus .what,
  .focus .verb {
    font-size: 18px;
  }

  .arc-head {
    display: grid;
    gap: 4px;
  }

  .arc-head h3 {
    max-width: none;
  }

  .one-thing {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .timeline {
    grid-template-columns: 60px 1fr;
  }

  .timeline::before {
    left: 60px;
  }

  .tl-time {
    padding-right: 12px;
  }

  .tl-tight {
    display: grid;
  }

  .cal-event-button {
    grid-template-columns: 58px 1fr;
  }

  .cal-source {
    grid-column: 2;
    justify-self: start;
  }

  .month-weekdays {
    display: none;
  }

  .month-grid {
    grid-template-columns: 1fr;
  }

  .month-cell {
    min-height: 92px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }
}
