@font-face { font-family: "Instrument Sans"; src: url("/instrument-sans.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: #282b26;
  background: #f7f7f2;
  --green: #355545;
  --line: #dfe2d9;
  --muted: #586257;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header { background: #e9ede4; border-bottom: 1px solid var(--line); }
.header-inner, main { max-width: 780px; margin: auto; padding: 0 24px; }
.header-inner { min-height: 62px; display: flex; align-items: center; gap: 16px; }
.wordmark { font-size: 25px; font-weight: 730; letter-spacing: -.05em; color: var(--green); }
.page-name { border-left: 1px solid #c8cec4; padding-left: 16px; color: var(--muted); font-size: 14px; }
main { padding-top: 34px; padding-bottom: 48px; }
h1 { margin: 0 0 18px; font-size: 35px; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
button, input, select { font: inherit; }
button, input, select { min-height: 44px; border-radius: 8px; border: 1px solid #cbd1c6; }
button { background: #fff; padding: 0 13px; color: var(--green); font-weight: 650; cursor: pointer; }
button:hover { background: #eff1eb; }
button:disabled { opacity: .65; cursor: wait; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: #294536; }
input, select { color: inherit; padding: 8px 11px; background: #fff; width: 100%; min-width: 0; }
:focus-visible { outline: 2px solid #557867; outline-offset: 3px; }
.capture, .actions { display: flex; gap: 8px; }
.capture button { min-width: 76px; }
nav { display: flex; gap: 8px; margin: 25px 0 12px; border-bottom: 1px solid var(--line); }
nav button { border: 0; background: transparent; padding: 0 12px; color: var(--muted); border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; }
nav button[aria-pressed="true"] { border-bottom-color: var(--green); color: var(--green); }
nav span { font-size: 13px; margin-left: 3px; }
#triage-notice { display: block; width: fit-content; min-height: 38px; margin: 8px 0 16px;
  padding: 0 12px; border-color: #b9c9b9; background: #e9f0e6; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 12px 14px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .summary > div:first-child { min-width: 0; flex: 1; }
.card .actions { flex-wrap: nowrap; flex: 0 0 auto; }
.card .actions button { white-space: nowrap; }
.action-icon { display: inline-block; min-width: 1.1em; font-size: 19px; line-height: 1; vertical-align: -1px; }
.action-label { margin-left: 3px; }
.details { margin: 5px 0 0; font-size: 14px; color: var(--muted); }
.editor { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.editor { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
fieldset, .editor .actions, .editor .error { grid-column: 1 / -1; }
fieldset { margin: 0; border: 0; padding: 0; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.checkbox { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.checkbox input { width: 18px; min-height: auto; accent-color: var(--green); }
.repeat-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#postpone-controls { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
#postpone-controls summary { color: var(--green); cursor: pointer; font-weight: 650; min-height: 44px; align-content: center; }
#postpone-controls label { max-width: 260px; margin-top: 6px; }
#postpone-controls .muted { margin-bottom: 0; }
.error, #feedback[data-error="true"] { color: #8a2929; }
.error, #feedback { margin: 7px 0; }
.empty { color: var(--muted); padding: 13px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .header-inner, main { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 22px; }
  .summary { align-items: flex-start; }
  .card .actions button { min-width: 44px; padding: 0 8px; }
  .card .actions button:not(.triage) .action-label { display: none; }
  .card .actions button.triage { min-width: 66px; }
  .editor { grid-template-columns: 1fr; }
  .actions { flex-wrap: wrap; }
}
.capture { flex-wrap: wrap; }
.capture input { flex: 1 1 175px; }
.capture button { white-space: nowrap; }
dialog { width: min(580px, calc(100% - 24px)); max-height: calc(100% - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: inherit; }
dialog::backdrop { background: #18271e66; }
.notes-field { grid-column: 1 / -1; }
textarea { font: inherit; color: inherit; padding: 8px 11px; border: 1px solid #cbd1c6; border-radius: 8px; width: 100%; resize: vertical; }
.chore-fields > label:first-child { margin-bottom: 4px; }
.type-heading { margin: 18px 0 8px; }

.due-field { grid-column: 1 / -1; }
.due-shortcuts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 3px 0 0; }
.due-shortcuts button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.due-shortcuts button:hover { color: #294536; }
@media (pointer: coarse) { .due-shortcuts button { min-height: 44px; } }

header { position: sticky; top: 0; z-index: 5; background: #f7f7f2; }
.header-inner, main { max-width: 1240px; }
.header-inner { justify-content: space-between; min-height: 64px; }
.wordmark { display: block; width: 132px; height: auto; }
#header-add { border: 0; background: transparent; font-size: 32px; font-weight: 450; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.header-actions form { margin: 0; }
.sign-out { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; }
main { padding-top: 0; }
nav { overflow-x: auto; white-space: nowrap; margin: 0 0 24px; position: sticky; top: 64px;
  z-index: 4; background: #f7f7f2; scrollbar-width: thin; }
nav button { flex: 0 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.page-heading h1 { margin-bottom: 0; }
.eyebrow { color: var(--muted); margin: 0 0 3px; font-size: 14px; }
#week-controls { display: flex; gap: 5px; }
#week-controls button { min-height: 36px; }
.capture { max-width: 760px; margin-bottom: 12px; }
.capture input { flex: 1 1 290px; }
.list-section { margin: 24px 0; }
.list-section > h2 { font-size: 20px; margin-bottom: 11px; }
.card { box-shadow: 0 1px 2px #22331c08; }
.week-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr);
  gap: 10px; overflow-x: auto; padding: 0 18px 12px 0; }
.day-column { min-width: 185px; min-height: 175px; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; }
.day-column h2 { font-size: 15px; margin: 0 0 13px; }
.day-column .card { padding: 10px; background: #f7f7f2; }
.day-column .summary { display: block; }
.day-column .actions { margin-top: 8px; }
.day-column .actions button { min-height: 32px; font-size: 12px; padding: 0 7px; }
.day-column .details { font-size: 12px; }
.day-due { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.event-card { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid #bf7548;
  border-radius: 3px; background: #f7eee7; padding: 8px 10px; margin: 0 0 8px; overflow-wrap: anywhere; }
.event-card span { font-size: 12px; color: #795037; }
.event-card strong { font-size: 14px; font-weight: 650; }
.event-card .event-place { color: #5b584e; font-size: 12px; line-height: 1.3; }
.calendar-settings { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; margin: 18px 0 24px; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-top h2 { font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; margin: 8px 0; }
.calendar-choice { display: inline-flex; align-items: center; gap: 8px; margin: 4px 15px 4px 0; }
.calendar-choice input { width: 18px; height: 18px; min-height: 0; accent-color: var(--green); }
#shopping-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.shopping-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.shopping-filters button { min-height: 40px; border-radius: 999px; font-size: 13px; }
.shopping-filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
#shopping-controls label { min-width: 150px; }
.shopping-quick-form { display: grid; gap: 12px; margin-top: 18px; }
.shopping-quick-form .actions { margin-top: 6px; }
.editor.shopping-mode #due-field { order: 5; }
.editor.shopping-mode .notes-field { order: 6; }
.editor.shopping-mode .error, .editor.shopping-mode > .actions { order: 7; }
#calendar-connect { display: inline-block; padding: 9px 13px; background: var(--green); color: #fff;
  border-radius: 8px; text-decoration: none; font-weight: 650; }
#calendar-connect[hidden] { display: none; }
#calendar-disconnect { margin-top: 12px; border: 0; background: none; padding: 0; min-height: 34px; font-size: 13px; }
@media (max-width: 700px) {
  .week-grid { grid-auto-columns: minmax(220px, 70vw); }
  .capture button { flex: 1 1 auto; }
  .page-heading { align-items: start; }
}
.login-page { min-height: 100vh; display: grid; place-items: center; background: #f7f7f2; }
.login-shell { width: min(420px, 100%); padding: 24px; }
.login-logo { width: 155px; display: block; margin: 0 auto 24px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  box-shadow: 0 12px 42px #22331c12; }
.login-card h1 { font-size: 27px; margin-bottom: 20px; }
.login-form { display: grid; gap: 8px; }
.login-form input { margin-bottom: 10px; }
.login-form button { width: 100%; margin-top: 6px; }
.login-error { color: #8a2929; margin: -8px 0 16px; }
.date-control { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.date-button { width: 100%; text-align: left; color: #282b26; font-weight: 500; }
#date-picker { width: min(350px, calc(100% - 24px)); padding: 16px; }
.date-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.date-picker-head button { width: 44px; padding: 0; }
.date-weekdays, .date-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.date-weekdays { margin-top: 15px; color: var(--muted); font-size: 12px; }
.date-weekdays span { padding: 8px 0; }
.date-days button { min-height: 39px; padding: 0; border: 0; background: transparent; font-weight: 500; }
.date-days button:hover, .date-days button.is-today { background: #e9ede4; }
.date-days button[aria-current="date"] { background: var(--green); color: #fff; }
.date-picker-actions { display: flex; justify-content: space-between; gap: 5px; margin-top: 14px; }
.date-picker-actions button { min-height: 39px; padding: 0 9px; }
