/* Student workflow and portfolio structure. Colors come from the shared brand/theme. */
.student-workspace .workspace-hero{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:40px;align-items:center;padding-block:38px 44px}
.student-workspace .workspace-hero h1{font-size:clamp(2.1rem,4.2vw,3.8rem);max-width:760px;line-height:1.08}
.student-workspace .workspace-hero .muted{max-width:640px}
.student-workspace .workspace-next{padding:28px;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:var(--card-radius,12px);background:var(--panel)}
.student-workspace .workspace-next .button{display:flex;text-align:center}
.student-workspace .workspace-preview{display:flex;justify-content:space-between;gap:12px;margin-top:18px;font-weight:650}
.student-workspace .workflow-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line);margin-bottom:38px;padding-block:10px;gap:12px}
.student-workspace .workflow-nav a{padding:16px 12px;display:flex;gap:14px;align-items:center;text-decoration:none;font-weight:650;border-radius:6px}
.student-workspace .workflow-nav a:hover{background:var(--panel2)}
.student-workspace .workflow-nav span{color:var(--accent);font-size:.78rem;font-variant-numeric:tabular-nums}
.student-workspace .workflow-section{scroll-margin-top:28px;margin-block:40px 56px}
.student-workspace .section-intro,.student-portfolio .section-intro{max-width:760px;margin-bottom:24px}
.student-workspace .section-intro h2,.student-portfolio .section-intro h2{font-size:clamp(1.65rem,3vw,2.3rem)}
.student-workspace .profile-grid{align-items:start}
.student-workspace .profile-grid .card{min-width:0}
.student-workspace .appearance-options{padding-block:12px}
.student-workspace .appearance-options .theme-fieldset{margin-top:20px}
.student-workspace #canvas-options{margin-block:20px}
.student-workspace .share-section{border-top:3px solid var(--accent)}
.student-workspace .share-section>p,.student-workspace .share-section form{max-width:800px}
.student-workspace .course-filter,.student-portfolio .course-filter{margin-block:24px}
.student-workspace .search-row,.student-portfolio .search-row{display:flex;gap:10px;align-items:stretch}
.student-workspace .search-row input,.student-portfolio .search-row input{flex:1;min-width:0}
.student-workspace .search-row button,.student-portfolio .search-row button{flex:0 0 auto}
.student-workspace .course-card,.student-portfolio .course-card{margin-block:18px}
.student-workspace .course-card h3,.student-portfolio .course-card h3{overflow-wrap:anywhere}
.student-workspace .course-card>.row>div,.student-workspace .assignment-row h3{min-width:0;flex:1}
.student-workspace .check-label{flex-shrink:0}
.student-workspace .submitted-text,.student-portfolio .submitted-text{white-space:pre-wrap;overflow-wrap:anywhere}
.student-portfolio .portfolio-hero{padding-block:52px 32px;border-bottom:1px solid var(--line)}
.student-portfolio .portfolio-hero h1{font-size:clamp(2.7rem,6vw,5rem);line-height:1.05;margin-bottom:18px;overflow-wrap:anywhere}
.student-portfolio .portfolio-story{max-width:820px;margin-block:40px 56px;padding-left:24px;border-left:3px solid var(--accent)}
.student-portfolio .portfolio-story h2{font-size:2rem}
.student-portfolio .story-introduction{font-size:1.2rem;line-height:1.7}
.student-portfolio .story-narrative{line-height:1.85}
.student-portfolio .portfolio-work{margin-block:48px}
.student-portfolio .assignment-button{text-align:left;gap:16px}
.student-portfolio .assignment-button>span:first-child{font-weight:650;font-size:1.05rem;overflow-wrap:anywhere}
.student-portfolio .reflection-label{margin-top:20px;margin-bottom:8px}
.student-portfolio .work-reflection{max-width:800px;line-height:1.75;margin-top:0}
.student-portfolio .portfolio-options{margin-block:16px}
.student-portfolio .portfolio-options>summary{font-weight:600}
.student-portfolio .portfolio-options[open]>summary{margin-bottom:22px}
.student-portfolio .preview-controls{max-width:560px}
.student-portfolio .portfolio-contact{margin-top:32px}
.student-workspace [hidden],.student-portfolio [hidden]{display:none!important}
@media(max-width:760px){
 .student-workspace .workspace-hero{grid-template-columns:1fr;gap:24px;padding-top:24px}
 .student-workspace .workspace-next{padding:22px}
 .student-workspace .workflow-nav{gap:4px}
 .student-workspace .workflow-nav a{flex-direction:column;align-items:flex-start;gap:5px;padding:12px 6px;font-size:.82rem}
 .student-workspace .profile-grid{grid-template-columns:1fr}
 .student-workspace .search-row,.student-portfolio .search-row{flex-wrap:wrap}
 .student-workspace .search-row input,.student-portfolio .search-row input{flex-basis:100%}
 .student-workspace .search-row button,.student-portfolio .search-row button{min-height:44px}
 .student-workspace .course-card>.row{align-items:flex-start}
 .student-workspace .course-card>.row>div,.student-workspace .assignment-row h3{flex-basis:100%}
 .student-portfolio .portfolio-hero{padding-top:32px}
 .student-portfolio .portfolio-story{padding-left:16px}
 .student-portfolio .portfolio-contact{grid-template-columns:1fr}
}
