:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --surface: #fff;
  --ink: #203a35;
  --body: #52645f;
  --muted: #70817b;
  --line: #dfe5df;
  --green: #166c59;
  --green-dark: #0f5746;
  --green-pale: #e5f1e9;
  --amber: #986123;
  --amber-pale: #fbf1df;
  --red: #ad4034;
  --toolbar-height: 100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--toolbar-height) + 22px); }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, input, select { border-radius: 8px; }
button { transition: background .15s, border-color .15s, box-shadow .15s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #ba7026; outline-offset: 3px; }
input, select { min-width: 0; min-height: 42px; border: 1px solid #cfd9d2; padding: 8px 10px; color: var(--ink); background: white; }
input[type="date"] { font-size: 13px; }
input::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
p, h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -1.5px; line-height: 1.2; }
h2 { font-size: 25px; letter-spacing: -.7px; font-weight: 650; line-height: 1.3; }
a { color: inherit; }
[hidden] { display: none !important; }
.page { max-width: 1340px; padding: 0 40px; margin: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 23px; letter-spacing: -.8px; font-weight: 700; line-height: 1.1; }
.brand-icon { width: 42px; height: 44px; background: var(--green); color: white; border-radius: 12px; display: grid; place-items: center; }
.brand-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-slash { color: #94a99b; font-weight: 400; }
.brand-sub { display: block; margin-top: 7px; font-size: 8px; letter-spacing: 1.75px; font-weight: 650; color: var(--muted); }
.privacy-pill { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--body); border: 1px solid var(--line); border-radius: 30px; padding: 6px 11px; }
.tiny-dot { width: 6px; height: 6px; border-radius: 50%; background: #5f8c72; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 36px 0 27px; }
.eyebrow, .section-kicker { font-size: 9px; font-weight: 700; letter-spacing: 1.55px; color: var(--muted); }
.intro .eyebrow { margin-bottom: 10px; }
.intro p:last-child { margin-top: 12px; color: var(--body); font-size: 14px; }
.text-button { padding: 3px 0; color: var(--green); background: none; border: none; font-weight: 600; font-size: 12px; white-space: nowrap; }
.text-button:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.how-button { margin-bottom: 3px; }
.how-button span { margin-left: 8px; }
.dashboard-host { position: relative; margin-bottom: 16px; }
.dashboard { background: var(--surface); border: 1px solid #cfdcd2; border-radius: 14px; box-shadow: 0 3px 12px #22392a04; padding: 19px 25px 0; }
.dashboard.has-failures { background: #fff0ec; border-color: #d89b90; }
.dashboard.has-failures .score, .dashboard.has-failures #failure-count, .is-failing { color: var(--red); }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.estimate-label { color: var(--body); background: #f1f4ef; border-radius: 5px; padding: 3px 8px; font-size: 10px; }
.dashboard-body { display: grid; grid-template-columns: 1.05fr 1.15fr 1.15fr 180px; gap: 23px; align-items: center; }
.status-block, .score-block, .forecast-block, .inspect-block { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.status-label { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.status-title { display: flex; align-items: center; gap: 8px; font-size: 25px; letter-spacing: -.7px; font-weight: 650; color: var(--green); line-height: 1.2; }
.status-title::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #166c5910; }
.status-title.is-failing { color: var(--red); }
.compact-assumption { display: none; }
.status-detail { font-size: 11px; color: var(--body); margin-top: 10px; }
.score-block { border-left: 1px solid var(--line); padding-left: 25px; }
.score { font-size: 39px; font-weight: 650; letter-spacing: -1.7px; line-height: 1; }
.score-denominator { color: #8a9a92; font-size: 19px; font-weight: 400; }
.score-caption { color: var(--body); font-size: 11px; margin-top: 6px; }
.window-label { color: var(--muted); font-size: 10px; margin-top: 3px; }
.forecast-block > strong { font-size: 27px; font-weight: 600; letter-spacing: -.8px; line-height: 1.2; }
.forecast-result { font-size: 11px; color: var(--body); margin-top: 8px; }
.inspect-block { gap: 7px; }
.inspect-block .text-button { white-space: normal; text-align: left; }
.dashboard-foot { margin-top: 20px; border-top: 1px solid #e9ede7; padding: 10px 0; font-size: 10px; color: var(--muted); }
.dashboard.is-compact { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border: 0; border-bottom: 1px solid #cfdcd2; border-radius: 0; padding: 10px max(24px, calc((100vw - 1260px) / 2)); box-shadow: 0 4px 20px #183b3010; animation: toolbar-in .18s ease-out; }
.is-compact .dashboard-top, .is-compact .dashboard-foot, .is-compact .status-label, .is-compact .status-detail, .is-compact .window-label { display: none; }
.is-compact .dashboard-body { grid-template-columns: 1.15fr 1fr 1.2fr 180px; }
.is-compact .status-title { font-size: 22px; }
.is-compact .compact-assumption { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.is-compact .score { font-size: 27px; }
.is-compact .score-denominator { font-size: 16px; }
.is-compact .score-caption { margin-top: 0; font-size: 10px; }
.is-compact .forecast-block > strong { font-size: 23px; }
.is-compact .forecast-result { font-size: 10px; margin-top: 2px; }
.transfer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 20px; font-size: 12px; }
.transfer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.inspection-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 12px; }
.inspection-controls label { display: flex; gap: 8px; align-items: center; }
.inspection-controls strong { font-weight: 600; }
.failure-swatch { background: #ffe5de; border-color: #b54b3b; }
.calendar-week.rolling-failure { box-shadow: 0 0 0 1px #d28e80; border-radius: 5px; }
.calendar-week .week-total.rolling-failure { color: #a23427; background: #ffe5de; }
.calendar-week .week-total.rolling-failure::after { content: "!"; font-weight: 700; }
.dashboard.has-failures.is-compact { border-bottom-color: #d89b90; }
@keyframes toolbar-in { from { opacity: .6; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.assumption-bar { display: flex; align-items: center; gap: 11px; padding: 0 3px; margin: 0 0 25px; color: var(--body); font-size: 11px; }
.info-icon { border: 1px solid #91a79a; color: #6b8875; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.assumption-bar p { flex: 1; }
.assumption-bar strong { font-weight: 600; }
.save-status { white-space: nowrap; color: var(--muted); font-size: 10px; }
.save-status::before { content: "\2713"; margin-right: 5px; }
.save-status.unsaved { color: var(--red); }
.save-status.unsaved::before { content: "!"; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 17px 21px; }
details > summary::-webkit-details-marker { display: none; }
summary .section-kicker { display: block; font-size: 8px; margin-bottom: 3px; }
summary strong { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.summary-note { color: var(--body); font-size: 11px; display: flex; align-items: center; gap: 18px; }
.chevron { font-size: 21px; line-height: 1; color: #748c7c; display: inline-block; transition: transform .15s; }
details[open] > summary .chevron { transform: rotate(180deg); }
.details-body { padding: 0 21px 20px; }
.section-description { color: var(--body); font-size: 12px; }
.breakdown { margin-bottom: 20px; }
.week-breakdown { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.week-tile { background: #f6f8f4; padding: 12px; border: 1px solid #e1e8df; border-radius: 7px; display: flex; flex-direction: column; font-size: 10px; color: var(--body); position: relative; }
.week-tile strong { color: var(--green); margin: 7px 0 2px; font-size: 17px; font-weight: 600; }
.week-tile.nonqualifying { background: #fcf7ee; border-color: #eee1ce; }
.week-tile.nonqualifying strong { color: var(--amber); }
.week-tile small { margin-top: 4px; font-size: 8px; color: var(--muted); }
.small-note { font-size: 10px; color: var(--muted); line-height: 1.6; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 10px 16px; font-size: 12px; font-weight: 600; min-height: 42px; }
.primary-button { background: var(--green); color: #fff; border: 1px solid var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { border: 1px solid #ccd8cd; background: #fff; color: var(--ink); }
.secondary-button:hover:not(:disabled) { background: #edf3e9; border-color: #9eb7a4; }
.danger-button { background: var(--red); border: 1px solid var(--red); color: white; }
.calendar-section { scroll-margin-top: 24px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 34px 0 18px; }
.calendar-heading h2 { font-size: 29px; margin-top: 4px; }
.calendar-heading .section-description { margin-top: 5px; font-size: 11px; }
.calendar-actions { display: flex; gap: 8px; }
.calendar-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-meta > p { color: var(--body); font-size: 11px; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.legend > span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--body); }
.legend-swatch { width: 11px; height: 11px; display: inline-block; border-radius: 3px; border: 1px solid transparent; }
.office-swatch { background: #d7e9db; border-color: #b7d4c0; }
.remote-swatch { background: #faf0dd; border-color: #eadac0; }
.weekend-swatch { background: #f0f1ed; border-color: #e0e3dc; }
.today-swatch { background: white; border: 2px solid var(--green); }
.window-swatch { border-bottom: 3px solid #819bcb; border-radius: 0; background: #edf1fb; }
.calendar-instructions { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 16px; color: var(--muted); font-size: 9px; }
.edited-key { font-size: 13px; font-weight: 600; color: var(--green); }
.months-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.month-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 17px 14px 14px; min-width: 0; scroll-margin-top: 22px; }
.month-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 15px; padding: 0 2px; }
.month-header h3 { font-size: 16px; letter-spacing: -.3px; font-weight: 600; }
.month-year { font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 13px; }
.month-tag { color: #718674; font-size: 8px; background: #f0f4ec; border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
.month-tag.current { color: var(--green); background: var(--green-pale); }
.weekday-labels, .calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 27px; gap: 3px; }
.weekday-labels { margin-bottom: 6px; text-align: center; color: #708276; font-size: 8px; font-weight: 600; }
.weekday-labels span:nth-child(6), .weekday-labels span:nth-child(7) { color: #9ca79c; }
.weekday-labels .week-total-label { font-size: 7px; letter-spacing: -.3px; align-self: center; }
.calendar-week { margin-top: 4px; }
.day, .spillover { height: 40px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; position: relative; user-select: none; -webkit-user-select: none; }
.day { padding: 0; color: var(--ink); background: #fcf5e7; }
.day-number { font-size: 11px; line-height: 1.2; font-weight: 600; }
.day-kind { font-size: 6.5px; letter-spacing: .1px; margin-top: 3px; color: #937547; }
.day.office { background: #e5efe5; }
.day.office .day-kind { color: #5a7c60; }
.day.remote { background: #fbf2e2; }
.day.weekend { background: #f6f7f3; color: #8d998c; opacity: 1; }
.day.weekend .day-number { font-weight: 400; }
.day:hover:not(:disabled) { filter: brightness(.96); border-color: #819b85; z-index: 1; }
.day:focus-visible { z-index: 2; outline-offset: 1px; }
.day.in-window { border-bottom: 2px solid #8f9fc1; }
.day.is-today { outline: 2px solid var(--green); outline-offset: -2px; }
.day.is-as-of::after { content: ""; position: absolute; bottom: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.day.edited::before { content: "*"; position: absolute; right: 3px; top: 0; font-size: 10px; line-height: 1.3; color: #58745e; }
.spillover { color: #b7c0b4; font-size: 10px; }
.week-total { align-self: center; width: 27px; height: 33px; padding: 0; border: 0; border-radius: 5px; font-size: 9px; font-weight: 650; color: var(--green); background: #f1f6ee; }
.week-total.nonqualifying { color: var(--amber); background: #fcf6eb; }
.week-total::after { display: block; content: "\2713"; font-size: 8px; font-weight: 400; line-height: 1.2; }
.week-total.nonqualifying::after { content: "\2013"; }
.week-total:hover { box-shadow: inset 0 0 0 1px #9bab98; }
.calendar-week.empty-row .week-total { visibility: hidden; pointer-events: none; }
.calendar-week.selected-week .week-total { box-shadow: inset 0 0 0 1px var(--green); }
.add-months-area { text-align: center; padding: 27px 0 35px; }
.timeline-line { display: block; width: 1px; height: 17px; background: #c9d3c6; margin: -27px auto 10px; }
.add-months-button { padding: 11px 23px; }
.add-months-button > span:first-child { font-size: 18px; line-height: 1; }
.add-months-button .muted { font-weight: 400; font-size: 11px; }
.add-months-area p { margin-top: 9px; }
.bottom-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; align-items: start; }
.pattern-options { display: flex; gap: 6px; border: 0; padding: 0; margin: 16px 0; }
.pattern-options label { position: relative; cursor: pointer; }
.pattern-options input { width: 1px; height: 1px; min-height: 0; position: absolute; opacity: 0; }
.pattern-options span { display: grid; place-items: center; width: 47px; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.pattern-options input:checked + span { background: var(--green-pale); border-color: #adc8b4; color: var(--green); font-weight: 600; }
.pattern-options input:focus-visible + span { outline: 3px solid #ba7026; outline-offset: 2px; }
.settings .small-note { margin-top: 10px; }
.rules .details-body p { color: var(--body); font-size: 12px; margin-bottom: 12px; }
.rules .details-body p:last-child { font-size: 10px; margin-bottom: 0; color: var(--muted); }
.page-footer { margin-top: 32px; padding: 22px 0 27px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; gap: 20px; }
.footer-divider { margin: 0 10px; color: #a6b3a5; }
.reset-button { color: var(--muted); font-weight: 400; font-size: 10px; }
.message { padding: 12px 15px; border-radius: 8px; margin-bottom: 15px; font-size: 12px; }
.error-message { background: #fff0e8; color: #923c2d; border: 1px solid #e8c4b4; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: #203e33; color: #fff; border-radius: 9px; padding: 12px 20px; font-size: 12px; max-width: calc(100vw - 32px); width: max-content; opacity: 0; pointer-events: none; box-shadow: 0 5px 18px #17352920; transition: opacity .15s, transform .15s; z-index: 100; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { max-width: 440px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 15px; padding: 28px; color: var(--ink); box-shadow: 0 15px 70px #12352833; }
dialog::backdrop { background: #142c2466; backdrop-filter: blur(3px); }
dialog h2 { font-size: 23px; }
dialog p { margin: 14px 0 25px; font-size: 13px; color: var(--body); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; background: white; color: var(--green); z-index: 200; padding: 12px; border-radius: 6px; }
.noscript { position: fixed; inset: 15px 15px auto; padding: 20px; background: #fff0e8; color: var(--red); border: 1px solid currentColor; z-index: 300; }
@media (max-width: 1140px) {
  .page { padding: 0 28px; }
  .months-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day, .spillover { height: 43px; }
  .day-number { font-size: 12px; }
  .day-kind { font-size: 7px; }
  .dashboard-body { gap: 18px; grid-template-columns: 1fr 1.1fr 1.15fr 160px; }
  .dashboard { padding-left: 20px; padding-right: 20px; }
  .score-block { padding-left: 18px; }
  .status-title { font-size: 22px; }
  .calendar-meta { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 820px) {
  .dashboard-body { grid-template-columns: 1fr 1fr; gap: 20px 26px; }
  .forecast-block { border-top: 1px solid var(--line); padding-top: 13px; }
  .inspect-block { border-top: 1px solid var(--line); padding-top: 13px; }
  .dashboard-foot { margin-top: 14px; }
  .is-compact .dashboard-body { grid-template-columns: 1.1fr 1fr 160px; gap: 14px; }
  .is-compact .forecast-block { display: none; }
  .is-compact .inspect-block { border: 0; padding: 0; }
  .week-breakdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calendar-instructions { flex-direction: column; gap: 3px; }
  .bottom-panels { grid-template-columns: 1fr; gap: 12px; }
  .intro { align-items: start; }
  .intro .how-button { margin-top: 3px; }
  .intro .eyebrow { font-size: 8px; }
}
@media (max-width: 600px) {
  .page { padding: 0 18px; }
  .page-header { padding: 20px 0; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-icon { width: 36px; height: 39px; border-radius: 10px; }
  .brand-sub { font-size: 7px; letter-spacing: 1.4px; }
  .privacy-pill { font-size: 0; border: 0; padding: 0; }
  .privacy-pill::after { content: "Local only"; font-size: 10px; }
  .intro { padding: 26px 0 21px; flex-direction: column; gap: 13px; }
  h1 { font-size: 30px; letter-spacing: -1px; max-width: 330px; }
  .intro p:last-child { font-size: 12px; max-width: 300px; }
  .how-button { font-size: 11px; }
  .dashboard { padding: 16px 16px 0; }
  .dashboard-top { margin-bottom: 15px; gap: 12px; }
  .dashboard-top .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .estimate-label { font-size: 8px; padding: 3px 5px; }
  .dashboard-body { gap: 16px; grid-template-columns: 1fr 1.1fr; }
  .status-title { font-size: 21px; }
  .status-label { font-size: 10px; }
  .status-detail { font-size: 10px; }
  .score { font-size: 34px; }
  .score-caption, .window-label { font-size: 9px; }
  .score-caption .muted { display: block; }
  .score-block { padding-left: 16px; }
  .forecast-block > strong { font-size: 24px; }
  .forecast-result { font-size: 10px; }
  .dashboard-foot { font-size: 9px; }
  .dashboard.is-compact { padding: 9px 18px; }
  .is-compact .dashboard-body { grid-template-columns: 1fr 1fr 135px; gap: 10px; }
  .is-compact .status-title { font-size: 16px; letter-spacing: -.5px; gap: 6px; }
  .is-compact .status-title::before { width: 6px; height: 6px; box-shadow: none; }
  .is-compact .score-block { padding-left: 11px; }
  .is-compact .score { font-size: 25px; }
  .is-compact .score-denominator { font-size: 13px; }
  .is-compact .score-caption { font-size: 8px; white-space: nowrap; }
  .is-compact .score-caption .muted { display: none; }
  .is-compact .inspect-block .text-button { font-size: 10px; }
  .transfer-bar { align-items: start; flex-direction: column; gap: 10px; }
  .transfer-actions { width: 100%; }
  .transfer-actions > button { flex: 1; }
  .assumption-bar { align-items: start; flex-wrap: wrap; gap: 8px; font-size: 10px; margin-bottom: 18px; }
  .assumption-bar p { flex-basis: calc(100% - 30px); }
  .save-status { padding-left: 24px; font-size: 9px; }
  .panel summary { padding: 15px 17px; }
  .details-body { padding: 0 17px 17px; }
  .summary-note { font-size: 0; gap: 0; }
  .summary-note .chevron { font-size: 21px; }
  .calendar-heading { align-items: start; margin-top: 27px; gap: 10px; flex-direction: column; }
  .calendar-heading h2 { font-size: 27px; }
  .calendar-actions { width: 100%; margin-top: 5px; }
  .calendar-actions > button:first-child { flex: 1; }
  .calendar-actions > button:last-child { min-width: 90px; }
  .calendar-meta { padding: 11px 0; gap: 9px; }
  .calendar-meta > p { font-size: 10px; }
  .legend { gap: 8px 12px; }
  .legend > span { font-size: 9px; }
  .calendar-instructions { padding-bottom: 13px; font-size: 9px; }
  .months-grid { grid-template-columns: 1fr; gap: 16px; }
  .month-card { padding: 18px 13px 14px; }
  .month-header h3 { font-size: 18px; }
  .month-year { font-size: 14px; }
  .month-header { margin-bottom: 18px; }
  .weekday-labels { font-size: 9px; margin-bottom: 8px; }
  .weekday-labels, .calendar-week { gap: 4px; grid-template-columns: repeat(7, minmax(0, 1fr)) 28px; }
  .calendar-week { margin-top: 5px; }
  .day, .spillover { height: 44px; }
  .day-number { font-size: 12px; }
  .day-kind { font-size: 7px; }
  .week-total { width: 28px; height: 36px; }
  .month-tag { font-size: 9px; }
  .week-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .week-tile { padding: 9px; font-size: 9px; }
  .page-footer { align-items: start; font-size: 9px; margin-top: 25px; }
  .footer-divider { margin: 0 4px; }
  .page-footer > span { max-width: 220px; }
}
@media (max-width: 370px) {
  .page { padding: 0 12px; }
  .dashboard.is-compact { padding: 9px 12px; }
  .is-compact .dashboard-body { grid-template-columns: 1fr 1fr 126px; gap: 6px; }
  .is-compact .status-title { font-size: 13px; }
  .is-compact .score-caption { font-size: 7px; }
  .is-compact .score-block { padding-left: 8px; }
  .is-compact .score { font-size: 22px; }
  .day, .spillover { height: 42px; }
  .day-kind { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .dashboard.is-compact { position: static; padding: 15px; }
  .dashboard-host { height: auto !important; }
  .transfer-bar, .calendar-actions, .add-months-area, .bottom-panels, .page-footer, .toast, .inspect-block, .skip-link { display: none; }
  .months-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .month-card { break-inside: avoid; }
  .day { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
