.student-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:12px}.student-metrics .card{padding:22px 26px;display:flex;justify-content:space-between;align-items:center;gap:12px}.student-metrics strong{font-size:2rem;font-weight:800;color:var(--brand,#ab0552)}.student-metrics span{font-weight:650}.student-count-note{margin-bottom:26px}.student-list-card{padding:26px}.student-filters{display:grid;grid-template-columns:1.25fr .75fr 1.2fr 1fr;gap:18px;align-items:start}.student-result-heading{display:flex;justify-content:flex-end;margin:18px 0 6px}.student-filter-count{margin-bottom:16px}.student-table td{vertical-align:middle}.student-table td:first-child{min-width:215px}.student-table th:nth-child(2){min-width:240px}.student-program-row{display:flex;align-items:flex-start;gap:10px;margin:8px 0}.student-program-row strong{font-size:.87rem}.student-department{font-size:.72rem;letter-spacing:.04em;font-weight:800;color:#612940;background:#f5eaf0;border-radius:6px;padding:5px 9px;display:inline-block;flex-shrink:0}.student-table-progress{margin:10px 0;min-width:230px}.student-table-progress strong,.student-table-progress small,.student-table-progress span{display:block}.student-table-progress strong{font-size:.8rem}.student-table-progress small{font-size:.78rem;margin-top:4px}.student-table-progress span{font-size:.75rem;color:var(--muted,#777);margin-top:3px}.student-tabs{margin-bottom:26px;flex-wrap:wrap}.student-overview-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:24px}.student-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px;margin:0}.student-details dt{font-size:.78rem;color:var(--muted,#777);margin-bottom:7px}.student-details dd{margin:0;font-size:.92rem;font-weight:650;overflow-wrap:anywhere}.student-enrollment{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line,#e7e3eb)}.student-enrollment:first-of-type{padding-top:0}.student-enrollment h3{font-size:.94rem}.student-tuition{display:flex;justify-content:space-between;gap:14px;margin-top:24px;align-items:center}.student-tuition strong{font-size:1.3rem;color:#612940}.student-path+.student-path{margin-top:24px;border-top:1px solid var(--line,#e7e3eb);padding-top:24px}.student-path h3{font-size:.92rem}.student-path-current{margin:16px 0 8px;font-weight:750}.student-path>p{margin-bottom:10px}.student-progress-bar{height:7px;background:#ede8ef;border-radius:7px;margin:18px 0 12px;overflow:hidden}.student-progress-bar span{height:100%;display:block;background:#ab0552;border-radius:7px}.student-path-requirements{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0}.student-path-requirements span{font-size:.85rem}.student-path-requirements strong{color:#612940}.student-card-caption{margin-bottom:18px}.student-rfid-item+.student-rfid-item{margin-top:24px}.student-rfid{display:block;width:100%;aspect-ratio:3114/1980;border:0;padding:0;border-radius:16px;background:transparent;cursor:pointer;perspective:1200px;position:relative;margin-bottom:12px;text-align:inherit}.student-rfid-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .55s}.student-rfid.flipped .student-rfid-inner{transform:rotateY(180deg)}.student-rfid-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px #29172924}.student-rfid-face img{width:100%;height:100%;object-fit:fill}.student-rfid-back{transform:rotateY(180deg)}.student-rfid-number{position:absolute;top:7%;right:5%;background:#211d38cc;color:#fff;padding:7px 12px;border-radius:7px;font-weight:800;font-size:clamp(.65rem,1vw,.9rem);letter-spacing:.09em;overflow-wrap:anywhere;max-width:65%}.student-rfid-name{position:absolute;left:25.5%;width:69%;top:44.2%;height:13.6%;display:flex;align-items:center;justify-content:center;color:#111;font-weight:800;font-size:clamp(.6rem,1.15vw,1.05rem);padding:0 7px;line-height:1.2;text-align:center}.student-rfid-item.inactive .student-rfid-face{filter:grayscale(1);opacity:.65}.student-section-title{align-items:flex-start}.student-local-search{max-width:500px;margin-bottom:26px}.student-lesson{padding:22px 0;border-top:1px solid var(--line,#e7e3eb)}.student-lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.student-lesson h3{font-size:1rem}.student-lesson .meta{margin-top:6px}.student-lesson-content{margin-top:16px;line-height:1.7}.student-timeline{padding-left:20px;margin-left:10px;border-left:2px solid #e5dce4}.student-timeline-entry{position:relative;margin:0 0 28px;padding:22px;background:#faf8fb;border:1px solid #ebe4ed;border-radius:16px}.student-timeline-entry:last-child{margin-bottom:0}.student-timeline-dot{position:absolute;left:-39px;top:22px;background:#edf6f0;border:4px solid #fff;color:#398455;border-radius:50%;width:34px;height:34px;display:flex;align-items:center;justify-content:center}.student-timeline-dot svg{width:17px;height:17px}.student-timeline-entry.unsuccessful .student-timeline-dot{color:#b07c25;background:#fff3df}.student-timeline-heading{display:flex;justify-content:space-between;gap:20px}.student-timeline-heading h3{margin:10px 0;font-size:1rem}.student-timeline-heading .meta{margin-top:8px}.student-history-grade{display:flex;gap:20px;justify-content:space-between;padding:18px 0;border-top:1px solid #e7e0e8}.student-timeline-grades{margin-top:22px}.student-history-grade h4{font-size:.92rem;margin-bottom:6px}.student-history-grade p:not(.meta){margin-top:14px;font-size:.88rem;line-height:1.7}.student-grade{font-size:1.3rem;flex-shrink:0;max-width:220px;color:#612940}.student-grade.stars{color:#ab0552;letter-spacing:3px}.student-grade.grade-5{color:#34825a}.student-grade.grade-1{color:#a53640}.student-timeline-docs{display:flex;gap:10px;flex-wrap:wrap;padding-top:18px;border-top:1px solid #e7e0e8}.student-timeline-docs .btn{white-space:normal;text-align:left}.student-empty{padding:18px 0;line-height:1.7}.student-form-section{margin:26px 0 20px}.student-form-section:first-child{margin-top:0}.student-design-preview{display:flex;gap:20px;margin-top:24px}.student-design-preview img{width:calc(50% - 10px);max-width:400px;aspect-ratio:3114/1980;object-fit:contain;border-radius:12px}.student-rfid:focus-visible{outline:3px solid #ab0552;outline-offset:5px}
.student-extract-fixed{min-height:44px;padding:10px 13px;border:1px solid #e5dce4;border-radius:10px;background:#faf8fb;font-size:.82rem;font-weight:700;display:flex;align-items:center}
.student-metrics{grid-template-columns:minmax(200px,1.4fr) repeat(3,minmax(100px,1fr));max-width:780px;gap:12px}.student-metrics .card{padding:16px 20px;border:1px solid var(--line,#e7e3eb);box-shadow:none}.student-metrics strong{font-size:1.8rem}.student-program-group{display:flex;align-items:flex-start;gap:10px;padding:12px 0}.student-program-group+.student-program-group{border-top:1px solid var(--line,#e7e3eb)}.student-package{display:block;font-weight:750;color:#612940;margin:0 0 7px;font-size:.83rem}.student-program-name{display:block;margin:5px 0;font-size:.86rem}.student-history-filter{max-width:440px;margin-bottom:26px}.student-journal-summary{display:flex;flex-wrap:wrap;gap:10px 20px;padding:16px 18px;background:#faf8fb;border:1px solid #e8e0e8;border-radius:12px;margin-bottom:28px;font-size:.85rem}.student-journal-summary strong{font-size:1rem;margin-right:4px}.journal-summary-present{color:#2d744d}.journal-summary-absent{color:#a33248}.journal-summary-unmarked{color:#696174}.journal-summary-cancelled{color:#977127}.student-journal-month{margin:0 0 34px}.student-journal-month-title{display:flex;justify-content:space-between;text-transform:capitalize;font-size:1rem;margin-bottom:16px;padding-bottom:14px;border-bottom:2px solid #612940}.student-journal-month-title span{font-size:.8rem;color:var(--muted);font-weight:500;text-transform:none}.student-journal-entry{display:grid;grid-template-columns:115px minmax(0,1fr) 165px;margin-bottom:16px;border:1px solid var(--line,#e7e3eb);border-radius:14px;overflow:hidden;background:#fff}.student-journal-date{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:22px 10px;background:#faf7fa;border-right:1px solid #eee5ed;gap:6px}.student-journal-date strong{font-size:2rem;font-weight:800;color:#612940}.student-journal-date span{font-size:.78rem;color:var(--muted);text-transform:capitalize}.student-journal-date b{font-size:.78rem;margin-top:10px;white-space:nowrap}.student-journal-body{padding:22px}.student-journal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.student-journal-heading h4{font-size:1.04rem;font-weight:800}.student-journal-heading .meta{font-size:.8rem;margin-top:6px}.student-journal-content{margin-top:20px;border-top:1px solid #eee5ed;padding-top:16px;line-height:1.75;font-size:.9rem}.student-journal-content h5{font-size:.94rem;margin-bottom:10px}.student-journal-content-label{display:block;font-size:.73rem;color:var(--muted);font-weight:650;margin-bottom:8px}.student-journal-attendance{padding:24px 16px;background:#f5f3f7;border-left:1px solid #e8e0e8;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:#686170}.student-journal-attendance>svg{width:28px;height:28px}.student-journal-attendance>span{font-size:.73rem}.student-journal-attendance>strong{font-size:1rem;font-weight:800}.student-journal-attendance>small{font-size:.73rem;line-height:1.6;margin-top:10px}.student-journal-attendance.present{color:#2d744d;background:#edf6f0}.student-journal-attendance.absent{color:#a33248;background:#fceff2}.student-journal-attendance.cancelled{color:#977127;background:#fff8e9}
@media(max-width:900px){.student-journal-entry{grid-template-columns:95px minmax(0,1fr)}.student-journal-attendance{grid-column:1/-1;border-left:0;border-top:1px solid #e8e0e8;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;padding:14px 20px}.student-journal-attendance>small{margin:0 0 0 auto}.student-journal-attendance>svg{width:20px;height:20px}}
@media(max-width:620px){.student-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.student-journal-entry{grid-template-columns:74px minmax(0,1fr)}.student-journal-date{padding:18px 6px}.student-journal-date b{font-size:.65rem}.student-journal-body{padding:18px}.student-journal-heading{flex-direction:column}}
.student-simulation-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 26px;padding:22px 26px;border:1px solid #d8c7d3;border-radius:18px;background:#faf5f9}.student-simulation-banner strong{color:#612940}.student-simulation-banner p{margin-top:8px;line-height:1.6;max-width:760px;color:var(--muted)}.student-simulation-banner>.row{flex-shrink:0}.student-simulation-banner .btn{white-space:nowrap}@media(max-width:1200px){.student-simulation-banner{flex-direction:column;align-items:flex-start}}@media(max-width:620px){.student-simulation-banner{padding:20px}.student-simulation-banner>.row,.student-simulation-banner .btn{width:100%}.student-simulation-banner .btn{justify-content:center;white-space:normal}}
.student-timeline-heading,.student-enrollment{align-items:flex-start}.student-timeline-entry.pending .student-timeline-dot{color:#777;background:#f1edf3}
.student-history-issue{color:#974730;background:#fff8ee;border:1px solid #eed7b5;border-radius:10px;padding:14px 16px;line-height:1.7;margin:0 0 18px}
.student-section-title{margin-bottom:24px}
@media(hover:hover) and (pointer:fine){.student-rfid:not(.flipped):hover .student-rfid-inner{transform:rotateY(180deg)}}
@media(prefers-reduced-motion:reduce){.student-rfid-inner{transition:none}}
@media(max-width:1100px){.student-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.student-overview-grid{grid-template-columns:1fr}.student-rfid-item{max-width:520px}.student-rfid-name{font-size:1rem}}
@media(max-width:620px){.student-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.student-metrics .card{padding:18px}.student-metrics strong{font-size:1.6rem}.student-filters{grid-template-columns:1fr}.student-list-card{padding:20px}.student-details{gap:20px 16px}.student-details dd{font-size:.85rem}.student-lesson-heading,.student-section-title,.student-timeline-heading,.student-history-grade{flex-direction:column;align-items:flex-start}.student-lesson-heading>.row,.student-section-title>.row{margin-top:8px}.student-timeline{margin-left:6px;padding-left:18px}.student-timeline-entry{padding:18px}.student-timeline-dot{left:-36px}.student-grade{font-size:1.15rem;max-width:none}.student-timeline-docs{flex-direction:column}.student-timeline-docs .btn{justify-content:flex-start}.student-tabs .tab{padding:12px 16px}.student-rfid-name{font-size:.75rem}}

.upis-pupil{font-size:1.25rem;font-weight:800;color:var(--primary,#a21b54);margin-bottom:18px}.upis-intro{margin-bottom:24px;line-height:1.7}.upis-row{display:flex;align-items:flex-start;gap:18px;padding:22px 0;border-bottom:1px solid var(--line)}.upis-row>div:first-of-type{flex:1;min-width:0}.upis-row .meta{margin:8px 0}.upis-row .btn{white-space:nowrap}.upis-status{font-size:.8rem;color:#367752;font-weight:700}.upis-row.planned .upis-status{color:#8e6519}.upis-row.ended .upis-status{color:var(--muted)}.upis-archive{margin-top:24px}.upis-archive summary{cursor:pointer;font-weight:700}.upis-plan{border:1px solid var(--line);border-radius:16px;padding:22px;margin:0 0 24px;min-width:0}.upis-plan legend{font-weight:800;padding:0 8px}.upis-plan p+p{margin-top:12px}.upis-review{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.upis-review section{border:1px solid var(--line);border-radius:16px;padding:22px}.upis-review ul{list-style:none;padding:0;margin:18px 0 0}.upis-review li{padding:10px 0;line-height:1.6}.upis-review-date{font-size:1rem}.upis-review-fee{display:flex;justify-content:space-between;gap:16px;background:#faf5f8;border:1px solid #e8d1df;padding:20px;border-radius:14px;margin-bottom:24px}.upis-review-fee strong{font-size:1.35rem;white-space:nowrap}@media(max-width:700px){.upis-row{flex-wrap:wrap}.upis-row>.row{width:100%}.upis-row .btn{flex:1}.upis-review{grid-template-columns:1fr}.upis-review-fee{flex-direction:column}}
.upis-courses{min-width:0;border:1px solid var(--line);border-radius:16px;padding:22px}.upis-courses legend{font-weight:800;padding:0 8px}.upis-course-list{display:grid;gap:10px;margin-top:16px}.upis-course{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-family:inherit;font-size:.9rem;font-weight:500;line-height:1.5}.upis-course input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--brand)}.upis-course span{min-width:0;overflow-wrap:anywhere}.upis-course:has(input:checked){border-color:var(--brand);background:#faf5f8}.upis-course small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.upis-course.already-enrolled{cursor:default;color:var(--muted);background:#faf9fb}@media(max-width:700px){.upis-courses{padding:16px}.upis-course{padding:12px;gap:12px}}
.student-header-actions{justify-content:flex-end;min-width:0}
@media(max-width:1050px){.page-heading:has(>.student-header-actions){display:block}.page-heading>.student-header-actions{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:12px;width:100%;margin-top:16px}.student-header-actions>.btn{width:auto;max-width:100%;justify-content:flex-start;text-align:left}}
.student-table-label{display:none}
@media(max-width:1000px){
  .student-table-wrap{overflow:visible;border:0;background:transparent}
  .student-table{display:block;position:relative}
  .student-table>thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .student-table>tbody{display:grid;gap:14px}
  .student-table .student-table-row{--student-row-gap:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--student-row-gap);padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
  .student-table .student-table-row>td{min-width:0;padding:0;border:0;overflow-wrap:anywhere}
  .student-table .student-table-row:hover>td{background:transparent}
  .student-table .student-table-row>td:first-child:not(:only-child){padding-bottom:12px;border-bottom:1px solid var(--line)}
  .student-table-label{display:block;margin-bottom:4px;font-size:.75rem;font-weight:700;color:var(--muted)}
  .student-table-row>td:is(:nth-child(2),:nth-child(4))>.student-table-label{margin-bottom:var(--student-row-gap)}
  .student-table-row>td:nth-child(4){display:grid;justify-items:start}
  .student-table .person>div,.student-table .student-program-group>div{min-width:0}
  .student-table .student-program-group{padding:4px 0}
  .student-table .student-program-group+.student-program-group{margin-top:6px;padding-top:10px}
  .student-table .student-program-group:last-child>div>:last-child{margin-bottom:0}
  .student-table .student-table-progress{min-width:0;margin:4px 0 0}
  .student-table .student-table-progress+.student-table-progress{margin-top:10px}
  .student-table .student-table-action>.btn{width:100%;min-height:44px;justify-content:space-between;text-align:left;white-space:normal}
}
.schooling-pupil{font-size:1.25rem;font-weight:800;color:var(--brand,#a51c59);margin-bottom:16px}
.schooling-intro{margin-bottom:22px;line-height:1.6}
.schooling-paths{display:grid;gap:10px;margin-bottom:24px}
.schooling-paths article{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line,#e6e2e9);border-radius:14px}
.schooling-paths article div{flex:1;min-width:0}
.schooling-paths article p{margin:5px 0 0;color:var(--muted,#777);font-size:.88rem}
.schooling-finance{display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:#eef8f1;color:#31634b;margin-top:22px}
.schooling-finance.has-debt{background:#fff6e4;color:#8f5915}
.schooling-finance.is-checking{background:#f7f3f8;color:var(--muted,#777)}
.schooling-finance>.icon{flex:none}
.schooling-finance>span{min-width:0}
.schooling-finance strong{display:block;line-height:1.6}
.schooling-finance [data-schooling-action="reload"]{margin-top:10px}
.schooling-checks{padding:20px;border:1px solid var(--line,#e6e2e9);border-radius:14px;margin-bottom:18px;line-height:1.65}
.schooling-checks h3{margin-bottom:10px}
.schooling-checks ul{padding-left:22px}
.schooling-checks li+li{margin-top:8px}
.schooling-checks.ready{background:#eef8f1;color:#31634b;display:flex;align-items:center;gap:10px}
.schooling-checks.warning{background:#fff6e4;color:#8f5915}
.schooling-checks.blocked{background:#fff1f2;color:#8d293f}
@media(max-width:640px){.schooling-paths article{flex-wrap:wrap}.schooling-paths article .pill{margin-left:0}.schooling-checks{padding:16px}}
.upis-cmd-package{border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:24px}.upis-package-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.upis-package-heading strong{display:block;margin:10px 0 6px;font-size:1rem}.upis-package-heading .meta{line-height:1.6}.upis-cmd-package .upis-row:last-child{border-bottom:0;padding-bottom:0}.upis-frequency-note{margin-top:18px;line-height:1.65}.upis-review-package{display:block;color:var(--muted);margin:6px 0 0}.upis-cmd-package .btn{white-space:normal}@media(max-width:700px){.upis-package-heading{flex-direction:column}.upis-package-heading>.btn{width:100%;justify-content:flex-start}.upis-cmd-package{padding:16px}}

.student-parent-access{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.student-parent-access h2{font-size:1.1rem}.student-parent-access .meta{margin-top:8px;line-height:1.6}.student-parent-access>.btn{flex-shrink:0}@media(max-width:700px){.student-parent-access{flex-direction:column;align-items:stretch;gap:16px}.student-parent-access>.btn{white-space:normal;text-align:left;justify-content:center}}
.student-forms>.meta,.student-forms-migration{line-height:1.7}.student-forms-migration{margin-top:20px}.student-forms-year{margin-top:28px}.student-forms-year>h3{font-size:1.05rem;margin-bottom:14px}.student-form-entry{padding:18px 0;border-top:1px solid var(--line)}.student-form-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-bottom:12px;color:var(--muted);font-size:.85rem}.student-form-meta strong{color:var(--text)}.student-forms-empty{margin-top:22px}.student-forms .enrollment-original,.student-forms .parent-request-original{margin-top:0}.student-forms .enrollment-original summary,.student-forms .parent-request-original summary{overflow-wrap:anywhere}.student-forms [role="alert"] .btn{margin:10px 0 0 10px}@media(max-width:640px){.student-forms{padding:20px}.student-form-meta{gap:8px 12px}.student-forms [role="alert"] .btn{display:flex;margin:12px 0 0}}

/* Whole-path navigation keeps the resting appearance: no hover treatment. */
.student-path[data-student-action="path"]{cursor:pointer}.student-path[data-student-action="path"]:focus-visible{outline:2px solid var(--brand,#ab0552);outline-offset:6px;border-radius:4px}.student-path.is-inactive .student-progress-bar>span{background:#a6a1aa}.student-path.is-issued .student-progress-bar>span{background:#34825a}

.student-path.is-completed .student-progress-bar>span{background:#34825a}
.attendance-exceptions>summary{cursor:pointer;font-weight:700;line-height:1.6}
.student-exception-row{padding:16px 0;border-bottom:1px solid var(--line)}
.attendance-exceptions>.meta:last-child{padding-top:16px}
.student-journal-attendance.credited,.student-journal-attendance.exempt,.student-journal-attendance.attendance-exempt{background:#f8f5fb;color:#705183}
.student-journal-attendance.credited strong,.student-journal-attendance.exempt strong,.student-journal-attendance.attendance-exempt strong{font-size:.76rem;line-height:1.5}

.student-history-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 20px;
  align-items: start;
}
.student-history-grade .student-grade,
.student-history-grade .student-grade-missing {
  grid-area: 1 / 2 / span 2;
}
.student-history-subject,
.student-history-description { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .card.student-history-card { padding: 16px; }
  .student-history-card .card-title,
  .student-timeline-heading { gap: 8px; }
  .student-history-card .card-title > .icon { flex-shrink: 0; }
  .student-timeline {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }
  .student-timeline-entry {
    margin-bottom: 14px;
    padding: 12px;
    overflow-wrap: anywhere;
  }
  .student-timeline-dot { display: none; }
  .student-timeline-heading { flex-wrap: wrap; }
  .student-timeline-heading h3 { margin: 5px 0; }
  .student-timeline-heading .meta { margin-top: 4px; }
  .student-timeline-heading .pill {
    max-width: 100%;
    white-space: normal;
  }
  .student-timeline-grades { margin-top: 12px; }
  .student-history-grade {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
    gap: 4px 8px;
    padding: 10px 0;
  }
  .student-history-grade h4 { margin-bottom: 3px; }
  .student-history-grade .student-grade,
  .student-history-grade .student-grade-missing {
    grid-area: 1 / 2;
    justify-self: end;
    text-align: right;
    font-size: .84rem;
    line-height: 1.4;
    max-width: 100%;
  }
  .student-history-grade .student-grade.stars { letter-spacing: 1px; white-space: nowrap; }
  .student-history-grade .student-history-description {
    grid-column: 1 / -1;
    margin: 0;
    line-height: 1.55;
    font-size: .83rem;
  }
  .student-timeline-docs { gap: 6px; padding-top: 10px; }
  .student-timeline-docs .btn {
    min-height: 44px;
    max-width: 100%;
    padding: 7px 10px;
  }
  .student-timeline-docs .btn > .icon { flex-shrink: 0; }
  .student-timeline-docs .btn > span { min-width: 0; }
}
