/* The my-space dashboard borrows the reference's restrained dark panels and dense rhythm. */
body[data-planner-view="today"] { --rooftop-frame: #141516; background: #141516; }
body[data-planner-view="today"] .main,
body[data-planner-view="today"] .topbar { background: #141516; }
body[data-planner-view="today"] .sidebar { background: #111314; border-right-color: #303235; }
body[data-planner-view="today"] .topbar { border-bottom-color: #303235; }
#todayView { --rooftop-frame: #141516; background: #141516; }
.rooftop-banner { height: clamp(235px, 25vw, 315px); margin-bottom: 16px; }
.banner-copy { top: 24px; }
.banner-copy strong { font-size: clamp(27px, 3vw, 42px); }
.banner-roof-link { bottom: 54px; }
.banner-silhouette { height: 56px; }

.dashboard-content { padding: 8px 0 34px; }
.dashboard-tabs { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding: 8px 10px 8px 0; border-bottom: 1px solid #343638; }
.dashboard-wordmark { color: #9b9e9c; font-size: 10px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.dashboard-tabs > div { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #343638; border-radius: 999px; background: #202224; }
.dashboard-tabs button { min-height: 29px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #bfc1c0; font-size: 11px; cursor: pointer; }
.dashboard-tabs button:hover,
.dashboard-tabs button.is-current { background: #37393b; color: #fff; }
.dashboard-tabs button:focus-visible { outline: 2px solid #f1ae8b; outline-offset: 2px; }

#todayView .page-heading { margin-bottom: 20px; }
#todayView .page-heading h1 { margin: 7px 0 3px; font-size: clamp(29px, 3vw, 42px); font-weight: 650; }
#todayView .page-heading .eyebrow { color: #e6a484; }
#todayView .page-heading .button.primary { border-color: #f4aa8c; border-radius: 999px; background: #f4aa8c; color: #201614; }
#todayView .page-heading .button.primary:hover { background: #ffc0a4; }

#todayView .summary-grid { gap: 12px; margin-bottom: 14px; }
#todayView .summary-card,
#todayView .surface { border: 1px solid #383b3b; border-radius: 13px; background: #202223; box-shadow: 0 8px 25px #00000012; }
#todayView .summary-card { min-height: 112px; padding: 17px 18px; }
#todayView .summary-card:nth-child(2) { background: #242526; }
#todayView .reward-summary { background: #262727; }
#todayView .summary-label { color: #b8bbb9; font-size: 11px; }
#todayView .summary-card > strong { color: #f7f5f0; font-weight: 600; }
#todayView .summary-card > strong small { color: #aeb1af; }
#todayView .progress-track { background: #414444; }
#todayView .progress-track span { background: #efa886; }
#todayView .summary-foot,
#todayView .muted { color: #a7aaa8; }
#todayView .text-link { color: #f1aa86; }

#todayView .today-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(265px, .9fr); grid-template-areas: "rhythm rail" "tasks tasks"; align-items: stretch; gap: 14px; }
#todayView .rhythm-surface { grid-area: rhythm; padding: 22px; min-width: 0; }
#todayView .right-rail { grid-area: rail; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 14px; min-width: 0; }
#todayView .task-surface { grid-area: tasks; min-height: 240px; }
#todayView .focus-card,
#todayView .roof-teaser { min-height: 0; background: #202223; }
#todayView .focus-card .timer { margin: 10px 0 0; font-size: clamp(36px, 4vw, 54px); }
#todayView .focus-card .timer-actions { margin-top: 8px; }
#todayView .focus-card .button.primary { background: #efa886; border-color: #efa886; color: #211915; }
#todayView .quick-add { background: #161818; border-color: #464948; }
#todayView .recent-surface { margin-top: 14px; }
#todayView .roof-teaser .mini-roof { display: block; height: 80px; border-radius: 7px; }
#todayView .roof-teaser .muted { margin-top: 9px; }

.rhythm-surface .surface-heading { margin-bottom: 3px; }
.rhythm-surface .surface-heading .eyebrow { color: #e6a484; }
.rhythm-legend { display: inline-flex; align-items: center; gap: 6px; color: #b6b8b6; font-size: 10px; white-space: nowrap; }
.rhythm-legend i { width: 8px; height: 8px; border-radius: 2px; background: #efa886; }
.rhythm-caption { margin: 0 0 19px; color: #a6aaa7; font-size: 11px; }
.rhythm-chart { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; }
.rhythm-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 5px; color: #949995; font-size: 10px; text-align: center; }
.rhythm-days span { display: grid; place-items: center; }
.rhythm-grid { display: grid; grid-auto-flow: column; grid-template-columns: repeat(12, minmax(0,1fr)); grid-template-rows: repeat(7, minmax(0,1fr)); gap: 5px; min-width: 0; }
.rhythm-cell { min-width: 0; aspect-ratio: 1.25; border: 1px solid #41413e; border-radius: 4px; background: #343330; }
.rhythm-cell[data-level="1"] { border-color: #705449; background: #705449; }
.rhythm-cell[data-level="2"] { border-color: #a26854; background: #a26854; }
.rhythm-cell[data-level="3"] { border-color: #ce8266; background: #ce8266; }
.rhythm-cell[data-level="4"] { border-color: #f0a382; background: #f0a382; }
.rhythm-cell.is-future { opacity: .4; }
.rhythm-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #393b3b; color: #aeb1ad; font-size: 10px; }
.rhythm-stats strong { margin-right: 4px; color: #f8f4eb; font-size: 19px; font-weight: 550; }

#todayView .task-surface .task-row { border-bottom-color: #3a3c3b; }
#todayView .task-surface .task-row:hover { background: #2c2d2d; }
#todayView .recent-list { display: block; }
.recent-table-head,
.recent-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(90px,1fr) minmax(90px,.8fr) 70px; align-items: center; gap: 16px; }
.recent-table-head { margin-top: 12px; padding: 9px 12px; border-radius: 7px; background: #2b2d2d; color: #aeb1af; font-size: 10px; }
.recent-row { min-height: 44px; padding: 8px 12px; border-bottom: 1px solid #383b39; color: #bfc3c0; font-size: 11px; }
.recent-row:last-child { border-bottom: 0; }
.recent-title { color: #f3f1e9; font-weight: 600; }
.recent-status { width: max-content; padding: 4px 8px; border-radius: 999px; background: #56735c36; color: #a8d6ab; font-size: 10px; }
.recent-empty { margin: 0; padding: 20px 12px 4px; color: #aeb1af; font-size: 11px; }

@media (max-width: 1120px) {
  #todayView .today-grid { grid-template-columns: minmax(0,1.3fr) minmax(230px,.8fr); }
  .rhythm-grid { gap: 4px; }
}
@media (max-width: 780px) {
  #todayView .today-grid { grid-template-columns: 1fr; grid-template-areas: "rhythm" "rail" "tasks"; }
  #todayView .right-rail { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
}
@media (max-width: 540px) {
  .rooftop-banner { height: 265px; margin-bottom: 12px; }
  .banner-copy { top: 20px; }
  .banner-copy strong { font-size: clamp(22px, 6vw, 28px); }
  .banner-roof-link { bottom: 48px; }
  .dashboard-content { padding-top: 2px; }
  .dashboard-tabs { gap: 8px; margin-bottom: 20px; }
  .dashboard-wordmark { font-size: 8px; letter-spacing: .08em; }
  .dashboard-tabs button { min-height: 27px; padding: 0 8px; font-size: 9px; }
  #todayView .page-heading { gap: 12px; }
  #todayView .summary-grid { gap: 7px; }
  #todayView .summary-card { min-height: 98px; padding: 11px 9px; }
  #todayView .summary-label { font-size: 9px; }
  #todayView .right-rail { grid-template-columns: 1fr; }
  #todayView .rhythm-surface { padding: 16px 11px; }
  .rhythm-grid { gap: 3px; }
  .rhythm-cell { border-radius: 3px; }
  .rhythm-stats { gap: 9px; }
  .rhythm-stats span { min-width: 90px; }
  .recent-table-head,
  .recent-row { grid-template-columns: minmax(0,1.6fr) 85px 54px; gap: 8px; }
  .recent-table-head span:nth-child(2),
  .recent-row span:nth-child(2) { display: none; }
}

/* Reference layout: a full-width banner above a compact, three-column dashboard. */
body[data-planner-view="today"] { background: #242626; }
body[data-planner-view="today"] .sidebar,
body[data-planner-view="today"] .topbar { display: none; }
body[data-planner-view="today"] .main { max-width: none; min-height: 100vh; margin: 0; padding: 0; background: #242626; }
body[data-planner-view="today"] #todayView { min-height: 100vh; margin: 0; padding: 0 0 56px; background: #242626; --rooftop-frame: #242626; }
body[data-planner-view="today"] .rooftop-banner { height: clamp(245px, 24vw, 330px); margin: 0; }
body[data-planner-view="today"] .banner-copy { left: max(5vw, calc((100vw - 1300px) / 2)); }
body[data-planner-view="today"] .banner-roof-link { right: max(5vw, calc((100vw - 1300px) / 2)); }

.dashboard-content { width: min(1400px, calc(100% - 64px)); max-width: none; margin: 22px auto 0; padding: 20px 22px 22px; border: 1px solid #2f3232; border-radius: 13px; background: #0d0e0f; box-shadow: 0 24px 70px #0000002e; }
.dashboard-tabs { display: grid; grid-template-columns: minmax(130px,1fr) auto minmax(170px,1fr); align-items: center; gap: 20px; margin: 0 0 18px; padding: 0; border: 0; }
.dashboard-wordmark { width: max-content; color: #f6f5ef; font-size: 17px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.dashboard-tabs .dashboard-tab-list { display: inline-flex; gap: 3px; justify-self: center; padding: 4px; border: 1px solid #303334; border-radius: 999px; background: #202223; }
.dashboard-tabs .dashboard-tab-list > button,
.dashboard-tabs .dashboard-tab-list > a { display: grid; place-items: center; min-height: 29px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: #aeb3b2; font-size: 10px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dashboard-tabs .dashboard-tab-list > button:hover,
.dashboard-tabs .dashboard-tab-list > a:hover,
.dashboard-tabs .dashboard-tab-list > .is-current { background: #333536; color: #fff; }
.dashboard-tabs .dashboard-account-actions { display: flex; align-items: center; justify-self: end; gap: 7px; padding: 0; border: 0; border-radius: 0; background: none; }
.dashboard-tabs .dashboard-logout { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #333536; border-radius: 50%; background: #151718; color: #d5d6d2; font-size: 17px; cursor: pointer; }
.dashboard-tabs .dashboard-logout:hover { border-color: #f0a382; color: #f0a382; }
.dashboard-profile { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px 7px 3px 4px; border: 1px solid #333536; border-radius: 999px; background: #202223; color: #f5f2ed; font-size: 10px; text-decoration: none; }
.dashboard-profile > span:first-child { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #bd8d65; font-size: 12px; }
.dashboard-profile small { display: block; color: #919797; font-size: 8px; }
.dashboard-profile b { padding: 0 3px; color: #b8bcb9; font-weight: 400; }

.dashboard-hero-row { display: grid; grid-template-columns: minmax(180px, .36fr) minmax(0, 1fr); align-items: end; gap: 18px; margin-bottom: 13px; }
#todayView .dashboard-hero-row .page-heading { margin: 0; }
#todayView .dashboard-hero-row .page-heading h1 { max-width: 420px; margin: 5px 0; font-size: clamp(28px, 3vw, 43px); line-height: 1.12; }
#todayView .dashboard-hero-row .page-heading .muted { font-size: 10px; }
#todayView .dashboard-hero-row .summary-grid { align-self: stretch; gap: 8px; margin: 0; }
#todayView .dashboard-hero-row .summary-card { min-height: 86px; padding: 13px 14px; border-color: #303333; border-radius: 10px; background: #1e2021; }
#todayView .dashboard-hero-row .summary-card > strong { margin-top: 8px; font-size: 26px; }
#todayView .dashboard-hero-row .summary-card .summary-label { font-size: 10px; }
#todayView .dashboard-hero-row .summary-foot { margin-top: 4px; font-size: 9px; }
#todayView .dashboard-hero-row .progress-track { height: 3px; margin-top: 7px; }
#todayView .dashboard-hero-row .text-link { margin-top: 4px; font-size: 9px; }

.dashboard-statusbar { display: flex; align-items: center; gap: 10px; min-height: 43px; margin-bottom: 10px; padding: 5px 7px 5px 10px; border: 1px solid #303333; border-radius: 999px; background: #1f2122; }
.statusbar-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid #444849; border-radius: 50%; color: #d5d8d5; font-size: 17px; }
.dashboard-statusbar > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.dashboard-statusbar strong { color: #efefeb; font-size: 10px; }
.dashboard-statusbar small { color: #a6acab; font-size: 9px; }
.statusbar-pending { margin-left: auto; color: #c6aaa0; font-size: 9px; white-space: nowrap; }
#todayView .dashboard-statusbar .button.primary { min-height: 31px; padding: 0 16px; border: 0; border-radius: 999px; background: #f3a687; color: #251813; font-size: 10px; font-weight: 650; white-space: nowrap; }

#todayView .today-grid { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(0,.9fr) minmax(220px,.69fr); grid-template-areas: "rhythm tasks rail"; align-items: stretch; gap: 10px; }
#todayView .rhythm-surface,
#todayView .task-surface,
#todayView .right-rail { min-height: 292px; }
#todayView .rhythm-surface,
#todayView .task-surface { padding: 15px; border-radius: 12px; }
#todayView .right-rail { display: flex; flex-direction: column; gap: 10px; }
#todayView .roof-teaser { order: -1; flex: 1 1 55%; padding: 13px; }
#todayView .focus-card { flex: 1 1 45%; padding: 13px; }
#todayView .roof-teaser .mini-roof { height: 73px; margin: 6px 0; }
#todayView .focus-card .timer { margin: 4px 0; font-size: 33px; }
#todayView .focus-card .timer-actions { display: flex; gap: 5px; margin-top: 6px; }
#todayView .focus-card .timer-actions .button { flex: 1; min-height: 28px; padding: 0 4px; font-size: 9px; }
#todayView .focus-card .focus-caption { min-height: 0; margin: 0; font-size: 9px; }
#todayView .task-surface .quick-add { margin: 10px 0; }
#todayView .task-surface .task-list { max-height: 185px; overflow-y: auto; }
#todayView .rhythm-surface .rhythm-caption { margin-bottom: 10px; }
#todayView .rhythm-surface .rhythm-grid { gap: 3px; }
#todayView .rhythm-surface .rhythm-cell { aspect-ratio: 1.35; }
#todayView .rhythm-surface .rhythm-stats { gap: 7px 13px; margin-top: 12px; padding-top: 9px; font-size: 9px; }
#todayView .rhythm-surface .rhythm-stats strong { font-size: 16px; }
#todayView .recent-surface { margin-top: 10px; padding: 14px 16px; }

@media (max-width: 1100px) {
  .dashboard-content { width: min(100% - 36px, 1000px); }
  .dashboard-hero-row { grid-template-columns: 1fr; }
  #todayView .today-grid { grid-template-columns: minmax(0,1.2fr) minmax(245px,.8fr); grid-template-areas: "rhythm rail" "tasks tasks"; }
  #todayView .right-rail { min-height: 292px; }
}
@media (max-width: 780px) {
  .dashboard-content { width: calc(100% - 24px); padding: 16px 14px; }
  .dashboard-tabs { grid-template-columns: 1fr auto; gap: 9px; }
  .dashboard-tabs .dashboard-tab-list { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-around; }
  .dashboard-account-actions { grid-column: 2; grid-row: 1; }
  #todayView .today-grid { grid-template-columns: 1fr; grid-template-areas: "rhythm" "tasks" "rail"; }
  #todayView .right-rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; }
  #todayView .roof-teaser,
  #todayView .focus-card { min-height: 175px; }
}
@media (max-width: 540px) {
  body[data-planner-view="today"] .rooftop-banner { height: 245px; }
  .dashboard-content { width: calc(100% - 16px); margin-top: 9px; padding: 14px 10px; }
  .dashboard-tabs .dashboard-tab-list > button,
  .dashboard-tabs .dashboard-tab-list > a { padding: 0 9px; }
  .dashboard-hero-row { gap: 11px; }
  #todayView .dashboard-hero-row .summary-grid { gap: 5px; }
  #todayView .dashboard-hero-row .summary-card { min-height: 88px; padding: 9px 7px; }
  #todayView .dashboard-hero-row .summary-card > strong { font-size: 21px; }
  #todayView .dashboard-hero-row .summary-card .summary-label { font-size: 8px; }
  .dashboard-statusbar { flex-wrap: wrap; border-radius: 14px; }
  .statusbar-pending { margin-left: auto; }
  #todayView .right-rail { grid-template-columns: 1fr; }
  #todayView .roof-teaser,
  #todayView .focus-card { min-height: 0; }
}
