:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f7f9ff;background:#09132b;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 76% -20%,#164385 0,transparent 38%),radial-gradient(circle at -12% 82%,#123865 0,transparent 36%),#09132b}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}.app-shell{max-width:1680px;margin:auto;min-height:100vh;padding:24px clamp(18px,3vw,50px) 40px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:74px;border-bottom:1px solid #ffffff1e;padding-bottom:18px}.brand{display:flex;align-items:center;gap:15px;min-width:0}.brand strong{display:block;font-size:clamp(20px,2.4vw,31px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-logo{width:64px;height:58px;object-fit:contain;border-radius:12px}.eyebrow{display:block;color:#7bd9eb;font-size:11px;letter-spacing:.19em;font-weight:800;margin-bottom:6px}.server-button,.text-button{border:0;color:#d8e8ff;background:#ffffff11;border-radius:12px;padding:11px 15px}.server-button:hover,.text-button:hover{background:#ffffff20}.server-button span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px;display:inline-block;vertical-align:middle}.card{border:1px solid #ffffff23;background:linear-gradient(145deg,#172a4cee,#101d36ed);border-radius:24px;box-shadow:0 16px 60px #050b1b40}.connection-panel{max-width:520px;margin:clamp(35px,7vh,90px) auto;padding:clamp(24px,4vw,40px)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3vw,38px);letter-spacing:-.04em;margin-bottom:10px}h2{font-size:22px;letter-spacing:-.025em}p{color:#b7c7de;line-height:1.5}label{font-weight:700;font-size:14px;display:block;margin:17px 0 8px}input:not([type=checkbox]):not([type=file]){display:block;width:100%;background:#07142b;border:1px solid #536482;color:#fff;border-radius:12px;padding:14px 15px;outline:0}input:focus-visible,button:focus-visible{outline:3px solid #75e8fb;outline-offset:2px}input[type=file]{max-width:100%;margin:5px 0 8px;color:#c5d5ea}.primary,.secondary{display:block;border-radius:13px;padding:15px 20px;font-weight:800;width:100%;margin-top:20px}.primary{border:0;background:#ffd05a;color:#19243a;box-shadow:0 9px 25px #ffc54726}.primary:hover:not(:disabled){background:#ffe08d}.secondary{border:1px solid #8297b7;background:#ffffff0e;color:#fff}.secondary:hover{background:#ffffff20}.hint{font-size:13px;color:#95a8c2;margin:10px 0 0}.error{color:#ffacac}.success{color:#b8ffca}.toast{position:fixed;z-index:5;bottom:24px;left:50%;transform:translateX(-50%);background:#ffcf73;color:#1d2940;border-radius:12px;padding:14px 20px;box-shadow:0 12px 28px #0007;min-width:min(430px,90vw);text-align:center;font-weight:700}.tv-stage{height:calc(100vh - 160px);min-height:640px;display:grid;grid-template-rows:minmax(350px,1fr) auto minmax(150px,.48fr);gap:15px;padding-top:18px}.current-call{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;overflow:hidden}.current-call:before{content:"";position:absolute;width:min(45vw,500px);height:min(45vw,500px);border-radius:50%;background:#ffffff07;box-shadow:0 0 0 90px #ffffff04,0 0 0 180px #ffffff02}.current-call>*{z-index:1}.current-call .eyebrow{font-size:clamp(12px,1.2vw,18px);color:#a4c9f3}.big-number{font-size:clamp(140px,24vw,390px);line-height:.98;letter-spacing:-.08em;font-weight:950;color:#ffd45f;text-shadow:0 12px 45px #eaa7403d;display:flex;align-items:center;gap:.17em}.big-number.empty{color:#60799e}.big-letter{font-size:.49em;letter-spacing:-.06em;color:#fff}.call-caption{font-size:clamp(16px,1.8vw,25px);font-weight:650;color:#cad8ef}.tv-meta{display:flex;justify-content:space-between;gap:12px;padding:0 5px;color:#a8c1df;font-weight:700;font-size:clamp(14px,1.3vw,20px)}.history{padding:22px 28px;overflow-y:auto}.section-title,.called-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.section-title h2{margin-bottom:15px}.section-title span{font-size:13px;color:#8fa8c5}.number-list{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.number-pill{display:inline-flex;align-items:center;justify-content:center;min-width:76px;border:1px solid #8ea6c45c;background:#d9ecff14;border-radius:100px;padding:10px 13px;font-size:21px;font-weight:900;color:#f4f8ff}.number-pill.highlight{background:#ffd45f;color:#17223a;border-color:#ffd45f}.muted{color:#8ea6c6}.phone-content,.admin-content{width:min(100%,660px);margin:35px auto}.phone-content .card,.admin-card{padding:clamp(22px,5vw,32px);margin-bottom:17px}.control-heading,.admin-heading{margin-bottom:20px}.control-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.control-heading h1{margin:0}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 15px}.mode-choice{text-align:left;background:#ffffff0a;color:#f7f9ff;border:2px solid #ffffff26;border-radius:17px;padding:18px;min-height:172px}.mode-choice:hover{background:#ffffff14}.mode-choice.selected{border-color:#ffd05a;background:#ffd05a18}.mode-icon{font-size:30px;color:#ffd05a;display:block;margin-bottom:16px}.mode-choice strong,.mode-choice small{display:block}.mode-choice strong{font-size:17px}.mode-choice small{color:#b8c8df;font-size:12px;line-height:1.4;margin-top:5px}.round-status{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#a8bdd7;font-weight:700}.badge{border-radius:40px;padding:7px 12px;background:#58cfdd20;color:#8ce8ef}.phone-latest{text-align:center;color:#ffd45f;font-weight:950;font-size:clamp(90px,23vw,145px);line-height:1.2;margin:22px 0 0}.center{text-align:center}.called-heading{margin:26px 0 13px}.called-heading h3{margin:0}.called-heading span{color:#91aaca}.phone-content .number-pill{min-width:60px;padding:7px 10px;font-size:16px}.alert{padding:14px 18px;border:1px solid currentColor;border-radius:12px}.admin-card a{display:block;color:#8ee9f3;padding:9px 0;font-weight:700}.logo-preview{display:flex;align-items:center;gap:20px;margin:18px 0}.logo-preview img{max-width:120px;max-height:80px;object-fit:contain}.checkbox{display:flex;gap:7px;align-items:center;font-weight:500;margin:0}@media(max-width:620px){.app-shell{padding:15px 16px 28px}.brand-logo{height:48px;width:48px}.brand strong{font-size:18px}.server-button span{max-width:90px}.mode-grid{gap:9px}.mode-choice{padding:14px;min-height:165px}.tv-stage{min-height:calc(100dvh - 126px);height:auto;grid-template-rows:minmax(320px,48dvh) auto minmax(150px,1fr)}.big-number{font-size:clamp(105px,28vw,180px)}.history{padding:16px}.section-title span{display:none}.number-pill{min-width:58px;font-size:16px;padding:8px}.phone-content,.admin-content{margin:22px auto}}@media(prefers-reduced-motion:no-preference){.big-number:not(.empty){animation:appear .4s ease-out}@keyframes appear{from{transform:scale(.9);opacity:.4}to{transform:scale(1);opacity:1}}}
.range-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.range-grid label{margin-top:8px}
.review-list{margin:12px 0 24px}.review-list .number-pill{background:#d9ecff1f}.review-list .number-pill.highlight{background:#ffd45f}

/* Painel da TV: último número e histórico juntos, sem rolagem da página. */
body.tv{height:100vh;height:100dvh;overflow:hidden}
body.tv .app-shell{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;padding:12px clamp(12px,2vw,32px)}
body.tv .topbar{flex:0 0 auto;min-height:54px;padding-bottom:9px}
body.tv #screenContent{flex:1;min-height:0;display:flex}
body.tv .tv-stage{width:100%;height:100%;min-height:0;padding-top:10px;gap:9px;grid-template-rows:minmax(0,1fr) auto minmax(180px,.68fr)}
body.tv .big-number{font-size:clamp(86px,min(21vw,26vh),330px);font-size:clamp(86px,min(21vw,26dvh),330px)}
body.tv .history{min-height:0;padding:12px 16px;overflow:hidden}
body.tv .section-title h2{font-size:clamp(15px,1.5vw,21px);margin-bottom:9px}
body.tv .history .number-list{display:grid;grid-template-columns:repeat(25,minmax(0,1fr));gap:4px}
body.tv .history .number-pill{min-width:0;min-height:29px;padding:2px 0;border-radius:8px;font-size:clamp(12px,1.25vw,18px)}
body.tv .history .number-list>.muted{grid-column:1/-1}
@media(max-width:900px){body.tv .history .number-list{grid-template-columns:repeat(20,minmax(0,1fr))}}
@media(max-width:620px){body.tv .history .number-list{grid-template-columns:repeat(12,minmax(0,1fr))}body.tv .tv-meta{font-size:12px}}
@media(max-height:560px){body.tv .tv-stage{grid-template-rows:minmax(0,1fr) auto minmax(125px,.68fr)}body.tv .history{overflow-y:auto}body.tv .history .number-pill{min-height:24px}}

.confirm-overlay{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:16px;background:#030916c9}
.confirm-card{width:min(100%,460px);padding:24px}
.confirm-card h2{margin-bottom:12px}
.confirm-card p{margin-bottom:0}
.confirm-actions{display:flex;gap:10px;margin-top:22px}
.confirm-actions button{flex:1;width:auto;margin-top:0}
.phone-content .control-heading{justify-content:flex-end}

/* Identidade clara HUB ONE LOCADORA nas telas da TV e do celular. */
body:is(.tv,.cel){color:#172b4d;background:radial-gradient(circle at 90% 0%,#dbeeff 0,transparent 35%),linear-gradient(160deg,#f4f8fe 0%,#eaf2fc 100%)}
body:is(.tv,.cel) .topbar{background:#fff;border:1px solid #dbe5f2;border-radius:18px;box-shadow:0 8px 26px #183b6812;padding:9px 18px}
body:is(.tv,.cel) .brand strong{color:#123965}
body:is(.tv,.cel) .eyebrow{color:#2672bd}
body:is(.tv,.cel) .card{background:#fff;border:1px solid #dce6f3;box-shadow:0 12px 35px #17416d13}
body:is(.tv,.cel) p{color:#536b8b}
body:is(.tv,.cel) .muted,body:is(.tv,.cel) .hint{color:#536b89}
body:is(.tv,.cel) .server-button,body:is(.tv,.cel) .text-button{background:#ecf5ff;border:1px solid #d7e7f8;color:#124e8a}
body:is(.tv,.cel) .server-button:hover,body:is(.tv,.cel) .text-button:hover{background:#d9ecff}
body:is(.tv,.cel) input:not([type=checkbox]):not([type=file]){background:#fff;border-color:#b7cbe0;color:#172b4d}
body:is(.tv,.cel) input::placeholder{color:#8195ad}
body:is(.tv,.cel) input[type=file]{color:#284b71}
body:is(.tv,.cel) input:focus-visible,body:is(.tv,.cel) button:focus-visible{outline-color:#1976d2}
body:is(.tv,.cel) .primary{background:linear-gradient(120deg,#174d95,#2586dc);color:#fff;box-shadow:0 9px 22px #176ac435}
body:is(.tv,.cel) .primary:hover:not(:disabled){background:linear-gradient(120deg,#123f7b,#1976cc)}
body:is(.tv,.cel) .secondary{background:#f3f8ff;border-color:#a6c4e3;color:#1b568d}
body:is(.tv,.cel) .secondary:hover{background:#e5f1ff}
body:is(.tv,.cel) .toast{background:#124e8a;color:#fff}
body:is(.tv,.cel) .error{color:#b32837}
body:is(.tv,.cel) .success{color:#16734b}
body.tv .current-call{background:linear-gradient(155deg,#fff 10%,#e9f5ff 100%)}
body.tv .current-call:before{background:#3b91dc12;box-shadow:0 0 0 90px #3b91dc08,0 0 0 180px #3b91dc05}
body.tv .current-call .eyebrow{color:#286aab}
body.tv .big-number{color:#1556a0;text-shadow:0 12px 36px #1556a026}
body.tv .big-number.empty{color:#91abc6}
body.tv .call-caption{color:#4c6b91}
body.tv .tv-meta{color:#315b87}
body.tv .section-title span{color:#536b89}
body:is(.tv,.cel) .number-pill{background:#eaf3ff;border-color:#c8ddf3;color:#164a7d}
body:is(.tv,.cel) .number-pill.highlight{background:#1666bb;border-color:#1666bb;color:#fff}
body.cel .phone-latest{color:#1556a0}
body.cel .mode-choice{background:#f7faff;border-color:#d5e4f3;color:#193f66}
body.cel .mode-choice:hover{background:#eaf4ff}
body.cel .mode-choice.selected{background:#e9f4ff;border-color:#247bd0}
body.cel .mode-icon{color:#1671c5}
body.cel .mode-choice small{color:#4d6786}
body.cel .round-status,body.cel .called-heading span{color:#547293}
body.cel .badge{background:#e3f3ff;color:#15548f}
body.cel .review-list .number-pill{background:#edf5ff}
body.cel .review-list .number-pill.highlight{background:#1666bb;color:#fff}
body.cel .confirm-overlay{background:#102e4dab}
