.dorm-view{min-width:0}.dorm-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;background:linear-gradient(115deg,#e8f2ef,#f5f8f5);border:1px solid #d5e5de;border-radius:16px;margin-bottom:18px;color:#193d36}.dorm-hero h2{font-size:24px;margin:10px 0}.dorm-hero p{margin:0;line-height:1.7}.dorm-eyebrow{font-size:12px;letter-spacing:1px;color:#50736a}.dorm-card{padding:22px;margin-bottom:18px}.dorm-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}.dorm-section-head h2,.dorm-section-head h3{margin:4px 0}.dorm-section-head small{font-size:13px;font-weight:400;color:#64746d}.dorm-search{width:100%;max-width:420px;margin:4px 0 18px}.dorm-record{display:flex;width:100%;text-align:left;justify-content:space-between;gap:18px;border:1px solid #dce5e0;background:#fff;padding:18px;border-radius:12px;margin:10px 0;cursor:pointer;color:inherit;font:inherit}.dorm-record:hover{border-color:#5d9783;background:#f7fbf8}.dorm-record strong{font-size:16px}.dorm-record small{display:block;color:#687870;margin:7px 0;line-height:1.5}.dorm-record-right{text-align:right;flex-shrink:0}.dorm-pill{display:inline-block;background:#fff3dc;color:#89621c;padding:5px 11px;border-radius:20px;font-size:12px;white-space:nowrap}.dorm-pill.done{background:#e5f3eb;color:#246a45}.dorm-savebar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f4f7f5;padding:10px 12px;border-radius:9px;font-size:13px}.dorm-savebar>div{display:flex;gap:7px;flex-shrink:0}.dorm-error{color:#b42318!important;overflow-wrap:anywhere}.dorm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.dorm-tabs>button{padding:9px 14px;border:1px solid #d7e2db;border-radius:9px;background:#fff;color:inherit;cursor:pointer;font:inherit}.dorm-tabs>button.selected{background:#245d4d;color:#fff;border-color:#245d4d}.dorm-picker{display:flex;gap:10px;margin:16px 0;align-items:center}.dorm-picker>select,.dorm-picker>input{flex:1;min-width:0;max-width:480px}.dorm-view select,.dorm-editor select{border:1px solid #cfdbd4;border-radius:8px;padding:10px;background:white;color:#20372d;min-height:42px;font-size:15px}.dorm-roster{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px}.dorm-roster>span{background:#f1f5f3;border-radius:7px;padding:7px 10px;color:#485f54;font-size:13px}.dorm-actions{display:flex;gap:9px;flex-wrap:wrap}.dorm-issues{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:16px}.dorm-issue{border:1px solid #dce5df;border-radius:12px;overflow:hidden;max-width:500px}.dorm-issue img{width:100%;height:190px;object-fit:cover;background:#f0f2f0}.dorm-issue>div{padding:13px}.dorm-issue p{white-space:pre-wrap;overflow-wrap:anywhere;color:#596c60;line-height:1.6}.dorm-empty{padding:22px;color:#748479;text-align:center;background:#f7f9f7;border-radius:10px;grid-column:1/-1}.dorm-total{text-align:right;min-width:110px}.dorm-total strong{font-size:34px;color:#225f4d}.dorm-total small{display:block}.dorm-score-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e4ebe6;padding:17px 0}.dorm-criterion{display:flex;align-items:center;gap:12px;line-height:1.6}.dorm-criterion>b{background:#edf4ef;border-radius:50%;width:28px;height:28px;line-height:28px;text-align:center;flex-shrink:0;color:#3a6954;font-size:13px}.dorm-score-controls{display:flex;gap:8px;flex-shrink:0}.dorm-score-controls select{width:118px}.dorm-bottom{border-top:1px solid #e4ebe6;padding-top:20px;margin-top:4px}.dorm-editor label{display:block;margin:12px 0;font-size:14px}.dorm-editor label>select,.dorm-editor label>textarea{display:block;width:100%;margin-top:8px}.dorm-photo-pick{padding:12px;border:1px dashed #a3b7aa;border-radius:12px;text-align:center;background:#f6f9f6}.dorm-photo-pick img{max-height:230px;max-width:100%;object-fit:contain;display:block;margin:auto auto 12px}.dorm-photo-pick img[hidden]{display:none}.dorm-photo-pick input{width:100%;margin-top:12px;font-size:14px}.dorm-student{background:#edf5ef;padding:12px;border-radius:8px;color:#2d6146}.dorm-view details{margin-top:20px}.dorm-view summary{cursor:pointer;color:#496456}.dorm-view .btn{min-height:40px}.dorm-view button:focus-visible,.dorm-view select:focus-visible{outline:3px solid #90b6a4;outline-offset:2px}@media(max-width:640px){.dorm-hero{padding:20px;display:block}.dorm-hero h2{font-size:21px}.dorm-hero>.btn{margin-top:18px;width:100%}.dorm-card{padding:16px}.dorm-score-row{align-items:stretch;flex-direction:column;gap:10px}.dorm-score-controls{padding-left:40px}.dorm-score-controls select{width:calc(50% - 4px);min-width:0}.dorm-picker{flex-direction:column;align-items:stretch}.dorm-picker>select,.dorm-picker>input{width:100%;max-width:none}.dorm-savebar{align-items:flex-start;flex-direction:column}.dorm-record{padding:14px;gap:12px;flex-direction:column}.dorm-record-right{display:flex;justify-content:space-between;text-align:left;align-items:center;flex-wrap:wrap;gap:8px}.dorm-record-right small{margin:0}.dorm-actions>.btn{flex:1;min-width:130px}.dorm-issues{grid-template-columns:1fr}.dorm-issue{max-width:none}.dorm-bottom{gap:12px}.dorm-bottom>.btn{flex-basis:100%}.dorm-section-head h2{font-size:23px}.dorm-tabs>button{font-size:13px}.dorm-editor{padding:16px!important}}
/* Sliders and time-range dormitory dashboard. */
.dorm-record-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e8eee9}.dorm-record-row>.dorm-record{flex:1;min-width:0}.dorm-record-row>.btn{flex-shrink:0}.dorm-score-controls{width:360px;max-width:100%;align-items:center}.dorm-score-controls>select{width:80px;flex-shrink:0}.dorm-slider-wrap{flex:1;min-width:0;padding:2px 0}.dorm-slider-top,.dorm-slider-ticks{display:flex;justify-content:space-between;font-size:12px;color:#687b6c}.dorm-slider-top output{font-size:16px;font-weight:700;color:#24634e}.dorm-slider{width:100%;height:32px;margin:5px 0;accent-color:#286b54;cursor:pointer;touch-action:pan-y}.dorm-slider:focus-visible{outline:2px solid #4f9b79;outline-offset:3px}.dorm-slider-ticks span:first-child{color:#b26146}.dorm-slider-ticks span:last-child{color:#347852}
.dorm-board{background:radial-gradient(ellipse at 70% 0,#12384d 0,#0b2031 40%,#081725 100%);color:#d5e4ef;border:1px solid #254559;border-radius:18px;padding:26px;min-height:calc(100vh - 170px);font-family:inherit}.dorm-board:fullscreen{border-radius:0;overflow:auto;padding:30px;box-sizing:border-box}.db-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:20px;border-bottom:1px solid #28485c}.db-header h2{font-size:28px;color:#f3fcff;letter-spacing:2px;margin:8px 0}.db-header p{color:#91b3c7;font-size:13px;margin:8px 0 0}.db-eyebrow{color:#4fe1bd;font-size:11px;letter-spacing:3px}.db-actions{display:flex;gap:8px;flex-wrap:wrap}.dorm-board .btn{background:#12364c;color:#cfe4ee;border:1px solid #31586d;white-space:nowrap}.dorm-board .btn:hover{background:#22516b}.dorm-board .btn-primary{background:#167d70;color:white;border-color:#25a493}.db-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:20px 0}.db-filters>label{font-size:12px;color:#a3bece}.db-filters input{display:block;border:1px solid #35536a;border-radius:7px;background:#112b3e;color:#edf8ff;padding:9px 10px;color-scheme:dark;font:inherit;font-size:14px;min-height:40px;box-sizing:border-box;margin-top:5px}.db-filters>span{align-self:center;padding-top:20px;color:#698ea3}.db-periods{display:flex;gap:6px;flex-wrap:wrap}.db-periods .btn{font-size:12px;padding:8px 12px}.db-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.db-kpis article{background:linear-gradient(140deg,#12354a,#0c2639);border:1px solid #2a4a5f;padding:18px 16px;border-radius:12px;min-width:0}.db-kpis article>span{font-size:13px;color:#a8c3d3}.db-kpis strong{display:block;font-size:32px;line-height:1.3;margin:10px 0;color:#69e7ca;font-variant-numeric:tabular-nums}.db-kpis small{display:block;color:#7f9eaf;font-size:11px;line-height:1.6}.db-charts{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-bottom:16px}.db-panel{background:#0d2638cc;border:1px solid #26475c;border-radius:12px;padding:18px;min-width:0}.db-panel h3{font-size:16px;color:#dbf2fd;margin:0 0 16px}.db-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.db-panel-head h3{margin:0}.db-panel-head>span{font-size:11px;color:#8faebf}.db-trend svg{width:100%;min-height:190px;margin-top:12px}.db-radar svg{height:250px;max-width:100%;display:block;margin:auto}.db-dot{display:inline-block;width:7px;height:7px;background:#51e1b8;border-radius:50%;margin:0 5px 0 10px}.db-dot.blue{background:#217eab}.db-caption{font-size:11px;color:#8caabb;line-height:1.8;margin:12px 0 0}.db-rank-list{max-height:280px;overflow:auto;padding-right:4px}.db-rank{display:grid;grid-template-columns:22px minmax(70px,110px) minmax(40px,1fr) 45px;gap:12px;align-items:center;margin:14px 0;font-size:13px}.db-rank>b{color:#6892aa}.db-rank>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.db-rank>div{height:10px;border-radius:8px;background:#183b50;overflow:hidden}.db-rank i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#217eab,#49dfb7)}.db-rank strong{color:#69e7ca;text-align:right}.db-split{display:flex;justify-content:space-around;gap:15px;margin:10px 0 18px}.db-split>div{text-align:center}.db-split strong{display:block;font-size:29px;color:#6ae8c8}.db-split>div:last-child strong{color:#f1ba7a}.db-split span{font-size:12px;color:#a6c1d0}.db-stack{height:10px;background:#c99355;border-radius:8px;overflow:hidden;margin-bottom:16px}.db-stack i{display:block;height:100%;background:#44c9aa}.db-area-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}.db-area-list>div{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:6px 0;color:#9fc0d0}.db-area-list b{font-weight:500;color:#d1eaf7}.db-table-wrap{max-width:100%;overflow-x:auto}.dorm-board table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}.dorm-board th{font-weight:500;color:#83aec4;background:#102f43;padding:12px}.dorm-board td{padding:13px 12px;border-bottom:1px solid #1b3c50;color:#c7deeb}.dorm-board tbody tr:hover{background:#15394d}.db-state{color:#60d6b8;padding:4px 8px;border-radius:5px;background:#184638}.db-state.unseen{color:#e5b681;background:#423a2b}.db-daily{margin-top:16px}.dorm-board .db-daily summary{color:#a5c8dc;cursor:pointer;font-size:13px}.db-daily table{margin-top:12px}.db-empty{text-align:center;padding:50px 18px;color:#7fa3b7;font-size:14px}.db-error{border:1px solid #c87260;background:#422e2c;color:#ffd1c4;border-radius:8px;padding:12px;font-size:13px}.db-footer{text-align:right;color:#668ba1;font-size:11px;padding-top:20px}.db-results[aria-busy=true]{opacity:.6}.dorm-board button:focus-visible,.dorm-board input:focus-visible{outline:2px solid #5ceac9;outline-offset:2px}
@media(min-width:1700px){.db-charts{grid-template-columns:1.4fr 1fr 1.3fr 1fr}.db-kpis strong{font-size:40px}.db-trend svg{min-height:230px}}
@media(max-width:1100px){.db-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.db-header{align-items:flex-start;flex-direction:column}.dorm-board{padding:20px}.db-header h2{font-size:25px}.dorm-score-controls{width:320px}}
@media(max-width:640px){.dorm-record-row{flex-direction:column;align-items:stretch;padding-bottom:12px;gap:0}.dorm-record-row>.btn{align-self:flex-end}.dorm-score-controls{width:100%;padding-left:0;gap:12px}.dorm-score-controls>select{width:78px}.dorm-slider-top output{font-size:16px}.dorm-slider-ticks{font-size:10px}.dorm-board{padding:14px;border-radius:12px}.dorm-board:fullscreen{padding:14px}.db-header h2{font-size:21px;letter-spacing:1px}.db-header p{font-size:11px}.db-actions{gap:6px}.dorm-board .db-actions .btn{font-size:11px;padding:8px}.db-filters{gap:8px}.db-filters>label{flex:1;min-width:110px}.db-filters input{width:100%;min-width:0;font-size:12px;padding:8px}.db-filters>span{display:none}.db-filters>.btn{width:100%}.db-periods{width:100%}.db-periods>.btn{flex:1;padding:7px 5px;font-size:10px}.db-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.db-kpis article{padding:13px 10px}.db-kpis strong{font-size:27px;margin:6px 0}.db-kpis small{font-size:10px}.db-kpis article>span{font-size:12px}.db-charts{grid-template-columns:1fr;gap:12px}.db-panel{padding:14px}.db-rank{gap:8px;grid-template-columns:18px 85px minmax(30px,1fr) 36px;font-size:12px}.db-trend svg{min-height:130px}.db-panel h3{font-size:15px}.db-footer{text-align:left}.db-table-wrap{overscroll-behavior-x:contain}.db-caption{font-size:10px}}
