:root {
  --bg: #171816;
  --surface: #20221f;
  --surface-2: #292c27;
  --surface-3: #343831;
  --text: #f2efe6;
  --muted: #aaa99f;
  --line: #3b3e38;
  --accent: #d6ff5e;
  --accent-ink: #192000;
  --danger: #ff786c;
  --warning: #ffc85b;
  --radius: 5px;
  --max: 1440px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, .button-link, input, select { min-height: 44px; }
button, .button-link { border: 0; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; font-weight: 700; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem; color: var(--text); background: #141512; }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: .45rem; color: var(--muted); font-weight: 650; }
label small, .helptext { font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 730; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; color: var(--muted); }
small { color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 1rem; background: var(--accent); color: var(--accent-ink); padding: .75rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 40; min-height: 72px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); display: grid; grid-template-columns: 180px 1fr auto; align-items: center; padding: 0 max(1.2rem, calc((100vw - var(--max)) / 2)); }
.wordmark { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.wordmark-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(.6rem, 2vw, 2rem); }
.desktop-nav a { color: var(--muted); font-size: .9rem; min-height: 44px; display: flex; align-items: center; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; }
.header-actions form { margin: 0; }
.icon-button, .text-button { background: transparent; color: var(--muted); }
.text-button { padding-inline: .65rem; }
.page-shell { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; padding: 5rem 0 8rem; }
.messages { position: fixed; top: 85px; right: 1.5rem; z-index: 60; display: grid; gap: .5rem; max-width: 420px; }
.message { padding: .9rem 1rem; background: var(--surface-3); border-left: 3px solid var(--accent); box-shadow: 0 8px 24px #0006; }
.message.error { border-color: var(--danger); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; }
.lede { max-width: 720px; color: var(--muted); font-size: 1.12rem; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { background: #e1ff85; color: var(--accent-ink); }
.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.secondary:hover { border-color: var(--muted); color: var(--text); }
.danger { background: var(--danger); color: #250300; }
.danger-text { color: var(--danger) !important; }
.wide { width: 100%; }
.button-row, .form-actions, .hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.2rem); }
.surface-inset { background: #171916; border: 1px solid var(--line); padding: 1.2rem; margin-top: 1.5rem; }
.narrow { max-width: 760px; }
.stack-form { display: grid; gap: 1rem; }
.stack-form p { display: grid; gap: .4rem; margin: 0; }
.stack-form ul.errorlist, .errorlist { margin: 0; padding: 0; color: var(--danger); list-style: none; font-size: .9rem; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(480px, 100%); }
.auth-wordmark { margin-bottom: 4rem; }
.auth-card h1 { font-size: clamp(3.5rem, 10vw, 6rem); }
.auth-card .stack-form { margin-top: 2.2rem; }
.page-header { margin-bottom: 3.5rem; }
.page-header h1 { max-width: 1100px; }
.page-header.split, .hero-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.hero-header { min-height: 52vh; padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.hero-header h1 { margin-bottom: 0; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.metric-row div { padding: 1.5rem 0; display: grid; border-right: 1px solid var(--line); }
.metric-row div:last-child { border: 0; padding-left: 1.5rem; }
.metric-row div:not(:first-child) { padding-left: 1.5rem; }
.metric-row strong { font-size: 2rem; letter-spacing: -.05em; }
.metric-row span { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.section-heading a { color: var(--muted); }
.editorial-list { display: grid; }
.editorial-list > a { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.editorial-list > a:last-child { border: 0; }
.editorial-list time { color: var(--accent); font-weight: 700; }
.editorial-list span { display: grid; }
.editorial-list small { font-size: .85rem; }
.editorial-list.compact a { grid-template-columns: 48px 1fr; }
.people-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.people-strip a { display: grid; gap: .5rem; align-content: start; }
.avatar-placeholder { display: inline-grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-3); color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.avatar-placeholder.small { width: 42px; height: 42px; font-size: 1rem; }
.avatar-placeholder.large { width: 72px; height: 72px; font-size: 1.8rem; }
.avatar-placeholder.xlarge { width: 100%; height: 100%; min-height: 250px; border-radius: var(--radius); font-size: 6rem; }
.avatar-photo { display: block; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.avatar-photo.large { width: 72px; height: 72px; }
.empty { color: var(--muted); }
.empty-state { grid-column: 1 / -1; min-height: 45vh; display: grid; place-content: center; justify-items: start; }
.empty-state h1, .empty-state h2 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: .5rem; }
.search-panel { display: grid; grid-template-columns: minmax(320px, 1fr) 180px 190px auto; gap: .75rem; margin-bottom: 2rem; }
.search-input { position: relative; display: block; }
.search-input span { position: absolute; left: 1rem; top: .65rem; color: var(--muted); }
.search-input input { padding-left: 2.5rem; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.person-card { background: var(--surface); border: 1px solid var(--line); min-height: 245px; display: grid; grid-template-rows: 1fr auto; transition: border-color .15s ease, transform .15s ease; }
.person-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.card-main { padding: 1.4rem; display: grid; gap: 1.2rem; align-content: start; }
.card-main > span:last-child { display: grid; }
.card-main strong { font-size: 1.4rem; margin: .4rem 0; }
.card-main em { color: var(--muted); font-style: normal; }
.person-card footer { padding: .9rem 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.span-2 { grid-column: 1 / -1; }
.profile-hero { display: grid; grid-template-columns: minmax(260px, 360px) 1fr auto; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.profile-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-title h1 { font-size: clamp(3rem, 6vw, 6.4rem); margin-bottom: 1rem; }
.favorite { color: var(--accent); font-size: .35em; vertical-align: top; }
.aliases { color: var(--muted); }
.profile-role { font-size: 1.25rem; }
.profile-role span { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.profile-actions { display: grid; gap: .75rem; }
.profile-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.profile-facts > div { display: grid; padding: 1.3rem; border-right: 1px solid var(--line); }
.profile-facts > div:first-child { padding-left: 0; }
.profile-facts > div:last-child { border: 0; }
.profile-facts strong { font-size: 1.1rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 1rem; align-items: start; }
.profile-main { border-top: 1px solid var(--line); }
.profile-section { border-bottom: 1px solid var(--line); }
.profile-section summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 1.25rem; font-weight: 750; list-style: none; }
.profile-section summary::-webkit-details-marker { display: none; }
.profile-section summary span:last-child { color: var(--muted); font-size: .75rem; letter-spacing: .15em; }
.section-content { padding: 0 0 2.5rem; }
.prose > p { font-size: 1.15rem; max-width: 80ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.profile-aside { display: grid; gap: 1rem; position: sticky; top: 90px; }
.inline-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1rem; }
.inline-form p { margin: 0; }
.fact-list > div { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.fact-list > div > span { color: var(--muted); }
.provenance { width: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: transparent; border: 1px dotted var(--muted); color: var(--muted); }
.timeline { display: grid; }
.timeline > div { display: grid; grid-template-columns: 150px 1fr; gap: .2rem 1rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.timeline time { grid-row: 1 / 3; color: var(--muted); font-size: .85rem; }
.timeline span { color: var(--muted); white-space: pre-wrap; }
.notes { display: grid; gap: .75rem; margin-top: 2rem; }
.note { background: var(--surface); border-left: 3px solid var(--line); padding: 1rem; }
.note.pinned { border-color: var(--accent); }
.note p { margin: .4rem 0 0; white-space: pre-wrap; }
.private-blur p { filter: blur(6px); user-select: none; }
.private-locked { padding: 2rem; border: 1px dashed var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1rem; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.danger-zone { border: 1px solid #7f302a; padding: 1.2rem; }
.danger-zone a { color: var(--danger); }
.calendar-shell { touch-action: pan-y; }
.calendar-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.calendar-header h1 { margin-bottom: 0; }
.calendar-header h1 span { color: var(--muted); font-size: .45em; letter-spacing: -.03em; }
.calendar-nav { display: flex; align-items: center; gap: .5rem; }
.calendar-nav a { min-width: 46px; min-height: 46px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 800; }
.calendar-nav .calendar-today { padding: 0 1rem; color: var(--muted); font-size: .85rem; }
.year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.year-month { display: block; padding: 1.1rem; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.year-month:hover { color: var(--text); border-color: var(--muted); transform: translateY(-2px); }
.year-month header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.year-month h2 { margin: 0; }
.year-month header span { min-width: 26px; min-height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 850; }
.mini-weekdays, .mini-days, .calendar-weekdays, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mini-weekdays span, .calendar-weekdays span { color: var(--muted); text-align: center; font-size: .7rem; font-weight: 750; }
.mini-days span { position: relative; min-height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; }
.mini-days .outside { opacity: .16; }
.mini-days .today { outline: 1px solid var(--accent); color: var(--accent); }
.mini-days .has-events { background: var(--surface-3); color: var(--text); font-weight: 800; }
.mini-days .has-events::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.month-detail { border: 1px solid var(--line); background: var(--surface); }
.calendar-weekdays { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
.month-days { border-left: 1px solid var(--line); }
.month-day { min-width: 0; min-height: 150px; padding: .65rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month-day.outside { background: #171916; color: #66685f; }
.month-day > time { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; font-weight: 800; }
.month-day.today > time { border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.day-events { display: grid; gap: .35rem; margin-top: .45rem; }
.calendar-event { min-width: 0; display: grid; padding: .4rem .45rem; border-left: 2px solid var(--accent); background: #171916; }
.calendar-event.reminder { border-color: var(--warning); }
.calendar-event.interaction { border-color: #8ab8ff; }
.calendar-event small, .calendar-event span { overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.month-agenda { padding: clamp(1.25rem, 3vw, 2rem); }
.month-agenda .section-heading > span { color: var(--muted); }
.agenda-day { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.agenda-day > time { color: var(--accent); font-weight: 750; }
.agenda-day > div { display: grid; gap: .35rem; }
.agenda-event { display: grid; grid-template-columns: 10px minmax(120px, .5fr) 1fr; align-items: baseline; gap: .65rem; }
.agenda-event > span:last-child { color: var(--muted); font-size: .85rem; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.event-dot.reminder { background: var(--warning); }
.event-dot.interaction { background: #8ab8ff; }
.swipe-hint { margin-top: 1rem; color: var(--muted); font-size: .82rem; text-align: center; }
.merge-table { display: grid; }
.merge-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.merge-head { color: var(--muted); }
.audit-list > div { display: grid; grid-template-columns: 170px 1fr 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.responsive-table { overflow: auto; margin-top: 2rem; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .8rem; }
.mapping-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mapping-form p { margin: 0; }
.job-list article { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.job-list article > div { display: grid; }
.status { display: inline-flex; width: fit-content; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.status.applied, .status.succeeded { color: var(--accent); border-color: #6e842e; }
.status.failed, .status.rejected { color: var(--danger); border-color: #7f302a; }
.inbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.candidate-card { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem; }
.candidate-card header { display: flex; gap: 1rem; }
.candidate-card h2 { margin-bottom: .2rem; }
.candidate-card p { color: var(--muted); }
.candidate-facts { margin: 1.2rem 0; }
.candidate-facts > div { display: grid; grid-template-columns: 130px 1fr auto; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.candidate-facts span, .candidate-facts em { color: var(--muted); font-size: .8rem; font-style: normal; }
.candidate-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.assistant-header { max-width: 900px; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: start; }
.assistant-composer textarea { min-height: 230px; font-size: 1.15rem; }
.input-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.file-button, .record-button { min-height: 44px; display: inline-flex; place-items: center; padding: .65rem .9rem; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.file-button input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.record-button { background: transparent; }
.record-button.recording { color: var(--danger); border-color: var(--danger); }
.record-status { color: var(--muted); }
.history-list { display: grid; position: sticky; top: 90px; }
.history-list > a { display: grid; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.candidate-choice { margin-bottom: 1rem; }
.candidate-choice > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.candidate-choice button { display: grid; text-align: left; }
.changeset { display: grid; gap: .5rem; }
.change-row { display: grid; grid-template-columns: auto 160px 1fr auto auto; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); padding: 1rem; cursor: pointer; }
.change-row input { width: 22px; min-height: 22px; }
.change-row > span:nth-child(3) { display: grid; }
.change-type { color: var(--accent); font-size: .8rem; font-family: ui-monospace, monospace; }
.confidence { color: var(--muted); font-size: .8rem; }
.changeset-actions { display: flex; gap: .75rem; margin-top: 1rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.copy-value { padding: 1rem; background: #0f100e; border: 1px solid var(--line); font-family: ui-monospace, monospace; user-select: all; }
.break-all { overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; }
.facts dt { color: var(--muted); }
.code-list { columns: 2; font-family: ui-monospace, monospace; }
.mobile-nav, .add-sheet { display: none; }
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero { grid-template-columns: 260px 1fr; }
  .profile-actions { grid-column: 2; display: flex; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; grid-template-columns: 1fr 1fr; }
  .assistant-layout { grid-template-columns: 1fr; }
  .history-list { position: static; }
  .year-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  html { font-size: 16px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 60px; padding: 0 1rem; }
  .page-shell { width: min(100% - 2rem, var(--max)); padding: 3rem 0 4rem; }
  h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .page-header.split, .hero-header { display: grid; align-items: start; }
  .hero-header { min-height: auto; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row div, .metric-row div:not(:first-child), .metric-row div:last-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 0; }
  .dashboard-grid, .inbox-grid, .settings-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .people-strip { grid-template-columns: 1fr 1fr; }
  .search-panel { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .profile-hero { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .profile-photo { max-height: 55vh; }
  .profile-actions { grid-column: auto; display: flex; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .profile-facts > div, .profile-facts > div:first-child { padding: 1rem 0; }
  .two-col { grid-template-columns: 1fr; }
  .profile-aside { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .timeline > div { grid-template-columns: 100px 1fr; }
  .merge-row { grid-template-columns: 1fr; }
  .audit-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .mapping-form { grid-template-columns: 1fr; }
  .job-list article { grid-template-columns: 1fr; gap: .5rem; }
  .change-row { grid-template-columns: auto 1fr; }
  .change-row > span:nth-child(n+4) { grid-column: 2; }
  .candidate-facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .code-list { columns: 1; }
  .calendar-header { display: grid; align-items: start; }
  .calendar-nav { width: 100%; justify-content: space-between; }
  .year-grid { grid-template-columns: 1fr; }
  .month-day { min-height: 64px; padding: .3rem; }
  .month-day > time { width: 26px; height: 26px; margin: 0 auto; font-size: .78rem; }
  .day-events { display: flex; justify-content: center; gap: 3px; }
  .calendar-event { width: 6px; height: 6px; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: var(--accent); }
  .calendar-event.reminder { background: var(--warning); }
  .calendar-event.interaction { background: #8ab8ff; }
  .calendar-event > * { display: none; }
  .agenda-day { grid-template-columns: 1fr; gap: .4rem; }
  .agenda-event { grid-template-columns: 10px 1fr; }
  .agenda-event > span:last-child { grid-column: 2; }
  .mobile-nav { display: grid; position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(5, 1fr); min-height: calc(68px + env(safe-area-inset-bottom)); padding: .35rem .2rem env(safe-area-inset-bottom); background: #11120f; border-top: 1px solid var(--line); }
  .mobile-nav a, .mobile-nav button { display: grid; place-items: center; gap: .1rem; background: transparent; color: var(--muted); padding: .2rem; font-size: .68rem; font-weight: 650; }
  .mobile-nav span { font-size: 1.25rem; }
  .mobile-nav .add-action { color: var(--accent); }
  .add-sheet { width: 100%; max-width: none; margin: auto 0 0; border: 1px solid var(--line); border-radius: 14px 14px 0 0; padding: 1.2rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--surface); color: var(--text); }
  .add-sheet[open] { display: block; }
  .add-sheet::backdrop { background: #000a; }
  .sheet-handle { width: 50px; height: 4px; margin: 0 auto 1.4rem; border-radius: 4px; background: var(--line); }
  .action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
  .action-grid a { min-height: 64px; display: grid; place-items: center; text-align: center; background: var(--surface-2); border: 1px solid var(--line); padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
