/* Dashboard owns its layout so theme cards cannot rearrange the live clock. */
.dashboard-page { --dash-soft: color-mix(in srgb, var(--accent) 6%, var(--surface)); --dash-line: color-mix(in srgb, var(--accent) 18%, var(--border)); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 25px; }
.dashboard-header p { margin: 0 0 4px; color: var(--muted); font-size: var(--font-size-label); }
.dashboard-header h2 { margin: 0; font-size: var(--font-size-title); line-height: 1.3; font-weight: 650; letter-spacing: -.045em; }
.greeting-dot { color: var(--accent); }
.dashboard-focus-link { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--muted); font-size: var(--font-size-label); cursor: pointer; white-space: nowrap; }
.dashboard-focus-link:hover { background: var(--surface); color: var(--text); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); grid-template-areas: 'today focus' 'tasks side' 'tracking tracking'; gap: 22px; align-items: start; }
.today-panel, .focus-panel { min-width: 0; align-self: stretch; border: 1px solid var(--dash-line); border-radius: 20px; padding: 24px; }
.today-panel { grid-area: today; background: var(--dash-soft); display: flex; flex-direction: column; }
.today-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-eyebrow { font-size: var(--font-size-caption); font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.today-orbit { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--dash-line); border-radius: 50%; color: var(--accent-text); background: var(--surface); }
.today-clock-line { display: flex; align-items: baseline; gap: 9px; margin: 4px 0 20px; }
.today-clock { font-family: var(--font); font-size: clamp(54px, 7vw, 76px); font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1; letter-spacing: -.065em; white-space: nowrap; }
.today-seconds { font-size: 19px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2ch; }
.today-live { flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--free); margin-left: auto; box-shadow: 0 0 0 4px var(--free-soft); }
.today-events { margin-bottom: 18px; }
.today-event { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--dash-line); padding: 12px 0; background: transparent; text-align: left; cursor: pointer; min-height: 54px; }
.today-event:hover .today-event-copy strong { color: var(--accent-text); }
.today-event-dot { flex: none; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.is-current .today-event-dot, .today-free .today-event-dot { background: var(--free); }
.today-event-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.today-event-label { font-size: var(--font-size-caption); color: var(--muted); }
.today-event-copy strong { display: block; font-size: var(--font-size-action); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-event-time { font-size: var(--font-size-caption); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-event > .icon { color: var(--muted); }
.today-free { display: flex; gap: 9px; align-items: center; font-size: var(--font-size-label); color: var(--muted); padding: 8px 0 12px; }
.today-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 17px; margin-top: auto; border-top: 1px solid var(--dash-line); }
.today-completion { display: flex; align-items: center; gap: 10px; }
.today-completion strong, .today-free-stat strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.today-completion strong > span { color: var(--muted); font-weight: 400; font-size: var(--font-size-section); }
.today-completion small, .today-free-stat small { display: block; font-size: var(--font-size-caption); margin-top: 4px; color: var(--muted); }
.today-progress-ring { flex: none; position: relative; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: var(--accent-text); background: conic-gradient(var(--accent) var(--completion), var(--dash-line) 0); }
.today-progress-ring::before { content: ''; position: absolute; inset: 3px; border-radius: inherit; background: var(--dash-soft); }
.today-progress-ring > .icon { position: relative; }
.today-free-stat { text-align: right; }
.focus-panel { grid-area: focus; background: var(--surface); display: flex; flex-direction: column; }
.focus-heading { display: flex; gap: 7px; align-items: center; color: var(--accent-text); margin-bottom: 18px; }
.focus-heading h3 { font-size: var(--font-size-action); font-weight: 600; color: var(--text); margin: 0; }
.focus-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 3px; gap: 3px; border-radius: 9px; background: var(--surface-2); }
.focus-mode button { min-height: 32px; border: 0; border-radius: 6px; background: transparent; font-size: var(--font-size-caption); color: var(--muted); cursor: pointer; }
.focus-mode button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .05); }
.focus-readout { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 23px 0 18px; }
#dashTimerValue { font-size: clamp(34px, 4.8vw, 45px); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.05em; max-width: 100%; overflow-wrap: anywhere; }
.focus-state { color: var(--muted); font-size: var(--font-size-caption); }
.focus-durations { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin: -2px 0 10px; }
.focus-durations button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 7px; min-width: 38px; min-height: 30px; padding: 3px 7px; font-size: var(--font-size-caption); cursor: pointer; }
.focus-durations button[aria-pressed='true'] { color: var(--accent-text); border-color: var(--dash-line); background: var(--accent-soft); }
.focus-progress { height: 3px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 0 0 14px; }
.focus-progress > span { display: block; height: 100%; background: var(--accent); }
.focus-actions { display: flex; align-items: center; gap: 7px; margin-top: auto; }
.focus-actions > .btn { flex: 1; }
.focus-reset { flex: none; display: grid; place-items: center; width: 38px; height: 38px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.focus-reset:hover { background: var(--surface-2); }
.dashboard-task-area { grid-area: tasks; min-width: 0; }
.dashboard-task-area .schedule-tasks-card { margin: 0; padding: 20px; border-radius: 16px; box-shadow: none; }
.dashboard-task-area .schedule-list-header { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.dashboard-task-area .schedule-list-header h3 { font-size: var(--font-size-body); }
.dashboard-task-area .schedule-list-header p { font-size: var(--font-size-caption); }
.dashboard-task-area .schedule-add-actions { margin-left: auto; }
.dashboard-task-area .task-row { grid-template-columns: 21px minmax(0, 1fr) auto; }
.dashboard-task-area .task-title { font-size: var(--font-size-action); }
.dashboard-task-area .task-meta .chip { font-size: var(--font-size-caption); }
.dashboard-task-area .schedule-task-note { font-size: var(--font-size-caption); }
.dashboard-task-area .task-list { gap: 0; }
.dashboard-task-area .quick-add input { font-size: var(--font-size-input); min-height: 44px; }
.dashboard-side { grid-area: side; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dashboard-checkin, .dashboard-small-actions { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--surface); }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-section-head h3 { margin: 0; font-size: var(--font-size-action); font-weight: 600; }
.mood-current { color: var(--muted); font-size: var(--font-size-caption); }
.dashboard-moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 15px; }
.dashboard-moods button { display: grid; place-items: center; min-height: 40px; padding: 4px; font-size: 24px; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: transform .12s ease; }
.dashboard-moods button[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .dashboard-moods button:hover { transform: translateY(-3px); background: var(--surface-2); } }
.dashboard-small-actions { padding: 4px 16px; }
.dashboard-action { display: flex; width: 100%; gap: 10px; align-items: center; min-height: 72px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; }
.dashboard-action:last-child { border-bottom: 0; }
.dashboard-action-icon { flex: none; display: grid; place-items: center; height: 34px; width: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); }
.dashboard-action > span:nth-child(2) { flex: 1; min-width: 0; }
.dashboard-action strong { display: block; font-size: var(--font-size-label); font-weight: 500; }
.dashboard-action small { display: block; font-size: var(--font-size-caption); margin-top: 3px; color: var(--muted); }
.dashboard-action > .icon { color: var(--muted); }
.dashboard-action:hover strong { color: var(--accent-text); }
.dashboard-schedule-link { display: flex; justify-content: center; align-items: center; gap: 8px; background: transparent; border: 0; padding: 9px; font-size: var(--font-size-caption); color: var(--muted); cursor: pointer; }
.dashboard-tracking { grid-area: tracking; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.dashboard-tracking > .card { margin: 0; border-radius: 16px; padding: 20px; box-shadow: none; }
.dashboard-tracking .goal-dash-title { flex-wrap: wrap; }
.dashboard-tracking .rm-dash-title { flex-wrap: wrap; overflow-wrap: anywhere; }
.dashboard-quick-create { border: 1px dashed var(--border-strong); border-radius: 16px; padding: 25px; }
.dashboard-quick-create h3 { font-size: var(--font-size-body); font-weight: 500; margin: 0 0 16px; }
/* Each style adds character without changing the clock's geometry. */
[data-appearance='paper'] .dashboard-header h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
[data-appearance='paper'] .today-panel, [data-appearance='paper'] .focus-panel, [data-appearance='paper'] .dashboard-checkin, [data-appearance='paper'] .dashboard-small-actions { border-radius: 8px; }
[data-appearance='paper'] .today-orbit { background: var(--accent-soft); }
[data-appearance='play'] .today-panel { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
[data-appearance='play'] .today-panel, [data-appearance='play'] .focus-panel { border: 1.5px solid var(--border-strong); box-shadow: 3px 4px 0 var(--border); }
[data-appearance='play'] .today-orbit { background: var(--play-lime); color: var(--play-ink); border-color: transparent; transform: rotate(-12deg); }
[data-appearance='play'] .dashboard-checkin { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
@media (max-width: 700px) {
  .dashboard-header { margin-bottom: 20px; gap: 10px; }
  .dashboard-header h2 { font-size: var(--font-size-title); }
  .dashboard-focus-link { font-size: var(--font-size-caption); padding: 8px 10px; min-height: 40px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'today' 'tasks' 'focus' 'side' 'tracking'; gap: 18px; }
  .today-panel, .focus-panel { padding: 20px; border-radius: 17px; }
  .today-clock { font-size: 68px; }
  .today-events { margin-bottom: 10px; }
  .today-clock-line { margin-bottom: 16px; }
  .today-event { min-height: 54px; }
  .today-event-time { font-size: var(--font-size-caption); }
  .today-bottom { padding-top: 15px; }
  .dashboard-task-area .schedule-tasks-card { padding: 16px; }
  .focus-readout { padding: 20px 0; }
  #dashTimerValue { font-size: 45px; }
  .focus-mode button, .focus-durations button, .focus-reset, .focus-actions > .btn, .dashboard-moods button { min-height: 44px; }
  .focus-reset { width: 44px; height: 44px; }
  .dashboard-tracking { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 360px) {
  .dashboard-header h2 { font-size: var(--font-size-title); }
  .dashboard-focus-link { gap: 4px; padding-inline: 8px; font-size: var(--font-size-caption); }
  .today-clock { font-size: 59px; }
  .today-event-time { font-size: 9px; }
  .dashboard-moods { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .dashboard-moods button { transition: none; } }
