:root {
  color-scheme: light;
  --canvas: #f8f7f2;
  --paper: #fffefa;
  --ink: #242d26;
  --muted: #59645b;
  --line: #e3e5dc;
  --forest: #29483b;
  --forest-dark: #1d3b2f;
  --sage: #e7eee5;
  --gold: #f6ecd9;
  --focus: #457957;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6rem, 4.4vw, 4.45rem); font-weight: 400; letter-spacing: -.065em; line-height: .98; overflow-wrap: anywhere; }
h2 { font-size: 1.42rem; font-weight: 690; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
h3 { font-size: 1rem; }
progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 20px; background: var(--sage); color: #4f795d; overflow: hidden; }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: currentColor; border-radius: 20px; }
progress::-moz-progress-bar { background: currentColor; border-radius: 20px; }
[hidden] { display: none !important; }

.layout { min-height: 100vh; display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.sidebar { height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 24px 15px 18px; color: var(--sage); background: linear-gradient(155deg, var(--forest) 0%, var(--forest-dark) 78%); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 7px 43px; width: fit-content; font-size: 1.32rem; letter-spacing: -.045em; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: #ffffff19; color: #fff; border: 1px solid #ffffff22; border-radius: 12px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-accent { color: #c4d9c2; }
.nav { display: grid; gap: 5px; }
.nav a { min-height: 48px; display: flex; align-items: center; gap: 11px; border-radius: 10px; padding: 0 13px; color: var(--sage); font-size: 1rem; font-weight: 620; }
.nav a:hover { background: #ffffff16; }
.nav a[aria-current="page"] { background: var(--sage); color: var(--forest-dark); font-weight: 720; }
.sidebar :focus-visible { outline-color: #b5d6b5; }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #ffffff29; }
.family-members { display: flex; align-items: center; padding: 4px 7px 12px; font-weight: 650; font-size: .94rem; }
.family-members span:last-child { margin-left: 8px; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--forest-dark); border-radius: 50%; font-weight: 750; font-size: .78rem; }
.avatar + .avatar { margin-left: -7px; }
.avatar.wayne, .person-tag.wayne { color: #315243; background: #e3ede3; }
.avatar.dar, .person-tag.dar { color: #644967; background: #f1e8f3; }
.backup-link { display: flex; align-items: center; gap: 9px; padding: 7px 8px; min-height: 42px; border-radius: 8px; font-size: .94rem; }
.backup-link:hover { background: var(--sage); color: var(--forest-dark); }
.backup-link svg { width: 17px; height: 17px; }
.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 6; min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px clamp(18px, 2.4vw, 40px); background: #fbfbf6; border-bottom: 1px solid var(--line); }
#section-label { color: var(--muted); font-size: 1rem; font-weight: 650; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.topbar .mobile-backup { display: none; }
main { max-width: 1760px; margin: 0 auto; min-width: 0; padding: 30px clamp(18px, 2.4vw, 40px) 58px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 29px; }
.eyebrow { color: #546654; font-size: .875rem; font-weight: 700; line-height: 1.4; }
.page-heading .eyebrow { margin-bottom: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 0 13px; white-space: nowrap; text-align: center; font-size: .96rem; font-weight: 680; line-height: 1.2; }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: var(--forest-dark); }
.subtle { background: var(--paper); border-color: #dfe4d9; color: var(--forest-dark); }
.subtle:hover { background: var(--sage); border-color: #cdd8cb; }
.text-link { color: var(--forest-dark); font-size: .94rem; font-weight: 700; text-underline-offset: 4px; }
button.text-link { border: 0; background: none; padding: 6px 0; }
.text-link:hover { text-decoration: underline; }
.card { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 3px 12px #2b442b0a; min-width: 0; }
.card-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading .muted { margin-top: 6px; }
.card-heading h2 { min-width: 0; }
.card-heading a, .card-heading > button { flex: 0 0 auto; }
.dashboard { display: grid; gap: 20px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 3px 0 4px; }
.welcome-row h1 { font-size: clamp(2.6rem, 4.2vw, 4.45rem); line-height: 1.05; }
.welcome-row h1 span { white-space: nowrap; }
.welcome-date { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; color: var(--forest-dark); font-weight: 650; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.overview-panel { min-width: 0; }
.overview-panel > h2 { margin-bottom: 10px; font-size: 1.04rem; letter-spacing: 0; }
.stats, .member-grid { display: grid; gap: 10px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.personal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { min-height: 111px; padding: 13px 14px 11px; display: grid; grid-template-columns: 37px minmax(0, 1fr); grid-template-rows: auto 6px; align-content: center; align-items: center; gap: 8px 10px; }
.stat-due { background: var(--sage); border-color: #d8e2d5; color: var(--forest-dark); }
.stat-open { background: var(--gold); border-color: #eddfc5; color: #6e431f; }
.stat-done { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.stat-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.stat-icon svg { width: 18px; height: 18px; }
.stat .stat-icon { width: 37px; height: 37px; background: #fffefa9c; }
.stat-done .stat-icon { background: #ffffff20; }
.stat-icon.green { background: var(--sage); color: #355b46; }
.stat-icon.amber { background: var(--gold); color: #7c4b22; }
.stat-body p { font-size: .94rem; font-weight: 680; line-height: 1.2; }
.stat-body strong { display: block; margin-top: 4px; font-size: 2rem; letter-spacing: -.05em; line-height: 1.04; font-weight: 720; font-variant-numeric: tabular-nums; }
.stat progress { grid-column: 1 / -1; height: 6px; background: #ffffff38; color: #c4d9c2; }
.stat-open progress { background: #e6d6b7; color: #855127; }
.member-card { min-height: 111px; display: grid; align-content: center; align-items: center; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 11px; padding: 14px; }
.member-card:hover { border-color: #a7bba8; background: #fbfcf7; }
.member-card .avatar { grid-row: 1 / 3; width: 44px; height: 44px; border: 0; border-radius: 13px; font-size: 1.15rem; }
.member-name { font-weight: 730; font-size: 1.08rem; }
.member-count { color: var(--muted); font-size: .94rem; }
.member-count strong { color: var(--ink); }
.dashboard-actions, .today-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.dashboard-actions.quick-only { grid-template-columns: minmax(0, 1fr); }
.today-grid { align-items: start; }
.today-tasks:last-child { grid-column: 1 / -1; }
.task-panel { padding: 0 20px; }
.task-panel .card-heading { padding: 5px 0; }
.task-list { margin: 0; padding: 0; list-style: none; }
.task-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 34px; align-items: center; min-height: 64px; column-gap: 7px; border-top: 1px solid #ebede5; padding: 8px 0; }
.task-copy { min-width: 0; }
.task-title { display: block; max-width: 100%; width: fit-content; padding: 1px 0; background: none; border: 0; text-align: left; font-size: 1.05rem; font-weight: 660; line-height: 1.3; overflow-wrap: anywhere; }
.task-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.task-meta a { text-decoration: underline; text-decoration-color: #98a49a; text-underline-offset: 2px; overflow-wrap: anywhere; }
.task-tags { display: flex; align-items: center; justify-content: end; gap: 6px; white-space: nowrap; }
.completion { width: 34px; height: 39px; border: 0; border-radius: 8px; background: none; position: relative; display: grid; place-items: center; padding: 0; }
.completion::before { content: ''; width: 19px; height: 19px; border: 1.5px solid #9ba99c; border-radius: 5px; position: absolute; }
.completion svg { visibility: hidden; z-index: 1; width: 15px; height: 15px; color: white; stroke-width: 2.4; }
.completion:hover, .icon-button:hover { background: var(--sage); }
.completion[aria-checked="true"]::before { background: var(--forest); border-color: var(--forest); }
.completion[aria-checked="true"] svg { visibility: visible; }
.completed .task-title { text-decoration: line-through; color: var(--muted); }
.priority, .person-tag, .count-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 30px; padding: 4px 7px; width: fit-content; font-weight: 650; font-size: .85rem; line-height: 1.15; }
.priority.high { background: #f6e9d9; color: #794514; }
.priority.normal { background: #f0f1ea; color: #555d50; }
.priority.low { background: #eaf0fa; color: #435775; }
.person-tag.both { background: #e9ece4; color: #3e5646; }
.person-tag span { font-size: .66rem; font-weight: 800; }
.person-tag svg { width: 13px; height: 13px; }
.count-pill { padding: 4px 9px; background: var(--sage); color: var(--forest-dark); }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 37px; background: none; border: 0; border-radius: 8px; color: var(--forest); padding: 0; }
.icon-button svg { width: 17px; height: 17px; }

.feature { min-height: 231px; display: flex; align-items: center; overflow: hidden; border-radius: 17px; color: #fff9f0; background: linear-gradient(125deg, #29483b, #173328); padding: 20px 24px; }
.feature.thanksgiving { background: linear-gradient(90deg, #301b10 0%, #301b10eb 22%, #301b105c 75%), url('/thanksgiving.webp') right center / cover #301b10; }
.feature-content { max-width: 28rem; }
.feature-date { display: flex; align-items: center; gap: 7px; font-size: .96rem; font-weight: 680; }
.feature-date svg { width: 16px; height: 16px; }
.feature h2 { margin: 10px 0 9px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 400; line-height: 1.05; letter-spacing: -.044em; }
.feature h2 + p { font-size: 1rem; }
.feature progress { margin: 9px 0 0; max-width: 10.8rem; height: 5px; color: #fff0d1; background: #f5dcc57a; }
.feature-button { margin-top: 15px; min-height: 42px; color: var(--ink); background: #fff8eb; }
.feature-button:hover { background: #f4e5ce; }
.feature-button:focus-visible { outline-color: #f8e2b1; }
.quick-card { padding: 0 19px 17px; }
.quick-card h2 { display: flex; align-items: center; gap: 9px; }
.quick-card form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.quick-field { display: grid; gap: 5px; min-width: 0; }
.quick-field:first-child { grid-column: 1 / -1; }
#editor-form { display: grid; gap: 9px; }
.quick-card label, #editor-form label, .filters label { display: grid; gap: 5px; font-size: .94rem; font-weight: 660; }
label > span { display: inline; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; background: #fbfcf7; border: 1px solid #dce1d6; border-radius: 8px; padding: 8px 10px; color: var(--ink); }
input::placeholder { color: #657063; }
select { appearance: none; padding-right: 29px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23365140' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 8px center; background-repeat: no-repeat; }
textarea { resize: vertical; }
.empty { padding: 17px 0 23px; color: var(--muted); line-height: 1.45; }
main > .empty { padding: 18px; }
.empty p + button { margin-top: 12px; }
.loading, .muted { color: var(--muted); font-size: .9rem; }
.filters { padding: 0 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); gap: 12px; }

.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calendar-card { padding: 0 17px 18px; }
.calendar-card .card-heading { flex-wrap: wrap; padding: 10px 0; }
.calendar-actions { display: flex; align-items: center; gap: 3px; }
.calendar-actions .button { min-height: 34px; padding-inline: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.weekday { text-align: center; padding: 6px 0; color: var(--muted); font-weight: 630; font-size: .8rem; }
.day { min-height: 48px; padding: 4px 0; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid transparent; border-radius: 7px; background: #f6f7f1; font-weight: 650; }
.day:hover { background: var(--sage); }
.day.current { border-color: #779180; }
.day[aria-pressed="true"] { color: white; background: var(--forest); }
.day-marks { height: 7px; display: flex; align-items: center; gap: 3px; }
.event-mark, .task-mark { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a85f27; }
.task-mark { background: #56835c; }
.day[aria-pressed="true"] .event-mark { background: #ffd39e; }
.day[aria-pressed="true"] .task-mark { background: #b7e2b2; }
.legend { display: flex; gap: 16px; margin-top: 13px; color: var(--muted); font-size: .85rem; }
.legend span { display: flex; align-items: center; gap: 6px; }
.agenda-panel { min-height: 146px; padding: 0 17px 13px; }
.agenda-event { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 0 6px; background: #f7f8f2; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.agenda-event:hover { background: #f0f3ea; }
.agenda-icon { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 9px; color: var(--forest-dark); background: var(--sage); }
#tour-upcoming .agenda-icon { color: #6e431f; background: var(--gold); }
.agenda-copy { min-width: 0; }
.agenda-event:hover strong { text-decoration: underline; }
.agenda-event small { display: block; margin-top: 2px; font-size: .9rem; color: var(--muted); }
.agenda-panel .empty { padding: 13px 0; }
.calendar-agenda .empty { margin-top: 10px; }
.calendar-agenda .task-row { grid-template-columns: 34px minmax(0, 1fr) 34px; }
.calendar-agenda .task-tags { grid-column: 2; grid-row: 2; justify-content: start; }
.calendar-agenda .task-edit { grid-column: 3; grid-row: 1 / span 2; }

.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.event-card { display: grid; align-content: start; gap: 10px; padding: 18px; }
.event-card-top { display: flex; align-items: center; gap: 10px; }
.event-card > p { color: var(--muted); font-size: .9rem; }
.event-card .text-link { margin-top: 5px; width: fit-content; }
.event-card h2 a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 17px; }
.back-link svg { width: 15px; height: 15px; }
.event-details { padding: 14px 18px; margin-bottom: 17px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.event-details p + p { margin-top: 8px; }
.event-progress { padding: 1px 0 12px; }
.task-group h3 { padding: 8px 10px; margin: 0 -2px 1px; color: var(--forest-dark); background: #eff2e9; border-radius: 7px; }
.task-group + .task-group { margin-top: 7px; }
.task-group:last-child { margin-bottom: 8px; }
.task-group .task-row:first-child { border-top: 0; }

dialog { position: fixed; min-width: 0; max-height: calc(100dvh - 24px); padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 65px #18241d3b; }
dialog::backdrop { background: #1a2a23a0; }
#editor { width: min(530px, calc(100% - 24px)); }
dialog h2 { padding-right: 33px; font-size: 1.5rem; }
.close-dialog { position: absolute; top: 12px; right: 12px; }
#editor-form { margin-top: 16px; gap: 13px; }
#editor-form label { display: block; }
#editor-form label :is(select, input, textarea) { display: block; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-error { color: #992d2a; font-size: .87rem; font-weight: 600; }
.dialog-actions { display: flex; gap: 8px; justify-content: end; margin-top: 5px; }
#tour { inset: auto; margin: 0; width: min(355px, calc(100% - 28px)); }
#tour::backdrop { background: transparent; }
#tour .eyebrow { margin-bottom: 5px; }
#tour-description { color: var(--muted); font-size: .94rem; line-height: 1.45; margin: 8px 0 13px; }
#spotlight { position: fixed; z-index: 20; pointer-events: none; border: 3px solid #a7deaa; border-radius: 12px; box-shadow: 0 0 0 150vmax #1a2a23a8, 0 0 0 1px #29483b; }
.notice { z-index: 10; position: fixed; right: 20px; bottom: 20px; max-width: min(430px, calc(100vw - 40px)); color: white; background: var(--forest-dark); border-radius: 9px; box-shadow: 0 5px 18px #16231b40; pointer-events: none; }
.notice.visible { padding: 10px 14px; }
.notice.error { background: #832f2c; }
.sr-only, .notice:not(.visible) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 30; transform: translateY(-200%); padding: 8px 12px; color: #fff; background: var(--forest); border-radius: 7px; }
.skip:focus { transform: translateY(0); }

@media (max-width: 1150px) {
  .layout { grid-template-columns: 178px minmax(0, 1fr); }
  .overview-grid, .dashboard-actions, .today-grid { gap: 14px; }
  .stat { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 5px; gap: 6px; }
  .stat .stat-icon { width: 31px; height: 31px; }
  .member-card { min-height: 134px; }
  .member-card .avatar { width: 37px; height: 37px; }
  .member-card { grid-template-columns: 37px minmax(0, 1fr); padding-inline: 11px; gap: 3px 8px; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .member-card { min-height: 74px; }
  .dashboard-actions { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .today-grid .task-row { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .today-grid .task-tags { grid-column: 2; grid-row: 2; justify-content: start; padding-top: 4px; }
  .today-grid .task-edit { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 800px) {
  .layout { display: block; }
  .sidebar { position: static; height: auto; padding: 0; color: var(--ink); background: none; }
  .sidebar :focus-visible { outline-color: var(--focus); }
  .brand { position: absolute; z-index: 7; left: 15px; top: 13px; margin: 0; font-size: 1.12rem; }
  .brand-accent { color: #55735d; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--forest); }
  .brand-mark svg { width: 20px; height: 20px; }
  .sidebar-footer, #section-label { display: none; }
  .nav { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: #fbfbf6; border-top: 1px solid var(--line); }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 49px; padding: 4px 0; font-size: .88rem; color: var(--muted); }
  .nav a:hover { background: var(--sage); }
  .nav a svg { width: 18px; height: 18px; }
  .topbar { position: static; justify-content: end; min-height: 62px; padding: 8px 15px; }
  .topbar .mobile-backup { display: inline-flex; }
  main { padding: 27px 15px calc(83px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 20px; }
  .welcome-row { align-items: start; flex-direction: column; }
  .welcome-date { background: none; border: 0; padding: 0; min-height: 0; }
  .notice { bottom: calc(67px + env(safe-area-inset-bottom)); right: 12px; }
}

@media (max-width: 530px) {
  .topbar { padding-inline: 12px; }
  .brand { left: 12px; gap: 5px; }
  .top-actions { gap: 4px; }
  .top-actions .button { min-height: 36px; padding-inline: 7px; font-size: .8rem; gap: 4px; }
  .top-actions .button svg { width: 15px; height: 15px; }
  #start-tour svg { display: none; }
  .dashboard { gap: 16px; }
  .dashboard-actions, .today-grid { grid-template-columns: 1fr; }
  .stats, .member-grid { gap: 7px; }
  .stat { min-height: 112px; padding: 9px; }
  .stat .stat-icon { width: 26px; height: 26px; border-radius: 7px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-body p { font-size: .88rem; }
  .stat-body strong { font-size: 1.64rem; }
  .stat progress { height: 5px; }
  .feature { min-height: 195px; padding: 16px; }
  .feature h2 { margin-top: 8px; }
  .feature-button { margin-top: 12px; }
  .quick-card, .agenda-panel { padding-inline: 12px; }
  .agenda-panel { min-height: 124px; }
  .task-panel { padding-inline: 11px; }
  .task-row { grid-template-columns: 34px minmax(0, 1fr) 34px; column-gap: 4px; }
  .task-tags { grid-column: 2; grid-row: 2; justify-content: start; padding-top: 4px; }
  .task-edit { grid-column: 3; grid-row: 1 / span 2; }
  .filters { gap: 5px; }
  .filters label { font-size: .78rem; }
  .filters select { padding-inline: 5px 19px; background-position: right 3px center; }
  .calendar-card { padding-inline: 10px; }
  .event-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: start; }
  .page-heading > .button { margin-top: 6px; }
  .event-details { padding-inline: 12px; }
}

@media (max-width: 355px) {
  .brand { font-size: 1rem; }
  .brand-mark { width: 29px; height: 29px; }
  .top-actions .button { padding-inline: 5px; }
  .top-actions .button svg { width: 13px; height: 13px; }
  .stat { padding-inline: 7px; }
  .quick-card form { grid-template-columns: 1fr; }
}

@media (max-height: 510px) and (min-width: 801px) {
  .sidebar { position: static; height: auto; }
  .sidebar-footer { margin-top: 35px; }
}
.disclosure { margin-top: 12px; padding: 12px 16px; min-width: 0; }
.disclosure > summary { cursor: pointer; min-height: 42px; padding-block: 8px; color: var(--green-dark, #1d3b2f); font-weight: 700; }
.disclosure > summary .count-pill { margin-left: 8px; }
.disclosure > .event-grid { margin-top: 10px; }
.recent-completed { grid-column: 1 / -1; }
.recent-completed .module-rows > li > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.recent-completed .module-rows time { color: var(--muted); font-size: .9rem; text-align: right; flex-shrink: 0; }
.cancelled-mark { display: grid; place-items: center; color: var(--muted); }
.closeout-task, .closeout-bulk { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.closeout-task legend, .closeout-bulk legend { max-width: 100%; font-weight: 700; overflow-wrap: anywhere; }
.closeout-task .muted { margin: 0 0 8px; }
.closeout-bulk .button { margin-top: 8px; }
