.reports-shell{max-width:1180px}.report-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 14px}.report-metrics article{padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--panel)}.report-metrics span{display:block;color:var(--muted);font-weight:800}.report-metrics strong{font-size:2rem;color:var(--gold2)}.report-search{max-width:280px}.reports-grid{display:grid;gap:12px;margin-top:18px}.report-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--panel2)}.report-card h3{margin:7px 0}.report-card p{margin:0;color:var(--muted)}.report-type{font-size:.78rem;color:var(--gold);font-weight:900}.report-card-actions{display:flex;gap:8px;align-items:center}.documentation-dialog{width:min(720px,calc(100% - 24px));border:1px solid var(--line);border-radius:24px;background:#0b2038;color:var(--text);padding:22px}.report-task-picker{display:grid;gap:8px;max-height:50vh;overflow:auto;margin:16px 0}.report-task-choice{display:flex;grid-template-columns:none;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px}.report-task-choice input{width:auto}.report-task-choice span{display:grid}.report-task-choice small{color:var(--muted)}@media(max-width:700px){.report-metrics{grid-template-columns:1fr}.report-card{align-items:flex-start;flex-direction:column}.report-card-actions{width:100%}}

.strategy-info{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035)}.strategy-info b{color:var(--gold)}.strategy-info p{margin:6px 0 0;color:var(--muted);line-height:1.75}.button-spinner{width:18px;height:18px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;display:inline-block;vertical-align:-4px;margin-inline-end:8px;animation:ntf-spin .7s linear infinite}.is-loading{cursor:wait;opacity:.85}.is-loading .button-spinner{pointer-events:none}@keyframes ntf-spin{to{transform:rotate(360deg)}}@media(max-width:700px){.strategy-info{grid-template-columns:1fr}}

/* Distinct report groups and consistent report-view actions. */
.reports-shell .reports-category{margin-block:28px 0;padding:clamp(18px,3vw,30px);border:1px solid var(--line);border-radius:24px}
.reports-shell .reports-category + .reports-category{margin-block-start:40px}
.reports-shell .reports-category-tasks{border-inline-start:4px solid var(--gold)}
.reports-shell .reports-category-teaching{border-inline-start:4px solid #64a8e8}
.reports-category .section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.reports-category .section-head h2{margin:5px 0 8px}
.reports-category .section-head p{margin:0;color:var(--muted);line-height:1.8}
.reports-category-kicker{display:inline-block;color:var(--gold);font-size:.8rem;font-weight:900}
.reports-category-teaching .reports-category-kicker{color:#88c4f5}
.reports-category .reports-grid{margin-top:22px;gap:14px}
.reports-category .report-card{min-height:112px;padding:20px;gap:20px}
.reports-category .report-card>div:first-child{min-width:0;flex:1}
.reports-category .report-card h3{overflow-wrap:anywhere;line-height:1.6}
.reports-category .report-card-actions{flex-shrink:0}
.reports-category .report-view-action{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-width:126px;min-height:42px;text-decoration:none;white-space:nowrap;border-radius:12px;font-weight:800}
.reports-category .report-view-action:focus-visible{outline:3px solid #f3c45b;outline-offset:3px}
.reports-category .report-view-action:hover{filter:brightness(1.09)}
.documentation-dialog .teaching-create-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.documentation-dialog .teaching-create-actions button{min-height:44px}
.documentation-dialog .teaching-create-actions .is-loading{cursor:progress}
@media(max-width:700px){.reports-shell .reports-category+.reports-category{margin-block-start:28px}.reports-category .report-card-actions{width:100%;flex-wrap:wrap}.reports-category .report-view-action{flex:1}}

/* Teaching-use report actions: the global primary button is width:100%; override only here. */
.reports-category-teaching .teaching-report-card{display:flex;align-items:center;gap:18px}
.reports-category-teaching .teaching-report-detail{flex:1;min-width:0}
.reports-category-teaching .teaching-report-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:12px;width:auto}
.reports-category-teaching .teaching-report-actions .report-view-action{width:auto!important;min-width:130px;margin:0;padding:10px 18px;flex:0 0 auto}
.reports-category-teaching .teaching-report-actions .delete-teaching-report{flex:0 0 auto;min-height:42px;padding:9px 14px;border:1px solid #ef9290;border-radius:12px;color:#ffc2c0;background:rgba(186,40,40,.08)}
.reports-category-teaching .teaching-report-actions .delete-teaching-report:hover{background:rgba(186,40,40,.2)}
@media(max-width:700px){.reports-category-teaching .teaching-report-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.reports-category-teaching .teaching-report-actions .report-view-action{flex:0 0 auto}}

.reports-category-ai{margin-top:28px}.reports-category-ai .report-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.reports-category-ai .report-view-action{width:auto;flex:none}
