/* MAESTRO.AI — connected classroom display (public preview) */
:root{--orange:#ff7000;--ink:#142946;--muted:#8190a5;--line:#f0e0ce}
*{box-sizing:border-box}body{background:linear-gradient(145deg,#fffdfa,#fff7ed);color:var(--ink);margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;min-height:100vh}
.screen{padding:22px 30px;max-width:1700px;margin:auto}
.top{display:flex;justify-content:space-between;align-items:center;gap:22px;background:#fff;border:1px solid #f6e6d7;border-radius:16px;padding:13px 19px;box-shadow:0 5px 24px rgba(137,78,19,.06)}
.identity{display:flex;align-items:center;gap:13px;min-width:0}.logo{width:53px;height:53px;flex:0 0 53px;border:1px solid #ffe5cb;border-radius:14px;background:#fff5ea;display:flex;align-items:center;justify-content:center;overflow:hidden}.logo img{width:100%;height:100%;object-fit:contain}.logo img[hidden],.logo-fallback[hidden]{display:none}.logo-fallback{color:var(--orange);font-size:31px;font-weight:900}
.brand{font-size:15px;letter-spacing:.2px;color:#f26100;font-weight:900;margin:0 0 5px}.brand span{font-size:11px;font-style:italic;color:#7f93aa;font-weight:600}.location{font-size:12px;color:#73859e;margin:0}.time{text-align:right}.time strong{font-size:34px;display:block;font-weight:850;letter-spacing:-1px;color:#0d2347}.time small{color:#8999ac;font-size:12px;display:block;margin-top:5px}
.layout{display:flex;gap:17px;margin-top:18px}.status-panel{flex:1.16;background:#fff;border:1px solid #f3e1d0;border-top:4px solid #ff8300;padding:27px 30px;border-radius:16px;min-height:520px;box-shadow:0 8px 30px rgba(141,78,22,.06)}.agenda-panel{flex:1;background:linear-gradient(155deg,#fff,#fffcf7);border:1px solid #f3e1d0;padding:27px 30px;border-radius:16px;min-height:520px;box-shadow:0 8px 30px rgba(141,78,22,.06)}
.section-label{color:#f16b08;font-size:12px;letter-spacing:1.6px;font-weight:850}.room-heading{display:flex;gap:22px;align-items:center;margin:20px 0 17px}.room-photo{width:128px;height:128px;flex:0 0 128px;display:flex;align-items:center;justify-content:center;background:#fff5e7;border:1px solid #ffe1bd;border-radius:16px}.room-photo img{height:96%;width:96%;object-fit:contain}.room-photo img[hidden],.room-photo-fallback[hidden]{display:none}.room-photo-fallback{font-size:55px;color:#e58d36}
.status-panel h1{font-size:clamp(44px,5.7vw,94px);line-height:1.07;letter-spacing:-2px;margin:0;overflow-wrap:anywhere}.status{display:inline-block;padding:11px 19px;background:#e2faec;border-radius:12px;font-size:29px;font-weight:850;color:#0a9955}.status.busy{background:#fff0e8;color:#e25a17}.status.soon{background:#fff3cc;color:#b87800}.status.inactive,.status.offline{background:#f6e8e8;color:#c65353}.state-hint{margin-top:16px;font-size:15px;color:#79899f}.current-block{border-top:1px solid #f0e6dd;margin-top:37px;padding-top:30px}.current-title{font-weight:800;font-size:25px;line-height:1.35;margin-top:18px}.instructor{font-size:14px;color:#7588a1;margin-top:10px}
.next{font-size:25px;font-weight:850;line-height:1.4;padding:20px 0 27px;min-height:106px;color:#223b5a}.agenda-header{font-size:12px;letter-spacing:1.7px;font-weight:850;color:#f16b08;border-top:1px solid #eee3d6;padding-top:24px}.entry{padding:16px 0;border-bottom:1px solid #f0e9df}.entry .hours{font-size:13px;font-weight:850;color:#f36a0a;display:block;margin-bottom:6px}.entry .course{font-size:17px;font-weight:750;display:block}.entry .trainer{font-size:12px;color:#7f8fa4;display:block;margin-top:7px}
.bottom{display:flex;justify-content:space-between;color:#8795a8;font-size:11px;margin-top:17px;gap:15px;padding:0 6px}.bottom span.error{color:#d94335}
@media(max-width:880px){.screen{padding:13px}.layout{display:block}.status-panel,.agenda-panel{min-height:0;margin:0 0 14px;padding:23px}.room-heading{gap:12px}.room-photo{width:90px;height:90px;flex-basis:90px}.status-panel h1{font-size:48px}.status{font-size:25px}.top{padding:12px}.time strong{font-size:25px}.bottom{font-size:10px}}
@media(max-width:460px){.room-heading{align-items:flex-start}.room-photo{width:73px;height:73px;flex-basis:73px}.status-panel h1{font-size:38px}.brand span{display:block;margin-top:2px}}

/* v3 MAESTRO distance-reading optimization: retain original brand palette. */
.status-panel,.agenda-panel{overflow-wrap:break-word}
.layout{align-items:stretch}
.status-panel{flex:1.33}
.agenda-panel{flex:1}
.room-heading{margin:18px 0 16px}
.status-panel h1{font-size:clamp(58px,6.8vw,110px);line-height:1.03;font-weight:900}
.current-block{margin-top:25px;padding-top:20px}
.current-title{font-size:clamp(34px,3.5vw,52px);line-height:1.17;font-weight:850;margin-top:17px}
.instructor{font-size:clamp(22px,2.2vw,32px);color:#1c3755;font-weight:800;line-height:1.25;margin-top:18px}
.training-time{font-size:clamp(18px,1.6vw,23px);line-height:1.25;color:#607b97;font-weight:700;margin-top:10px}
.next{font-size:clamp(28px,2.7vw,39px);line-height:1.2;min-height:0;padding:12px 0 0;margin:0}
.instructor-next{font-size:clamp(20px,1.9vw,27px);font-weight:800;color:#2a4869;margin-top:13px;line-height:1.25}
.agenda-header{margin-top:22px;padding-top:20px}
.entry .hours{font-size:clamp(16px,1.2vw,19px)}
.entry .course{font-size:clamp(22px,2vw,30px);font-weight:850;line-height:1.2}
.entry .trainer{font-size:clamp(18px,1.55vw,23px);font-weight:750;color:#46617f;line-height:1.2}
@media(max-width:880px){
 .status-panel h1{font-size:clamp(50px,8vw,78px)}
 .current-title{font-size:clamp(30px,5vw,44px)}
 .instructor{font-size:clamp(21px,3.4vw,29px)}
 .next{font-size:clamp(26px,4vw,35px)}
 .entry .course{font-size:clamp(22px,3.2vw,28px)}
}

/* v4 distance-readable, one-card MAESTRO signage */
html,body{height:100%;overflow:hidden}
.screen{height:100%;overflow:hidden}
.layout{display:block;height:calc(100vh - 153px);min-height:0;margin-top:10px}
.status-panel{height:100%;width:100%;min-height:0;overflow:hidden;border-top:6px solid #ff7900;background:#fffefa;padding:20px 36px}
.agenda-panel{display:none}
.sign-head{display:flex;gap:18px;justify-content:space-between;align-items:flex-start;min-height:172px}
.sign-room{flex:1;min-width:0}
.room-heading{margin:5px 0 0;gap:20px}
.room-photo{width:133px;height:133px;flex-basis:133px}
.status-panel h1{font-size:118px;line-height:1.02;letter-spacing:-3px}
.sign-status{flex:none;max-width:32%;padding-top:24px}
.status{font-size:34px}
.state-hint{font-size:21px;font-weight:750;margin-top:0;color:#607b97}
.current-block{margin-top:13px;padding-top:15px}
.section-label{font-size:17px;letter-spacing:2px}
.current-title{font-size:110px;line-height:1.04;letter-spacing:-1px;margin-top:12px;font-weight:900;color:#142c4c}
#instructorBlock{margin-top:18px}
#instructorBlock[hidden]{display:none}
.instructor{font-size:62px;line-height:1.1;color:#1f3a5c;font-weight:850;margin-top:6px}
.training-time{font-size:23px;color:#a65c0a;font-weight:800;margin-top:12px}
@media(max-height:700px) and (orientation:landscape){
 .top{padding:10px 15px}
 .layout{height:calc(100vh - 116px);margin-top:8px}
 .status-panel{padding:12px 21px}
 .sign-head{min-height:116px}
 .room-photo{width:83px;height:83px;flex-basis:83px}
 .status-panel h1{font-size:74px}
 .status{font-size:24px;padding:8px 12px}
 .sign-status{padding-top:8px}
 .state-hint{font-size:16px}
 .current-block{margin-top:8px;padding-top:10px}
 .section-label{font-size:13px}
 .current-title{font-size:66px;margin-top:7px}
 #instructorBlock{margin-top:10px}
 .instructor{font-size:42px;margin-top:4px}
 .training-time{font-size:17px;margin-top:7px}
}
@media(orientation:portrait){
 .layout{height:calc(100vh - 151px)}
 .status-panel{padding:17px}
 .sign-head{display:block;min-height:209px}
 .room-photo{width:83px;height:83px;flex-basis:83px}
 .status-panel h1{font-size:65px}
 .sign-status{max-width:none;padding-top:12px}
 .current-title{font-size:68px}
 .instructor{font-size:42px}
}
