/* v62 — finance hidden, classes by day, teacher bottom bar on phones */
.v62-hidden{display:none!important}
.v62-agenda{margin:26px 0 8px}
.v62-agenda h2{margin:0 0 12px}
.v62-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.v62-day{background:#fffdf8;border:1px solid var(--ytm-line,#dfe5dc);border-radius:12px;padding:10px;min-height:120px;display:flex;flex-direction:column;gap:6px;min-width:0}
.v62-day.v62-empty{background:transparent;border-style:dashed;opacity:.75}
.v62-day.v62-today{border:2px solid var(--ytm-gold,#e3b23c);background:#fff8e4;opacity:1}
.v62-day-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;padding-bottom:4px;border-bottom:1px solid #ece9df}
.v62-day-head strong{font-size:15px}
.v62-day-head span{font-size:12px;color:#5d6b63}
.v62-day-head em{font-style:normal;font-size:11px;font-weight:700;background:var(--ytm-gold,#e3b23c);color:#233b31;border-radius:20px;padding:1px 8px;margin-left:auto}
.v62-none{font-size:12px;color:#8a958e}
.v62-class{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;padding:8px;border-radius:8px;background:#fff;border:1px solid #e3e7df;border-left:4px solid #9bb3a4;min-width:0}
.v62-class:hover,.v62-class:focus-visible{border-color:#5f8572;box-shadow:0 2px 8px #1f3b3415}
.v62-class:focus-visible{outline:2px solid #1f3b28;outline-offset:2px}
.v62-name{font-weight:700;font-size:14px;overflow-wrap:anywhere}
.v62-what{font-size:12px;color:#4d5c55;line-height:1.35;overflow-wrap:anywhere}
.v62-status{font-size:11px;font-weight:600;color:#5d6b63}
.v62-s-review{border-left-color:#e3b23c}.v62-s-review .v62-status{color:#7a5a08}
.v62-s-completed{border-left-color:#4f8a63}.v62-s-completed .v62-status{color:#2f6a43}
.v62-s-pending,.v62-s-missed{border-left-color:#c9744f}.v62-s-pending .v62-status,.v62-s-missed .v62-status{color:#9a4a28}
.v62-signout{margin-top:18px}
@media(max-width:1100px){.v62-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 .v62-days{display:flex;flex-direction:column}
 .v62-day{min-height:0}
 .v62-day.v62-empty{flex-direction:row;align-items:center;justify-content:space-between;padding:8px 10px}
 .v62-day.v62-empty .v62-day-head{border:0;padding:0}
 /* Teacher menu becomes a fixed bar at the bottom of the screen */
 body:has(.ytm-teacher) .ytm-sidebar{position:fixed;left:0;right:0;bottom:0;z-index:60;width:auto!important;padding:6px 4px calc(6px + env(safe-area-inset-bottom))!important;background:#fff!important;color:#1f3b28!important;border-top:1px solid #ccd9ce;box-shadow:0 -4px 20px #1f3b3415}
 body:has(.ytm-teacher) .ytm-sidebar .ytm-brand,body:has(.ytm-teacher) .ytm-sidebar .ytm-signout{display:none!important}
 body:has(.ytm-teacher) .ytm-sidebar nav{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:2px!important}
 body:has(.ytm-teacher) .ytm-sidebar nav button{position:relative;flex-direction:column;justify-content:center;gap:4px!important;min-height:56px;padding:6px 2px!important;font-size:11.5px!important;text-align:center;color:#1f3b28!important;margin:0!important;border:0!important}
 body:has(.ytm-teacher) .ytm-sidebar nav button[aria-current]{background:#e9f0e6!important;font-weight:700!important}
 body:has(.ytm-teacher) .ytm-sidebar nav button .hw-review-warning{position:absolute;top:2px;right:12%;font-size:12px}
 body:has(.ytm-teacher) .ytm-teacher-main{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
}
.reference-week .rw-student>summary:after{margin-left:auto!important}
.v62-record-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ytm-subnav.v62-tabs{border-bottom:1px solid #dfe5dc;gap:4px!important;padding-bottom:0}
.ytm-subnav.v62-tabs>button{border-radius:8px 8px 0 0!important;border:0!important;background:transparent!important;color:#3d5148!important;padding:10px 16px!important;border-bottom:3px solid transparent!important;font-weight:500}
.ytm-subnav.v62-tabs>button.chip-btn-active,.ytm-subnav.v62-tabs>button[aria-current],.ytm-subnav.v62-tabs>button.active{border-bottom-color:#1f3b28!important;color:#1f3b28!important;font-weight:700!important}
.v62-hist{margin:10px 11px 4px;background:#eef4fb;border:1px solid #c9dbef;border-radius:10px;padding:10px 12px}
.v62-hist h4{margin:0 0 8px;font-size:13px;letter-spacing:.3px;color:#244a6b}
.v62-hist-wrap{overflow-x:auto}
.v62-hist table{width:100%;border-collapse:collapse;font-size:13px;min-width:520px}
.v62-hist th{text-align:left;font-weight:600;color:#4b6178;font-size:11.5px;padding:4px 8px;border-bottom:1px solid #c9dbef}
.v62-hist td{padding:6px 8px;border-bottom:1px solid #dde8f4;vertical-align:top;line-height:1.4;overflow-wrap:anywhere}
.v62-hist tr:last-child td{border-bottom:0;font-weight:600}
.v62-hist .v62-d{white-space:nowrap;width:1%}
.v62-hist .v62-m{white-space:nowrap;width:1%}
.v62-ref{background:#ffb44d;color:#3a2600;padding:1px 6px;border-radius:4px}
.v62-ref small{font-size:10.5px}
.v62-done{color:#2f6a43;font-weight:800}
.v62-miss{color:#fff;background:#c53b2f;border-radius:4px;padding:1px 6px;font-size:11px}
.v62-pend,.v62-rev{font-size:11px;color:#7a5a08}
.v62-row-missed td{background:#fde3e0}
@media(max-width:700px){
 .v62-hist{margin:10px 0 4px;padding:10px}
 .v62-hist table,.v62-hist tbody{display:block;min-width:0}
 .v62-hist thead{display:none}
 .v62-hist tr{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:8px 6px;border-bottom:1px solid #dde8f4}
 .v62-hist tr:last-child{border-bottom:0}
 .v62-hist td{display:block;border:0;padding:0;width:auto!important}
 .v62-hist td:nth-child(3),.v62-hist td:nth-child(4){grid-column:1/-1}
 .v62-hist td:nth-child(4):not(:empty)::before{content:'HW: ';font-weight:700;color:#4b6178}
 .v62-hist .v62-row-missed{background:#fde3e0;border-radius:6px}
 .v62-hist .v62-row-missed td{background:transparent}
}
.v62-hist tr:nth-last-child(2) td{font-weight:400}
.v62-hist tr.v62-row-this td{background:#fff3cf;font-weight:600;border-top:2px solid #e3b23c}
.v62-this{background:#e3b23c;color:#233b31;border-radius:4px;padding:1px 6px;font-size:11px;font-weight:700}
.v62-choose{margin:8px 11px 0}
@media(max-width:700px){.v62-hist tr.v62-row-this{background:#fff3cf;border-radius:6px}.v62-hist tr.v62-row-this td{background:transparent;border:0}.v62-choose{margin:8px 0 0}}
.v62-hist .v62-n{width:1%;white-space:nowrap;color:#4b6178;font-weight:700;text-align:right}
@media(max-width:700px){.v62-hist tr{grid-template-columns:auto auto 1fr}.v62-hist .v62-n::before{content:'#'}}
@media(max-width:700px){
 .v62-hist tr{grid-template-columns:auto auto 1fr!important;align-items:center}
 .v62-hist .v62-n{text-align:left}
 .v62-hist td:nth-child(3){grid-column:auto!important}
 .v62-hist td:nth-child(4),.v62-hist td:nth-child(5){grid-column:1/-1!important}
 .v62-hist td:nth-child(4)::before{content:none!important}
 .v62-hist td:nth-child(4):not(:empty)::before{content:none!important}
 .v62-hist td:nth-child(5):not(:empty)::before{content:'HW: ';font-weight:700;color:#4b6178}
}
.v62-portal{display:inline-block;background:#e3eefc;color:#1f4f86;border:1px solid #b9d2f0;border-radius:4px;padding:0 6px;font-size:12px;font-weight:600;margin-left:2px}
details.v62-agenda>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;margin-bottom:12px}
details.v62-agenda>summary::-webkit-details-marker{display:none}
details.v62-agenda>summary h2{margin:0}
details.v62-agenda>summary .v62-toggle-hint{font-size:13px;font-weight:600;color:#3d5148;border:1px solid #cfd9cf;border-radius:20px;padding:3px 12px;background:#fff}
details.v62-agenda>summary .v62-toggle-hint::after{content:'Hide ▴'}
details.v62-agenda:not([open])>summary .v62-toggle-hint::after{content:'Show ▾'}
details.v62-agenda:not([open])>summary{margin-bottom:0}
