/* Learner dashboard. Uses the shared academy palette and no page-wide overrides. */
.student-dashboard{padding:2.5rem 0 1rem;min-width:0}
.student-header{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2.1rem}
.student-header>div{min-width:0}
.student-kicker{margin:0 0 .6rem;color:var(--fg-muted);font-size:.75rem;font-weight:600;letter-spacing:.06em}
.student-header h1{margin:0 0 .8rem;font-size:clamp(2rem,3.6vw,2.8rem);font-weight:700;line-height:1.13;letter-spacing:-.04em}
.student-intro{margin:0;max-width:65ch;color:var(--fg-muted);font-size:.95rem;overflow-wrap:anywhere}
.student-utilities{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.6rem 1.35rem;padding-bottom:.15rem}
.student-utilities a,.student-program-link,.student-certificate-link{font-size:.8rem;font-weight:600;text-underline-offset:4px}
.student-utilities a{color:var(--fg-muted);white-space:nowrap;padding:.4rem 0}
.student-utilities a:hover{color:var(--accent)}
.student-utilities span{margin-left:.3rem}
.student-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 3rem;padding:1.4rem 0;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.student-overview>div{display:flex;flex-direction:column;gap:.45rem;padding:0 1.75rem;border-right:1px solid var(--line)}
.student-overview>div:last-child{border-right:0}
.student-overview dt{color:var(--fg-muted);font-size:.79rem;font-weight:500}
.student-overview dd{margin:0;font-size:2rem;font-weight:650;line-height:1.2;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.student-section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.student-section-heading h2{display:flex;align-items:center;gap:.65rem;margin:0;font-size:1.3rem;font-weight:650;letter-spacing:-.025em}
.student-section-heading p{margin:0;color:var(--fg-muted);font-size:.79rem}
.student-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.7rem;min-height:1.7rem;border:1px solid var(--line);border-radius:5px;padding:.1rem .4rem;color:var(--fg-muted);font-size:.75rem;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums}
.student-course-list{display:grid;gap:1rem}
.student-course{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.56fr);background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.student-course-info{padding:1.8rem 2rem;min-width:0}
.student-course-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem .9rem;margin-bottom:1rem;color:var(--fg-muted);font-size:.73rem}
.student-course-state{display:inline-flex;align-items:center;min-height:1.65rem;padding:.2rem .55rem;border-radius:4px;background:var(--surface-2);color:var(--fg-muted);font-size:.68rem;line-height:1.4;font-weight:650}
.student-course-state--active{color:var(--accent);background:var(--accent-soft)}
.student-course h3{margin:0 0 .6rem;font-size:1.4rem;font-weight:650;line-height:1.35;letter-spacing:-.025em;overflow-wrap:anywhere}
.student-course h3 a{color:var(--fg);text-decoration:none}
.student-course h3 a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.student-course-description{max-width:62ch;margin:0;color:var(--fg-muted);font-size:.86rem;line-height:1.7;overflow-wrap:anywhere}
.student-course-results{display:flex;flex-wrap:wrap;gap:1rem 2.5rem;margin:1.4rem 0 1.15rem}
.student-course-results dt{color:var(--fg-muted);font-size:.72rem}
.student-course-results dd{margin:.25rem 0 0;font-size:1rem;font-weight:650;font-variant-numeric:tabular-nums}
.student-course-results dd span{color:var(--fg-muted);font-weight:400}
.student-program-link{display:inline-flex;align-items:center;gap:.55rem;min-height:32px;color:var(--accent)}
.student-course-progress{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:1.8rem 2rem;background:var(--surface-2);border-left:1px solid var(--line)}
.student-progress-label{display:flex;justify-content:space-between;gap:.8rem;align-items:baseline;margin-bottom:.55rem;font-size:.75rem;color:var(--fg-muted)}
.student-progress-label strong{color:var(--fg);font-size:1rem;font-weight:650;font-variant-numeric:tabular-nums}
.student-progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:6px;flex-shrink:0;margin:0;border:0;border-radius:3px;overflow:hidden;background:var(--line)}
.student-progress::-webkit-progress-bar{background:var(--line);border-radius:3px}
.student-progress::-webkit-progress-value{background:var(--accent);border-radius:3px}
.student-progress::-moz-progress-bar{background:var(--accent);border-radius:3px}
.student-next-lesson{display:flex;flex-direction:column;gap:.35rem;margin:1.15rem 0;color:var(--fg-muted);font-size:.69rem;line-height:1.5}
.student-next-lesson strong{color:var(--fg);font-size:.82rem;font-weight:550;overflow-wrap:anywhere}
.student-action{display:inline-flex;justify-content:space-between;align-items:center;gap:1.1rem;min-height:44px;padding:.7rem 1rem;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:var(--surface);font-size:.83rem;font-weight:600;line-height:1.4;text-align:left;text-decoration:none;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.student-action:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--surface);text-decoration:none}
.student-action:active{transform:translateY(1px)}
.student-action span{flex-shrink:0}
.student-certificate-link{display:inline-flex;justify-content:center;gap:.4rem;align-items:center;margin-top:.5rem;min-height:34px;color:var(--fg-muted);font-size:.72rem}
.student-certificate-link:hover{color:var(--accent)}
.student-notice{margin:0 0 1.25rem;padding:.9rem 1.1rem;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:6px;background:var(--accent-soft);color:var(--fg);font-size:.88rem;overflow-wrap:anywhere}
.student-notice--error{border-left-color:var(--danger);background:var(--danger-soft);color:var(--danger)}
.student-empty{padding:3rem 1.5rem;text-align:center;border:1px dashed var(--line-strong);border-radius:10px;background:var(--surface)}
.student-empty-icon{color:var(--accent);margin:0 auto 1rem}
.student-empty h3{margin:0 0 .7rem;font-size:1.35rem;font-weight:650;letter-spacing:-.02em}
.student-empty p{max-width:49ch;margin:0 auto 1.4rem;color:var(--fg-muted);font-size:.87rem}
.student-empty .student-action{max-width:100%}
.student-redeem{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:3rem;margin:2.5rem 0 0;padding:2.25rem 0;border-top:1px solid var(--line)}
.student-redeem h2{margin:0 0 .65rem;font-size:1.2rem;font-weight:650;letter-spacing:-.025em}
.student-redeem p:not(.student-kicker){max-width:54ch;margin:0;color:var(--fg-muted);font-size:.83rem}
.student-code-form{min-width:0}
.student-code-form>label{display:block;margin-bottom:.5rem;color:var(--fg);font-size:.78rem;font-weight:600}
.student-code-controls{display:flex;gap:.6rem;align-items:stretch}
.student-code-controls input{width:100%;min-width:0;min-height:44px;flex:1;padding:.7rem .9rem;background:var(--surface);border:1px solid var(--line-strong);border-radius:6px;color:var(--fg);font-size:.83rem;letter-spacing:.025em}
.student-code-controls input::placeholder{color:var(--fg-muted);opacity:1}
.student-code-controls .student-action{flex-shrink:0;white-space:nowrap}
.student-dashboard a:focus-visible,.student-dashboard button:focus-visible,.student-dashboard input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:900px){
  .student-header{align-items:flex-start;flex-direction:column;gap:.85rem}
  .student-utilities{justify-content:flex-start}
  .student-course{grid-template-columns:minmax(0,1fr) minmax(230px,.7fr)}
  .student-course-info,.student-course-progress{padding:1.5rem}
  .student-redeem{gap:2rem}
  .student-code-controls{flex-wrap:wrap}
  .student-code-controls input{flex-basis:100%}
}
@media(max-width:640px){
  .student-dashboard{padding-top:1.75rem}
  .student-header{margin-bottom:1.5rem}
  .student-header h1{font-size:2rem}
  .student-overview{gap:1.1rem 0;padding:1.1rem 0;margin-bottom:2rem}
  .student-overview>div{padding:0 .85rem}
  .student-overview dt{font-size:.68rem;line-height:1.55}
  .student-overview dd{font-size:1.65rem}
  .student-section-heading{align-items:flex-start;flex-direction:column;gap:.4rem}
  .student-course{grid-template-columns:minmax(0,1fr)}
  .student-course-info,.student-course-progress{padding:1.25rem}
  .student-course-progress{border-left:0;border-top:1px solid var(--line)}
  .student-course h3{font-size:1.25rem}
  .student-course-meta{gap:.5rem .7rem}
  .student-course-results{gap:1rem 1.5rem}
  .student-course-results dt{font-size:.69rem}
  .student-redeem{grid-template-columns:minmax(0,1fr);gap:1.5rem;margin-top:2rem;padding-top:1.75rem}
  .student-code-controls{flex-wrap:nowrap}
  .student-code-controls input{flex-basis:auto}
}
@media(max-width:380px){
  .student-overview{grid-template-columns:minmax(0,1fr);gap:0;padding:.2rem 1rem}
  .student-overview>div{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;border-right:0;border-bottom:1px solid var(--line)}
  .student-overview>div:last-child{border-bottom:0}
  .student-overview dt{font-size:.74rem}
  .student-overview dd{font-size:1.4rem}
  .student-code-controls{flex-wrap:wrap}
  .student-code-controls input,.student-code-controls .student-action{flex-basis:100%;width:100%}
}
@media(prefers-reduced-motion:reduce){.student-action{transition:none}.student-action:active{transform:none}}
