/* Dedicated, scoped Today layout; existing course, board and profile are unchanged. */
body:has(.study-welcome) .site-header, body:has(.study-welcome) #identity-notice, body:has(.study-welcome) main > footer { display:none; }
.study-welcome { margin: min(14vh,100px) auto; max-width:480px; padding:24px; }
body:has(.today-dashboard) .site-header, body:has(.today-dashboard) #identity-notice, body:has(.today-dashboard) main > footer { display: none; }
#study-app:has(.today-dashboard) { margin-top: 0; }
.today-dashboard { width: 100%; max-width: 680px; margin-inline: auto; padding: 0 0 84px; }
.today-dashboard .today-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin: 0 0 8px; padding-inline: 4px; }
.today-dashboard .today-top h1 { margin: 0; font-size: 21px; }
.today-dashboard .today-date { color: var(--muted); font-size: 12px; }
.today-dashboard .today-control { width: auto; margin: 0 0 0 auto; min-height: 32px; padding: 4px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: 12px; box-shadow: none; }
.today-dashboard .today-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.today-dashboard .today-tile { position: relative; background: var(--surface); border-radius: 12px; padding: 10px 8px 36px; min-height: 122px; overflow: hidden; }
.today-dashboard .today-tile h2 { margin: 0 0 5px; color: var(--muted); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .03em; }
.today-dashboard .today-value { display: block; color: var(--text); font-size: 22px; line-height: 1.25; white-space: nowrap; }
.today-dashboard .today-value.unknown { font-size: 13px; white-space: normal; color: var(--muted); }
.today-dashboard .today-tile-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.today-dashboard .today-plan-tile .today-value { font-size: 16px; }
.today-dashboard .today-sparkline { position: absolute; left: 8px; right: 8px; bottom: 5px; width: calc(100% - 16px); height: 28px; overflow: visible; }
.today-dashboard .today-sparkline polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.today-dashboard .today-sparkline circle { fill: var(--accent); }
.today-dashboard .today-sparkline.accuracy polyline { stroke: var(--warning); }
.today-dashboard .today-sparkline.accuracy circle { fill: var(--warning); }
.today-dashboard .today-ring { position: absolute; bottom: 5px; right: 8px; width: 32px; height: 32px; }
.today-dashboard .today-ring circle { fill: none; stroke-width: 5; }
.today-dashboard .today-ring-track { stroke: var(--surface-raised); }
.today-dashboard .today-ring-value { stroke: var(--accent); stroke-linecap: round; }
.today-dashboard .today-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-inline: 4px; margin: 14px 0 7px; }
.today-dashboard .today-section-title h2 { font-size: 16px; margin: 0; }
.today-dashboard .today-text-button { background: transparent; color: var(--accent); box-shadow: none; width: auto; min-height: 32px; min-width: 32px; margin: 0; padding: 4px; font-size: 12px; }
.today-dashboard button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.today-dashboard .today-card { background: var(--surface); border-radius: 12px; padding: 12px; }
.today-dashboard .today-skills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; }
.today-dashboard .today-skill { margin: 0; padding: 0; min-height: 42px; min-width: 0; width: 100%; text-align: left; background: transparent; color: var(--text); box-shadow: none; font-size: 12px; font-weight: 400; }
.today-dashboard .today-skill-name { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 5px; }
.today-dashboard .today-skill-name b { font-size: 12px; font-weight: 600; }
.today-dashboard .today-skill-name > span { font-size: 10px; color: var(--muted); text-align: right; }
.today-dashboard .today-skill-bar { display: block; height: 6px; border-radius: 4px; background: var(--surface-raised); overflow: hidden; }
.today-dashboard .today-skill-bar i { display: block; height: 100%; border-radius: inherit; }
.today-dashboard .today-skill-bar .weak { background: var(--error); }
.today-dashboard .today-skill-bar .medium { background: var(--warning); }
.today-dashboard .today-skill-bar .strong { background: var(--accent); }
.today-dashboard .today-priorities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.today-dashboard .today-priorities:empty { display: none; }
.today-dashboard .today-priority { width: auto; margin: 0; padding: 5px 8px; min-height: 32px; border-radius: 18px; font-size: 11px; font-weight: 500; color: var(--warning); background: color-mix(in srgb,var(--warning) 9%,var(--surface)); border: 1px solid color-mix(in srgb,var(--warning) 35%,var(--line)); box-shadow: none; text-align: left; }
.today-dashboard .today-data-note p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.today-dashboard .games-feed { margin: 0; }
.today-dashboard .game-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.today-dashboard .game-row:first-of-type { border-top: 0; padding-top: 2px; }
.today-dashboard .game-result { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.today-dashboard .game-copy strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.today-dashboard .game-copy small { display: block; font-size: 11px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.today-dashboard .game-action { width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 4px; background: transparent; box-shadow: none; color: var(--accent); font-size: 11px; white-space: nowrap; }
.today-dashboard .games-updated { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.today-dashboard .games-refresh { margin: 4px 0 0; padding: 4px; min-height: 36px; font-size: 12px; }
.today-dashboard .today-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; margin-top: 8px; background: var(--surface); border-radius: 8px; color: var(--muted); font-size: 12px; }
.today-dashboard .today-recommendation .today-priority-label { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.today-dashboard .today-recommendation h2 { font-size: 18px; margin: 7px 0 8px; }
.today-dashboard .today-recommendation > p { margin: 0 0 10px; color: var(--text); font-size: 14px; line-height: 1.5; }
.today-dashboard .today-steps { display: grid; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.today-dashboard .today-steps li { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 7px; font-size: 13px; }
.today-dashboard .today-step-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-raised); color: var(--accent); font-size: 12px; font-weight: 700; }
.today-dashboard .today-steps .done .today-step-number { background: var(--accent); color: var(--accent-text); }
.today-dashboard .today-steps small { font-size: 11px; color: var(--muted); }
.today-dashboard .today-extras { display: grid; gap: 12px; margin-top: 14px; }
.today-dashboard .today-cta { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(69px + env(safe-area-inset-bottom,0px)); max-width: 696px; margin: 0 auto; padding: 12px 8px 8px; background: linear-gradient(transparent,var(--bg) 30%); }
.today-dashboard .today-start { display: block; margin: 0 auto; width: 100%; min-height: 48px; max-width: 680px; padding: 12px 10px; font-size: 15px; }
@media (max-width: 370px) {
  .today-dashboard .today-tile { padding-inline: 7px; }
  .today-dashboard .today-value { font-size: 20px; }
  .today-dashboard .today-plan-tile .today-value { font-size: 14px; }
  .today-dashboard .today-date { font-size: 11px; }
}
@media (min-width: 900px) {
  .today-dashboard .today-cta { left: 220px; max-width: none; bottom: 0; padding: 12px 24px 16px; }
}
