.design-strip {
  max-width: 1144px; margin: 0 auto; padding: 13px 32px 0;
  display: flex; align-items: center; gap: 6px 14px; color: var(--muted);
}
#design-label { font-size: .76rem; font-weight: 680; white-space: nowrap; }
.design-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.design-picker button {
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet);
  color: var(--ink); font-size: .79rem; font-weight: 670; line-height: 1.2;
}
.design-picker button:hover { border-color: var(--accent); }
.design-picker button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.design-strip + .main { padding-top: 26px; }

:root[data-design="timeline"] {
  --paper: #f2eadd; --sheet: #fffbf1; --ink: #322922; --muted: #66584d; --line: #dcd0be;
  --accent: #8a412c; --accent-ink: #753420; --accent-soft: #f5ded0; --radius: 11px;
}
[data-design="timeline"] .page-heading h1, [data-design="timeline"] .detail-heading h2 {
  font-family: Georgia, serif; font-weight: 500; letter-spacing: -.05em;
}
[data-design="timeline"] .page-heading { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
[data-design="timeline"] .top { background: var(--sheet); }
[data-design="timeline"] .timeline-sheet, [data-design="timeline"] .timeline-parent > .column:first-child > .sheet { border-top: 3px solid var(--accent); }
.timeline-sheet .counter { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.day-timeline { list-style: none; position: relative; display: grid; padding: 0 20px 12px; }
.timeline-entry { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; position: relative; }
.timeline-entry::before { content: ""; position: absolute; inset: 0 auto 0 55px; width: 1px; background: #c7a68f; }
.timeline-entry:first-child::before { top: 21px; }
.timeline-entry:last-child::before { bottom: auto; height: 21px; }
.time-stop {
  position: relative; min-height: 43px; display: flex; align-items: center; gap: 3px;
  color: var(--accent-ink); font-size: .82rem; font-weight: 730; font-variant-numeric: tabular-nums;
}
.time-stop::after { content: ""; position: absolute; right: 9px; top: 17px; width: 8px; height: 8px; background: var(--accent); border: 2px solid var(--sheet); border-radius: 50%; }
.timeline-event { min-width: 0; border-bottom: 1px solid var(--line); }
.timeline-entry:last-child .timeline-event { border-bottom: 0; }
.timeline-event .routine-row { width: 100%; min-height: 48px; gap: 5px; text-align: left; }
.timeline-event .routine-symbol, .timeline-event .routine-row[data-item="wakeup"] small { display: none; }
.timeline-event .badge { white-space: normal; max-width: 50%; }
.timeline-event .rule-note { margin-inline: 0; }
.timeline-chores .kid-chores { border: 0; background: none; }
.timeline-chores .section-heading { padding: 10px 0; }
.timeline-chores .chore-rows { padding-inline: 0; padding-bottom: 9px; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.timeline-chores .chore {
  min-height: 44px; display: grid; align-items: center; align-content: center;
  grid-template-columns: 29px minmax(0, 1fr) auto; gap: 8px; padding: 6px 7px; background: #f7efdf;
}
.timeline-chores .chore.checked { background: var(--success-soft); }
.timeline-chores .task-sticker { width: 28px; height: 28px; }
.timeline-chores .task-sticker svg { width: 17px; height: 17px; }
.timeline-chores .chore-label { grid-area: 1 / 2; }
.timeline-chores .chore .checkbox { grid-area: 1 / 3; align-self: center; }
.timeline-chores + .timeline-entry { border-top: 1px solid var(--line); }

:root[data-design="board"] {
  --paper: #f1eee6; --sheet: #fffcf3; --ink: #23201c; --muted: #5c5346; --line: #c9bdab;
  --accent: #a23e11; --accent-ink: #82300d; --accent-soft: #ffdfae; --radius: 9px;
}
[data-design="board"] .page-heading h1 { font-weight: 880; letter-spacing: -.065em; }
[data-design="board"] .top { background: #ffdfae; }
[data-design="board"] .page-heading { border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.board-counter {
  background: #24211d; color: #fffcf3; border-color: #24211d;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px;
}
.board-score { font-size: clamp(2.45rem, 6vw, 4rem); font-weight: 850; line-height: .95; letter-spacing: -.09em; font-variant-numeric: tabular-nums; }
.board-score span { color: #ffb56f; font-size: .59em; }
.board-counter h2 { font-weight: 770; overflow-wrap: anywhere; }
.board-counter p { margin-top: 4px; font-size: .84rem; color: #f0dac9; line-height: 1.3; }
.board-award { color: #ffb56f; display: grid; place-items: center; border: 1px dashed #c99866; border-radius: 50%; width: 42px; height: 42px; }
.bonus-earned .board-award { color: #3c240f; background: #ffc177; border-style: solid; }
.bonus-earned .board-award svg { fill: #ffcf88; }
.board-list { padding: 9px 0 3px; }
.board-list + .board-list { border-top: 1px solid var(--line); }
.board-list h3, .board-parent h4 {
  margin: 0 13px 7px; display: flex; align-items: center; justify-content: space-between;
  font-size: .87rem; font-weight: 780; letter-spacing: .01em; color: var(--muted);
}
.board-list h3 span { padding: 0 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.board-finished h3 span { color: var(--success); background: var(--success-soft); }
.board-list .section-note { margin: 0 13px 8px; }
.board-lists .chore-rows { padding-inline: 10px; }
.board-lists .chore { border-radius: 7px; min-height: 72px; background: #fff5e1; box-shadow: 0 2px 0 #ddccb3; }
.board-lists .chore-label strong { font-weight: 760; }
.board-lists .chore.checked { background: var(--success-soft); }
.board-parent .board-children { border-top: 1px solid var(--line); }
.board-parent .child-heading { margin-top: 12px; }
.board-parent .child-heading h3 { font-size: 1.3rem; font-weight: 810; }
.board-parent .subdetail { margin-top: 5px; }
.board-parent .board-rules { list-style: none; padding: 0 11px 5px; }
.board-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 52px; gap: 4px; border-bottom: 1px solid var(--line); }
.board-rule > span { font-size: .87rem; overflow-wrap: anywhere; line-height: 1.2; }
.board-rule > span > svg { margin-right: 4px; }
.board-rule small { display: block; margin-top: 3px; }
.board-rule .mark-cell { width: 126px; }
.board-parent .chore { min-width: 0; line-height: 1.3; }
.board-parent .chore .checkbox { position: absolute; right: -3px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sheet); }
.board-parent .chore.checked .checkbox { background: var(--success); border-color: var(--sheet); }

:root[data-design="week"] {
  --paper: #142f29; --sheet: #f4f1e5; --ink: #19382e; --muted: #495e50; --line: #aebcaf;
  --accent: #286147; --accent-ink: #21513c; --accent-soft: #dcebd8; --radius: 17px;
}
[data-design="week"] .top { border-color: #426659; background: #19372f; }
[data-design="week"] .top :is(.brand,.account-name), [data-design="week"] .top .logout,
[data-design="week"] #design-label, [data-design="week"] .page-heading, [data-design="week"] .date-line { color: #f1f2e5; }
[data-design="week"] .top .logout { border-color: #688779; background: transparent; }
[data-design="week"] .top .logout:hover { background: #315848; }
[data-design="week"] .calendar-detail > .detail-heading,
[data-design="week"] .calendar-detail > .detail-heading :is(.muted, .section-meta) { color: #f1f2e5; }
[data-design="week"] .page-heading h1 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.05em; }
[data-design="week"] .tabs a { color: #e0ede2; }
[data-design="week"] .tabs a[aria-current], [data-design="week"] .tabs a:hover { background: #e7edcd; color: #224437; }
[data-design="week"] .design-picker button[aria-pressed="true"] { border-color: #c6dc9e; background: #c6dc9e; color: #263c2b; }
[data-design="week"] .page-heading .profiles { color: #ecf4ec; }
[data-design="week"] .profile:hover { color: var(--ink); }
.week-overview {
  color: #eff4e6; background: #203f34; border: 1px solid #547463; border-radius: 19px;
  padding: 8px 13px 13px;
}
.week-toolbar, .week-selected { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.week-toolbar p { font-size: .85rem; color: #dbe9d7; text-align: center; }
.week-toolbar .icon-button, .week-return { background: #294c40; color: #f1f2e5; border: 1px solid #688779; }
.week-toolbar .icon-button:hover, .week-return:hover { background: #385c4c; }
.week-return { border-radius: 8px; padding: 7px 9px; font-size: .81rem; font-weight: 650; white-space: nowrap; }
.week-jump { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 5px; }
.week-tile {
  display: grid; justify-items: center; gap: 0; min-width: 0; padding: 5px 2px;
  border: 1px solid #486e5d; border-radius: 10px; background: #294d3e; line-height: 1.25;
}
.week-tile small { color: #d9ecde; text-transform: capitalize; }
.week-tile strong { font-size: 1.17rem; font-variant-numeric: tabular-nums; }
.week-tile[aria-current], .week-tile:hover { color: #1f3b2d; background: #e7edcd; border-color: #e7edcd; }
.week-tile:is([aria-current], :hover) small { color: #44583b; }
.week-tile.is-today { border-color: #e9d89e; }
.week-activity { display: flex; gap: 3px; margin: 4px 0 1px; }
.week-activity i { display: block; width: 7px; height: 4px; border-radius: 9px; background: #789083; }
.week-activity .done { background: #8db17c; }
.week-activity .missed { background: #d58b81; }
.week-activity :is(.pending, .open) { background: #d7b678; }
.week-selected { color: #f1f2e5; margin: 16px 0 10px; }
.week-selected p, .week-selected > span:not(.badge) { font-size: .84rem; color: #d3e3d6; }
.week-day-detail .daily-board { border-top: 4px solid #b4ce9a; }
[data-design="week"] :is(.week-overview,.top,.design-strip,.page-heading) :focus-visible { outline-color: #ffe9ad; }

[data-design]:not([data-design="stickers"]) :is(.quick-confirm, .quick-menu, .quick-editor) { background: var(--sheet); }
[data-design]:not([data-design="stickers"]) :is(.quick-confirm:hover, .quick-menu:hover, .quick-menu[aria-expanded="true"]) { background: var(--accent-soft); }
[data-design]:not([data-design="stickers"]) .routine-symbol { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 760px) {
  .design-strip { padding: 9px 12px 0; gap: 5px; display: block; }
  #design-label { display: block; margin-bottom: 3px; }
  .design-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .design-picker button { padding: 4px 3px; min-height: 44px; }
  .design-picker svg { display: none; }
  .design-strip + .main { padding-top: 18px; }
  .day-timeline { padding-inline: 11px; }
  .timeline-entry { grid-template-columns: 50px minmax(0, 1fr); }
  .timeline-entry::before { left: 41px; }
  .time-stop::after { right: 5px; }
  .time-stop { font-size: .75rem; }
  .board-rule { grid-template-columns: minmax(0, 1fr); gap: 3px; padding-block: 6px; }
  .board-rule .mark-cell { width: min(100%, 140px); margin-inline-start: 0; }
  .board-parent .child-heading { display: grid; gap: 2px; }
  .board-parent .chore { font-size: .84rem; gap: 5px; }
  .board-parent .chore .parent-task-mark { width: 23px; }
  .board-parent .chore .task-sticker { width: 22px; height: 22px; }
  .board-parent .chore .parent-task-mark .checkbox { width: 13px; height: 13px; }
  .board-parent .quick-editor { padding: 7px; }
  .week-overview { padding-inline: 8px; }
  .week-jump { gap: 3px; }
  [data-design="week"] .tabs { background: #19372f; border-color: #426659; }
}

@media (max-width: 360px) {
  .design-picker button { font-size: .71rem; }
  .board-counter { gap: 8px; padding: 12px 9px; }
  .board-counter h2 { font-size: 1.04rem; }
  .board-award { width: 32px; height: 32px; }
  .board-award svg { width: 19px; }
  .board-rule > span > svg { display: none; }
}
