@font-face{font-family:'Archivo';font-weight:400 800;font-display:swap;src:url(/assets/archivo.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Archivo';font-weight:400 800;font-display:swap;src:url(/assets/archivo-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113}
@font-face{font-family:'JetBrains Mono';font-weight:500 700;font-display:swap;src:url(/assets/jbmono.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-weight:500 700;font-display:swap;src:url(/assets/jbmono-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113}
:root{--ink:#1C1F24;--mut:#5E6168;--line:#E6E3DE;--bg:#F3F1ED;--or:#E8620C;--n:#1E5AA8;--ns:#E7EEF7;--p:#B4235A;--ps:#F7E4EC;--ok:#2E7D55}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:'Archivo',system-ui,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
.mono{font-family:'JetBrains Mono',monospace}
button{font:inherit;cursor:pointer;border:0;color:inherit;background:none}
input{font:inherit;color:inherit}
.hide{display:none!important}
.btn{height:42px;padding:0 16px;border-radius:8px;border:1px solid #D6D2CA;background:#fff;font-size:14px;font-weight:600}
.btn.pri{background:var(--or);border-color:var(--or);color:#fff}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.btn:disabled{opacity:.5;cursor:default}
.inp{height:44px;border:1px solid #D6D2CA;border-radius:8px;padding:0 12px;font-size:15px;outline:none;background:#fff;width:100%}
.inp:focus{border-color:var(--or)}
.card{background:#fff;border:1px solid var(--line);border-radius:12px}
.pill{font-size:12px;font-weight:700;padding:3px 8px;border-radius:99px}
.pill.N{background:var(--ns);color:var(--n)}.pill.P{background:var(--ps);color:var(--p)}
.tN{color:var(--n)}.tP{color:var(--p)}
.err{color:#9B1C1C;font-size:14px;font-weight:600}

/* ---- login ---- */
.login{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.login form{width:360px;max-width:100%;padding:28px;display:flex;flex-direction:column;gap:14px}
.login img{height:64px;align-self:center}
.login h1{font-size:22px;font-weight:800;text-align:center}
.login .pw{position:relative}.login .pw button{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;color:var(--mut)}
.login .pw .inp{padding-right:64px}
.login label{font-size:13px;font-weight:600;color:var(--mut);display:flex;flex-direction:column;gap:6px}

/* ---- totem ---- */
.totem{height:100%;background:#fff;display:flex;flex-direction:column;max-width:1200px;margin:0 auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.t-top{display:flex;align-items:center;justify-content:space-between;padding:3vh 5vw;border-bottom:1px solid var(--line);gap:16px;min-height:12vh}
.t-top .logo{height:8vh;max-width:60vw;object-fit:contain;object-position:left center}
.t-clock{font-size:clamp(16px,2.4vw,28px);color:var(--mut)}
.t-body{flex:1;display:flex;flex-direction:column;padding:4vh 5vw 2vh;gap:3vh;min-height:0}
.t-h1{font-size:clamp(30px,5.2vw,64px);font-weight:800;letter-spacing:-.02em;line-height:1.05}
.t-choice{flex:1;border-radius:24px;padding:4vh 4vw;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;border:3px solid transparent;text-align:left;width:100%}
.t-choice b{font-size:clamp(40px,7.5vw,92px);font-weight:800;letter-spacing:-.02em}
.t-choice span{font-size:clamp(16px,2.4vw,28px);color:#33373E}
.t-choice.N{background:var(--ns)}.t-choice.N b{color:var(--n)}.t-choice.N:active{border-color:var(--n)}
.t-choice.P{background:var(--ps)}.t-choice.P b{color:var(--p)}.t-choice.P:active{border-color:var(--p)}
.t-row{display:flex;align-items:center;justify-content:space-between}
.t-back{font-size:clamp(16px,2.2vw,26px);font-weight:600;color:#33373E;padding:10px 0}
.t-tag{font-size:clamp(14px,1.9vw,22px);font-weight:700;padding:8px 18px;border-radius:99px}
.t-lbl{font-size:clamp(13px,1.8vw,22px);font-weight:600;color:var(--mut);margin-bottom:6px}
.t-field{height:max(56px,8vh);border-radius:14px;border:3px solid var(--line);padding:0 22px;display:flex;align-items:center;font-size:clamp(20px,3vw,38px);font-weight:600;width:100%;text-align:left}
.t-field.on{border-color:var(--or)}
.t-field .ph{color:#A3A6AC;font-weight:400}
.t-field .caret{color:var(--or);font-weight:400;animation:bl 1s steps(2) infinite}
@keyframes bl{50%{opacity:0}}
.t-warn{background:#FBEAEA;border:2px solid #E2A3A3;border-radius:16px;padding:18px 22px;color:#5C1E1E;font-size:clamp(15px,2vw,24px);line-height:1.4}
.t-warn b{display:block;color:#9B1C1C;font-size:1.15em;margin-bottom:4px}
.t-known{font-size:clamp(14px,1.8vw,22px);font-weight:600;color:var(--ok);margin-top:6px}
.kb{background:#F3F1ED;padding:12px;border-radius:16px;display:flex;flex-direction:column;gap:8px}
.kb .r{display:flex;gap:8px;justify-content:center}
.kb button{background:#fff;border-radius:10px;box-shadow:0 2px 0 #D6D2CA;font-weight:600;height:max(52px,7vh);font-size:clamp(18px,2.6vw,32px);flex:1;max-width:96px}
.kb button:active{background:#E6E3DE}
.kb .wide{max-width:none;flex:3;font-size:clamp(14px,1.8vw,22px);color:var(--mut)}
.kb .del{background:#E6E3DE;max-width:200px;flex:1.4;font-size:clamp(14px,1.8vw,22px)}
.kb.num{display:grid;grid-template-columns:repeat(3,1fr)}
.kb.num button{max-width:none}
.t-go{height:max(64px,9vh);border-radius:16px;font-size:clamp(20px,2.8vw,34px);font-weight:700}
.t-done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3vh;text-align:center;padding:4vh 6vw}
.t-check{width:96px;height:96px;border-radius:99px;background:#E4F3EB;color:var(--ok);display:flex;align-items:center;justify-content:center;font-size:52px;font-weight:800}
.t-foot{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 0 16px;border-top:1px solid #EFEDE9;font-size:12px;color:#8A8D93}
.t-foot img{height:28px}

/* ---- tv ---- */
body.tv{background:#14161A;color:#F4F2EE;overflow:hidden}
.tv-wrap{height:100vh;display:flex;flex-direction:column;padding:1.5vh 0}
.tv-top{display:flex;align-items:center;justify-content:space-between;padding:1.5vh 3vw}
.tv-top .logobox{background:#fff;border-radius:10px;padding:6px 14px;display:flex}
.tv-top .logobox img{height:6vh;max-width:24vw;object-fit:contain}
.tv-top .ev{font-size:2.4vh;font-weight:700;color:#9A9DA4}
.tv-clock{font-size:3.6vh;font-weight:700}
.tv-main{flex:1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:1.8vw;padding:0 3vw;min-height:0}
.tv-cur{background:#1F2228;border-radius:16px;padding:4vh 3vw;display:flex;flex-direction:column;justify-content:space-between;transition:background .4s}
.tv-cur.flash{background:var(--or)}
.tv-lbl{display:flex;align-items:center;gap:12px;font-size:2.4vh;font-weight:700;letter-spacing:.14em}
.tv-dot{width:1.6vh;height:1.6vh;border-radius:99px;background:var(--or)}
.flash .tv-dot{background:#fff}
.tv-name{font-size:min(11vh,7vw);font-weight:800;letter-spacing:-.03em;line-height:1;text-wrap:balance}
.tv-code{font-size:4vh;font-weight:700;background:#F4F2EE;padding:.4vh 1.2vh;border-radius:8px}
.tv-meta{display:flex;align-items:center;gap:14px;margin-top:2.6vh;font-size:2.6vh;font-weight:600}
.tv-term{display:flex;align-items:baseline;gap:16px;border-top:1px solid rgba(244,242,238,.25);padding-top:3vh}
.tv-term span{font-size:3vh}.tv-term b{font-size:7.4vh;font-weight:800;letter-spacing:-.02em}
.tv-hist{background:#1F2228;border-radius:16px;padding:3vh 2vw;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.tv-hist h2{font-size:2.1vh;letter-spacing:.14em;color:#9A9DA4;padding-bottom:1.4vh}
.tv-h{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:1.8vh 0;border-top:1px solid #2E323A}
.tv-h .a{font-size:3vh;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-h .b{font-size:2.4vh;font-weight:600;text-align:right}
.tv-h .c,.tv-h .d{font-size:2vh}.tv-h .d{color:#9A9DA4;text-align:right}
.tv-bot{display:flex;align-items:center;gap:18px;padding:2.2vh 3vw 1vh}
.tv-bot h3{font-size:2vh;letter-spacing:.14em;color:#9A9DA4;white-space:nowrap}
.tv-next{flex:1;display:flex;gap:10px;overflow:hidden;min-width:0}
.tv-n{display:flex;align-items:center;gap:10px;background:#1F2228;border-radius:10px;padding:1.2vh 1.2vw;white-space:nowrap;font-size:2.2vh;font-weight:600}
.tv-n i{font-style:normal;font-size:2vh;font-weight:700}
.tv-bot .hba{background:#fff;border-radius:6px;padding:3px 8px;display:flex}.tv-bot .hba img{height:3.2vh}
.tv-snd{position:fixed;bottom:8px;right:8px;font-size:12px;background:#333;color:#ddd;padding:6px 10px;border-radius:8px;opacity:.7}
.tv-off{position:fixed;top:8px;right:8px;font-size:12px;background:#9B1C1C;color:#fff;padding:6px 10px;border-radius:8px}

/* ---- guiche ---- */
body.gui{background:#fff;overflow:hidden}
.g-head{height:44px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 12px}
.g-head img{height:28px}
.g-body{padding:16px;display:flex;flex-direction:column;gap:14px}
.g-cur{background:var(--bg);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px;min-height:76px}
.g-cur small{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--mut)}
.g-opt{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;border-radius:8px;border:1.5px solid var(--line);background:#fff;font-size:14px;font-weight:600;width:100%;margin-bottom:6px}
.g-opt.sel{border-color:var(--or);background:#FDF0E6}.g-opt.busy{background:var(--bg);color:#8A8D93;cursor:default}
.g-opt span{font-size:11px;font-weight:500}
.g-call{height:54px;border-radius:10px;font-size:17px;font-weight:700;background:var(--or);color:#fff;width:100%}
.g-call:disabled{background:var(--line);color:#8A8D93;cursor:default}
.g-foot{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--mut)}
.g-rec{font-weight:700;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:5px 9px}

/* ---- admin ---- */
.adm{display:flex;height:100%}
.side{width:232px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 14px;gap:28px;flex:none}
.side .brand img{height:52px;display:block}
.side .brand div{font-size:12px;font-weight:600;color:var(--mut);letter-spacing:.06em;margin-top:6px}
.nav{display:block;width:100%;text-align:left;padding:11px 12px;border-radius:8px;font-size:15px;font-weight:600;color:#33373E}
.nav.on{background:#FDF0E6;color:#A8440A}
.sub{margin:6px 0 0 12px;padding-left:12px;border-left:2px solid var(--line);display:flex;flex-direction:column;gap:2px}
.sub small{font-size:11px;font-weight:700;letter-spacing:.08em;color:#8A8D93;padding:6px 0 2px}
.sub b{font-size:14px;font-weight:800;line-height:1.25;padding-bottom:6px}
.sub .nav{font-size:14px;padding:9px 10px}
.sync{margin-top:auto;padding:12px;border-radius:10px;background:var(--bg);font-size:12px;color:var(--mut);line-height:1.45}
.sync b{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:13px}
.sync i{width:8px;height:8px;border-radius:99px;background:#2E9E6A}
.sync i.off{background:#C9C5BD}
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.bar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);background:#fff;flex:none}
.bar .crumb{display:flex;align-items:center;gap:10px;min-width:0;font-size:15px;font-weight:600;color:var(--mut)}
.bar h1{font-size:22px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.bar .user{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--mut)}
.av{width:34px;height:34px;border-radius:99px;background:#FCE6D6;display:flex;align-items:center;justify-content:center;font-weight:700;color:#A8440A;font-size:13px}
.page{flex:1;padding:28px 36px;overflow:auto;display:flex;flex-direction:column;gap:22px}
.grid{display:grid;gap:16px}
.kpi{padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.kpi span{font-size:13px;color:var(--mut);font-weight:600}.kpi b{font-size:32px;font-weight:800;letter-spacing:-.02em}
.sec{padding:0}
.sec>h2{padding:16px 20px;font-size:16px;font-weight:700;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:baseline}
.sec>h2 small{font-size:12px;font-weight:400;color:var(--mut)}
.tbl{display:grid;grid-template-columns:44px 80px minmax(0,1fr) 150px 120px 70px;padding:12px 20px;border-top:1px solid #EFEDE9;font-size:14px;align-items:center}
.tbl.h{font-size:12px;font-weight:700;color:var(--mut);letter-spacing:.04em;border-top:0;padding:10px 20px}
.tbl>div:last-child{text-align:right}
.trow{padding:14px 20px;border-bottom:1px solid #EFEDE9;display:flex;align-items:center;justify-content:space-between;gap:12px}
.trow .d{width:8px;height:8px;border-radius:99px;background:#C9C5BD;display:inline-block;margin-right:10px}
.trow .d.on{background:#2E9E6A}
.ev-card{padding:18px;display:flex;flex-direction:column;gap:14px;border:1.5px solid var(--line);border-radius:14px;background:#fff;text-align:left;width:100%}
.ev-card:hover{border-color:var(--or)}
.ev-logo{height:88px;border-radius:10px;background:#F8F7F4;display:flex;align-items:center;justify-content:center;font-size:12px;color:#8A8D93}
.ev-logo img{max-width:200px;max-height:64px;object-fit:contain}
.ev-new{min-height:260px;border-radius:14px;border:1.5px dashed #C9C5BD;font-size:15px;font-weight:700;color:#33373E;width:100%}
.ev-new:hover{border-color:var(--or)}
.tabs{display:flex;background:#fff;border:1px solid var(--line);border-radius:10px;padding:4px;gap:4px}
.tabs button{padding:8px 16px;border-radius:7px;font-size:14px;font-weight:600;color:#33373E}
.tabs button.on{background:var(--ink);color:#fff}
.form{padding:24px 28px;display:flex;flex-direction:column;gap:22px;max-width:860px}
.form .f{display:flex;flex-direction:column;gap:6px}.form label{font-size:13px;font-weight:600;color:var(--mut)}
.chip{display:flex;align-items:center;gap:8px;height:36px;padding:0 6px 0 12px;border-radius:8px;background:var(--bg);font-size:14px;font-weight:600}
.chip button{width:24px;height:24px;color:var(--mut)}
.step{display:flex;align-items:center;border:1px solid #D6D2CA;border-radius:8px;overflow:hidden}
.step button{width:38px;height:40px;font-size:18px;background:var(--bg)}
.step b{width:48px;text-align:center;font-size:18px}
.sw{width:42px;height:24px;border-radius:99px;background:#C9C5BD;position:relative;flex:none;transition:.2s}
.sw i{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:99px;background:#fff;transition:.2s}
.sw.on{background:var(--or)}.sw.on i{left:21px}
.togrow{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #EFEDE9;width:100%;text-align:left}
.togrow small{display:block;font-size:13px;color:var(--mut);font-weight:400}
.bars{display:flex;align-items:stretch;gap:10px;border-bottom:1px solid var(--line);height:220px}
.bars>div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;font-size:11px;color:var(--mut)}
.bars .st{width:100%;display:flex;flex-direction:column}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;z-index:99}
@media print{.side,.bar,.tabs,.noprint{display:none!important}.page{overflow:visible}body,html{height:auto}}
