*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#17314e;background:#eef3fa}body{padding:18px 28px;overflow:hidden}header{height:88px;position:relative}.heading{padding-right:330px}.brand{font-weight:bold;color:#165fd1;font-size:36px;margin-right:22px}h1{display:inline;font-size:32px}#dateLabel{font-size:20px;margin-top:8px;color:#536980}.controls{position:absolute;right:0;top:0;text-align:right;font-size:18px}.controls select{font-size:18px;padding:5px;border:1px solid #b1c4dc;border-radius:5px;background:white;color:#17314e}.controls a{margin-left:14px;color:#255995}#clock{font-size:34px;font-weight:bold;margin-top:4px}.sync{height:40px;line-height:40px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#e0ecfb;color:#294e7f;padding:0 14px;border-radius:6px;font-size:18px}.sync.failed{background:#ffe6d9;color:#922d13}.periods{height:72px;padding:8px 0}.period{display:inline-block;vertical-align:top;width:20%;padding:7px 12px;border-left:3px solid #d8e2ee;font-size:19px;line-height:23px}.period b{margin-right:12px}.period small{display:block;font-size:16px;color:#526780}.period.selected{background:#173e70;color:#fff;border-color:#173e70;border-radius:6px}.period.selected small{color:#dceaff}.board-heading{height:42px;line-height:36px;font-size:20px;position:relative}#count{margin-left:20px;color:#526780}#pages{position:absolute;right:0}.board{font-size:0;overflow:hidden}.card-slot{display:inline-block;vertical-align:top;width:33.333%;padding:6px}.card{height:100%;background:#fff;border:1px solid #c3d5ed;border-top:7px solid #2567c7;border-radius:10px;padding:12px 16px;overflow:auto;font-size:20px}.card.group{background:#f1edfc;border-color:#c7b8e5;border-top-color:#7952b5}.card.video{background:#e7f6f2;border-color:#9bcec3;border-top-color:#197965}.room{font-size:36px;line-height:1.15;font-weight:bold;margin:0 0 8px;overflow-wrap:break-word;word-wrap:break-word}.badges{font-size:15px;line-height:20px;color:#4c627b}.badge{margin-right:10px}.badge.current{color:#0c6148;font-weight:bold}.time{font-size:23px;font-weight:bold;margin:8px 0}.course{font-size:25px;line-height:1.2;margin:6px 0 10px;font-weight:bold;word-wrap:break-word}.people{line-height:1.4;word-wrap:break-word}.people span{color:#556d85;font-size:17px;margin-right:12px}.note{font-size:15px;color:#925013;margin-top:6px}.empty{font-size:28px;text-align:center;padding:70px 20px;line-height:1.6}.empty small{display:block;font-size:20px;color:#536980}footer{height:34px;line-height:34px;font-size:16px;white-space:nowrap}.legend{margin-right:20px;border-left:5px solid #2567c7;padding-left:8px}.legend.group{border-color:#7952b5}.legend.video{border-color:#197965}.footnote{color:#526780}.compact .room{font-size:30px}.compact .course{font-size:22px}.compact .time{font-size:21px}.compact .card{padding:10px 14px}.compact .people{font-size:19px}@media(min-width:1600px){.room{font-size:44px}.course{font-size:30px}.people{font-size:25px}.time{font-size:28px}.card{padding:18px 22px}.badges,.note{font-size:18px}}@media(max-width:850px){body{padding:12px}h1{font-size:24px}.brand{font-size:28px;margin-right:10px}.heading{padding-right:210px}.controls{font-size:15px}.controls select{font-size:15px}.controls a{display:none}#dateLabel{font-size:16px}.period{padding:6px;font-size:16px}.period b{margin-right:4px}.period small{font-size:13px}#count{font-size:16px;margin-left:8px}.footnote{display:none}.sync{font-size:16px}}
/* V1: fixed campus, TV-safe inline-block layout, no grid/flex dependency. */
header{height:90px}.heading{padding-right:190px}#clock{position:absolute;right:0;top:0;font-size:48px;margin:0;line-height:1.15}.sync{height:26px;line-height:26px;background:transparent;padding:0;color:#6d7d90;font-size:15px}.sync.failed{background:transparent;color:#8c6943}.periods{height:68px}.period{color:#8795a6;border-left-color:#e0e6ee;font-size:18px}.period small{color:#8b98a8;font-size:15px}.period.selected{color:#fff;background:#173e70}.board-heading{height:38px;font-size:19px;color:#536980}.card{overflow:hidden;padding:14px 20px}.room{font-size:46px;line-height:1.12;margin-bottom:8px}.course{font-size:30px;line-height:1.2;margin:8px 0}.time{font-size:27px;margin:7px 0}.people{font-size:27px;line-height:1.4}.people span{font-size:19px}.badges{font-size:15px;color:#6a7d91}.note{font-size:14px;color:#7b8794}.spacious .card{padding:28px 32px}.spacious .room{font-size:66px;margin-bottom:20px}.spacious .course{font-size:43px;margin:20px 0}.spacious .time{font-size:37px;margin-top:18px}.spacious .people{font-size:36px;line-height:1.6}.spacious .people span{font-size:25px}.compact .room{font-size:36px}.compact .course{font-size:27px}.compact .people{font-size:24px}.compact .time{font-size:24px}@media(max-width:1400px){.room{font-size:38px}.course{font-size:27px}.people{font-size:24px}.spacious .room{font-size:50px}.spacious .course{font-size:34px}.spacious .time{font-size:29px}.spacious .people{font-size:29px}.spacious .card{padding:20px 24px}}@media(max-width:850px){#clock{font-size:32px}.heading{padding-right:120px}.period{font-size:14px}.spacious .room{font-size:42px}.spacious .course{font-size:28px}.spacious .people{font-size:25px}.spacious .time{font-size:26px}}
@media(max-height:800px){.spacious .card{padding:18px 24px}.spacious .room{margin-bottom:12px}.spacious .course{margin:12px 0}.spacious .time{margin:7px 0}.spacious .people{line-height:1.4}}
/* Short TV viewports retain two rows; reduce spacing and secondary badges first. */
.compact .card{padding:8px 14px}.compact .room{font-size:36px;line-height:1.1;margin:0 0 4px}.compact .badges{display:none}.compact .time{font-size:22px;line-height:1.15;margin:4px 0}.compact .course{font-size:26px;line-height:1.15;margin:4px 0}.compact .people{font-size:24px;line-height:1.3}.compact .people span{font-size:17px}.compact .note{margin-top:2px;font-size:13px}
.compact .note{display:none}

/* TV palette and redundant period summary cleanup, 2026-09-18. */
.board-heading #periodLabel,.board-heading #count{display:none}
.card.group{background:#fff3c4;border-color:#e4c66b;border-top-color:#d3a016}
.card.video{background:#def2df;border-color:#91c697;border-top-color:#28833a}
.legend.group{border-color:#d3a016}
.legend.video{border-color:#28833a}

/* 20-card TV layout: inline-block/ES5, bounded text, no modern layout dependency. */
header{height:76px}.board-heading{height:24px;line-height:24px}
.dense .card{padding:6px 10px;border-top-width:5px;border-radius:7px}
.dense .room{font-size:30px;line-height:1.1;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dense .time{font-size:19px;line-height:1.15;margin:3px 0}
.dense .course{font-size:23px;line-height:1.15;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dense .people{font-size:21px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dense .people span{font-size:15px;margin-right:6px}.dense .badges,.dense .note{display:none}
.ultra .card-slot{padding:4px}.ultra .room{font-size:28px}.ultra .course{font-size:22px}.ultra .people{font-size:20px}.ultra .time{font-size:18px}
@media(max-height:800px){.dense .room{font-size:24px}.dense .course{font-size:18px}.dense .time{font-size:16px}.dense .people{font-size:17px;line-height:1.15}.dense .people span{font-size:13px}.dense .card{padding:4px 7px}.ultra .room{font-size:23px;line-height:1.05;margin-bottom:1px}.ultra .course{font-size:18px;line-height:1.05;margin:2px 0}.ultra .time{font-size:16px;line-height:1.05;margin:2px 0}.ultra .people{font-size:16px;line-height:1.1}.ultra .people span{font-size:12px}}

@media(max-height:800px){.ultra .room{font-size:22px;margin-bottom:1px}.ultra .course{font-size:17px;margin:1px 0}.ultra .time{font-size:15px;margin:1px 0}}
.card .course{max-height:2.4em;overflow:hidden}.card .people{max-height:2.8em;overflow:hidden}
.dense .course,.dense .people{max-height:1.3em}

/* Remote controls: native buttons, visible focus, no hover requirement. */
.heading{padding-right:350px}#allCourses{position:absolute;right:145px;top:0}
.tv-button{font:inherit;font-size:23px;font-weight:bold;padding:12px 20px;min-height:52px;border:2px solid #476f9c;border-radius:8px;color:#173e70;background:#fff;cursor:pointer}
button.period{font-family:inherit;text-align:left;border:0;border-left:3px solid #e0e6ee;background:transparent;cursor:pointer;min-height:52px}
button.period.selected{background:#173e70;color:white}button.period.real-period:not(.selected){border-bottom:3px solid #718cae}
.tv-button:focus,button.period:focus,#listScroll:focus{outline:4px solid #ed9c14;outline-offset:-4px}
#manualHint{font-size:17px;color:#667c96}#allView{padding-top:12px}#listStatus{font-size:20px;margin-left:22px;color:#526780}
#listScroll{overflow:auto;margin-top:14px;border:2px solid #bbcde0;background:white}
.all-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:24px;line-height:1.4}.all-table th,.all-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #d9e2ec;word-wrap:break-word}.all-table th{background:#173e70;color:white}.all-table th:nth-child(1){width:15%}.all-table th:nth-child(2){width:19%}.all-table th:nth-child(3){width:20%}.all-table th:nth-child(4){width:12%}.all-table th:nth-child(5){width:23%}.all-table th:nth-child(6){width:11%}.all-table tr:nth-child(even){background:#edf3fa}.list-room{font-weight:bold;font-size:27px}
@media(max-width:1400px){.all-table{font-size:19px}.list-room{font-size:23px}.all-table th,.all-table td{padding:9px}.tv-button{font-size:20px}#listStatus{font-size:17px}}

.list-help{float:right;font-size:16px;color:#667c96;line-height:52px}

#noticeBar{height:50px;margin-bottom:8px;background:#fff0c2;border-radius:7px;position:relative;font-size:25px;line-height:50px;color:#493c18;overflow:hidden}.notice-label{position:absolute;left:14px;font-weight:bold;width:64px}#noticeWindow{position:absolute;left:85px;right:16px;height:50px;overflow:hidden;white-space:nowrap}#noticeText{position:relative;display:inline-block;white-space:nowrap;left:0}.board.spacious{text-align:center}.board.spacious .card-slot{text-align:left}.spacious .card{padding:20px 24px}.spacious .room{font-size:50px;margin-bottom:10px}.spacious .course{font-size:34px;margin:10px 0}.spacious .time{font-size:29px;margin:8px 0}.spacious .people{font-size:29px;line-height:1.4}

/* Embedded notices: fixed header geometry, independent of text length/visibility. */
header{height:76px}
.heading{position:absolute;left:0;top:0;width:440px;padding-right:0;white-space:nowrap}
#noticeBar{position:absolute;left:460px;right:320px;top:5px;height:44px;line-height:44px;margin:0;background:#e8eef6;color:#526780;font-size:22px;border-radius:6px;overflow:hidden;white-space:nowrap}
.notice-label{left:10px;width:42px;font-size:16px;font-weight:normal;color:#6d7d90}
#noticeWindow{left:58px;right:12px;height:44px;overflow:hidden;white-space:nowrap}
#noticeText{white-space:nowrap}
#clock{width:130px;text-align:right}
#allCourses{right:145px;white-space:nowrap}
@media(max-width:1100px){
.heading{width:330px}.heading h1{font-size:24px}.heading .brand{font-size:28px;margin-right:10px}
#noticeBar{left:342px;right:276px;font-size:20px}
#clock{width:108px;font-size:40px}#allCourses{right:120px;font-size:19px;padding:12px 14px}
}
@media(max-width:760px){
.heading{width:272px}.heading h1{font-size:20px}.heading .brand{font-size:24px;margin-right:8px}
#noticeBar{left:280px;right:216px;font-size:18px}
.notice-label{display:none}#noticeWindow{left:8px;right:8px}
#clock{width:80px;font-size:28px;top:10px}#allCourses{right:90px;font-size:16px;padding:12px 8px}
}
@media(max-width:540px){#noticeBar{visibility:hidden}}

/* Same header control slot in both TV views; the inactive button is hidden. */
#allCourses,#returnBoard{position:absolute;right:145px;top:0;width:142px;min-height:52px;padding:12px 8px;white-space:nowrap;text-align:center}
#allView{padding-top:12px}
#listScroll{overflow:hidden;margin-top:0;border:2px solid #bbcde0;background:#fff}
.all-table{table-layout:fixed}
.all-table thead tr{height:56px}
.all-table tbody tr{height:72px}
.all-table th,.all-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-wrap:normal}
.list-footer{height:34px;line-height:34px;position:relative;color:#667c96;font-size:17px}
#listStatus{font-size:16px;margin-left:0;color:#926534}
#listPages{position:absolute;right:0;top:0}
@media(max-width:1100px){#allCourses,#returnBoard{right:120px;width:128px;font-size:19px;padding:12px 8px}}
@media(max-width:760px){#allCourses,#returnBoard{right:90px;width:112px;font-size:16px;padding:12px 6px}}

/* Name lists are complete: wrap, fit, and scroll only when the fixed TV cell overflows. */
.card .student-names,.dense .student-names,.ultra .student-names,.all-table .student-names{white-space:normal;text-overflow:clip;word-wrap:break-word;overflow:hidden;max-height:none;line-height:1.2}
.card .student-names span{font-size:0.75em}
.all-table .list-students{white-space:normal;text-overflow:clip}
@media(max-height:800px){.ultra .time{margin:2px 0}.ultra .people:not(.student-names){font-size:14px;line-height:1.1}.ultra .student-names{font-size:16px;line-height:1.15}}
