.dashboard-shell { max-width: 2200px; padding-top: 12px; padding-inline: clamp(13px, 1.15vw, 27px); }
.dashboard { gap: 11px; }
.dashboard .scenic-hero,
[data-seasonal-theme="christmas"] .dashboard .scenic-hero {
  min-height: 145px;
  padding: 17px 23px;
  border-radius: 16px;
}
.dashboard .scenic-hero::before { background-position: 62% 69%; }
[data-seasonal-theme="christmas"] .dashboard .scenic-hero::after { height: clamp(55px, 6.4vw, 84px); }
.dashboard .scenic-hero h1 {
  margin-bottom: 7px;
  font-size: clamp(2.15rem, 3.4vw, 3.65rem);
  text-wrap: initial;
}
.dashboard .welcome-date { min-height: 29px; padding: 4px 9px; border-radius: 8px; font-size: .86rem; }
.dashboard-overview { display: flex; flex-wrap: wrap; align-items: start; gap: 11px; }
.dashboard-overview #widget-weather { flex: 1.12 1 316px; }
.dashboard-family { flex: 1.4 1 270px; padding: 9px 12px 8px; }
.dashboard-family .scenic-heading { margin: 0 0 5px; }
.dashboard-family .member-grid { grid-template-columns: repeat(auto-fit, minmax(min(70px, 100%), 1fr)); gap: 3px; }
.dashboard .member-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 3px;
  min-height: 72px;
  border-radius: 9px;
  text-align: center;
}
.dashboard .member-card:hover { background: var(--sage); }
.dashboard .member-card .profile-color { width: 38px; height: 38px; border-radius: 50%; }
.dashboard .member-name { font-size: .9rem; line-height: 1.1; }
.dashboard .member-count { font-size: .79rem; line-height: 1.2; }
.dashboard-advent {
  flex: 1 1 205px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: 106px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cda86b;
  border-radius: 14px;
  background: linear-gradient(90deg,#162e24fa 3%,#182f24cd 52%,#172c2150),
    url('/advent-art/village.jpg') 72% 75% / cover;
  color: #fff3d2;
  text-shadow: 0 1px 5px #14281c;
}
.dashboard-advent::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 43px;
  opacity: .88;
  pointer-events: none;
  background: url('/advent-art/garland.png') center top / 100% 100% no-repeat;
}
.dashboard-advent:hover {
  background: linear-gradient(90deg,#142a20ec 3%,#1c392dba 52%,#173d2550),
    url('/advent-art/village.jpg') 72% 75% / cover;
  color: #fff3d2;
}
.dashboard-advent:focus-visible { outline-color: var(--focus); }
.dashboard-advent-copy > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 clamp(1.04rem, 1.55vw, 1.4rem)/1.16 Georgia, serif;
}
.dashboard-advent strong { margin-top: 3px; color: #ffe5a4; }
.dashboard-advent small { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.dashboard-advent small svg { width: 12px; height: 12px; }
.dashboard-summary-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 11px;
  margin-bottom: 5px;
}
.dashboard-summary-heading h2 { margin: 0; font-size: 1.03rem; }
.dashboard-summary-heading .quick-actions { flex: 0 1 660px; }
.dashboard-summary-heading .module-toolbar { margin: 0; }
.dashboard-summary .stats { grid-template-columns: repeat(auto-fit, minmax(min(142px, 100%), 1fr)); gap: 7px; }
.dashboard-summary .stat {
  min-height: 71px;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 5px 7px;
  padding: 8px 9px;
  border-radius: 12px;
}
.dashboard-summary .stat-icon { width: 30px; height: 30px; }
.dashboard-summary .stat-body p { font-size: .82rem; overflow-wrap: anywhere; }
.dashboard-summary .stat-body strong { margin-top: 2px; font-size: 1.5rem; }
.dashboard-summary .stat-week { color: #4d4b24; background: #f3ecd2; border-color: #ded1a5; }
.dashboard-summary .stat-returns { color: #793736; background: #f7e4dd; border-color: #e4c6bb; }
.dashboard-summary .stat-bills { color: #4b3b68; background: #eee8f3; border-color: #d9cee3; }
.dashboard .quick-actions { gap: 7px; }
.dashboard .quick-actions .button { min-height: 32px; padding-block: 4px; font-size: .82rem; }
.dashboard-board {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1.04fr);
  align-items: start;
  gap: 11px;
}
.dashboard-rail { display: contents; }
.dashboard-column { display: grid; gap: 10px; min-width: 0; }
.dashboard-board .card, .dashboard-overview .card { border-radius: 13px; }
.dashboard-board .task-panel, .dashboard-board .agenda-panel, .dashboard-board .quick-card,
.dashboard .module-panel { min-height: 0; padding: 0 11px 9px; }
.dashboard .card-heading { min-height: 39px; gap: 4px 7px; padding: 4px 0; }
.dashboard .card-heading h2 { font-size: 1.02rem; }
.dashboard .card-heading .stat-icon { width: 26px; height: 26px; border-radius: 7px; }
.dashboard .card-heading .stat-icon svg { width: 15px; height: 15px; }
.dashboard .card-heading .button { min-height: 30px; padding-inline: 7px; }
.dashboard .card-heading .text-link, .dashboard .card-heading .button { font-size: .8rem; }
.dashboard .empty { padding: 7px 0; font-size: .87rem; }
.dashboard .module-rows > li { min-height: 34px; gap: 5px; padding-block: 5px; }
.dashboard .module-rows .button { min-height: 29px; padding: 3px 6px; font-size: .79rem; }
.dashboard .module-rows strong, .dashboard .module-rows .text-link { font-size: .88rem; }
.dashboard .module-rows small { font-size: .79rem; }
.dashboard-meal-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.dashboard-meal-name > span { font-size: .76rem; color: var(--muted); }
.dashboard-meals .icon-button { width: 27px; height: 27px; }
.dashboard-meals .row-controls { flex: 0 0 auto; }
.dashboard .week-strip a { font-size: .74rem; }
.dashboard .week-strip .current { background: var(--forest); color: #fff9eb; }
.dashboard .week-strip .current small { color: #fff4d3; }
.dashboard .agenda-event { gap: 7px; padding: 5px 6px; margin-bottom: 4px; }
.dashboard .agenda-event strong { font-size: .89rem; }
.dashboard .agenda-event small { font-size: .77rem; }
.dashboard .agenda-icon { width: 28px; height: 28px; flex-basis: 28px; }
.dashboard .agenda-icon svg { width: 16px; height: 16px; }
.dashboard-birthday { background: #faf0dc; border-color: #e2bf8c; }
.dashboard-birthday-photo { width: 47px; height: 39px; flex: 0 0 47px; object-fit: cover; object-position: center 76%; border-radius: 7px; }
.dashboard .feature { min-height: 132px; padding: 11px 12px; border-radius: 12px; }
.dashboard .feature h2 { margin: 4px 0; font-size: clamp(1.28rem, 1.55vw, 1.8rem); }
.dashboard .feature-date, .dashboard .feature h2 + p { font-size: .86rem; }
.dashboard .feature-button { margin-top: 8px; min-height: 32px; font-size: .8rem; }
.dashboard .quick-card form { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.dashboard .quick-card .quick-field:first-child { grid-column: 1 / -1; }
.dashboard .quick-card :is(input, select, .primary) { min-height: 36px; font-size: .83rem; }
.dashboard .quick-card .primary { padding: 0 7px; }
.dashboard .quick-card label { font-size: .78rem; }
.dashboard .task-row { grid-template-columns: 30px minmax(0, 1fr) 25px; column-gap: 5px; min-height: 43px; padding: 5px 0; }
.dashboard .completion { grid-row: 1 / span 2; width: 30px; height: 35px; }
.dashboard .task-title { font-size: .91rem; }
.dashboard .task-meta { gap: 3px 6px; font-size: .72rem; }
.dashboard .task-tags { justify-content: start; gap: 4px; max-width: none; padding: 0; }
.dashboard .task-edit { grid-column: 3; grid-row: 1 / span 2; width: 25px; }
.dashboard .task-tags > span { padding: 1px 5px; font-size: .72rem; }
.dashboard .task-tags svg { width: 12px; height: 12px; }
.dashboard .disclosure { margin: 0; padding: 3px 11px; }
.dashboard .disclosure > summary { min-height: 37px; padding-block: 7px; font-size: .94rem; }
.dashboard .recent-completed .module-rows > li { flex-wrap: wrap; }
.dashboard .recent-completed .module-rows time { font-size: .77rem; }
.dashboard-task-more > summary { min-height: 35px; padding: 7px 0; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--forest-dark); }
.dashboard-task-more > summary span + span, .dashboard-task-more[open] > summary span:first-child { display: none; }
.dashboard-task-more[open] > summary span + span { display: inline; }
.dashboard-more-content { max-height: 17rem; overflow: auto; scrollbar-width: thin; }
.dashboard-forecast { display: grid; grid-template-columns: minmax(100px, .82fr) minmax(0, 1.45fr); gap: 6px; }
.dashboard-current {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  padding: 7px 8px; border-radius: 9px; background: #365b66; color: #fff9eb;
}
.dashboard-current > div { min-width: 0; }
.dashboard-current strong { display: block; font-size: 1.28rem; line-height: 1.06; }
.dashboard-current span, .dashboard-current small { display: block; font-size: .72rem; line-height: 1.18; overflow-wrap: anywhere; }
.dashboard-forecast-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.dashboard-forecast-days li { display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 2px 0; border: 1px solid var(--line); border-radius: 6px; font-size: .7rem; }
.dashboard-forecast-days li svg { width: 14px; height: 14px; color: #715322; }
.dashboard-forecast-days small { color: var(--muted); }
.dashboard-weather-body .weather-credit { display: inline-block; margin-top: 3px; font-size: .68rem; }
@media (max-width: 1249px) {
  .dashboard-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-rail { display: grid; gap: 10px; min-width: 0; }
  .dashboard-overview #widget-weather { flex-basis: 270px; }
}
@media (max-width: 1100px) {
  .dashboard-summary .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dashboard .scenic-hero, [data-seasonal-theme="christmas"] .dashboard .scenic-hero {
    min-height: 140px;
    padding: 11px 12px;
    justify-content: end;
    align-content: normal;
    flex-wrap: nowrap;
  }
  .dashboard .scenic-hero h1 { font-size: clamp(1.75rem, 7vw, 2.37rem); }
  .dashboard .welcome-date { font-size: .8rem; }
  .dashboard-shell { padding-top: 10px; }
  .dashboard, .dashboard-board, .dashboard-overview { gap: 8px; }
  .dashboard-overview > *, .dashboard-overview #widget-weather { flex: 1 1 100%; }
  .dashboard-advent { min-height: 92px; }
  .dashboard-summary { display: grid; gap: 5px; }
  .dashboard-summary-heading { display: contents; }
  .dashboard-summary-heading h2 { grid-row: 1; }
  .dashboard-summary-heading .quick-actions, .dashboard-summary-heading .module-toolbar { grid-row: 3; }
  .dashboard-summary .stats { grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-summary .stat { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px; padding: 6px 8px; }
  .dashboard-summary .stat-icon { width: 23px; height: 23px; }
  .dashboard-board { grid-template-columns: minmax(0, 1fr); }
}
