/* The student overview layout. Loaded alongside styles.css on dashboard.html
   only, the same way board.css and practice.css scope their own surfaces.
   Everything here hangs off the .student-dashboard body class. */

  /* The nav is full-width markup shared with every other page. The student
     shell tucks it beside the sidebar and pulls itself back up under it, so
     both offsets have to stay one number each. */
  .student-dashboard {
    --student-side: 280px;
    --student-nav: 64px;
    --s-panel: #fff;
    --s-line: #ecece7;
    --s-panel-line: #e8e8e2;
    --s-track: #eceeea;
    --s-chip: #f3f4f1;
    --s-tint-orange: #fff0df;
    --s-tint-orange-soft: #fff3e4;
    --s-ink-faint: #a0a4aa;
    --s-ink-soft: #858b94;
    --s-ink-mute: #999ea6;
    --s-icon-orange: #c76c27;
    --s-side-label: #8390a1;
    --s-side-dim: #8f9cad;
    background: #f8f8f3;
  }
  .student-dashboard > nav { position: relative; z-index: 10; height: var(--student-nav); margin-left: var(--student-side); background: var(--s-panel); }
  .student-dashboard > nav .logo { display: none; }
  .student-dashboard > nav .nav-inner { max-width: none; justify-content: flex-end; padding: 0 32px; }
  .student-dashboard > nav .nav-links { gap: 12px; }
  .student-dashboard > nav #nav-practice, .student-dashboard > nav #nav-live {
    padding: 10px 16px; border: 1px solid #e2e4df; border-radius: 10px; color: #243044;
    font-size: 13px; font-weight: 700;
  }
  .student-dashboard > nav #nav-live { border-color: var(--accent-bright); background: var(--accent-bright); color: var(--s-panel); }
  .student-dashboard > nav .nav-account { font-size: 12px; }
  .student-dashboard .platform-shell { max-width: none; min-height: 100vh; margin-top: calc(-1 * var(--student-nav)); grid-template-columns: var(--student-side) minmax(0, 1fr); }
  .student-dashboard .platform-side {
    position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; padding: 28px 18px 20px;
    border: 0; color: var(--s-panel); background: #172437;
  }
  .student-side-brand {
    display: flex; align-items: center; gap: 12px; padding: 2px 9px 30px; color: var(--s-panel);
    font-size: 24px; font-weight: 750; letter-spacing: -.03em; text-decoration: none;
  }
  .student-side-brand span {
    display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--accent-bright);
    box-shadow: 0 8px 22px rgba(255,149,0,.25); font-size: 17px; letter-spacing: 0;
  }
  .student-dashboard .student-side-label { display: block; margin: 17px 11px 9px; color: var(--s-side-label); }
  .student-dashboard .side-link {
    position: relative; display: flex; align-items: center; gap: 13px; margin: 2px 0; padding: 12px 13px;
    color: #b9c3d0; font-size: 14px; font-weight: 650; text-decoration: none;
  }
  .student-dashboard .side-link:hover { color: var(--s-panel); background: rgba(255,255,255,.07); }
  .student-dashboard .side-link.active { color: var(--s-panel); background: #304056; box-shadow: inset 3px 0 0 var(--accent-bright); }
  .side-icon { width: 20px; color: #c4ced9; font-size: 18px; text-align: center; }
  .side-count {
    display: grid; min-width: 22px; height: 22px; margin-left: auto; place-items: center; border-radius: 999px;
    background: var(--accent-bright); color: var(--s-panel); font-size: 11px;
  }
  .student-side-spacer { flex: 1; min-height: 44px; }
  .student-help-card {
    display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; margin: 12px 0 22px;
    padding: 14px; border: 1px solid #35455a; border-radius: 14px; background: #223248; color: var(--s-panel); text-decoration: none;
  }
  .student-help-card > b { display: grid; height: 34px; place-items: center; border-radius: 9px; background: #34465e; }
  .student-help-card span { display: grid; gap: 3px; }
  .student-help-card strong { font-size: 12px; }
  .student-help-card small { color: var(--s-side-dim); font-size: 10px; }
  .student-help-card i { color: var(--s-side-dim); font-style: normal; }
  .student-profile { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 0 7px; }
  .student-profile > span {
    display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #ffddb7;
    color: #9a531c; font-size: 12px; font-weight: 800;
  }
  .student-profile div { display: grid; min-width: 0; }
  .student-profile b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .student-profile small { color: var(--s-side-label); font-size: 10px; }
  .student-dashboard .platform-content { padding: calc(var(--student-nav) + 46px) clamp(24px, 4vw, 54px) 70px; }
  .student-welcome { margin-bottom: 26px; }
  .student-welcome .kicker, .student-panel-label { color: #a17d68; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .student-welcome h1 { margin: 12px 0 5px; font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -.035em; }
  .student-welcome h1 span { font-size: .72em; }
  .student-welcome p { color: var(--s-ink-soft); font-size: 14px; }
  .mock-course-banner, .canvas-course-banner {
    display: flex; align-items: center; gap: 14px; margin: -4px 0 22px; padding: 14px 16px; border: 1px solid #f0d3b3;
    border-radius: 13px; background: #fff7ed;
  }
  .mock-banner-icon {
    display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px;
    background: #ffe5c7; color: #c56318;
  }
  .mock-course-banner div { flex: 1; }
  .mock-course-banner strong { color: #7d401a; font-size: 13px; }
  .mock-course-banner p, .canvas-course-banner p { margin-top: 2px; color: #8b6650; font-size: 12px; }
  .mock-course-banner .btn { padding: 9px 14px; font-size: 12px; white-space: nowrap; }
  .canvas-course-banner { border-color: #bfe4ce; background: #edf9f2; color: #167247; }
  .canvas-course-banner p { flex: 1; margin: 0; color: #39765a; }
  .canvas-course-banner button, .student-section-head button {
    border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer;
  }
  .student-top-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: 20px; }
  .student-panel { border: 1px solid var(--s-panel-line); border-radius: 17px; background: var(--s-panel); box-shadow: 0 4px 18px rgba(26,37,51,.025); }
  .student-up-next { padding: 26px 28px 22px; }
  .student-panel-label { display: flex; align-items: center; gap: 8px; }
  .student-panel-label > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px var(--s-tint-orange); }
  .student-panel-label em { margin-left: auto; padding: 6px 9px; border-radius: 999px; background: var(--s-tint-orange-soft); color: #c4702d; font-style: normal; letter-spacing: 0; text-transform: none; }
  .up-next-content { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 118px; }
  .up-next-content small { color: #9298a0; font-size: 11px; font-weight: 700; }
  .up-next-content h2 { margin: 7px 0 10px; font-size: clamp(23px, 2.4vw, 31px); font-weight: 500; letter-spacing: -.025em; }
  .up-next-content p { color: #a2a6ad; font-size: 11px; }
  .math-mark { display: flex; gap: 9px; align-items: center; padding: 20px 25px; border-radius: 52% 40% 48% 42%; background: var(--s-tint-orange); color: #d16d24; transform: rotate(-4deg); }
  .math-mark i { font: italic 38px Georgia, serif; }
  .math-mark small { color: #c7804b; font: italic 15px Georgia, serif; }
  .math-mark b { font-size: 22px; }
  .up-next-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 16px; border-top: 1px solid var(--s-line); }
  .up-next-footer > span { display: flex; align-items: center; }
  .up-next-footer i { display: grid; width: 25px; height: 25px; margin-right: -5px; place-items: center; border: 2px solid var(--s-panel); border-radius: 50%; background: #f2dfcd; color: #8a633f; font-size: 8px; font-style: normal; }
  .up-next-footer i:nth-child(2) { background: #e4e3f4; color: #655e9a; }
  .up-next-footer small { margin-left: 12px; color: var(--s-ink-mute); font-size: 10px; }
  .up-next-footer a { padding: 11px 20px; border-radius: 10px; background: var(--accent-bright); color: var(--s-panel); font-size: 12px; font-weight: 750; text-decoration: none; }
  .up-next-footer a b { margin-left: 18px; }
  .weekly-goal { padding: 25px 26px 20px; }
  .weekly-goal h2 { margin: 14px 0 20px; font-size: 18px; font-weight: 500; }
  .goal-progress { display: flex; gap: 18px; align-items: center; }
  .goal-progress > div {
    display: grid; width: 78px; height: 78px; flex: 0 0 auto; place-items: center; border-radius: 50%;
    background: conic-gradient(var(--accent-bright) var(--goal), var(--s-track) 0); position: relative;
  }
  .goal-progress > div::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--s-panel); }
  .goal-progress > div b { position: relative; font-size: 24px; }
  .goal-progress > div small { color: #adb1b5; font-size: 11px; font-weight: 500; }
  .goal-progress p { display: grid; gap: 5px; }
  .goal-progress strong { font-size: 12px; }
  .goal-progress span { color: var(--s-ink-faint); font-size: 10px; }
  .goal-days { display: flex; justify-content: space-between; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--s-line); }
  .goal-days span { display: grid; gap: 5px; justify-items: center; }
  .goal-days i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #f1f2ee; color: var(--s-panel); font-size: 9px; font-style: normal; }
  .goal-days .done i { background: #23354c; }
  .goal-days .today i { border: 2px solid var(--accent-bright); background: var(--s-panel); }
  .goal-days small { color: #aaadb1; font-size: 8px; }
  .student-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; border: 1px solid var(--s-panel-line); border-radius: 14px; background: var(--s-panel); }
  .student-stat-grid > div { display: flex; gap: 13px; align-items: center; padding: 18px; border-right: 1px solid var(--s-line); }
  .student-stat-grid > div:last-child { border: 0; }
  .stat-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; font-size: 15px; }
  .stat-icon.orange, .student-class-icon.orange { background: var(--s-tint-orange); color: var(--s-icon-orange); }
  .stat-icon.blue, .student-class-icon.blue { background: #e9f4f9; color: #39789b; }
  .stat-icon.purple, .student-class-icon.purple { background: #efedf9; color: #6d60a2; }
  .stat-icon.green { background: #e8f6ee; color: #23825a; }
  .student-stat-grid p { display: grid; min-width: 0; }
  .student-stat-grid small { color: var(--s-ink-faint); font-size: 9px; }
  .student-stat-grid b { margin: 1px 0; font-size: 20px; }
  .student-stat-grid em { color: #54a373; font-size: 8px; font-style: normal; }
  .student-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, .9fr); gap: 20px; align-items: start; }
  .student-work, .student-classes { padding: 26px; }
  .student-section-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 15px; }
  .student-section-head h2 { margin-top: 10px; font-size: 19px; font-weight: 500; }
  .student-section-head > span { color: #bf7338; font-size: 10px; }
  .student-assignment-row {
    display: grid; width: 100%; grid-template-columns: 48px minmax(0,1fr) auto 18px; gap: 13px; align-items: center;
    padding: 14px 4px; border: 0; border-top: 1px solid var(--s-line); background: none; color: #273143; font: inherit; text-align: left; text-decoration: none;
  }
  button.student-assignment-row, a.student-assignment-row { cursor: pointer; }
  .student-date { display: grid; height: 43px; place-items: center; align-content: center; border-radius: 9px; background: var(--s-chip); }
  .student-assignment-row.soon .student-date { background: var(--s-tint-orange); color: var(--s-icon-orange); }
  .student-date b { font-size: 13px; }
  .student-date small { font-size: 7px; text-transform: uppercase; }
  .student-assignment-row > span:nth-child(2) { display: grid; gap: 4px; }
  .student-assignment-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .student-assignment-row small { color: var(--s-ink-faint); font-size: 9px; }
  .student-assignment-row em { padding: 6px 9px; border-radius: 999px; background: var(--s-chip); color: #8f949c; font-size: 8px; font-style: normal; }
  .student-assignment-row.soon em { background: var(--s-tint-orange-soft); color: #c06a29; }
  .student-assignment-row > i { color: #a5a9ae; font-size: 10px; font-style: normal; }
  .student-right-stack { display: grid; gap: 20px; }
  .student-class-row {
    display: grid; width: 100%; grid-template-columns: 42px minmax(0, 1fr) 85px; gap: 12px; align-items: center;
    padding: 13px 2px; border: 0; border-top: 1px solid var(--s-line); background: none; color: inherit; font: inherit; text-align: left;
  }
  button.student-class-row { cursor: pointer; }
  .student-class-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; font-size: 10px; font-weight: 800; }
  .student-class-row > span:nth-child(2) { display: grid; gap: 3px; }
  .student-class-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .student-class-row small { color: var(--s-ink-faint); font-size: 8px; }
  .student-progress { display: grid; gap: 6px; justify-items: end; }
  .student-progress b { color: var(--s-ink-soft); font-size: 9px; }
  .student-progress i { width: 80px; height: 4px; overflow: hidden; border-radius: 999px; background: var(--s-track); }
  .student-progress u { display: block; height: 100%; border-radius: inherit; background: var(--accent-bright); text-decoration: none; }
  .student-progress.blue u { background: #62a0c1; }
  .student-progress.purple u { background: #7666a8; }
  .student-class-meta { color: var(--s-ink-soft); font-size: 9px; text-align: right; }
  .tutor-whiteboard-card { display: grid; grid-template-columns: 1fr 150px; gap: 18px; overflow: hidden; padding: 22px; color: var(--ink); text-decoration: none; }
  .tutor-whiteboard-card h2 { margin: 9px 0 7px; font-size: 18px; }
  .tutor-whiteboard-card p { color: var(--s-ink-soft); font-size: 10px; line-height: 1.5; }
  .tutor-whiteboard-card > div > b { display: block; margin-top: 13px; color: var(--accent); font-size: 10px; }
  .mini-whiteboard { position: relative; min-height: 115px; padding: 22px 13px; border-radius: 10px; background: #19273a; color: var(--s-panel); font: 12px "SF Mono", monospace; }
  .mini-whiteboard i { display: block; width: 76px; height: 25px; margin: -18px 0 13px -4px; border-bottom: 2px solid var(--accent-bright); border-radius: 50%; transform: rotate(-4deg); }
  .mini-whiteboard em { display: block; padding: 7px; border-radius: 6px; background: var(--s-panel); color: #39465a; font: 7px inherit; }
  .student-empty { padding: 28px 8px; color: var(--s-ink-mute); font-size: 11px; text-align: center; }
  @media (max-width: 960px) {
    .student-dashboard > nav { margin-left: 0; }
    .student-dashboard .platform-shell { margin-top: 0; grid-template-columns: 1fr; }
    .student-dashboard .platform-side {
      position: static; min-height: auto; padding: 12px 18px; flex-direction: row; border-bottom: 1px solid #334359;
    }
    .student-side-brand, .student-help-card, .student-profile, .student-side-spacer,
    .student-dashboard .student-side-label { display: none; }
    .student-dashboard .platform-content { padding-top: 30px; }
    .student-top-grid, .student-bottom-grid { grid-template-columns: 1fr; }
    .student-stat-grid { grid-template-columns: 1fr 1fr; }
    .student-stat-grid > div:nth-child(2) { border-right: 0; }
    .student-stat-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--s-line); }
  }

  @media (max-width: 560px) {
    .student-dashboard > nav .nav-account, .student-dashboard > nav #nav-practice { display: none; }
    .student-dashboard > nav .nav-inner { padding: 0 14px; }
    .mock-course-banner { align-items: flex-start; flex-wrap: wrap; }
    .mock-course-banner .btn { margin-left: 48px; }
    .student-stat-grid { grid-template-columns: 1fr; }
    .student-stat-grid > div { border-right: 0; border-bottom: 1px solid var(--s-line); }
    .up-next-footer { align-items: stretch; flex-direction: column; }
    .up-next-footer a { text-align: center; }
    .student-assignment-row { grid-template-columns: 43px minmax(0,1fr) 18px; }
    .student-assignment-row em { display: none; }
    .tutor-whiteboard-card { grid-template-columns: 1fr; }
  }
