:root {
  --paper: #f5f3ec;
  --card: #fffefa;
  --ink: #29382e;
  --muted: #7b8173;
  --line: #dedfd4;
  --sage: #e8eddf;
  --green: #5a7451;
  --ochre: #956c31;
  --ochre-soft: #f6efdf;
  --danger: #9a4b3d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 2px; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; color: var(--ink); background: var(--card); border: 1px solid #cbd0c0; border-radius: 7px; }
input::placeholder, textarea::placeholder { color: #929887; }
textarea { resize: vertical; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: 39px; line-height: 1.12; letter-spacing: -1.4px; }
h2 { font-size: 28px; letter-spacing: -.6px; line-height: 1.2; }
ul, ol { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
.page-shell { width: min(100% - 80px, 1500px); margin: 0 auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 0 20px; border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; font-family: var(--serif); font-size: 25px; letter-spacing: -.7px; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.wordmark-dot { color: var(--ochre); margin-left: -8px; }
.home-mark { font-family: var(--sans); font-size: 29px; font-weight: 300; transform: translateY(-2px); line-height: 1; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.quiet-button { font-size: 11px; color: var(--muted); border: 0; background: none; padding: 5px 0; text-decoration: none; white-space: nowrap; }
.quiet-button:hover { color: var(--ink); }
.quiet-button span { margin-left: 6px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.day-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 29px 0 22px; }
.eyebrow { font-size: 9px; font-weight: 650; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.day-heading .eyebrow { margin-bottom: 9px; }
.date-label { color: var(--muted); font-size: 12px; margin-top: 8px; }
.day-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-bottom: 2px; }
.clock { font-family: var(--serif); font-size: 29px; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.9px; }
.freshness { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.freshness.offline .status-dot { background: var(--ochre); }
.access-label { color: #969b8e; font-size: 9px; }
.plan-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.plan-jumps { display: flex; gap: 25px; align-items: center; }
.plan-jumps a { text-decoration: none; font-size: 12px; color: #818876; padding: 5px 0; border-bottom: 1px solid transparent; }
.plan-jumps a:first-child { color: var(--green); border-bottom-color: var(--green); }
.plan-jumps a:hover { color: var(--ink); border-bottom-color: var(--line); }
.primary-button { border: 1px solid var(--ink); border-radius: 7px; padding: 10px 15px; min-height: 41px; background: var(--ink); color: var(--card); font-size: 12px; }
.primary-button:hover { background: #42563d; }
.primary-button span { margin-left: 20px; }
.plan-toolbar .primary-button { font-size: 11px; min-height: 35px; padding: 8px 12px; }
.planning-attention { padding: 10px 14px; color: #89703e; background: var(--ochre-soft); border-left: 3px solid #c7a970; border-radius: 3px 7px 7px 3px; font-size: 12px; margin-bottom: 12px; }
.briefing-strip { display: flex; align-items: baseline; gap: 17px; padding: 10px 0 12px; }
.briefing-strip h2 { flex: 0 0 auto; font-family: var(--sans); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: #758767; font-weight: 600; }
#briefing-text { font-size: 13px; line-height: 1.6; color: #63715c; white-space: pre-line; overflow-wrap: anywhere; }
#briefing-meta { color: #959b89; font-size: 9px; margin-top: 3px; }
#briefing-meta:empty { display: none; }
.briefing-strip.is-empty { padding: 2px 0 10px; }
.briefing-strip.is-empty #briefing-text { color: #929886; font-size: 11px; }
.calendar-sources { display: flex; flex-wrap: wrap; gap: 7px 14px; padding-bottom: 17px; }
.calendar-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-bottom: 17px; }
.calendar-strip .calendar-sources, body.tv-mode .calendar-strip .calendar-sources { padding-bottom: 0; }
.calendar-strip .small-button { flex-shrink: 0; }
.source-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #8b9381; line-height: 1.4; }
.source-pill::before { content: ""; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #8ba277; }
.source-pill.is-warning { color: #a18b62; }
.source-pill.is-warning::before { background: #c5a569; }
.planning-grid { display: grid; grid-template-columns: 1.12fr 1fr 1.12fr; background: var(--card); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; align-items: stretch; }
.plan-column { min-width: 0; border-right: 1px solid var(--line); scroll-margin-top: 20px; }
.plan-column:last-child { border-right: 0; }
.today-column { background: #fcfdf8; }
.week-column { background: #fbfaf5; }
.plan-column-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 25px 25px 23px; border-bottom: 1px solid var(--line); min-height: 108px; }
.today-column .plan-column-heading { border-top: 3px solid #799465; padding-top: 22px; background: #f2f5eb; }
.plan-date { display: block; color: #8a937f; font-size: 10px; margin-bottom: 7px; }
.plan-column-heading h2 { font-size: 31px; line-height: 1.05; letter-spacing: -.9px; }
.today-column .plan-column-heading h2 { font-size: 39px; color: #425d37; letter-spacing: -1.2px; }
.week-column .plan-column-heading h2 { font-size: 25px; letter-spacing: -.6px; }
.plan-count { flex: 0 0 auto; color: #708260; background: #eaf0e1; border-radius: 5px; font-size: 9px; padding: 4px 7px; white-space: nowrap; }
.plan-content { padding: 22px 25px 24px; }
.handover-block { padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid #e5e8da; }
.handover-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; margin-bottom: 10px; }
.handover-heading h4 { font-size: 12px; font-weight: 550; color: #69745e; }
.handover-heading > .text-button { margin-left: auto; min-height: 24px; }
.plan-status { background: #f2ebda; color: #9c8150; padding: 2px 5px; font-size: 8px; border-radius: 3px; }
.plan-status.is-confirmed { color: #769060; background: var(--sage); }
.handover-row { display: flex; align-items: center; gap: 11px; padding: 10px 8px; margin: 4px -8px 0; border-radius: 6px; }
.handover-row.needs-owner { background: #f7f1e6; }
.handover-time { flex: 0 0 55px; font-size: 13px; font-variant-numeric: tabular-nums; color: #7a735d; }
.handover-detail { flex: 1; min-width: 0; }
.handover-title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.handover-owner { font-size: 10px; line-height: 1.5; color: #8b967d; margin-top: 3px; }
.needs-owner .handover-owner { color: #a57a3d; }
.assign-button { flex: 0 0 auto; font-size: 9px; border: 1px solid #d8c8a6; background: #fffdf7; color: #96723a; border-radius: 5px; min-height: 28px; padding: 4px 8px; }
.assign-button:hover { background: #f1e4c7; }
.handover-note { font-size: 11px; color: #9d927a; line-height: 1.5; margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.plan-section-label { font-size: 9px; font-weight: 650; color: #8b9580; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.daily-tasks { margin-bottom: 25px; }
.daily-schedule { margin-top: 5px; }
.no-due-tasks { font-size: 10px; color: #9a9f91; margin-top: 20px; padding-top: 14px; border-top: 1px solid #ebede3; }
.empty-state { color: var(--muted); font-size: 12px; line-height: 1.65; padding: 3px 0 10px; }
.empty-state strong { display: block; color: #7f8974; font-size: 12px; font-weight: 400; margin-bottom: 3px; }
.empty-state span { color: #a0a492; font-size: 10px; }
.agenda-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; position: relative; padding-bottom: 20px; min-width: 0; }
.agenda-item:last-child { padding-bottom: 0; }
.agenda-item::after { content: ""; position: absolute; width: 1px; left: 56px; top: 5px; bottom: 0; background: #e2e6d9; }
.agenda-item:last-child::after { bottom: 3px; }
.event-time { font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.5; color: #8b9382; padding-top: 1px; }
.event-time.all-day { font-size: 9px; }
.event-details { position: relative; min-width: 0; padding-left: 6px; }
.event-details::before { content: ""; position: absolute; top: 6px; left: -14px; width: 5px; height: 5px; border-radius: 50%; background: #a3b28f; box-shadow: 0 0 0 3px var(--card); z-index: 1; }
.event-title { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.event-meta { font-size: 9px; color: #9aa18f; line-height: 1.5; margin-top: 3px; }
.week-content { padding-top: 19px; }
.week-day { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.week-day:last-child { border-bottom: 0; padding: 0; margin: 0; }
.week-day-heading { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.week-day-heading span:last-child { color: #a0a592; font-size: 9px; font-weight: 400; }
.is-compact .handover-block { margin: 0; padding: 0; border: 0; }
.is-compact .handover-heading { margin-bottom: 7px; }
.is-compact .handover-heading h4 { font-size: 10px; color: #909881; }
.is-compact .handover-row { padding: 7px 6px; margin-left: -6px; margin-right: -6px; gap: 9px; }
.is-compact .handover-time { font-size: 11px; flex-basis: 48px; }
.is-compact .handover-title { font-size: 12px; }
.is-compact .handover-owner { font-size: 9px; }
.is-compact .assign-button { font-size: 8px; padding: 3px 6px; min-height: 24px; }
.is-compact .daily-tasks { margin-top: 13px; margin-bottom: 12px; }
.is-compact .item-title { font-size: 12px; }
.quiet-day { font-size: 10px; color: #a6ab9b; }
.week-schedule { margin-top: 11px; color: #8d9780; font-size: 10px; }
.week-schedule > summary { min-height: 24px; display: flex; align-items: center; gap: 6px; list-style: none; }
.week-schedule > summary::before { content: "▸"; font-size: 10px; }
.week-schedule[open] > summary::before { content: "▾"; }
.week-schedule > summary::-webkit-details-marker { display: none; }
.week-schedule .agenda-list { padding-top: 12px; }
.week-schedule .event-title { font-size: 11px; }
.week-schedule .event-time { font-size: 10px; }
.item-list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #e8ebdf; min-width: 0; }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border: 0; }
.item-check { appearance: none; -webkit-appearance: none; width: 21px; height: 21px; min-width: 21px; flex: 0 0 21px; margin: 1px 0 0; padding: 0; border: 1px solid #bac7ad; border-radius: 5px; background: none; cursor: pointer; display: grid; place-items: center; }
.item-check:hover { background: var(--sage); }
.item-check:checked { background: var(--green); border-color: var(--green); }
.item-check:checked::after { content: "✓"; color: white; font-size: 12px; font-weight: 600; }
.item-check:disabled { cursor: default; opacity: 1; }
.item-body { min-width: 0; flex: 1; }
.item-title { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 9px; color: #8d9682; margin-top: 5px; }
.owner-tag { font-size: 9px; color: #6d805e; background: #edf1e5; padding: 2px 6px; border-radius: 3px; }
.owner-together { background: #e8eeee; color: #72867e; }
.owner-unassigned { background: #f3eee3; color: #9b8866; }
.agreement-tag { color: #9b7a43; font-size: 8px; }
.due-label.is-overdue { color: var(--danger); }
.item-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 7px; }
.small-button { background: none; border: 1px solid #d3ddc9; border-radius: 5px; color: #708660; font-size: 10px; padding: 4px 8px; min-height: 28px; }
.small-button:hover { background: var(--sage); }
.text-button { border: 0; background: none; color: #929b86; font-size: 10px; min-height: 28px; padding: 4px 0; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.list-item.is-done .item-title { color: #a2a995; text-decoration: line-through; }
.more-items { font-size: 10px; color: #9aa28d; font-style: italic; padding-top: 12px; }
.supporting-heading { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; padding: 25px 2px 13px; }
.supporting-heading h2 { font-family: var(--sans); font-size: 11px; font-weight: 550; letter-spacing: 0; color: #8a947e; }
.supporting-heading > span { font-size: 10px; color: #a0a694; }
.supporting-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.support-panel { border: 1px solid var(--line); border-radius: 9px; background: #fdfcf7; min-width: 0; }
.support-panel[open] { grid-column: span 2; }
.support-panel > summary { display: flex; align-items: center; gap: 10px; list-style: none; padding: 16px 17px; }
.support-panel > summary::-webkit-details-marker { display: none; }
.support-panel > summary > span:first-child { font-family: var(--serif); font-size: 18px; letter-spacing: -.25px; }
.support-count { font-size: 9px; color: #98a08c; margin-left: auto; text-align: right; }
.disclosure-mark { color: #9eaa90; font-size: 16px; line-height: 1; }
.support-panel[open] .disclosure-mark { transform: rotate(45deg); }
.support-body { padding: 4px 20px 20px; }
.support-body .section-description { font-size: 11px; color: #9ba28e; margin-bottom: 16px; }
.completed-section { font-size: 11px; color: #97a089; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.completed-section .item-list { margin-top: 14px; }
.add-section { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 19px; }
.add-section > summary { list-style: none; display: flex; align-items: center; gap: 5px; min-height: 30px; color: #798f67; font-size: 11px; }
.add-section > summary::-webkit-details-marker { display: none; }
.add-section > summary > span { font-size: 17px; }
.add-section[open] > summary { margin-bottom: 13px; }
.inline-form { display: flex; flex-direction: column; gap: 9px; }
.inline-form label, .access-form label { color: #718464; font-weight: 500; font-size: 11px; margin-top: 3px; }
.inline-form input, .inline-form textarea, .inline-form select { min-height: 42px; font-size: 13px; }
.inline-form .primary-button { align-self: flex-start; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.optional { color: #a0a893; font-size: 9px; font-weight: 400; margin-left: 4px; }
.form-error { color: var(--danger); font-size: 12px; line-height: 1.6; }
.form-error:empty { display: none; }
.form-hint { font-size: 10px; line-height: 1.5; color: #97a08c; }
.shopping-source-status { font-size: 10px; line-height: 1.6; color: #94a085; margin-bottom: 13px; }
.shopping-source-status.is-warning { color: #a18a61; }
.shopping-filters { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.shopping-views { display: flex; border-radius: 6px; background: #edf1e6; padding: 3px; gap: 2px; flex: 1; }
.shopping-views button { flex: 1; color: #8b997c; font-size: 11px; padding: 7px 5px; border: 0; border-radius: 4px; background: none; white-space: nowrap; }
.shopping-views button[aria-pressed=true] { background: var(--card); color: #627852; }
.shopping-filters select { max-width: 145px; font-size: 10px; border-color: #e0e6d7; padding: 8px; }
.shopping-item-mark { flex: 0 0 18px; font-size: 20px; color: #a4b196; line-height: 1; margin-top: 3px; }
.quantity { color: #95a18a; font-size: 11px; margin-top: 3px; }
.shopping-notes, .shopping-selection { color: #96a187; font-size: 11px; line-height: 1.5; margin-top: 5px; white-space: pre-line; overflow-wrap: anywhere; }
.shopping-selection { font-size: 10px; }
.fulfillment-tag { display: inline-block; color: #789365; background: var(--sage); padding: 2px 5px; border-radius: 3px; font-size: 9px; margin-top: 6px; }
.fulfillment-in_basket { background: var(--ochre-soft); color: #a1864e; }
.shopping-footnote { color: #a0aa92; font-size: 11px; font-style: italic; margin-top: 18px; }
.notes-list { display: grid; gap: 19px; }
.personal-note { border-left: 2px solid #dbe4ce; padding-left: 13px; min-width: 0; }
.note-author { color: #80956b; font-size: 10px; font-weight: 550; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.note-author time { color: #a0ac92; font-size: 9px; font-weight: 400; }
.note-text { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: #6d7f5c; white-space: pre-line; overflow-wrap: anywhere; }
.routine-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.routine-group h3 { color: #82976f; font-size: 11px; font-weight: 550; margin-bottom: 12px; }
.routine-afternoon h3 { color: #a08755; }
.routine-evening h3 { color: #9b889e; }
.routine-list { display: flex; flex-direction: column; gap: 9px; }
.routine-step { font-size: 12px; display: flex; flex-wrap: wrap; gap: 3px 7px; line-height: 1.45; }
.routine-time { font-size: 10px; color: #a2ae94; }
.routine-footnote { color: #a1ad92; font-size: 10px; margin-top: 17px; }
.routine-panel .small-button { margin-top: 13px; }
.board-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #a4ac98; font-size: 9px; padding: 22px 0 28px; }
.board-footer p { font-family: var(--serif); font-size: 12px; font-style: italic; }
.demo-banner { display: flex; gap: 10px; align-items: center; margin-top: 16px; background: #f4ecd9; color: #a48c5e; border: 1px solid #e6dcc4; border-radius: 6px; padding: 8px 12px; font-size: 10px; }
.demo-label { font-size: 8px; font-weight: 650; letter-spacing: 1px; }
.connection-banner { margin-top: 12px; padding: 11px 14px; border-radius: 6px; background: #f3e4d9; color: #a17154; font-size: 12px; }
.access-panel { max-width: 580px; margin: 80px auto; padding: 35px 0 100px; }
.access-panel h1 { font-size: 47px; margin: 17px 0 20px; }
.access-panel > p { color: var(--muted); }
.access-form { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; max-width: 400px; }
.access-form .primary-button { align-self: flex-start; margin-top: 4px; }
.access-panel .form-error { color: var(--danger); margin-top: 16px; }
.access-panel #retry-button { margin-top: 22px; }
.notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(620px,calc(100% - 28px)); display: flex; align-items: center; gap: 20px; background: #35492c; color: #fffef8; padding: 13px 16px; border-radius: 9px; box-shadow: 0 7px 30px #29372f22; font-size: 12px; z-index: 100; }
.notice.is-error { background: #804c38; }
.notice button { border: 0; background: none; color: inherit; font-size: 23px; line-height: 1; padding: 0 4px; min-height: 27px; }
dialog { border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--ink); padding: 25px; width: min(450px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 20px 70px #29372f22; }
dialog::backdrop { background: #2f442666; backdrop-filter: blur(3px); }
.reference-calendars-dialog { width: min(640px,calc(100% - 32px)); }
.reference-calendars-dialog h2 { font-size: 26px; }
.reference-calendars-dialog > label { display: block; font-size: 12px; margin: 16px 0 6px; }
.reference-calendars-dialog .calendar-sources { margin-top: 12px; padding-bottom: 0; }
.reference-calendar-day { padding: 20px 0; border-bottom: 1px solid var(--line); }
.reference-calendar-day:last-child { border-bottom: 0; padding-bottom: 0; }
.reference-calendar-day-heading { font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.icon-button { background: none; color: #90a17d; border: 0; font-size: 26px; padding: 0 5px; }
#edit-task-fields, #edit-shopping-fields { display: flex; flex-direction: column; gap: 9px; }
.child-form-fields { display: flex; flex-direction: column; gap: 12px; }
.child-form-fields fieldset { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; padding: 11px 13px 14px; margin: 0; }
.child-form-fields legend { font-family: var(--serif); font-size: 18px; padding: 0 5px; }
#child-date[readonly] { background: var(--paper); color: var(--muted); }
.history-list { display: flex; flex-direction: column; gap: 19px; margin-top: 20px; }
.history-event { padding-left: 13px; border-left: 2px solid var(--line); }
.history-event-label { font-size: 12px; font-weight: 600; color: #789368; }
.history-event-time { color: var(--muted); font-size: 10px; margin: 4px 0 7px; }
.history-event-description { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
#history-more { margin-top: 20px; }
.loading-dots { animation: breathe 1.5s infinite alternate; }
@keyframes breathe { to { opacity: .3; } }

/* The same plan at television distance: fewer rows, clear counts, no editing. */
body.tv-mode .editor-only, body.tv-mode .shopping-editor-only, body.tv-mode #logout-button { display: none !important; }
body.tv-mode .page-shell { width: min(100% - 90px,1840px); }
body.tv-mode .masthead { padding: 17px 0 15px; }
body.tv-mode .day-heading { padding: 21px 0 18px; }
body.tv-mode h1 { font-size: 40px; }
body.tv-mode .date-label { font-size: 14px; }
body.tv-mode .clock { font-size: 33px; }
body.tv-mode .freshness { font-size: 11px; }
body.tv-mode .access-label { display: none; }
body.tv-mode .plan-toolbar { display: none; }
body.tv-mode .planning-attention { font-size: 15px; padding: 10px 15px; margin-bottom: 10px; }
body.tv-mode .briefing-strip { padding: 5px 0 10px; }
body.tv-mode #briefing-text { font-size: 15px; }
body.tv-mode .briefing-strip.is-empty #briefing-text { font-size: 12px; }
body.tv-mode .calendar-sources { padding-bottom: 14px; }
body.tv-mode .source-pill { font-size: 10px; }
body.tv-mode .plan-column-heading { min-height: 96px; padding: 20px 29px; }
body.tv-mode .today-column .plan-column-heading { padding-top: 17px; }
body.tv-mode .plan-column-heading h2 { font-size: 35px; }
body.tv-mode .today-column .plan-column-heading h2 { font-size: 43px; }
body.tv-mode .week-column .plan-column-heading h2 { font-size: 30px; }
body.tv-mode .plan-date { font-size: 12px; }
body.tv-mode .plan-count { font-size: 12px; }
body.tv-mode .plan-content { padding: 21px 29px 24px; }
body.tv-mode .handover-heading h4 { font-size: 15px; }
body.tv-mode .plan-status { font-size: 10px; }
body.tv-mode .handover-time { font-size: 17px; flex-basis: 66px; }
body.tv-mode .handover-title { font-size: 19px; }
body.tv-mode .handover-owner { font-size: 13px; }
body.tv-mode .plan-section-label { font-size: 11px; }
body.tv-mode .event-title, body.tv-mode .item-title { font-size: 18px; }
body.tv-mode .event-time { font-size: 15px; }
body.tv-mode .event-time.all-day { font-size: 11px; }
body.tv-mode .event-meta { font-size: 12px; }
body.tv-mode .agenda-item { grid-template-columns: 66px 1fr; padding-bottom: 20px; }
body.tv-mode .agenda-item::after { left: 66px; }
body.tv-mode .item-meta { font-size: 11px; }
body.tv-mode .owner-tag { font-size: 11px; }
body.tv-mode .agreement-tag { font-size: 10px; }
body.tv-mode .week-day { padding-bottom: 13px; margin-bottom: 13px; }
body.tv-mode .week-day-heading { font-size: 15px; margin-bottom: 8px; }
body.tv-mode .week-day-heading span:last-child { font-size: 11px; }
body.tv-mode .is-compact .handover-heading h4 { font-size: 12px; }
body.tv-mode .is-compact .handover-row { padding-top: 6px; padding-bottom: 6px; }
body.tv-mode .is-compact .handover-time { font-size: 14px; flex-basis: 58px; }
body.tv-mode .is-compact .handover-title { font-size: 15px; }
body.tv-mode .is-compact .handover-owner { font-size: 11px; }
body.tv-mode .is-compact .item-title { font-size: 14px; }
body.tv-mode .week-schedule { font-size: 12px; margin-top: 6px; }
body.tv-mode .quiet-day { font-size: 12px; }
body.tv-mode .no-due-tasks { font-size: 12px; }
body.tv-mode .empty-state strong { font-size: 15px; }
body.tv-mode .empty-state span { font-size: 12px; }
body.tv-mode .supporting-heading { padding-top: 18px; }
body.tv-mode .support-panel > summary { padding: 13px 18px; }
body.tv-mode .support-panel > summary > span:first-child { font-size: 21px; }
body.tv-mode .support-count { font-size: 11px; }
body.tv-mode .board-footer { padding: 15px 0 20px; }

@media(max-width:1100px) {
  .page-shell, body.tv-mode .page-shell { width: calc(100% - 44px); }
  .planning-grid { grid-template-columns: 1fr 1fr; }
  .tomorrow-column { border-right: 0; }
  .week-column { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .week-content { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .week-day { border: 0; padding: 0; margin: 0; }
  .week-column .plan-column-heading { min-height: 80px; }
  .supporting-grid { grid-template-columns: 1fr 1fr; }
  .support-panel[open] { grid-column: span 1; }
  .plan-column-heading, .plan-content { padding-left: 21px; padding-right: 21px; }
  .plan-column-heading h2 { font-size: 29px; }
  .week-column .plan-column-heading h2 { font-size: 27px; }
  .shopping-filters { align-items: stretch; flex-direction: column; gap: 9px; }
  .shopping-filters select { max-width: none; }
}
@media(max-width:700px) {
  .page-shell, body.tv-mode .page-shell { width: calc(100% - 32px); }
  .masthead, body.tv-mode .masthead { padding: 20px 0 16px; gap: 12px; }
  .wordmark { font-size: 23px; }
  .home-mark { font-size: 26px; }
  .top-actions { gap: 12px; }
  .quiet-button { font-size: 9px; }
  .quiet-button span { display: none; }
  .day-heading, body.tv-mode .day-heading { padding: 24px 0 20px; align-items: flex-start; gap: 15px; }
  h1, body.tv-mode h1 { font-size: 31px; letter-spacing: -1.1px; }
  .day-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; max-width: 210px; }
  .date-label, body.tv-mode .date-label { font-size: 11px; max-width: 210px; }
  .day-meta { padding-top: 18px; flex: 0 0 80px; }
  .clock, body.tv-mode .clock { font-size: 25px; }
  .freshness, body.tv-mode .freshness { font-size: 8px; gap: 4px; }
  .access-label { font-size: 8px; max-width: 80px; text-align: right; }
  .plan-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
  .plan-jumps { gap: 18px; flex: 1; }
  .plan-jumps a { font-size: 11px; white-space: nowrap; }
  .plan-toolbar .primary-button { min-height: 33px; padding: 6px 10px; font-size: 10px; }
  .planning-attention { font-size: 11px; padding: 10px 12px; line-height: 1.6; }
  .briefing-strip { gap: 11px; }
  .briefing-strip h2 { font-size: 8px; letter-spacing: .4px; }
  #briefing-text { font-size: 12px; }
  .briefing-strip.is-empty #briefing-text { font-size: 10px; }
  .calendar-sources { gap: 6px 10px; padding-bottom: 14px; }
  .source-pill { font-size: 8px; }
  .planning-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .plan-column { border: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
  .plan-column:last-child { border-bottom: 0; }
  .week-column { grid-column: auto; border-top: 0; }
  .plan-column-heading, body.tv-mode .plan-column-heading { min-height: 95px; padding: 20px 21px; }
  .today-column .plan-column-heading, body.tv-mode .today-column .plan-column-heading { padding-top: 17px; }
  .plan-column-heading h2, body.tv-mode .plan-column-heading h2 { font-size: 32px; }
  .today-column .plan-column-heading h2, body.tv-mode .today-column .plan-column-heading h2 { font-size: 39px; }
  .week-column .plan-column-heading h2, body.tv-mode .week-column .plan-column-heading h2 { font-size: 28px; }
  .plan-date { font-size: 10px; }
  .plan-count { font-size: 10px; }
  .plan-content, body.tv-mode .plan-content { padding: 20px 21px 23px; }
  .handover-heading h4 { font-size: 13px; }
  .plan-status { font-size: 9px; }
  .handover-row { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .handover-time { font-size: 14px; flex-basis: 56px; }
  .handover-title { font-size: 15px; }
  .handover-owner { font-size: 11px; }
  .assign-button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
  .plan-section-label { font-size: 10px; }
  .event-title, .item-title { font-size: 14px; }
  .event-time { font-size: 13px; }
  .event-meta { font-size: 10px; }
  .agenda-item { padding-bottom: 23px; }
  .item-check { width: 24px; height: 24px; min-width: 24px; flex-basis: 24px; margin-top: 0; }
  .item-meta { font-size: 10px; }
  .owner-tag { font-size: 10px; }
  .agreement-tag { font-size: 9px; }
  .small-button, .text-button { font-size: 11px; min-height: 34px; }
  .small-button { padding: 6px 9px; }
  .item-controls { gap: 15px; }
  .list-item { padding-top: 16px; padding-bottom: 16px; }
  .week-content { display: block; }
  .week-day { padding-bottom: 21px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
  .week-day-heading { font-size: 14px; margin-bottom: 12px; }
  .week-day-heading span:last-child { font-size: 10px; }
  .is-compact .handover-heading h4 { font-size: 12px; }
  .is-compact .handover-row { padding-top: 9px; padding-bottom: 9px; }
  .is-compact .handover-time { font-size: 13px; flex-basis: 52px; }
  .is-compact .handover-title { font-size: 14px; }
  .is-compact .handover-owner { font-size: 10px; }
  .is-compact .assign-button { min-height: 32px; font-size: 10px; padding: 5px 8px; }
  .is-compact .item-title { font-size: 14px; }
  .week-schedule { font-size: 12px; margin-top: 11px; }
  .week-schedule > summary { min-height: 31px; }
  .week-schedule .event-title { font-size: 13px; }
  .week-schedule .event-time { font-size: 12px; }
  .quiet-day { font-size: 11px; }
  .supporting-heading { padding-top: 22px; }
  .supporting-heading > span { font-size: 9px; }
  .supporting-grid { grid-template-columns: 1fr; gap: 10px; }
  .support-panel[open] { grid-column: span 1; }
  .support-panel > summary { padding: 17px 19px; }
  .support-panel > summary > span:first-child { font-size: 21px; }
  .support-count { font-size: 10px; }
  .inline-form input, .inline-form select, .inline-form textarea, .access-form input { font-size: 16px; min-height: 44px; }
  .inline-form label, .access-form label { font-size: 12px; }
  .primary-button { font-size: 13px; min-height: 44px; }
  .shopping-views button { font-size: 12px; padding: 9px 5px; }
  .shopping-filters select { font-size: 12px; }
  .note-text { font-size: 21px; }
  .note-author { font-size: 11px; }
  .routine-groups { gap: 13px; }
  .routine-step { font-size: 12px; }
  .demo-banner { font-size: 9px; padding: 8px 10px; gap: 8px; }
  .demo-label { font-size: 7px; }
  .board-footer { align-items: flex-start; font-size: 8px; }
  .board-footer > span { text-align: right; }
  .board-footer p { font-size: 11px; }
  .access-panel { margin-top: 45px; padding-top: 20px; }
  .access-panel h1 { font-size: 43px; }
  .access-panel > p { font-size: 14px; }
  .notice { font-size: 11px; padding: 13px 14px; gap: 13px; }
  dialog { padding: 23px; }
  .form-hint { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* Each routine action carries its dated responsibility and completion record. */
.daily-routine { border-top: 1px solid #e4e8da; border-bottom: 1px solid #e4e8da; padding: 17px 0 19px; margin: 6px 0 24px; }
.daily-routine-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.daily-routine-heading .plan-section-label { margin: 0; }
.daily-routine-heading .text-button { min-height: 24px; padding: 2px 0; font-size: 9px; }
.routine-progress { color: #8b987d; font-size: 9px; line-height: 1.5; margin-bottom: 13px; }
.routine-default-hint { color: #a49d86; font-size: 9px; line-height: 1.5; margin-top: -7px; margin-bottom: 14px; }
.daily-routine-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.daily-routine-period { min-width: 0; }
.daily-routine-period h4 { font-size: 10px; font-weight: 550; color: #81946d; margin-bottom: 11px; }
.daily-routine-period.routine-afternoon h4 { color: #a18b5e; }
.daily-routine-period.routine-evening h4 { color: #9b89a2; }
.routine-action-list { display: flex; flex-direction: column; gap: 12px; }
.routine-action-row { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.routine-action-check { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px; margin: 2px 0 0; padding: 0; background: none; border: 1px solid #b9c7a9; border-radius: 4px; display: grid; place-items: center; cursor: pointer; }
.routine-action-check:hover { background: var(--sage); }
.routine-action-check:checked { background: var(--green); border-color: var(--green); }
.routine-action-check:checked::after { content: "✓"; font-size: 10px; font-weight: 600; line-height: 1; color: white; }
.routine-action-check:disabled { cursor: default; opacity: 1; }
.routine-action-detail { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; background: none; color: var(--ink); padding: 0; text-align: left; border-radius: 2px; }
button.routine-action-detail:hover .routine-action-owner { text-decoration: underline; }
.routine-action-label { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.routine-action-time { font-size: 9px; color: #96a189; }
.routine-action-owner { font-size: 9px; line-height: 1.4; color: #80956c; overflow-wrap: anywhere; }
.needs-assignment .routine-action-owner { color: #ab8b56; }
.routine-action-row.is-done .routine-action-label { text-decoration: line-through; color: #a3ad95; }
.daily-routine-summary { margin-top: 10px; }
.routine-summary-button { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; background: none; border: 0; padding: 3px 0; text-align: left; color: #8b9a7a; min-height: 24px; }
.routine-summary-button > span:first-child { font-size: 10px; }
.routine-summary-button > span:last-child { font-size: 9px; color: #a2ad94; text-align: right; }
.routine-summary-button:hover > span:first-child { text-decoration: underline; }
.routine-default-owner { color: #a5af97; font-size: 9px; flex-basis: 100%; }
.routine-panel-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.routine-editor-date { color: #92a080; font-size: 12px; margin: -3px 0 8px; }
.routine-default-options { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.routine-default-options > summary { color: #8a9b76; font-size: 11px; min-height: 30px; }
.routine-default-options > p { color: #98a389; font-size: 10px; line-height: 1.65; margin: 10px 0 13px; }
.routine-default-status { color: #768d62 !important; }
.routine-default-status:empty { display: none; }
.routine-history-dialog { width: min(780px,calc(100% - 32px)); }
.routine-date-picker { display: flex; align-items: flex-end; gap: 10px; margin: 19px 0; }
.routine-date-picker > div { display: flex; flex-direction: column; gap: 6px; flex: 1; max-width: 240px; }
.routine-date-picker label { font-size: 11px; color: #859873; }
.routine-date-picker .small-button { min-height: 41px; padding: 8px 12px; }
.routine-date-picker .text-button { min-height: 41px; margin-left: 4px; }
.routine-record-state { background: #f1f4e9; color: #839773; padding: 12px 14px; border-radius: 7px; font-size: 11px; line-height: 1.65; margin-bottom: 20px; }
.routine-history-dialog .daily-routine-groups { gap: 24px; margin-bottom: 26px; }
.routine-history-dialog .routine-action-label { font-size: 14px; }
.routine-history-dialog .routine-action-owner { font-size: 11px; }
.routine-history-dialog .routine-action-check { width: 20px; height: 20px; min-width: 20px; flex-basis: 20px; }
.routine-history-dialog .daily-routine-period h4 { font-size: 13px; margin-bottom: 14px; }
.routine-change-heading { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: #859773; font-weight: 550; }
#routine-history-more { margin-top: 20px; }
body.tv-mode .daily-routine { margin-bottom: 21px; padding: 15px 0 19px; }
body.tv-mode .daily-routine-heading .text-button { font-size: 11px; }
body.tv-mode .routine-progress, body.tv-mode .routine-default-hint { font-size: 11px; }
body.tv-mode .daily-routine-groups { gap: 17px; }
body.tv-mode .daily-routine-period h4 { font-size: 13px; }
body.tv-mode .routine-action-label { font-size: 14px; }
body.tv-mode .routine-action-owner { font-size: 11px; }
body.tv-mode .routine-action-time { font-size: 10px; }
body.tv-mode .routine-action-check { width: 18px; height: 18px; min-width: 18px; flex-basis: 18px; }
body.tv-mode .routine-action-list { gap: 11px; }
body.tv-mode .routine-summary-button > span:first-child { font-size: 11px; }
body.tv-mode .routine-summary-button > span:last-child { font-size: 10px; }
@media(max-width:700px) {
  .daily-routine { padding-top: 17px; margin-bottom: 23px; }
  .daily-routine-heading .text-button { font-size: 11px; min-height: 31px; }
  .routine-progress, .routine-default-hint { font-size: 10px; }
  .daily-routine-groups { gap: 12px; }
  .daily-routine-period h4 { font-size: 11px; }
  .routine-action-list { gap: 13px; }
  .routine-action-row { gap: 5px; }
  .routine-action-check { width: 20px; height: 20px; min-width: 20px; flex-basis: 20px; margin-top: 1px; }
  .routine-action-label { font-size: 12px; }
  .routine-action-owner { font-size: 10px; }
  .routine-action-detail { min-height: 40px; }
  .routine-summary-button { min-height: 32px; }
  .routine-summary-button > span:first-child { font-size: 12px; }
  .routine-summary-button > span:last-child { font-size: 10px; }
  .routine-default-options > summary { font-size: 12px; min-height: 34px; }
  .routine-default-options > p { font-size: 11px; }
  .routine-date-picker { gap: 7px; }
  .routine-date-picker input { min-height: 43px; font-size: 16px; }
  .routine-date-picker .small-button { min-height: 43px; padding: 8px 9px; }
  .routine-date-picker .text-button { margin: 0; font-size: 10px; }
  .routine-record-state { font-size: 11px; }
  .routine-history-dialog .daily-routine-groups { gap: 14px; }
  .routine-history-dialog .routine-action-label { font-size: 12px; }
  .routine-history-dialog .routine-action-owner { font-size: 10px; }
  .routine-history-dialog .daily-routine-period h4 { font-size: 11px; }
}
