/* Dashboard-only composition; other pages retain their own layouts. */
.dashboard-page{min-width:0;--dashboard-gap:24px}
.dashboard-page>section,.dashboard-page>.two-col,.dashboard-page>.dashboard-overdue{margin:0 0 var(--dashboard-gap)}
.dashboard-page .welcome{padding:22px 24px;gap:20px}
.dashboard-page .welcome>div:first-child{min-width:0;flex:1}
.dashboard-page .welcome h2{overflow-wrap:anywhere}
.dashboard-page .welcome p{line-height:1.5;color:var(--muted)}
.dashboard-page .welcome-mark{margin:0;opacity:1;flex:none}
.dashboard-page .welcome-mark .ui-icon{width:40px;height:40px}
.dashboard-welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.dashboard-page .section-head{gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.dashboard-page .section-head>div{min-width:0}
.dashboard-page .section-head p{color:var(--muted);font-size:13px;line-height:1.5;margin:4px 0 0}
.dashboard-page .section-head>.btn,.dashboard-page .section-head>.link-btn{flex:none;white-space:nowrap}
.dashboard-page .dashboard-exam-summary .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:14px}
.dashboard-page :is(.stat-card,.fc-review-deck){min-height:165px;padding:16px}
.dashboard-page .stat-card{display:flex;flex-direction:column;min-width:0}
.dashboard-page .stat-top{font-weight:700;color:var(--ink);align-items:flex-start;line-height:1.4}
.dashboard-page .stat-value{font-size:28px;overflow-wrap:anywhere;margin-top:12px}
.dashboard-page .stat-note{font-size:12px;line-height:1.5;color:var(--muted)}
.dashboard-stat-action{align-self:flex-start;margin-top:auto;padding:10px 0 0}
.dashboard-page .fc-review-deck .eyebrow{color:var(--green-dark);font-size:11px;line-height:1.4}
.dashboard-page .fc-review-deck h3{font-size:15px;line-height:1.4;margin:6px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.dashboard-page .fc-review-deck p{font-size:13px;line-height:1.5}
.dashboard-page .fc-review-deck>.fc-actions{margin-top:auto;padding-top:6px;gap:8px}
.dashboard-page .fc-review-deck .btn{width:100%}
.dashboard-page .fc-review-deck .dashboard-full-text p{margin:0}
.dashboard-flashcards-current{display:flex;align-items:center;gap:12px;padding:16px}
.dashboard-flashcards-current>div{flex:1;min-width:0}
.dashboard-flashcards-current p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.dashboard-page .dashboard-resume-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.dashboard-resume-count{font-size:12px;line-height:1.5;font-weight:500;color:var(--muted);background:#edf2ee;border-radius:20px;padding:3px 9px}
.dashboard-page .dashboard-resume-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:14px 18px;gap:24px}
.dashboard-page .dashboard-resume-info{gap:6px;max-width:760px}
.dashboard-page .dashboard-resume-info strong{font-size:15px}
.dashboard-resume-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px}
.dashboard-page .dashboard-resume-meta span{font-size:12px;line-height:1.5}
.dashboard-page .dashboard-resume-percent{font-weight:700;color:var(--green-dark)}
.dashboard-page .dashboard-resume-position{color:var(--muted)}
.dashboard-resume-actions{display:flex;align-items:center;gap:20px}
.dashboard-resume-actions time{font-size:12px;color:var(--muted);white-space:nowrap}
.dashboard-page .dashboard-resume-actions .btn{font-size:12px;padding:9px 13px;min-height:38px;white-space:nowrap}
.dashboard-page .dashboard-resume-info .dashboard-progress{width:100%;max-width:360px;height:4px;margin:0}
.dashboard-page :is(.dashboard-resume-info strong,.exam-info strong,.dashboard-upcoming-row strong){white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.45;text-overflow:ellipsis}
.dashboard-page .dashboard-resume-info span{line-height:1.4}
.dashboard-page .dashboard-resume-info small{font-size:12px;line-height:1.5}
.dashboard-page .dashboard-progress{margin:3px 0;height:6px}
.dashboard-full-text{font-size:12px;line-height:1.5;color:var(--muted);min-width:0}
.dashboard-full-text summary{cursor:pointer;color:var(--green);font-weight:700;list-style-position:inside;min-height:24px;padding:3px 0}
.dashboard-full-text[open]>div{margin:6px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f7faf8;overflow-wrap:anywhere}
.dashboard-full-text p{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.5}
.dashboard-full-text p+p{margin-top:8px}
.dashboard-page .dashboard-upcoming-row{flex-wrap:wrap;gap:10px;padding:14px 16px}
.dashboard-page .dashboard-upcoming-row>div{flex:1 1 100%;min-width:0}
.dashboard-page .dashboard-upcoming-row .upcoming-dot{display:none}
.dashboard-page .dashboard-upcoming-row small{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.5}
.dashboard-page .dashboard-upcoming-row .reminder-date-badge{margin:0;white-space:normal;line-height:1.5;max-width:100%}
.dashboard-page .dashboard-upcoming-row.is-today .reminder-date-badge{background:#fff2d9;color:#986320}
.dashboard-overdue{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;border:1px solid #f1d7d4;border-radius:10px;background:#fff0ef;color:#a6423c;font-size:13px}
.dashboard-overdue .link-btn{color:#a6423c;margin-left:auto;white-space:normal;text-align:left}
.dashboard-overdue .ui-icon{filter:brightness(0) saturate(100%) invert(37%) sepia(46%) saturate(712%) hue-rotate(315deg) brightness(94%) contrast(88%)}
.dashboard-page .two-col{gap:16px;align-items:start}
.dashboard-page .two-col>section>.panel{padding:16px}
.dashboard-result-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.dashboard-result-heading h2{margin:0}
.dashboard-period-label{font-size:11px;line-height:1.5;color:var(--muted);background:#edf2ee;border-radius:12px;padding:2px 7px}
.dashboard-page .dashboard-recent-row{gap:12px;align-items:flex-start;padding:14px 0}
.dashboard-page .dashboard-recent-row:first-child{padding-top:2px}
.dashboard-page .dashboard-recent-row:last-child{padding-bottom:2px}
.dashboard-page .dashboard-recent-row .subject-icon{width:34px;height:34px;flex:none;border-radius:9px}
.dashboard-page .dashboard-recent-row .subject-icon .ui-icon{width:21px;height:21px}
.dashboard-page .exam-info small{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.dashboard-page .dashboard-recent-row .exam-info strong{font-size:14px;line-height:1.5}
.dashboard-result-action{display:grid;justify-items:end;gap:8px;flex:none}
.dashboard-result-score{display:grid;justify-items:end;gap:2px}
.dashboard-page .dashboard-result-score .score{font-size:20px;line-height:1.3;font-weight:700;color:var(--ink)}
.dashboard-result-score small{font-size:11px;line-height:1.5;color:var(--muted)}
.dashboard-result-action .link-btn{font-size:12px;text-align:right;white-space:nowrap;max-width:none;min-height:28px;padding:3px 0}
.dashboard-page .dashboard-subject-row{padding:12px 8px;margin:0;width:100%;border-radius:8px;transition:background-color .15s}
.dashboard-page .dashboard-subject-row:first-child{padding-top:8px}
.dashboard-page .dashboard-subject-row:last-child{padding-bottom:8px}
.dashboard-page .dashboard-subject-row:hover,.dashboard-page .dashboard-subject-row:focus-visible{background:#f2f7f3}
.dashboard-page .dashboard-subject-row .bars-title{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;gap:10px;line-height:1.5;align-items:start;font-size:14px;margin-bottom:7px}
.dashboard-page .dashboard-subject-row .bars-title>span:first-child{min-width:0;overflow-wrap:anywhere}
.dashboard-page .dashboard-subject-row .dashboard-subject-percent{color:var(--ink);font-weight:700;white-space:nowrap}
.dashboard-page .dashboard-subject-row .dashboard-subject-arrow{color:var(--green);font-weight:600;align-self:center;transition:transform .15s}
.dashboard-page .dashboard-subject-row:hover .dashboard-subject-arrow{transform:translateX(2px)}
.dashboard-page .dashboard-subject-row .track{height:5px}
.dashboard-subject-sample{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--muted)}
.dashboard-empty{display:flex;align-items:center;gap:12px;padding:12px 0;color:var(--muted)}
.dashboard-empty p{margin:0;font-size:13px;line-height:1.5}
.dashboard-page .dashboard-calendar{margin:0}
.dashboard-page .compact-calendar{height:auto;min-height:350px;grid-template-rows:36px 28px minmax(240px,1fr) auto;margin:0;padding:20px;overflow:visible}
.dashboard-page .calendar-heading{gap:12px}
.dashboard-page .calendar-heading h2{font-size:16px}
.dashboard-page .calendar-day-label{font-size:9px;line-height:1.1}
.dashboard-page .calendar-day{min-height:38px}
.dashboard-page .calendar-agenda{display:flex;flex-direction:column;overflow:visible;min-width:0;gap:10px}
.dashboard-page .calendar-agenda>ul{max-height:260px;overflow-y:auto;overflow-x:hidden;padding-right:6px;margin:0}
.dashboard-page .calendar-agenda h3{line-height:1.5;margin:0;font-size:14px}
.dashboard-page .calendar-event{font-size:12px;line-height:1.5;overflow-wrap:anywhere;grid-template-columns:85px minmax(0,1fr)}
.dashboard-page .calendar-event small{font-size:12px}
.dashboard-page .calendar-empty{font-size:13px;margin:0}
.dashboard-add-reminder{align-self:flex-start;text-align:left;white-space:normal;margin-top:auto;min-height:40px}
.dashboard-reminder-form{margin:16px 0 0;padding:20px}
.dashboard-reminder-form fieldset{border:0;margin:0;padding:0;min-width:0}
.dashboard-reminder-form h3{margin:0;font:700 16px Manrope,sans-serif}
.dashboard-page .dashboard-reminder-form .calendar-add-reminder{gap:10px}
.dashboard-page .dashboard-reminder-form .calendar-add-reminder :is(input,textarea){font-size:14px;padding:10px;line-height:1.5}
.dashboard-page .dashboard-reminder-form .calendar-add-reminder textarea{height:90px;min-height:90px;resize:vertical}
.dashboard-page .dashboard-reminder-form .calendar-add-reminder .btn{font-size:13px;min-height:40px;padding:10px 15px}
.dashboard-reminder-form>.btn{margin-top:10px}
.dashboard-reminder-error{color:var(--red);font-size:13px;line-height:1.5;margin:12px 0 0}
.dashboard-page :is(button,summary,select,input,textarea):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:1100px) and (min-width:701px){.dashboard-page .compact-calendar{display:block;min-height:0}.dashboard-page .calendar-heading{margin-bottom:12px}.dashboard-page .calendar-agenda{border-left:0;border-top:1px solid var(--line);padding:16px 0 0;margin-top:16px}.dashboard-page .calendar-grid:not(.calendar-weekdays){min-height:250px}.dashboard-page .calendar-legend{margin:12px 0}.dashboard-add-reminder{margin-top:6px}}
@media(max-width:900px){.dashboard-page .dashboard-exam-summary .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .dashboard-page{--dashboard-gap:20px}
 .dashboard-page .welcome{padding:20px;gap:0}
 .dashboard-page .welcome-mark{display:none}
 .dashboard-page .section-head{align-items:flex-start;flex-direction:column;gap:8px}
 .dashboard-page .section-head>.btn,.dashboard-page .section-head>.link-btn{align-self:flex-start}
 .dashboard-page :is(.stat-card,.fc-review-deck){min-height:0;padding:16px}
 .dashboard-page .stat-value{font-size:26px}
 .dashboard-page .dashboard-resume-row:nth-child(n+3){display:none}
 .dashboard-page .dashboard-resume .section-head{flex-direction:row;align-items:center}
 .dashboard-page .dashboard-resume-heading{gap:5px;flex:1}
 .dashboard-page .dashboard-resume-heading h2{width:100%}
 .dashboard-page .dashboard-resume-count{font-size:11px;padding:2px 7px}
 .dashboard-page .dashboard-resume-row{padding:14px;gap:6px 12px}
 .dashboard-resume-actions{flex-direction:column-reverse;align-items:flex-end;gap:6px}
 .dashboard-page .dashboard-resume-actions .btn{margin:0;padding:8px 10px}
 .dashboard-page .dashboard-resume-info{display:contents}
 .dashboard-page .dashboard-resume-info strong{grid-area:1/1/2/3}
 .dashboard-page .dashboard-resume-info .dashboard-full-text{grid-area:2/1/3/3}
 .dashboard-page .dashboard-resume-meta{grid-area:3/1/4/2}
 .dashboard-page .dashboard-resume-info .dashboard-progress{grid-area:4/1/5/2;align-self:center}
 .dashboard-page .dashboard-resume-actions{grid-area:3/2/5/3}
 .dashboard-page .dashboard-resume-meta{gap:2px 8px}
 .dashboard-page .dashboard-resume-info .dashboard-progress{max-width:none}
 .dashboard-page .dashboard-upcoming-row{padding:14px}
 .dashboard-page .dashboard-overdue .link-btn{margin-left:0;flex-basis:100%}
 .dashboard-page .compact-calendar{display:block;min-height:0;padding:16px}
 .dashboard-page .calendar-heading{margin-bottom:12px;flex-wrap:wrap}
 .dashboard-page .calendar-legend{margin:12px 0}
 .dashboard-page .calendar-agenda{padding:16px 0 0;border-left:0;border-top:1px solid var(--line);gap:12px}
 .dashboard-page .calendar-agenda>ul{max-height:none;overflow:visible;padding:0}
 .dashboard-add-reminder{margin-top:4px}
 .dashboard-page .dashboard-reminder-form{padding:16px}
 .dashboard-flashcards-current{align-items:flex-start;flex-wrap:wrap}
 .dashboard-flashcards-current>.btn{margin-left:32px}
 .dashboard-page .dashboard-recent-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px 10px}
 .dashboard-page .dashboard-recent-row .subject-icon{width:28px;height:28px}
 .dashboard-page .dashboard-recent-row .subject-icon .ui-icon{width:18px;height:18px}
 .dashboard-result-action{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
 .dashboard-result-score{justify-items:start}
 .dashboard-page .dashboard-result-score .score{font-size:18px}
 .dashboard-result-action .link-btn{max-width:none;white-space:nowrap}
 .dashboard-page .dashboard-subject-row{padding-left:4px;padding-right:4px}
}
@media(prefers-reduced-motion:reduce){.dashboard-page .btn{transition:none}}

/* Approved compact overview with consistent card actions. */
.dashboard-page .dashboard-exam-summary .stat-card{min-height:144px;padding:14px 16px}
.dashboard-page .dashboard-exam-summary .stat-top{min-height:40px;align-items:start}
.dashboard-page .dashboard-exam-summary .stat-value{margin-top:6px;line-height:1.2}
.dashboard-page .dashboard-stat-action{font-size:12px;line-height:1.4;min-height:36px;padding-top:10px;text-align:left}
.dashboard-page .dashboard-resume-context{font-weight:600;color:var(--green-dark);margin:10px 0 0}
.dashboard-page .dashboard-summaries{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.dashboard-page .dashboard-summaries .section-head{margin:0}
@media(max-width:700px){.dashboard-page .dashboard-exam-summary .stats-grid{gap:10px}.dashboard-page .dashboard-exam-summary .stat-card{min-height:144px;padding:12px}.dashboard-page .dashboard-exam-summary .stat-top{font-size:12px}.dashboard-page .dashboard-stat-action{min-height:44px;font-size:11px}.dashboard-page .dashboard-summaries{padding:14px}.dashboard-page .dashboard-welcome-actions .btn{min-height:44px}}
