#homeroomPanel{min-width:0;min-height:0;overflow:auto;padding:14px 16px 20px;background:#f5f7fb;color:#23324b;scrollbar-gutter:stable}
#homeroomPanel[hidden]{display:none!important}
#homeroomPanel .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#homeroomPanel .hr-viewbar [data-hr-view] span{word-break:normal;overflow-wrap:normal}
.hr-week-tools>label{white-space:nowrap}
#homeroomPanel button,.hr-drawer button,.hr-grant-dialog button{font-size:14px;letter-spacing:0}
.hr-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap}
.hr-heading h2{font-size:22px;margin:0 0 5px;color:#192a48}
.hr-muted,#homeroomMeta{font-size:12px;line-height:1.6;color:#63738b}
.hr-week-tools,.hr-week-nav,.hr-viewbar,.hr-viewbar>div,.hr-filters,.hr-pagination{display:flex;align-items:center;gap:8px;min-width:0}
.hr-week-tools{flex-wrap:wrap}
.hr-week-tools label,.hr-filters label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;min-width:0}
#homeroomClass{max-width:240px}
.hr-week-nav input{width:145px;min-width:0}
#homeroomPanel input,#homeroomPanel select,.hr-drawer select,.hr-grant-dialog input,.hr-grant-dialog select{height:36px;border:1px solid #bdc9da;border-radius:4px;background:white;color:#22314b;padding:6px 8px;font:inherit;min-width:0;max-width:100%}
.hr-icon{display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:6px!important}
.hr-icon svg,#homeroomPanel button svg{width:17px;height:17px;flex-shrink:0}
.hr-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #d4deeb;border-radius:4px;background:#fff;margin-bottom:10px}
#homeroomPanel .hr-metric{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:transparent;border:0;border-right:1px solid #e3e8ef;border-radius:0;color:#233d63;padding:13px 16px;min-width:0;text-align:left;white-space:normal}
#homeroomPanel .hr-metric:last-child{border-right:0}
.hr-metric>span{font-size:13px;color:#64758d}
.hr-metric>strong{font-size:28px;line-height:1.2}
.hr-metric strong small{font-size:14px;margin-left:2px}
.hr-metric>small{font-size:12px;color:#697990}
#homeroomPanel .hr-metric-red>strong{color:#b83340}
#homeroomPanel .hr-metric-amber>strong{color:#966312}
.hr-warning,.hr-followup{padding:9px 12px;background:#fff8e8;border:1px solid #e7d6aa;border-left:3px solid #c29736;border-radius:3px;margin-bottom:10px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.hr-followup{display:flex;align-items:center;gap:5px}
.hr-followup .hr-text-button{margin-left:auto;background:transparent;border:0;color:#855412;display:flex;align-items:center;gap:4px}
.hr-viewbar{justify-content:space-between;border:1px solid #d4deeb;border-bottom:0;background:#fff;padding:0 12px;min-height:48px;flex-wrap:wrap}
#homeroomPanel .hr-viewbar [data-hr-view]{display:flex;align-items:center;gap:7px;padding:13px 7px;border:0;border-bottom:3px solid transparent;background:none;color:#697a91;border-radius:0;white-space:normal}
#homeroomPanel .hr-viewbar [aria-selected=true]{border-bottom-color:#cfa339;color:#192e50;font-weight:700}
#homeroomExport{display:flex;align-items:center;gap:7px;white-space:normal}
.hr-filters{flex-wrap:wrap;padding:10px 12px;border:1px solid #d4deeb;border-top:0;border-bottom:0;background:#fff}
.hr-filters input{width:220px}
.hr-filters select{width:auto;max-width:240px}
.hr-results{background:#fff;border:1px solid #d4deeb;overflow:auto;min-height:160px;min-width:0;scrollbar-gutter:stable}
.hr-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.5;table-layout:auto;min-width:920px;color:#253c5e}
.hr-table th{font-size:12px;font-weight:600;text-align:left;background:#edf2f9;color:#576d8d;padding:11px 12px;border-bottom:1px solid #d6e0ef}
.hr-table td{padding:11px 12px;vertical-align:middle;border-bottom:1px solid #e4eaf3;max-width:260px;overflow-wrap:anywhere}
.hr-table tbody tr:hover{background:#fafcff}
#homeroomPanel .hr-person,#homeroomPanel .hr-comment-link{display:block;text-align:left;background:none;color:#254f7a;padding:0;border:0;white-space:normal;font-weight:600;line-height:1.5}
.hr-person small{display:block;font-weight:400;font-size:12px;color:#6b7f99}
.hr-ratio{min-width:75px;max-width:135px;font-size:14px;white-space:nowrap}
.hr-ratio>span{font-size:12px;color:#6b7e94}
.hr-ratio progress{display:block;width:100%;height:4px;border:0;margin-top:5px;accent-color:#397b8e;background:#e6edf3}
.hr-ratio progress::-webkit-progress-bar{background:#e6edf3}
.hr-ratio progress::-webkit-progress-value{background:#397b8e}
.hr-badge{display:inline-block;background:#eaf0f8;color:#344e70;border-radius:3px;padding:3px 7px;font-size:12px;font-weight:600;white-space:normal}
.hr-red{background:#fcecee;color:#b23342}.hr-amber{background:#fff1d5;color:#8d6008}.hr-green{background:#e8f3ef;color:#246d58}.hr-na{color:#8794a5}
.hr-comment-preview{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:4px 0 0;color:#6a7e99;font-size:12px}
.hr-table-comments{min-width:900px}.hr-table-comments th:last-child{width:40%}
.hr-feedback{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:8px 0}
.hr-pagination{justify-content:flex-end;background:#fff;border:1px solid #d4deeb;border-top:0;padding:8px 12px;font-size:12px;flex-wrap:wrap}
.hr-pagination>span{margin-right:auto}
.hr-empty{text-align:center;padding:36px 14px;color:#6a7d98;font-size:14px;line-height:1.7}
.hr-empty h3{font-size:18px;color:#304865;margin:0 0 6px}
.hr-mobile-label{display:none}
.hr-backdrop{position:fixed;inset:0;background:rgba(16,30,52,.35);z-index:1300}
.hr-drawer{position:fixed;right:0;top:0;bottom:0;width:min(700px,100%);background:#fff;z-index:1301;display:flex;flex-direction:column;box-shadow:-8px 0 28px #14213c26;color:#23324b}
.hr-drawer[hidden],.hr-backdrop[hidden]{display:none}
.hr-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid #d7e0ec;flex-shrink:0}
.hr-drawer h2{font-size:20px;margin:0;overflow-wrap:anywhere}
.hr-drawer-body{padding:16px 20px calc(20px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.hr-drawer-filter{display:flex;align-items:center;gap:12px;font-size:14px;margin-bottom:14px}
.hr-lesson{border:1px solid #d5dfed;border-radius:4px;margin-bottom:12px;background:white}
.hr-lesson summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;cursor:pointer;background:#f4f7fb;list-style:none}
.hr-lesson summary:before{content:'+';font-weight:700;font-size:18px;color:#7184a0}
.hr-lesson[open] summary:before{content:'−'}
.hr-lesson summary>span:first-of-type{flex:1}
.hr-lesson summary strong{display:block;font-size:15px;overflow-wrap:anywhere}
.hr-lesson summary small{display:block;font-size:12px;color:#698099;margin-top:4px;overflow-wrap:anywhere}
.hr-lesson-body{padding:14px;font-size:14px}
.hr-lesson h3{font-size:14px;margin:18px 0 9px}
.hr-detail-counts{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hr-detail-counts>div>span{display:block;font-size:12px;color:#678098;margin-bottom:5px}
.hr-files{list-style:none;padding:0;margin:0}
.hr-files li{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0;padding:8px 0}
.hr-files li>div{min-width:0;overflow-wrap:anywhere}
.hr-files small{display:block;color:#6c7d92;font-size:11px;margin-top:3px}
.hr-files .hr-badge{flex-shrink:0;max-width:95px}
.hr-detail-data{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.hr-detail-data dt{font-size:12px;color:#6b7e97}.hr-detail-data dd{margin:4px 0 0;font-size:13px}
.hr-feedback-box{padding:12px;border-left:3px solid #d1a63e;background:#faf8f1}
.hr-rules{font-size:15px;line-height:1.9}
.hr-grant-dialog{position:fixed;inset:5vh auto auto 50%;transform:translateX(-50%);width:min(820px,calc(100% - 24px));max-height:90vh;background:white;border:1px solid #d4deeb;border-radius:6px;z-index:1310;color:#23324b;display:flex;flex-direction:column}
.hr-grant-dialog[hidden]{display:none}.hr-grant-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #d4deeb;gap:12px}
.hr-grant-dialog h2{font-size:18px;margin:0}.hr-grant-body{overflow:auto;padding:16px;min-height:0}.hr-grant-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hr-grant-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px}.hr-grant-fields label:first-child{grid-column:1/-1}.hr-grant-dialog form{margin-bottom:18px}.hr-grant-dialog .form-actions{margin-top:14px}.hr-grants-list{display:grid;gap:8px}.hr-grant-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e2e7ef;padding:12px 0;font-size:13px}.hr-grant-row small{display:block;color:#6c7e96;margin-top:3px}.hr-grant-error{color:#b23342;font-size:13px;white-space:pre-wrap}.hr-grant-trigger{margin:6px 0}
@media(max-width:680px){
  #homeroomPanel .hr-metrics{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity}
  #homeroomPanel .hr-metric{flex:0 0 126px;min-height:96px;scroll-snap-align:start;border-bottom:0}
  #homeroomPanel .hr-viewbar{flex-wrap:nowrap;padding:0 6px;gap:3px}
  #homeroomPanel .hr-viewbar>div:first-child{flex:1;min-width:0;gap:0;width:auto}
  #homeroomPanel .hr-viewbar>div:last-child{width:auto;flex:0 0 auto;padding:0;gap:2px}
  #homeroomPanel .hr-viewbar [data-hr-view]{flex:1;justify-content:center;font-size:12px;padding:10px 3px;min-height:56px}
  #homeroomPanel .hr-viewbar [data-hr-view] svg{display:none}
  #homeroomExport{min-width:44px;min-height:44px;padding:8px}
  #homeroomExport>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  #homeroomPanel .hr-warning{padding:6px 8px;font-size:11px;margin-bottom:6px}
  #homeroomPanel .hr-followup{padding:3px 8px;min-height:36px;margin-bottom:6px;gap:3px}
  #homeroomPanel .hr-followup .hr-text-button{min-height:34px;font-size:12px;padding:3px}
  #homeroomPanel .hr-asof{display:none}
  #homeroomPanel .hr-heading{margin-bottom:6px}
  #homeroomPanel .hr-metrics{margin-bottom:6px}
}
@media(max-width:1100px){.hr-heading{align-items:flex-start}.hr-metric>strong{font-size:25px}#homeroomPanel .hr-metric{padding:10px}.hr-viewbar{gap:6px}.hr-heading h2{font-size:20px}}
@media(max-width:680px){#homeroomPanel{padding:12px 10px 18px!important;overflow:auto!important;min-height:0!important}.hr-heading{gap:9px;margin-bottom:10px}.hr-heading>div,.hr-week-tools{width:100%}.hr-week-tools{gap:8px}.hr-week-tools>label{flex:1}#homeroomClass{max-width:none;flex:1}.hr-week-nav{order:3;width:100%;justify-content:space-between}.hr-week-nav label{flex:1}.hr-week-nav input{width:100%}#homeroomPanel input,#homeroomPanel select,.hr-drawer select,.hr-grant-dialog input,.hr-grant-dialog select{font-size:16px;height:44px}#homeroomPanel .hr-icon,.hr-drawer .hr-icon,.hr-grant-dialog .hr-icon{min-width:44px;min-height:44px}.hr-week-nav button{min-height:44px}.hr-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#homeroomPanel .hr-metric{padding:9px 8px;min-height:90px;border-bottom:1px solid #e4e8ef}.hr-metric>span{font-size:12px;min-height:30px;line-height:1.3}.hr-metric>strong{font-size:23px}.hr-metric>small{font-size:11px}.hr-warning,.hr-followup{font-size:12px;padding:8px}.hr-followup{flex-wrap:wrap}.hr-viewbar{padding:0 8px}.hr-viewbar>div:first-child{justify-content:space-between;width:100%}.hr-viewbar>div:last-child{justify-content:flex-end;width:100%;padding-bottom:8px}#homeroomPanel .hr-viewbar [data-hr-view]{font-size:13px;gap:4px;padding:12px 4px;min-height:44px}.hr-filters{gap:8px;padding:8px}.hr-filters label:first-child{width:100%}.hr-filters input{width:100%}.hr-filters label:not(:first-child){flex:1;flex-direction:column;align-items:flex-start}.hr-filters select{width:100%;max-width:none}.hr-table-students{display:block;min-width:0}.hr-table-students thead{display:none}.hr-table-students tbody{display:block}.hr-table-students tr{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;border-bottom:1px solid #d7e0ed;padding:12px}.hr-table-students td{display:block;padding:7px 0;border:0;max-width:none}.hr-table-students td:first-child{grid-column:1/-1;padding-top:0}.hr-table-students td:last-child{display:none}.hr-table-students td:nth-child(6){grid-column:1/-1}.hr-table-students .hr-mobile-label{display:block;color:#6b7d94;font-size:12px;margin-bottom:4px}.hr-table-students td:first-child .hr-mobile-label{display:none}.hr-table-students .hr-person{width:100%}.hr-table-students .hr-person strong{font-size:16px}.hr-comment-preview{max-width:100%;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hr-pagination{padding:8px}.hr-drawer>header{padding:12px 14px}.hr-drawer-body{padding:12px 14px calc(20px + env(safe-area-inset-bottom))}.hr-detail-data{grid-template-columns:1fr}.hr-grant-dialog{inset:0;transform:none;width:100%;height:100dvh;max-height:100dvh;border-radius:0}.hr-grant-fields{grid-template-columns:1fr}.hr-grant-row{align-items:flex-start}.hr-grant-dialog .form-actions button{min-height:44px}.hr-grant-body{padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
