:root{color:#f8fafc;background:#101820;font-family:Segoe UI Variable,Segoe UI,Trebuchet MS,sans-serif}html,body{width:100%;min-height:100%;margin:0}html{height:100%}*{box-sizing:border-box}body{background:linear-gradient(135deg,#101820eb,#253843e0),#101820;width:100%;min-height:100dvh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.home-page{place-items:center;min-height:100vh;padding:32px;display:grid}.home-page section{width:min(760px,100%)}.eyebrow{color:#7dd3fc;letter-spacing:0;text-transform:uppercase;margin:0 0 10px;font-size:13px;font-weight:700}.home-page h1{margin:0 0 18px;font-size:56px;line-height:1}.home-page p{color:#dbeafe;margin:0 0 28px;font-size:20px;line-height:1.5}.primary-link{color:#111827;cursor:pointer;background:#facc15;border:0;border-radius:8px;align-items:center;min-height:48px;padding:0 18px;font-weight:800;display:inline-flex}.primary-link:disabled{cursor:wait;opacity:.72}.home-status{color:#e2e8f0;margin-top:16px;font-size:16px;font-weight:700}.player-shell{--tv-bg:#071117;--tv-bg-alt:#112430;--tv-surface:#071117d1;--tv-surface-strong:#0a131eeb;--tv-surface-soft:#0f172ab8;--tv-border:#ffffff24;--tv-text:#f8fafc;--tv-text-muted:#cbd5e1;--tv-accent:#7dd3fc;--tv-highlight:#facc15;--tv-shadow:0 18px 54px #02061747;color:var(--tv-text);width:100%;min-height:100dvh;padding:20px;position:relative}.player-shell-theme-light{--tv-bg:#e8f1f4;--tv-bg-alt:#d6e4ea;--tv-surface:#f4f9fadb;--tv-surface-strong:#fffffff0;--tv-surface-soft:#f8fcfde6;--tv-border:#26546824;--tv-text:#12384a;--tv-text-muted:#547181;--tv-accent:#0e7490;--tv-highlight:#c98c2d;--tv-shadow:0 18px 54px #5974822e}.player-shell-debug{background:radial-gradient(circle at top left, #7dd3fc1f, transparent 38%), linear-gradient(135deg, var(--tv-bg), var(--tv-bg-alt));overflow:auto}.player-shell-kiosk{background:radial-gradient(circle at top left, #7dd3fc24, transparent 32%), radial-gradient(circle at bottom right, #0ea5e91f, transparent 30%), linear-gradient(145deg, var(--tv-bg), var(--tv-bg-alt));grid-template-rows:auto minmax(0,1fr);width:100vw;height:100dvh;padding:0;display:grid;position:fixed;inset:0;overflow:hidden}.player-shell-kiosk .player-header{margin:18px 18px 0;padding:16px 20px}.player-shell-kiosk .player-grid{height:100%;min-height:0;padding:14px 18px 18px}.player-shell-kiosk .header-status{gap:8px;max-width:32px}.player-shell-kiosk .status-pill,.player-shell-kiosk .safe-mode,.player-shell-kiosk .confirmation-active,.player-shell-kiosk .voice-ready,.player-shell-kiosk .voice-unlock{min-height:34px;padding:0 12px;display:none}.player-shell-kiosk .history-panel{gap:12px}.player-shell-kiosk .call-history{padding:18px}.player-shell-kiosk .call-history ul{gap:10px}.player-shell-kiosk .call-history-name{font-size:clamp(16px,1.15vw,20px)}.player-shell-kiosk .section-title strong{margin-bottom:14px;font-size:20px}.player-header{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(135deg, #071117b3, #102430c2), var(--tv-surface-soft);border:1px solid var(--tv-border);box-shadow:var(--tv-shadow);border-radius:26px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;min-height:82px;padding:16px 20px;display:flex}.player-shell-theme-light .player-header{background:linear-gradient(135deg, #fffc, #ebf5f7eb), var(--tv-surface-soft)}.player-identity strong{letter-spacing:-.02em;font-size:clamp(25px,2.1vw,36px);display:block}.player-identity small{color:var(--tv-text-muted);font-size:14px;display:block}.player-header-main{flex:380px;align-items:center;gap:22px;min-width:min(460px,100%);display:flex}.player-brand{box-shadow:none;background:0 0;border:0;border-radius:20px;flex:none;justify-content:center;align-items:center;min-width:150px;min-height:96px;padding:0;display:inline-flex}.player-brand-logo{object-fit:contain;border-radius:8px;width:auto;max-width:min(340px,28vw);max-height:96px;display:block}.player-brand-text{color:var(--tv-accent);letter-spacing:.14em;text-transform:uppercase;max-width:220px;font-size:17px;font-weight:900}.player-identity{gap:4px;min-width:0;display:grid}.player-client-name{color:var(--tv-accent);letter-spacing:.16em;text-transform:uppercase;font-size:13px;font-weight:900}.player-identity strong{color:var(--tv-accent)}.player-identity-meta{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.player-identity .eyebrow{margin:0}.player-ip{background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:999px;padding:4px 10px}.header-status{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:8px;display:flex}.system-status-indicator{border:2px solid #ffffffb8;border-radius:999px;flex:none;width:16px;height:16px;display:inline-block;box-shadow:0 0 0 5px #ffffff0f,0 8px 18px #02061747}.system-status-ready{background:#22c55e}.system-status-attention{background:#ef4444}.player-shell-theme-light .system-status-indicator{border-color:#ffffffe6;box-shadow:0 0 0 5px #0f172a0f,0 8px 18px #0f172a29}.safe-mode{background:var(--tv-surface-soft);border:1px solid var(--tv-border);color:#fde68a;border-radius:999px;align-items:center;min-height:34px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex}.confirmation-active{background:var(--tv-highlight);color:#111827;text-transform:uppercase;border:1px solid #fff8c4b8;border-radius:999px;align-items:center;min-height:34px;padding:0 12px;font-size:12px;font-weight:900;display:inline-flex}.voice-unlock,.voice-ready{border:1px solid var(--tv-border);color:var(--tv-text);border-radius:999px;align-items:center;min-height:34px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.voice-unlock{background:var(--tv-highlight);color:#111827;cursor:pointer}.voice-unlock:hover,.voice-unlock:focus-visible{background:#fde047}.voice-unlock:disabled{cursor:not-allowed;opacity:.58}.voice-ready{background:#16a34a38}.player-shell-theme-light .voice-ready{background:#15803d1f}.player-shell-theme-light .safe-mode{color:#8a5b11;background:#c98c2d1f}.player-shell-theme-light .confirmation-active{color:#5b3a00}.demo-mode{color:#e0f2fe;background:#0e74906b;border:1px solid #7dd3fc5c;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:700}.status-pill{border:1px solid var(--tv-border);color:var(--tv-text);border-radius:999px;align-items:center;min-height:34px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex}.status-online{background:#16a34a59}.status-conectando{background:#eab30859}.status-offline,.status-semConfiguracao{background:#dc262661}.player-shell-theme-light .status-online{background:#0e74901f}.player-shell-theme-light .status-conectando{background:#c98c2d29}.player-shell-theme-light .status-offline,.player-shell-theme-light .status-semConfiguracao{background:#dc262624}.player-grid{grid-template-columns:minmax(0,1.72fr) minmax(320px,.82fr);gap:16px;height:calc(100dvh - 136px);display:grid}.debug-toolbar{background:var(--tv-surface-soft);border:1px solid var(--tv-border);box-shadow:var(--tv-shadow);border-radius:18px;gap:12px;margin-bottom:18px;padding:16px;display:grid}.debug-toolbar-group{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.demo-controls,.audio-test-controls,.speech-test-controls,.speech-config-controls{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.demo-controls button,.audio-test-controls button,.speech-test-controls button{color:#f8fafc;cursor:pointer;background:#0f172ad6;border:1px solid #ffffff3d;border-radius:8px;min-height:40px;padding:0 13px;font-size:14px;font-weight:800}.audio-test-controls button:first-child{background:#0891b29e}.speech-test-controls button:first-child{background:#0e7490c7}.speech-test-controls button:nth-child(2){background:#0284c7b8}.audio-test-controls button:disabled,.speech-test-controls button:disabled{cursor:not-allowed;opacity:.58}.speech-config-controls{border:1px solid var(--tv-border);background:#0f172a75;border-radius:10px;gap:8px;padding:8px}.speech-config-controls label{flex:110px;gap:4px;min-width:110px;display:grid}.speech-config-controls span{color:var(--tv-text-muted);text-transform:uppercase;font-size:11px;font-weight:800}.speech-config-controls input,.speech-config-controls select{border:1px solid var(--tv-border);color:#f8fafc;background:#020617d6;border-radius:8px;min-width:86px;min-height:38px;padding:0 10px}.player-shell-theme-light .speech-config-controls,.player-shell-theme-light .audio-test-status,.player-shell-theme-light .demo-mode,.player-shell-theme-light .audio-test-error,.player-shell-theme-light .dev-diagnostics,.player-shell-theme-light .voice-test-shell,.player-shell-theme-light .voice-test-status{color:#0f172a}.player-shell-theme-light .speech-config-controls input,.player-shell-theme-light .speech-config-controls select,.player-shell-theme-light .voice-test-controls input,.player-shell-theme-light .voice-test-controls select{color:#0f172a;background:#ffffffeb}.speech-voice-select select{min-width:min(320px,58vw)}.speech-voice-select{flex:2 260px}.audio-test-status{color:#e2e8f0;background:#0f172ab8;border:1px solid #ffffff2e;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:800}.audio-test-status-playing{color:#ecfeff;background:#0891b275}.audio-test-status-success{color:#dcfce7;background:#16a34a6b}.audio-test-status-error,.audio-test-status-locked,.audio-test-status-timeout{color:#fee2e2;background:#dc26266b}.audio-call-test-active{color:#fef3c7;text-transform:uppercase;background:#d9770685;border:1px solid #fde68a5c;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:900}.audio-test-error{color:#fee2e2;text-overflow:ellipsis;white-space:nowrap;background:#7f1d1db8;border:1px solid #fecaca4d;border-radius:8px;max-width:min(360px,100%);padding:8px 10px;font-size:13px;font-weight:700;overflow:hidden}.demo-controls button:hover,.demo-controls button:focus-visible,.audio-test-controls button:hover,.audio-test-controls button:focus-visible,.speech-test-controls button:hover,.speech-test-controls button:focus-visible{background:#0e7490d6}.media-panel{background:var(--tv-surface-strong);border:1px solid var(--tv-border);box-shadow:var(--tv-shadow);border-radius:28px;min-height:0;position:relative;overflow:hidden}.media-player{background:radial-gradient(circle at top left, #7dd3fc2e, transparent 34%), linear-gradient(155deg, #082f4952, #0f172af5), var(--tv-bg);width:100%;height:100%;min-height:100%;position:relative;overflow:hidden}.player-shell-theme-light .media-player{background:radial-gradient(circle at top left, #0e74901f, transparent 36%), linear-gradient(155deg, #d2e5ecb8, #e9f3f6f5), var(--tv-bg)}.media-player:before{content:"";pointer-events:none;z-index:0;background:linear-gradient(135deg,#ffffff0d,#0000 42%),radial-gradient(circle at 100% 100%,#0ea5e929,#0000 32%);position:absolute;inset:0}.media-player-call-active .media-stage{filter:brightness(.68)}.media-stage-shell{z-index:1;justify-content:center;align-items:center;width:100%;height:100%;padding:clamp(8px,1vw,14px);display:flex;position:relative}.media-stage-shell-video,.media-stage-shell-hero{align-items:stretch}.media-stage{object-fit:contain;width:100%;height:100%;max-height:100%;transition:filter .16s;display:block}.media-stage-shell-video .media-stage,.media-stage-hero{object-fit:cover}.media-stage-hero{filter:saturate(1.03)contrast(1.02)}.media-player-empty,.media-fallback{justify-content:start;display:grid}.media-player-empty{height:100%;position:relative}.media-fallback{z-index:2;align-content:end;padding:clamp(28px,4vw,54px);position:absolute;inset:0}.media-fallback-institutional{align-content:end;justify-items:start}.media-fallback-overlay{background:#07111780;border:1px solid #ffffff1f;border-radius:24px;max-width:min(640px,100% - 48px);padding:24px;inset:auto auto 24px 24px}.player-shell-theme-light .media-fallback-overlay{background:#ffffffbd;border-color:#12384a1a}.media-fallback-badge{color:var(--tv-accent);letter-spacing:.14em;text-transform:uppercase;background:#0f172ad6;border:1px solid #ffffff24;border-radius:999px;min-height:34px;margin-bottom:18px;padding:0 14px;font-size:12px;font-weight:900;display:inline-flex}.media-fallback-error-state .media-fallback-badge{color:#fecaca}.media-fallback strong{margin-bottom:14px;font-size:clamp(30px,3.6vw,56px);line-height:1.04;display:block}.media-fallback p{color:#dbeafe;max-width:38ch;margin:0;font-size:19px;line-height:1.42}.player-shell-theme-light .media-fallback-badge{background:#ffffffeb;border-color:#0f172a1f}.player-shell-theme-light .media-fallback p,.player-shell-theme-light .media-caption span{color:#334155}.media-caption{pointer-events:none;z-index:2;background:linear-gradient(#0000,#020617e0);gap:5px;padding:68px 30px 24px;display:grid;position:absolute;bottom:0;left:0;right:0}.media-caption span{color:#bae6fd;text-transform:uppercase;font-size:13px;font-weight:800}.media-caption strong{font-size:clamp(24px,2vw,34px)}.player-shell-theme-light .media-caption{background:linear-gradient(#0000,#ffffffeb)}.player-shell-theme-light .media-caption strong{color:#0f172a}.history-panel{grid-template-rows:1fr auto;gap:12px;min-height:0;display:grid}.call-history,.offline-state{background:var(--tv-surface-soft);border:1px solid var(--tv-border);box-shadow:var(--tv-shadow);border-radius:18px}.call-history{grid-template-rows:auto minmax(0,1fr);min-height:0;padding:18px;display:grid;overflow:hidden}.section-title{gap:6px;display:grid}.section-title strong{margin-bottom:12px;font-size:18px;display:block}.section-title .eyebrow{color:var(--tv-text-muted);letter-spacing:.14em;margin:0;font-size:11px}.call-history ul{align-content:start;gap:10px;margin:0;padding:0;list-style:none;display:grid;overflow:hidden}.call-history li{background:#ffffff0d;border:1px solid #ffffff14;border-radius:16px;gap:10px;padding:14px 16px;display:grid}.player-shell-theme-light .call-history li{background:#ffffffd1;border-color:#26546814}.call-history-main{align-items:start;gap:8px;display:grid}.call-history-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:clamp(18px,1.2vw,22px);font-weight:800;line-height:1.1;display:-webkit-box;overflow:hidden}.call-history-room{color:var(--tv-text);background:#0ea5e929;border:1px solid #7dd3fc33;border-radius:999px;justify-self:start;align-items:center;min-height:34px;padding:0 14px;font-size:15px;font-weight:900;display:inline-flex}.player-shell-theme-light .call-history-room{color:var(--tv-text);background:#0e749014}.call-history-meta{flex-wrap:wrap;gap:8px;display:flex}.call-history-chip{color:#fde68a;background:#facc1524;border-radius:999px;align-items:center;min-height:28px;padding:0 10px;font-size:12px;font-weight:800;display:inline-flex}.player-shell-theme-light .call-history-chip{color:#8a5b11;background:#c98c2d1f}.call-history-chip-priority{color:#fecaca;background:#ef444424}.player-shell-theme-light .call-history-chip-priority{color:#b42318}.history-empty{border:1px dashed var(--tv-border);color:var(--tv-text-muted);text-align:center;background:#ffffff0a;border-radius:16px;align-self:center;margin:0;padding:18px;font-size:16px;line-height:1.45}.offline-state{align-items:center;gap:10px;min-height:64px;padding:14px 16px;display:flex}.offline-state p{margin:0}.status-dot{border-radius:999px;width:12px;height:12px;display:inline-block}.status-dot.status-online{background:#22c55e}.status-dot.status-conectando{background:#facc15}.status-dot.status-offline,.status-dot.status-semConfiguracao{background:#ef4444}.call-overlay{pointer-events:none;z-index:4;position:absolute;bottom:26px;left:28px;right:28px}.dev-diagnostics{color:#cbd5e1;pointer-events:none;z-index:2;background:#0f172aa8;border:1px solid #ffffff1f;border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:start;gap:6px 10px;max-width:calc(100% - 28px);padding:7px 10px;font-size:12px;display:grid;position:absolute;bottom:14px;left:14px;right:14px}.dev-diagnostics span{text-overflow:ellipsis;white-space:normal;max-width:none;overflow:hidden}.voice-test-page{place-items:center;min-height:100vh;padding:24px;display:grid}.voice-test-shell{background:#0f172ad6;border:1px solid #ffffff24;border-radius:16px;gap:18px;width:min(920px,100%);padding:24px;display:grid}.voice-test-copy h1{margin:0 0 12px;font-size:clamp(34px,5vw,52px)}.voice-test-copy p{color:#dbeafe;max-width:60ch;margin:0;line-height:1.5}.voice-test-actions{flex-wrap:wrap;gap:10px;display:flex}.voice-test-button:disabled{cursor:not-allowed;opacity:.58}.voice-test-controls{grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(120px,.8fr));gap:12px;display:grid}.voice-test-controls label{gap:6px;display:grid}.voice-test-controls span{color:#cbd5e1;text-transform:uppercase;font-size:12px;font-weight:800}.voice-test-controls input,.voice-test-controls select{color:#f8fafc;background:#020617d6;border:1px solid #ffffff29;border-radius:8px;min-height:42px;padding:0 12px}.voice-test-status{background:#0206178a;border:1px solid #ffffff1f;border-radius:12px;gap:8px;padding:16px;display:grid}.voice-test-status span{color:#e2e8f0;overflow-wrap:anywhere}.call-card{color:#fff;background:linear-gradient(135deg,#123a56 0%,#0e5f7a 100%);border:1px solid #bae6fd57;border-radius:24px;gap:24px;width:min(1280px,100%);margin-left:auto;padding:30px 34px;animation:.22s ease-out call-overlay-enter;display:grid;box-shadow:0 24px 60px #0206176b,inset 0 0 0 1px #ffffff14}.call-card-with-photo{grid-template-columns:minmax(180px,16vw) minmax(0,1fr)}.call-card-priority{box-shadow:0 24px 70px #0206177a,inset 0 0 0 1px #f59e0b47}.call-copy{min-width:0}.call-copy-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.call-photo-frame{background:#02061738;border:1px solid #bae6fd2e;border-radius:8px;justify-content:center;align-items:center;min-height:180px;display:flex;overflow:hidden}.call-photo{object-fit:contain;width:100%;max-width:100%;height:auto;display:block}.priority{color:#1f2937;text-transform:uppercase;background:#f59e0b;border-radius:999px;padding:8px 14px;font-size:16px;font-weight:900;display:inline-block;box-shadow:0 8px 20px #78350f3d}.call-label{color:#bae6fd;margin:0;font-size:18px;font-weight:800}.call-card h2{overflow-wrap:anywhere;text-wrap:balance;margin:0 0 20px;line-height:.98}.call-details{grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);gap:14px;display:grid}.call-detail{color:#fff;background:#0f172ae0;border:1px solid #bae6fd2e;border-radius:18px;align-items:start;gap:8px;min-height:92px;padding:16px 18px;display:grid}.call-detail-label{color:#bfdbfe;letter-spacing:.08em;text-transform:uppercase;font-size:13px;font-weight:800}.call-detail strong{font-size:clamp(28px,2vw,40px);line-height:1}.call-detail-primary{background:linear-gradient(135deg,#1e88b5 0%,#0f6e97 100%)}.call-detail-secondary{background:#0f172ad6}@keyframes call-overlay-enter{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@media (max-width:900px){.player-header{flex-direction:column;align-items:flex-start;padding:14px 16px}.player-header-main{align-items:flex-start;width:100%;min-width:0}.header-status{justify-content:flex-start;width:100%}.player-shell-kiosk .header-status{justify-content:flex-end;width:auto}.player-grid{grid-template-columns:1fr;height:auto;min-height:calc(100dvh - 96px)}.player-shell-kiosk .player-header,.player-shell-kiosk .player-grid{margin-left:16px;margin-right:16px}.player-shell-kiosk .player-grid{padding-bottom:16px;padding-left:0;padding-right:0}.debug-toolbar-group{flex-direction:column;align-items:stretch}.debug-toolbar-group>*{width:100%}.media-panel{min-height:360px}.media-fallback-overlay{max-width:none;padding:18px;inset:auto 16px 16px}.call-overlay{bottom:20px;left:20px;right:20px}.call-card-with-photo,.call-details{grid-template-columns:1fr}.speech-config-controls,.speech-test-controls,.audio-test-controls,.demo-controls{width:100%}.player-brand{min-width:96px}.player-brand-logo{max-width:min(150px,44vw)}.speech-voice-select select{width:100%;min-width:0}.voice-test-shell{padding:20px}.voice-test-controls{grid-template-columns:1fr}}
