:root{color-scheme:light;--ink:#193c39;--muted:#72817b;--line:#dce3dc;--green:#256655;--paper:#f3f5ef}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,sans-serif;font-variant-numeric:tabular-nums;min-height:100vh;display:flex;flex-direction:column}.masthead{height:104px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:34px;font-weight:700;letter-spacing:-1.5px}.brand-symbol{background:var(--green);color:#eafaaf;width:44px;height:44px;display:grid;place-items:center;border-radius:14px;font-size:38px;font-weight:400}.brand-caption{font-size:9px;letter-spacing:1.6px;font-weight:500;width:98px;line-height:1.6;margin-left:7px;padding-left:18px;border-left:1px solid var(--line)}.header-note{font-size:15px;color:var(--muted)}.clock{display:flex;align-items:center;gap:18px}.clock time{font-size:36px;letter-spacing:-1px}.clock span{font-size:12px;color:var(--muted);max-width:100px;line-height:1.5}.screen{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr);gap:28px;padding:28px 32px 20px;flex:1}.queue-panel{min-width:0;display:flex;flex-direction:column}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 24px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted)}h1{font-size:clamp(23px,2vw,36px);font-weight:500;letter-spacing:-1px;margin:8px 0 0}.live{font-size:11px;line-height:1.6;text-align:right;color:var(--muted);max-width:155px}.live.online{color:var(--green)}.live.offline{color:#96501e}.queue-description{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-bottom:12px}.legend{display:flex;gap:6px;align-items:center;white-space:nowrap}.legend i{height:7px;width:7px;background:#85ba91;border-radius:50%}.legend i:nth-of-type(2){background:#d8a75f;margin-left:8px}.board-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{width:100%;border-collapse:collapse;table-layout:fixed}td{height:clamp(37px,4.8vh,62px);text-align:center;padding:4px 2px;border-bottom:1px solid #e6ebe5;border-right:1px solid #e6ebe5;font-size:clamp(20px,2.25vw,43px);font-weight:600;white-space:nowrap}td:last-child{border-right:0}tr:last-child td{border-bottom:0}.content td:first-child{width:54px;font-size:13px;color:var(--muted);font-weight:400}.content tr:first-child td{height:70px;background:#e9eee6;font-size:clamp(23px,2vw,38px);color:var(--ink)}.content tr:first-child td:not(:first-child):before{content:'КАБ.';display:block;font-size:9px;letter-spacing:1px;margin-bottom:5px;color:var(--muted)}.content tr:first-child td:first-child{font-size:10px;white-space:normal}.content tr:nth-child(2) td{height:58px}.content tr:nth-child(2) td:first-child{font-size:10px;white-space:normal}.content tr:nth-child(n+3):nth-child(odd){background:#f7f9f5}.free{background:#e2f0df;color:#235e3a}.busy{background:#faead0;color:#855622}.free:before,.busy:before{display:block;font-size:8px;font-weight:400;letter-spacing:.2px;margin-bottom:4px}.free:before{content:'СВОБОДЕН'}.busy:before{content:'ЗАНЯТ'}.waiting{background:#faead0;color:#855622}.delimiter{border-bottom:2px solid #b7c9b9}.last-section{margin-top:20px}.last-section h2{font-size:12px;font-weight:600;margin:0 0 10px}.last-section h2 span{font-weight:400;color:var(--muted);margin-left:6px}.footer td{height:54px;background:#e8eee2;color:var(--green);font-size:clamp(20px,2.1vw,38px)}.footer td:first-child{width:54px}.queue-note{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);margin-top:18px}.note-symbol{display:grid;place-items:center;width:18px;height:18px;border:1px solid #a8b7ab;border-radius:50%;font-family:Georgia,serif}.showcase-panel{position:relative;overflow:hidden;display:flex;flex-direction:column;border-radius:22px;background:#244e40;color:#f5f6e9;min-height:710px;transition:background-color .6s}.ad-top{display:flex;justify-content:space-between;gap:12px;padding:25px 28px 0;font-size:9px;letter-spacing:1.7px;position:relative;z-index:1}#ad-label{color:#c8d59e;letter-spacing:1px}.ad-art{height:230px;position:relative;overflow:hidden;flex-shrink:0}.orbit{position:absolute;border:1px solid #cce5ad40;border-radius:50%;height:240px;width:240px;right:-45px;top:5px}.orbit-two{width:320px;height:320px;right:-85px;top:-35px}.art-cross{position:absolute;width:124px;height:124px;right:45px;top:57px;transform:rotate(-12deg);filter:drop-shadow(0 12px 18px #10291c40)}.art-cross:before,.art-cross:after{content:'';position:absolute;background:#d9edb2;border-radius:16px}.art-cross:before{left:40px;width:44px;height:124px}.art-cross:after{top:40px;height:44px;width:124px}.art-word{position:absolute;left:28px;top:62px;font-size:clamp(35px,3.5vw,66px);font-family:Georgia,serif;font-style:italic;line-height:1.02;letter-spacing:-2px}.ad-copy{padding:0 28px;position:relative;z-index:1;flex:1}.ad-category{font-size:10px;color:#d9edb2;letter-spacing:2px}.ad-copy h2{font-size:clamp(32px,3vw,55px);font-weight:400;line-height:1.04;letter-spacing:-1.6px;margin:16px 0}.ad-copy p{font-size:15px;line-height:1.6;color:#d8e1d4;margin:0;max-width:370px}.ad-tags{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0}.ad-tags span{border:1px solid #d8e1d43b;padding:8px 10px;border-radius:30px;font-size:10px;color:#e2e8d6}.ad-action{display:flex;gap:13px;align-items:center;margin:18px 28px 0;padding:18px 0;border-top:1px solid #d8e1d43b}.action-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#dfecb5;color:#244e40;border-radius:50%;font-size:25px}.ad-action strong{display:block;font-size:15px;font-weight:500}.ad-action div>span{display:block;font-size:11px;color:#c4d4bf;margin-top:7px;line-height:1.4}.ad-bottom{display:flex;gap:12px;align-items:center;padding:5px 28px 12px}.ad-dots{display:flex;gap:6px;flex:1}.ad-dots button{width:20px;height:20px;padding:6px;border:0;background:transparent;cursor:pointer}.ad-dots button:after{content:'';display:block;width:8px;height:8px;background:#ffffff40;border-radius:50%}.ad-dots button.active:after{background:#dfecb5}#ad-counter{font-size:10px;color:#c4d4bf}#ad-pause{background:transparent;color:#dfecb5;border:1px solid #ffffff40;border-radius:6px;width:28px;height:26px;cursor:pointer}.ad-progress{height:2px;background:#ffffff20;margin:0 28px}.ad-progress div{height:100%;background:#dfecb5;width:0}.ad-disclaimer{font-size:10px;line-height:1.5;color:#becdb7;margin:14px 28px 20px}.screen-footer{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;padding:0 34px 20px}.empty-state{text-align:center;padding:90px 20px;color:var(--muted);font-size:16px}body.single .last-section{display:none}body.single .content td:first-child{width:auto;font-size:clamp(30px,4vw,60px)}body.single .content tr:first-child td:before{content:none}button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(min-width:1700px){.screen{gap:36px;padding:36px 42px 24px}.queue-description,.queue-note{font-size:15px}.content td:first-child,.last-section h2{font-size:16px}.free:before,.busy:before{font-size:11px}.content tr:first-child td:not(:first-child):before{font-size:12px}.ad-art{height:300px}.art-cross{top:100px;right:80px}.art-word{top:95px}.ad-copy p{font-size:20px}.ad-copy,.ad-top{padding-left:36px;padding-right:36px}.ad-action strong{font-size:20px}.ad-action div>span,.ad-tags span{font-size:13px}.ad-disclaimer{font-size:13px}.ad-category{font-size:13px}}
@media(max-width:1000px){.masthead{padding:0 22px;height:88px}.header-note,.brand-caption{display:none}.screen{grid-template-columns:1fr;padding:20px;gap:24px}.showcase-panel{min-height:660px}.ad-art{height:210px}.ad-copy h2{font-size:44px}.art-word{font-size:58px}td{font-size:clamp(20px,4.5vw,36px)}.ad-copy p{max-width:none}.ad-copy{flex:0}.ad-action{margin-top:auto}.screen-footer{padding:0 22px 20px}.showcase-panel{max-width:none}}
@media(max-width:560px){.brand{font-size:27px}.clock{gap:8px}.clock time{font-size:27px}.clock span{font-size:10px;max-width:65px}.screen{padding:16px 10px}.queue-heading{align-items:flex-start}.queue-description{flex-direction:column}table{min-width:0}.single table{min-width:0}.screen-footer{flex-direction:column;gap:6px}.queue-note{font-size:11px}.ad-copy h2{font-size:38px}.ad-art{height:220px}}
@media(prefers-reduced-motion:reduce){.showcase-panel{transition:none}}
/* TV layouts keep the whole queue visible without vertical scrolling. */
@media(min-width:0px){td{height:clamp(30px,4.05vh,54px)}.content tr:nth-child(2) td{line-height:1}.queue-heading{margin-bottom:18px}.screen{align-items:stretch}.showcase-panel{min-height:0}}
@media(min-width:0px) and (max-height:850px){.masthead{height:70px;flex-shrink:0;padding:0 28px}.brand{font-size:27px}.brand-symbol{width:36px;height:36px;font-size:30px}.clock time{font-size:30px}.screen{padding:18px 24px 12px;gap:22px}.queue-heading{margin:0 0 12px}h1{font-size:25px;margin-top:5px}.queue-description{margin-bottom:8px}.content tr:first-child td{height:53px}.content tr:nth-child(2) td{height:45px}td{height:27px;font-size:26px}.content tr:nth-child(2) td{font-size:25px}.last-section{margin-top:12px}.last-section h2{margin-bottom:6px}.footer td{height:40px;font-size:25px}.queue-note{margin-top:10px;font-size:10px}.screen-footer{padding-bottom:12px;font-size:10px}.ad-top{padding:18px 22px 0;font-size:8px}.ad-art{height:155px}.art-word{top:38px;font-size:44px;left:22px}.art-cross{width:90px;height:90px;top:37px;right:36px}.art-cross:before{width:32px;height:90px;left:29px}.art-cross:after{height:32px;width:90px;top:29px}.ad-copy{padding:0 22px}.ad-copy h2{font-size:34px;margin:12px 0}.ad-copy p{font-size:13px;line-height:1.5}.ad-tags{margin:14px 0}.ad-tags span{font-size:9px;padding:6px 8px}.ad-action{margin:8px 22px 0;padding:12px 0}.ad-action strong{font-size:13px}.ad-action div>span{font-size:10px}.ad-bottom{padding:0 22px 7px}.ad-disclaimer{font-size:9px;margin:9px 22px 13px}}
.fixed-position td{font-weight:700}.rotating-position td{color:#64766b;font-weight:500}.fixed-position:last-child td{border-bottom:2px solid #91aa94}
@media(min-width:0px){body.dense .masthead{height:76px;flex-shrink:0}body.dense .screen{display:flex;flex-direction:column;gap:16px;padding:20px 32px 16px}body.dense .queue-heading{margin:0 0 12px}body.dense h1{font-size:26px}body.dense .eyebrow{display:none}body.dense .queue-description{margin-bottom:8px;font-size:12px}body.dense td{height:clamp(25px,3.15vh,36px);font-size:clamp(23px,1.8vw,34px)}body.dense .content tr:first-child td{height:54px;font-size:27px}body.dense .content tr:nth-child(2) td{height:50px}body.dense .content td:first-child{font-size:12px}body.dense .content tr:first-child td:first-child,body.dense .content tr:nth-child(2) td:first-child{font-size:10px}body.dense .free:before,body.dense .busy:before{font-size:8px}body.dense .last-section{margin-top:10px}body.dense .last-section h2{margin-bottom:6px;font-size:11px}body.dense .footer td{height:38px;font-size:27px}body.dense .queue-note{display:none}body.dense .showcase-panel{display:grid;grid-template-columns:200px minmax(0,1fr) 320px;grid-template-rows:auto 1fr auto;border-radius:16px;min-height:190px;flex:1;column-gap:25px}body.dense .ad-top{grid-column:2/4;grid-row:1;padding:17px 22px 0 0}body.dense .ad-art{grid-column:1;grid-row:1/4;height:100%;min-height:170px}body.dense .art-word{left:22px;top:35px;font-size:43px}body.dense .art-cross{transform:scale(.45) rotate(-12deg);right:-18px;top:48px}body.dense .orbit{height:190px;width:190px}body.dense .orbit-two{height:250px;width:250px}body.dense .ad-copy{grid-column:2;grid-row:2;padding:12px 0}body.dense .ad-category,body.dense .ad-tags{display:none}body.dense .ad-copy h2{font-size:30px;white-space:normal!important;margin:0 0 8px;letter-spacing:-.7px}body.dense .ad-copy p{font-size:13px;max-width:none;line-height:1.4}body.dense .ad-action{grid-column:3;grid-row:2;margin:0 22px 0 0;border-top:0;padding:10px 0}body.dense .ad-action strong{font-size:15px}body.dense .ad-action div>span{font-size:11px}body.dense .ad-bottom{grid-column:3;grid-row:3;padding:0 22px 12px 0}body.dense .ad-disclaimer{grid-column:2;grid-row:3;margin:0 0 12px;font-size:10px}body.dense .ad-progress{position:absolute;bottom:0;left:0;right:0;margin:0}body.dense .screen-footer{padding-bottom:12px}}
@media(min-width:0px) and (max-height:850px){body.dense .masthead{height:58px}body.dense .screen{padding:12px 22px;gap:10px}body.dense h1{font-size:21px;margin:0}body.dense .queue-heading{margin-bottom:7px}body.dense .queue-description{font-size:10px;margin-bottom:6px}body.dense td{height:23px;font-size:23px}body.dense .content tr:first-child td{height:43px;font-size:23px}body.dense .content tr:nth-child(2) td{height:40px;font-size:22px}body.dense .content td:first-child,body.dense .footer td:first-child{width:42px}body.dense .free:before,body.dense .busy:before{font-size:7px}body.dense .footer td{height:30px;font-size:23px}body.dense .showcase-panel{min-height:166px;grid-template-columns:165px minmax(0,1fr) 265px;column-gap:16px}body.dense .ad-art{min-height:150px}body.dense .ad-copy h2{font-size:26px}body.dense .ad-copy p{font-size:12px}body.dense .ad-disclaimer{font-size:9px}body.dense .ad-top{padding-top:12px}body.dense .art-word{font-size:35px}body.dense .art-cross{right:-32px}}
@media(max-width:1000px){body.dense table{min-width:0}}
@media(min-width:0px){body.dense .screen{padding-bottom:14px}body.dense .art-cross{display:none}}
@media(max-width:1000px){body.dense td{font-size:25px}body.dense .content tr:first-child td{font-size:25px}}
@media(min-width:0px) and (max-height:850px){body.dense td{padding:1px 2px;line-height:1;height:25px;font-size:22px}body.dense .content tr:first-child td{height:43px;font-size:23px}body.dense .content tr:nth-child(2) td{height:40px}body.dense .footer td{height:30px;font-size:23px}body.dense .content td:first-child{font-size:11px}body.dense .screen{padding-top:10px;padding-bottom:10px}body.dense .queue-description{margin-bottom:5px}}
@media(min-width:0px) and (max-height:850px){body.dense .screen{padding-bottom:6px}}
.persistent-queue{display:none}.mode-notice{font-size:12px;color:#64776a;max-width:210px}.demo-event{border:1px solid #b8cbbf;background:#f3f5ef;color:#244e40;padding:8px 12px;border-radius:8px;margin:3px;cursor:pointer}.changed-cell{box-shadow:inset 0 0 0 2px #699c75}.showcase-mode .queue-panel{display:none}body.showcase-mode .screen{display:flex;flex-direction:column;gap:16px;padding:20px 32px;min-height:0}body.showcase-mode .persistent-queue{display:block}.strip-caption{font-size:13px;margin-bottom:9px;color:#52695b}.strip-cards{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px}.strip-card{background:white;border:1px solid #d7e0d6;border-radius:8px;padding:8px 12px;display:grid;grid-template-columns:1fr auto;gap:3px 6px}.strip-card span{font-size:13px;color:#62736a}.strip-card strong{font-size:25px;grid-column:2;grid-row:1/3}.strip-card small{font-size:11px;color:#62736a}.recently-changed{border-color:#609268;background:#e3efcf}body.showcase-mode .showcase-panel{display:grid;grid-template-columns:34% minmax(0,1fr) 23%;grid-template-rows:auto 1fr auto;flex:1;min-height:450px;column-gap:30px}body.showcase-mode .ad-top{grid-column:2/4;grid-row:1;padding:28px 32px 0 0;font-size:12px}body.showcase-mode .ad-art{grid-column:1;grid-row:1/4;height:100%;min-height:0}body.showcase-mode .art-word{top:22%;left:50px;font-size:110px}body.showcase-mode .orbit{width:450px;height:450px;top:10%;right:0}body.showcase-mode .orbit-two{width:580px;height:580px;right:-60px;top:0}body.showcase-mode .art-cross{display:none}body.showcase-mode .ad-copy{grid-column:2;grid-row:2;padding:35px 0;align-self:center}body.showcase-mode .ad-category{display:block;font-size:14px}body.showcase-mode .ad-copy h2{font-size:64px;line-height:1.07;white-space:pre-line!important;margin:22px 0}body.showcase-mode .ad-copy p{font-size:23px;line-height:1.5;max-width:650px}body.showcase-mode .ad-tags{display:flex}body.showcase-mode .ad-tags span{font-size:14px}body.showcase-mode .ad-action{grid-column:3;grid-row:2;margin:0 35px 0 0;border:0;align-self:end;padding-bottom:40px}body.showcase-mode .ad-action strong{font-size:22px}body.showcase-mode .ad-action div>span{font-size:15px}body.showcase-mode .ad-bottom{grid-column:3;grid-row:3;padding:0 30px 24px 0}body.showcase-mode .ad-disclaimer{grid-column:2;grid-row:3;font-size:13px;margin:0 0 24px}body.showcase-mode .ad-progress{position:absolute;bottom:0;left:0;right:0;margin:0}
@media(min-width:0px) and (max-height:850px){body.showcase-mode .screen{padding:12px 22px;gap:10px}body.showcase-mode .showcase-panel{min-height:350px;column-gap:18px}body.showcase-mode .art-word{font-size:75px;left:30px}body.showcase-mode .ad-copy{padding:15px 0}body.showcase-mode .ad-copy h2{font-size:42px;margin:15px 0}body.showcase-mode .ad-copy p{font-size:17px}body.showcase-mode .ad-action strong{font-size:16px}body.showcase-mode .ad-action div>span{font-size:12px}body.showcase-mode .ad-disclaimer{font-size:10px}.strip-card{padding:5px 8px}.strip-card strong{font-size:23px}.strip-card span,.strip-card small{font-size:10px}.strip-cards{gap:5px}.mode-notice{font-size:10px;max-width:140px}.demo-event{font-size:10px;padding:6px}.header-note{font-size:11px}}
@media(max-width:1000px){.mode-notice{display:none}body.showcase-mode .showcase-panel{display:flex;min-height:650px}body.showcase-mode .ad-art{height:180px}body.showcase-mode .art-word{font-size:60px}body.showcase-mode .ad-copy{padding:20px}body.showcase-mode .ad-copy h2{font-size:40px}body.showcase-mode .ad-copy p{font-size:18px}body.showcase-mode .ad-action{margin:0 20px}body.showcase-mode .ad-disclaimer{margin:20px}.strip-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Distance-first layout for ceiling-mounted 32-inch 16:9 TVs. */
@media(min-width:0px){
 body{background:#f8faf5;color:#102e24}body .masthead,body.dense .masthead{height:7vh;min-height:48px;padding:0 2vw}.brand-caption,.eyebrow,.queue-note,.legend,.ad-tags,.ad-detail,.mode-notice{display:none!important}.header-note{margin-left:auto}.clock time{font-size:3.3vw}.clock span{display:none}
 body .screen,body.dense .screen{display:flex;flex-direction:column;padding:1.5vh 2vw;gap:1vh}body:not(.showcase-mode) .showcase-panel{display:none!important}.queue-panel{flex:1}body .queue-heading,body.dense .queue-heading{margin:0 0 1vh}body h1,body.dense h1{font-size:2.1vw;margin:0;font-weight:700;letter-spacing:0}.live{font-size:1.1vw;max-width:none}body .queue-description,body.dense .queue-description{font-size:1.25vw;color:#263d31;margin:0 0 1vh}
 body .content td,body.dense .content td{height:4.85vh;padding:0 2px;font-size:2.65vw;line-height:1;font-weight:700;color:#102e24;border-color:#c1ccc1}body .content td:first-child,body.dense .content td:first-child{width:3.3vw;font-size:1.4vw;color:#233e2d}body .content tr:first-child td,body.dense .content tr:first-child td{height:8vh;font-size:2.8vw;background:#163c2e;color:white}body .content tr:first-child td:not(:first-child):before{font-size:1vw;color:white;margin-bottom:4px}body .content tr:first-child td:first-child,body.dense .content tr:first-child td:first-child{font-size:1vw;color:white}body .content tr:nth-child(2) td,body.dense .content tr:nth-child(2) td{height:8vh;font-size:2.65vw}body .content tr:nth-child(2) td:first-child,body.dense .content tr:nth-child(2) td:first-child{font-size:1vw}body .free:before,body .busy:before,body.dense .free:before,body.dense .busy:before{display:none}body .content .busy{background:#ffe1a5;color:#3d2300}body .content .free{background:#cdecc2;color:#10370c}body .content .rotating-position td{color:#163b29;font-weight:700;background:#e9eee5}.delimiter{border-bottom:3px solid #254b34!important}.changed-cell{box-shadow:inset 0 0 0 3px #217144}
 body .last-section,body.dense .last-section{margin-top:1vh}body .last-section h2,body.dense .last-section h2{font-size:1.2vw;margin:0 0 .6vh;color:#264330}.last-section h2 span{display:none}body .footer td,body.dense .footer td{height:5.7vh;font-size:2.4vw;padding:0;line-height:1;color:#14391e;font-weight:700}body .footer td:first-child,body.dense .footer td:first-child{width:3.3vw}body .screen-footer,body.dense .screen-footer{font-size:1vw;padding:0 2vw 1vh;color:#334c3a}
 body.showcase-mode .screen{padding:1.5vh 2vw;gap:1.4vh}body.showcase-mode .showcase-panel{min-height:0;grid-template-columns:25% minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:0 3vw}body.showcase-mode .ad-top{grid-column:2;padding:2vh 2vw 0 0;font-size:1vw}body.showcase-mode .ad-art{grid-column:1;grid-row:1/4}body.showcase-mode .art-word{left:2.5vw;font-size:6vw;top:25%}body.showcase-mode .ad-copy{grid-column:2;grid-row:2;padding:1vh 3vw 1vh 0}body.showcase-mode .ad-copy h2{font-size:5vw;font-weight:700;letter-spacing:-1px;line-height:1.06;margin:1vh 0 2vh}body.showcase-mode .ad-category{font-size:1.4vw;color:#e9facb}body.showcase-mode .ad-copy p{font-size:2vw;max-width:100%;color:white;line-height:1.35}body.showcase-mode .ad-action{grid-column:2;grid-row:3;padding:0 3vw 3vh 0;margin:0;align-self:center}body.showcase-mode .ad-action strong{font-size:2.2vw;font-weight:700}body.showcase-mode .ad-action div>span{display:none}body.showcase-mode .ad-bottom{position:absolute;left:2vw;bottom:2vh;padding:0;width:17vw}body.showcase-mode .ad-disclaimer{display:none}
 .strip-caption{font-size:1.6vw;font-weight:700;color:#143b2a;margin-bottom:.7vh}.strip-cards{grid-template-columns:repeat(var(--card-count,6),minmax(0,1fr));gap:.8vw}.strip-card{padding:1vh 1vw;display:flex;align-items:center;justify-content:space-between;gap:.7vw;border:2px solid #547b5a;background:#fff}.strip-card span{font-size:1.9vw;font-weight:700;color:#163c2a}.strip-card strong{font-size:4.2vw;color:#0c291b;line-height:1.05}.recently-changed{background:#e5ffac;border-color:#164d24}.demo-event{font-size:12px}
}
@media(min-width:0px){body .masthead,body.dense .masthead{height:5.5vh;min-height:40px}.brand{font-size:2vw}.brand-symbol{width:2.5vw;height:2.5vw;font-size:2.2vw;border-radius:8px}body .screen,body.dense .screen{padding-top:.6vh}body .queue-heading,body.dense .queue-heading{margin:0 0 .5vh;min-height:0}body h1,body.dense h1{font-size:1.5vw}body .queue-description,body.dense .queue-description{display:none}body .content td,body.dense .content td{height:5.6vh}body.showcase-mode .screen{padding-top:1vh}}
/* One shared cabinet heading; the table headers contain room numbers only. */
body .content tr:first-child td:not(:first-child):before{content:none!important;display:none!important}
@media(min-width:0px){body .content tr:first-child td,body.dense .content tr:first-child td{font-size:3.2vw}}
/* The left gutter labels queue positions, rather than acting as a cabinet. */
.queue-heading>div{display:flex;align-items:center;gap:24px}.current-visit-label{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:500;color:#284432;white-space:nowrap}.current-visit-label:before{content:'';width:14px;height:14px;border-radius:3px;background:#ffe1a5;border:1px solid #b39150}
body:not(.single) .content td:first-child{background:var(--paper)!important;border:0!important;box-shadow:none;color:#365141!important}body:not(.single) .content .rotating-position td:first-child{background:var(--paper)!important}body:not(.single) .content tr:first-child td:nth-child(2){border-top-left-radius:10px}
@media(min-width:0px){.current-visit-label{font-size:1.25vw}.current-visit-label:before{width:1vw;height:1vw}.queue-heading>div{gap:2vw}body:not(.single) .content td:first-child{background:#f8faf5!important}body:not(.single) .content .rotating-position td:first-child{background:#f8faf5!important}}
@media(max-width:560px){.queue-heading>div{gap:12px}.current-visit-label{font-size:11px}}
/* Five slow pulses over eight seconds on newly appearing in-room numbers; borders remain uniform. */
.called-number{display:inline-block;animation:called-number-pulse 1.6s ease-in-out 5}
@keyframes called-number-pulse{0%,100%{opacity:1}50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.called-number{animation:none;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}}
/* Active admission temporarily replaces the waiting number for that room. */
.strip-card{position:relative}.strip-card small{display:block;font-size:12px;color:#334f38}.strip-card.newly-called{background:#dcf7b1;border-color:#1f5d2a;animation:called-card-pulse 1.6s ease-in-out 5}.strip-card.newly-called small{color:#12451d;font-weight:700}
@keyframes called-card-pulse{0%,100%{background-color:#dcf7b1}50%{background-color:#fff}}
@media(min-width:0px){.strip-card{display:grid;grid-template-columns:1fr auto;gap:0 .7vw}.strip-card>span{grid-column:1;grid-row:1}.strip-card>strong{grid-column:2;grid-row:1/3}.strip-card>small{grid-column:1;grid-row:2;font-size:1.05vw;line-height:1.2}}
@media(prefers-reduced-motion:reduce){.strip-card.newly-called{animation:none}}
/* High-visibility call signal for ceiling-mounted TVs. */
.strip-card.newly-called{background:#70ff35;border-color:#174d12;animation:called-card-bright 1.6s ease-in-out 5}.strip-card.newly-called strong,.strip-card.newly-called>span,.strip-card.newly-called small{color:#102a0a}
@keyframes called-card-bright{0%,40%,100%{background-color:#70ff35}65%,85%{background-color:#fff}}
@media(prefers-reduced-motion:reduce){.strip-card.newly-called{animation:none;background:#70ff35}}
/* Explicitly started random demo; never active on the production page. */
body .simulated-call{animation:called-card-bright 1.6s ease-in-out 5!important;background:#70ff35;color:#102a0a!important}
@media(prefers-reduced-motion:reduce){body .simulated-call{animation:none!important}}
/* Last-ticket cells use the same visible grid as the main queue. */
body .footer td{border-right:1px solid #c1ccc1;border-bottom:1px solid #c1ccc1;border-top:1px solid #c1ccc1}body .footer td:last-child{border-right:0}body .footer td:first-child{border:0;background:#f8faf5}body .footer td:nth-child(2){border-left:1px solid #c1ccc1}
/* Incoming numbers flash the admission cell, never the last-ticket row. */
body .content tr:nth-child(2) td.admission-flash{background:#70ff35;color:#102a0a;animation:called-card-bright 1.6s ease-in-out 5}
.called-number{animation:none;opacity:1}
@media(prefers-reduced-motion:reduce){body .content tr:nth-child(2) td.admission-flash{animation:none}}
/* Changed last-ticket values also receive an eight-second green signal. */
body .footer td.last-number-flash{background:#70ff35;color:#102a0a;animation:called-card-bright 1.6s ease-in-out 5}
@media(prefers-reduced-motion:reduce){body .footer td.last-number-flash{animation:none}}
/* Unified display header: brand, table key, current time. */
body .masthead,body.dense .masthead{background:#f8faf5;border:0;padding:0 2vw;height:6vh;min-height:40px;gap:2vw;flex-wrap:nowrap}body .brand{font-size:2.1vw;letter-spacing:-.5px;white-space:nowrap}body .header-note{display:none!important}.table-key{display:flex;align-items:center;gap:2vw;margin-right:auto;font-size:1.55vw;color:#183b2a}.table-key>span{display:flex;align-items:center;gap:.55vw;white-space:nowrap}.table-key>span:before{content:'';display:block;width:1.25vw;height:1.25vw;border:1px solid #284934;border-radius:3px}.key-cabinets:before{background:#163c2e}.key-inside:before{background:#ffe1a5}.key-positions:before{background:#cddded}body .clock{margin-left:auto}body .clock time{font-size:2.7vw;font-weight:500}body .clock span{display:none}body .queue-heading,body.dense .queue-heading{display:contents}body .queue-heading>div{display:none}body #connection{display:none}body #connection.offline{display:block;font-size:1.3vw;color:#8b2d10;text-align:left;max-width:none;background:#fff0df;padding:8px 12px;margin-bottom:8px}body .screen,body.dense .screen{padding-top:0}body:not(.single) .content tr:nth-child(n+3) td:first-child,body:not(.single) .content .rotating-position td:first-child{background:#cddded!important;color:#142b42!important;border-bottom:1px solid #b3c6d8!important;font-weight:700}body.showcase-mode .table-key{display:none}
@media(max-width:1000px){body .brand{font-size:22px}.table-key{font-size:13px;gap:12px}.table-key>span:before{width:12px;height:12px}body .clock time{font-size:25px}}
@media(max-width:560px){.table-key{gap:7px;font-size:10px}body .brand{font-size:17px}body .clock time{font-size:20px}}
/* Hide the unused position slot without shifting cabinet-aligned values. */
body .last-section h2,body.dense .last-section h2{text-align:center}
body .last-section .board-scroll{border:0;background:transparent;border-radius:0}
body .footer td:first-child{visibility:hidden;background:transparent!important;border:0!important}
body .footer td:last-child{border-right:1px solid #c1ccc1}
/* Open gutter above queue positions: no empty corner cells or outer frame. */
body:not(.single) .queue-panel>.board-scroll{border:0;background:transparent;border-radius:0}
body:not(.single) .content tr:nth-child(-n+2) td:first-child{visibility:hidden;background:transparent!important;border:0!important}
body:not(.single) .content tr:first-child td:nth-child(2){border-top-left-radius:10px}
body:not(.single) .content tr:first-child td:last-child{border-top-right-radius:10px}
.strip-card>small:empty{display:none}
/* Header geography mirrors the queue gutter; brand stays centered. */
body .masthead,body.dense .masthead{position:relative;display:grid;grid-template-columns:1fr auto 1fr auto;column-gap:2vw}
body .masthead .table-key{display:contents}
body .masthead .key-positions{grid-column:1;grid-row:1;justify-self:start;display:flex;align-items:center;gap:.55vw;font-size:1.55vw}
body .masthead .brand{position:absolute;left:50%;transform:translateX(-50%);margin:0}
body .masthead .key-cabinets{grid-column:2;grid-row:1;margin-left:52vw}
body .masthead .key-inside{grid-column:3;grid-row:1;justify-self:end}
body .masthead .clock{grid-column:4;grid-row:1}
body .masthead .key-cabinets,body .masthead .key-inside{font-size:1.55vw}
body.showcase-mode .masthead .table-key{display:none}
body.showcase-mode .masthead .brand{position:static;transform:none;grid-column:1;justify-self:start}
@media(max-width:1000px){body .masthead .key-positions,body .masthead .key-cabinets,body .masthead .key-inside{font-size:13px}body .masthead .key-cabinets{margin-left:48vw}}
body .masthead,body.dense .masthead{grid-template-columns:1fr auto auto auto}
body .masthead .key-cabinets{margin-left:0}
/* TV view: no service footer; prominent room numbers in the call cards. */
body .screen-footer{display:none!important}
.strip-card>span>b{font-size:1.4em;font-weight:700}
@media(min-width:0px){body .strip-card>span{font-size:1.35vw}body .strip-card>span>b{font-size:2.8vw;line-height:1}body .strip-card>small{font-size:1.35vw;font-weight:700;line-height:1.1}body .strip-card.newly-called>span,body .strip-card.simulated-call>span{line-height:1}}
@media(min-width:0px){body .strip-card>span>b{font-size:3.5vw}body .strip-card>small{font-size:1.35vw;white-space:nowrap}}
/* Up to 18 waiting rooms: three rows of six, with space taken from the ad. */
@media(min-width:0px){body.many-cards .strip-card{min-height:10.5vh;padding:.7vh .8vw}body.many-cards .strip-card>strong{font-size:3.2vw}body.many-cards .strip-card>span{font-size:1.1vw}body.many-cards .strip-card>span>b{font-size:2.8vw}body.many-cards .strip-card>small{font-size:1.1vw}body.showcase-mode.many-cards .ad-copy h2{font-size:4vw;margin:1vh 0}body.showcase-mode.many-cards .ad-copy p{font-size:1.65vw;line-height:1.3}body.showcase-mode.many-cards .ad-action{padding-bottom:1.5vh}body.showcase-mode.many-cards .ad-action strong{font-size:1.7vw}body.showcase-mode.many-cards .art-word{font-size:5vw}body.showcase-mode.many-cards .ad-top{padding-top:1.4vh}}
body .website-ad{position:relative;background:#fff!important;overflow:hidden}body .website-ad>*:not(.patient-page-player){display:none!important}.patient-page-player{position:absolute;inset:0;display:flex;flex-direction:column;background:#fff;color:#173e2b}.patient-page-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px 22px;background:#e5ede2;font-size:20px;flex-shrink:0}.patient-page-bar strong{font-weight:600}.patient-page-count{white-space:nowrap;color:#3f594b}.patient-page-player iframe{border:0;width:100%;flex:1;min-height:0;pointer-events:none}.patient-page-state{position:absolute;inset:52px 0 0;background:#fff;display:grid;place-items:center;font-size:24px;padding:30px;text-align:center}.patient-page-state[hidden]{display:none}
/* Mode visibility must not depend on viewport width or browser zoom. */
body:not(.showcase-mode) .showcase-panel{display:none!important}
body.showcase-mode .queue-panel{display:none!important}
body .queue-note,body .last-section h2>span{display:none!important}

/* Баннер конструктора: макет фиксированного размера масштабируется в область рекламы */
body .showcase-panel.showcase-embed{background:transparent!important;border-radius:0;min-height:0;color:inherit;transition:none}
body.showcase-mode .showcase-panel.showcase-embed{display:flex!important;align-items:center;justify-content:center;flex:1 1 auto;min-height:0;min-width:0}
.showcase-stage{position:relative;overflow:hidden;flex-shrink:0;background:#fff;border-radius:8px;isolation:isolate}
/* Смена таблицы и списка через затухание (screen-modes.js, FADE) */
.screen{transition:opacity .4s ease}
body.view-fading .screen{opacity:0}
.showcase-stage iframe{position:absolute;left:0;top:0;border:0;display:block;transform-origin:0 0;pointer-events:none}
body.showcase-mode{height:100vh;overflow:hidden}
body.showcase-mode .screen{min-height:0}
body.showcase-mode.showcase-vertical .screen{flex-direction:row-reverse;align-items:stretch}
body.showcase-mode.showcase-vertical .showcase-panel.showcase-embed{flex:0 0 auto}
body.showcase-mode.showcase-vertical .persistent-queue{flex:1 1 auto;min-width:0;overflow:hidden}
body.showcase-mode.showcase-vertical .strip-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Скрытые кнопки в нижних углах */
.board-corner{position:fixed;bottom:0;z-index:1000;width:90px;height:90px;display:flex;align-items:flex-end;padding:10px}
.board-corner-left{left:0}
.board-corner-right{right:0;justify-content:flex-end}
.board-corner-button{opacity:0;pointer-events:none;transition:opacity .2s;white-space:nowrap;text-align:left;font:600 15px/1.3 Arial,sans-serif;color:#fff;background:#163c2e;border:0;border-radius:10px;padding:10px 14px;cursor:pointer;box-shadow:0 6px 18px #0003}
.board-corner-button small{display:block;font-weight:400;font-size:12px;opacity:.85}
.board-corner.visible .board-corner-button{opacity:1;pointer-events:auto}
/* Свежезаписанный в очередь номерок (screen-modes.js, JOIN_HOLD) */
body .content tr td.join-flash{background:#2f6fe4;color:#fff;font-weight:700}
