.dashboard-page { background: #f6f4ef; color: #302d27; }
.dashboard-page header { background: #faf8f4f5; border-color: #e7e1d7; }
.dashboard-page header > div { max-width: 1480px; padding-block: 18px; }
.dashboard-page .dashboard-brand { display: flex; align-items: center; gap: 12px; }
.dashboard-brand img { border-radius: 12px; flex-shrink: 0; }
.dashboard-brand h1 { font-size: 23px; margin-top: 5px; }
.dashboard-brand p { font-size: 9px; letter-spacing: .18em; }
.dashboard-page header nav { gap: 4px; width: auto; }
.dashboard-page header nav a { padding: 10px 12px; border-radius: 10px; font-size: 12px; }
.dashboard-page header nav [aria-current="page"] { background: #eee7dd; color: #714435; }
.dashboard-page main { max-width: 1480px; padding-top: 32px; }
.dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow { color: #95634c; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 9px; }
.dashboard-intro h2 { font-family: 'Playfair Display', serif; font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
.week-jump { display: inline-flex; align-items: center; gap: 15px; color: #75675a; font-size: 12px; padding: 12px 0; }
#dailyOverview, #weeklyOverview { border-color: #e5dfd4; box-shadow: 0 3px 14px #302d2703; border-radius: 20px; }
#dailyHeading, #weeklyHeading { font-size: 23px; letter-spacing: -.025em; }
#authMsg, #weeklyOverview h2 + p { font-size: 12px; }
#whoami { margin-top: 5px; font-size: 10px; color: #787168; }
#dailyDateBadge { background: #f4eee3; color: #87643e; font-size: 10px; }
.daily-controls { background: #f7f5f1; border: 1px solid #ece6dc; border-radius: 14px; padding: 6px; gap: 5px; }
.daily-controls label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.daily-controls input { background: white; border-color: #e5dfd4; }
.daily-controls button { margin-left: 0; }
#prevDayBtn, #nextDayBtn { border-color: transparent; }
#refreshBtn { background: #a8543b; box-shadow: 0 2px 4px #a8543b15; }
#memberFilterBar { gap: 8px; margin-top: 18px; padding-top: 16px; border-color: #eee9e1; }
.member-filter-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid #e9e3da; background: white; color: #655e55; font-size: 11px; }
.member-filter-btn[aria-pressed="true"] { background: #373d32; color: white; border-color: #373d32; }
.member-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--member-color); }
[data-member="Jiejie"], [data-filter="Jiejie"] { --member-color: #c17696; --member-tint: #fcf5f8; }
[data-member="Didi"], [data-filter="Didi"] { --member-color: #6796b6; --member-tint: #f3f8fc; }
[data-member="Daddy"], [data-filter="Daddy"] { --member-color: #81956a; --member-tint: #f5f8f1; }
[data-member="Mummy"], [data-filter="Mummy"] { --member-color: #c4a05a; --member-tint: #fcf9f0; }
#boards > article { border-color: #e5dfd4; border-top: 3px solid var(--member-color); border-radius: 16px; box-shadow: 0 3px 12px #302d2703; min-height: 240px; }
#boards [data-role="name"] { font-size: 22px; }
#boards [data-role="source"] { font-size: 10px; color: #817468; padding-right: 0; white-space: nowrap; }
#boards [data-role="status"] { font-size: 10px; color: #827a70; }
#boards [data-role="events"] { margin-top: 18px; }
.dashboard-page [data-role="calendar-event"] { background: var(--member-tint, #faf9f6); border-color: transparent; border-left: 3px solid var(--member-color, #ddd); border-radius: 8px; }
.dashboard-page [data-role="event-time"] { border: 0; background: transparent; padding: 0; font-size: 10px; color: #7a7065; font-weight: 500; }
#weeklyOverview { scroll-margin-top: 110px; margin-top: 30px; }
#weeklyStatus { font-size: 10px; color: #837a70; }
#weeklyGrid { gap: 8px; }
#weeklyGrid > article { background: #f8f7f3; border-color: #ece7de; border-radius: 12px; padding: 8px; box-shadow: none; }
#weeklyGrid > article[data-today="true"] { background: #fcf8f0; border-color: #c39266; box-shadow: 0 0 0 1px #c3926633; }
#weeklyGrid > article > div:first-child { flex-wrap: wrap; gap: 5px; min-height: 64px; }
#weeklyGrid h3 { font-size: 18px; }
#weeklyGrid [data-role="calendar-event"] { padding: 7px 6px; }
#weeklyGrid [data-role="calendar-events"] h4, #weeklyGrid [data-role="notes-dropzone"] p { font-size: 11px; line-height: 1.45; }
#weeklyGrid [data-role="event-time"] { height: auto; font-size: 9px; line-height: 1.3; padding: 0; white-space: normal; }
#weeklyGrid [data-role="notes-dropzone"] li { padding: 5px 3px; }
#weeklyGrid [data-action="pick-member"] { width: 25px; min-width: 25px; height: 25px; padding: 0; font-size: 9px; }
#weeklyGrid [data-role="new-note-input"] { padding: 8px 6px; font-size: 11px; border-color: #e5dfd4; border-radius: 8px; }
#weeklyGrid [data-action="submit-note"] { padding: 8px 7px; font-size: 10px; border-radius: 8px; }
.dashboard-page :is(button, a, input, textarea):focus-visible { outline: 2px solid #a8543b; outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1150px) {
  #dailyOverview > div:first-child { flex-wrap: wrap; }
  .daily-controls { width: auto; }
}
@media (max-width: 767px) {
  .dashboard-page header > div { padding-block: 12px; }
  .dashboard-page .dashboard-brand { gap: 9px; }
  .dashboard-brand img { width: 32px; height: 32px; }
  .dashboard-page header h1 { font-size: 17px !important; }
  .dashboard-page header nav { width: 100%; }
  .dashboard-page main { padding-top: 24px; }
  .dashboard-intro { margin-bottom: 24px; }
  .dashboard-intro h2 { font-size: 27px; }
  .week-jump { font-size: 11px; gap: 6px; flex-shrink: 0; }
  #dailyHeading, #weeklyHeading { font-size: 21px; }
  #dailyOverview, #weeklyOverview { padding: 16px; border-radius: 16px; }
  .daily-controls { padding: 6px; }
  #memberFilterBar { flex-wrap: wrap; gap: 6px; }
  .member-filter-btn { min-height: 40px; }
  #boards > article { min-height: 0; padding: 16px; }
  #boards [data-role="events"] { margin-top: 12px; }
  #weeklyGrid > article { padding: 12px; }
  #weeklyGrid [data-action="pick-member"] { width: 36px; min-width: 36px; height: 36px; font-size: 11px; }
  #weeklyGrid [data-action="submit-note"] { min-height: 44px; padding-inline: 12px; }
  #weeklyGrid [data-role="notes-dropzone"] li { min-height: 44px; }
  #weeklyOverview { margin-top: 24px; }
}
@media (max-width: 380px) {
  .dashboard-intro { align-items: flex-start; flex-direction: column; gap: 4px; }
  .week-jump { padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page *, .dashboard-page *::before, .dashboard-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
