:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#051216;color:#ebf8f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 17% -6%,#12383c 0%,transparent 48%),#061519;color:#e7f5f4}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:#64e8d5}.header{height:80px;display:flex;align-items:center;gap:15px;padding:14px clamp(15px,3vw,42px);border-bottom:1px solid #27525a;background:#061920ea}.brand-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(140deg,#57e8d0,#16a5bd);color:#08373d;font-size:29px;font-weight:900;display:grid;place-items:center}.header h1{margin:0;font-size:20px;letter-spacing:.06em}.header h1 span{color:#5ce4d1}.header p{margin:2px 0 0;color:#91bfc0;font-size:10px;letter-spacing:.22em}.status-pill{margin-left:auto;background:#102d33;border:1px solid #275259;border-radius:22px;padding:10px 14px;display:flex;align-items:center;gap:8px;font-size:12px}.dot,.rec-dot{width:10px;height:10px;background:#4ce2b7;border-radius:50%;display:inline-block;box-shadow:0 0 12px #4ce2b7}.status-pill.offline .dot{background:#e6b36c;box-shadow:0 0 10px #e6b36c}.layout{max-width:1700px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:22px;padding:23px clamp(15px,3vw,42px)}.capture-view{aspect-ratio:16/10;background:#0a2328;border:1px solid #2b5960;border-radius:18px;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center}.capture-view video{width:100%;height:100%;object-fit:cover;display:none}.capture-view.active video{display:block}.camera-message{display:flex;align-items:center;flex-direction:column;gap:12px;max-width:310px;text-align:center;color:#99c3c4;padding:20px}.camera-message strong{color:#edfffc}.capture-view.active .camera-message{display:none}.camera-tag{position:absolute;right:12px;bottom:13px;font-size:11px;letter-spacing:.1em;color:#c8fcf3;background:#031418bd;padding:9px 10px;border-radius:8px}.rec-label{position:absolute;top:14px;left:15px;border-radius:9px;background:#2b1010db;padding:9px 12px;font-size:12px;font-weight:800;letter-spacing:.07em}.rec-label:not([hidden]){display:flex;gap:9px;align-items:center}.rec-dot{background:#ff4e62;box-shadow:0 0 9px #fa5261;animation:blink 1.2s infinite}@keyframes blink{50%{opacity:.25}}.record-actions{display:flex;gap:10px;margin-top:15px}.btn{border:0;border-radius:11px;padding:14px 18px;font-size:13px;font-weight:800;letter-spacing:.015em}.btn-primary{flex:1;background:linear-gradient(100deg,#37dfbf,#23b2c9);color:#08262b}.btn-stop{background:#5a2434;color:#ffe5e9;flex:.55}.btn-outline{background:#12343a;border:1px solid #3b6970;color:#e5f9f6;flex:1}.btn-link{border:0;background:transparent;color:#98c4c8;text-decoration:underline;font-size:12px;margin-top:15px;padding:0}.safety{background:#30291c;border:1px solid #615234;color:#f6dab0;border-radius:10px;margin-top:13px;padding:12px 14px;font-size:12px;line-height:1.5}.alerts{margin-top:12px;background:#112e34;border-left:3px solid #3ecdc0;padding:13px 14px;border-radius:7px;font-size:13px;color:#c6e4e2;line-height:1.5}.alerts.warn{background:#322817;border-color:#e4b268;color:#f6d9a2}.alerts.error{background:#3a1d27;border-color:#f37584;color:#fbdce1}.right-panel{display:flex;flex-direction:column;gap:15px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{background:#0d2930;border:1px solid #31545a;padding:17px 16px;border-radius:13px;min-height:105px}.stat label{display:block;color:#6cddd0;letter-spacing:.12em;font-size:10px;font-weight:800;margin-bottom:8px}.stat b{font-size:20px;display:block}.stat small{font-size:11px;color:#a8cdce;display:block;margin-top:5px}.map-card,.card{background:#0c252c;border:1px solid #2c525a;border-radius:13px;padding:17px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px;color:#6fe9d8;font-size:11px;letter-spacing:.07em;font-weight:800}.section-title h2{margin:0;color:#e6f8f5;font-size:17px;letter-spacing:0}.section-title span:last-child{color:#9bbfc1;font-weight:500;letter-spacing:0}.map-card canvas{width:100%;height:175px;background:linear-gradient(170deg,#102f34,#081f27);border-radius:10px;border:1px solid #23454e}.coord{font-size:12px;color:#9ec5c4;margin-top:8px;word-break:break-word}.card h2{font-size:17px;margin:0 0 14px}.settings label:not(.consent){display:block;font-size:12px;color:#d2e5e3;margin:14px 0 7px}.settings select{width:100%;border:1px solid #41636b;background:#071a20;color:#ecfffc;padding:13px 12px;border-radius:9px;font-size:14px}.settings input:not([type=checkbox]){width:100%;border:1px solid #41636b;background:#071a20;color:#ecfffc;padding:13px 12px;border-radius:9px;outline:none;font-size:14px}.settings input:focus{border-color:#51dec8}.settings small{display:block;color:#9fc6c7;line-height:1.5;margin-top:8px}.input-line{display:flex;gap:7px}.btn-secondary-small{border:1px solid #365e65;background:#1c3e46;color:#d3f8f1;border-radius:8px;padding:0 12px}.consent{display:flex;align-items:flex-start;gap:9px;color:#d1e1de;font-size:12px;line-height:1.5;margin-top:16px}.consent input{margin-top:2px;accent-color:#41dac6}.button-row{display:flex;gap:8px}.session-list{margin-top:15px;display:flex;flex-direction:column;gap:9px;max-height:260px;overflow:auto}.session-row{padding:11px;border:1px solid #325158;background:#0b1d24;border-radius:8px;display:grid;gap:7px}.session-row strong{font-size:12px;color:#ecf7f6;overflow-wrap:anywhere}.session-row small{color:#9fc9c7}.session-row .actions{display:flex;gap:7px;flex-wrap:wrap}.session-row .actions button{font-size:11px;padding:6px 8px;border:1px solid #416a6f;background:#193a42;color:#defff9;border-radius:6px}.muted{color:#89b7b8;font-size:12px}footer{text-align:center;color:#72999d;font-size:10px;letter-spacing:.08em;margin:20px auto 28px;padding:0 10px}.admin-layout{max-width:1100px;margin:25px auto;padding:0 22px}.admin-layout .card{margin-top:15px}.admin-layout input{background:#06181e;border:1px solid #426c70;color:#fff;border-radius:8px;padding:12px;width:min(500px,100%)}.admin-row{padding:13px;border-bottom:1px solid #305058}.admin-row p{color:#bad4d2;font-size:13px;margin:8px 0}.admin-row button{margin:5px 6px 0 0;border:1px solid #426a70;background:#193943;color:#e6fff9;padding:9px 12px;border-radius:7px;font-size:12px}@media(max-width:850px){.layout{grid-template-columns:1fr;padding:12px}.header{height:69px;padding:9px 13px}.header h1{font-size:15px}.header p{font-size:8px}.brand-icon{width:39px;height:39px}.capture-view{aspect-ratio:4/3}.stat b{font-size:17px}}@media(max-width:460px){.status-pill{font-size:10px;padding:7px 8px}.btn{font-size:12px;padding:14px 10px}.record-actions{gap:7px}.stats-grid{gap:8px}.stat{padding:12px}.stat label{font-size:9px}.stat b{font-size:16px}.button-row{flex-direction:column}}

[hidden]{display:none!important}

.trip-info{border-radius:10px;border:1px solid #34656c;background:#0c2b30;color:#bde6df;padding:11px 13px;margin-top:12px;font-size:13px;line-height:1.5}.settings summary{cursor:pointer;font-size:14px;font-weight:700;color:#dcfff6;list-style-position:inside}.settings[open] summary{margin-bottom:12px}.privacy-note{color:#9fc9c6;font-size:12px;line-height:1.5;margin-top:18px}.capture-panel .record-actions button{min-height:58px}.capture-view video{object-fit:contain;background:#000}

/* GISELE ROAD SCAN 1.7 — TELA SIMPLES DE GRAVAÇÃO EM TELA CHEIA */
.simple-recorder{background:#000;overflow:hidden;margin:0;color:#fff}
.simple-recorder .recorder-screen{width:100vw;height:100vh;height:100dvh;position:relative;overflow:hidden;background:#000}
.simple-recorder .capture-view{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;background:#050708;overflow:hidden}
.simple-recorder .capture-view video{height:100%;width:100%;object-fit:cover;background:#000}
.simple-recorder .camera-message{max-width:440px;padding:22px;gap:14px;color:#b0ced0}
.simple-recorder .camera-message strong{font-size:clamp(18px,2.3vw,25px);text-align:center}
.simple-recorder .camera-message span{font-size:14px;line-height:1.6}
.simple-recorder .camera-symbol{font-size:75px;line-height:1;color:#38d8bf}
.simple-recorder .top-overlay{z-index:5;position:absolute;left:0;right:0;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:calc(env(safe-area-inset-top,0px) + 12px) 17px 0;background:linear-gradient(#000b,transparent);pointer-events:none}
.simple-recorder .app-title{font-size:clamp(13px,1.7vw,19px);font-weight:900;letter-spacing:.06em;display:flex;align-items:center;gap:10px;text-shadow:0 2px 5px #000c;min-height:36px;white-space:nowrap}
.simple-recorder .app-title strong{color:#4de4d0}
.simple-recorder .app-mark{height:33px;width:33px;display:grid;place-items:center;border-radius:9px;color:#002c2d;background:#39d6c3;font-size:24px}
.simple-recorder .top-right{display:flex;align-items:center;gap:9px;pointer-events:auto}
.simple-recorder .status-pill{background:#0a2425ca;border:1px solid #326162b0;color:#f7ffff;margin:0;padding:9px 11px;font-size:11px;white-space:nowrap;min-height:35px;backdrop-filter:blur(10px)}
.simple-recorder .settings-popup{position:relative;z-index:8;pointer-events:auto}
.simple-recorder .settings-popup summary{list-style:none;cursor:pointer;border:1px solid #3d6667;background:#0a2425da;color:white;border-radius:50%;height:37px;width:37px;display:grid;place-items:center;font-size:23px;user-select:none}
.simple-recorder .settings-popup summary::-webkit-details-marker{display:none}
.simple-recorder .settings-inner{position:absolute;top:45px;right:0;width:min(325px,calc(100vw - 32px));max-height:70dvh;overflow:auto;background:#092329f3;box-shadow:0 8px 35px #000b;border:1px solid #407579;border-radius:15px;padding:17px;display:grid;gap:10px}
.simple-recorder .settings-inner strong{font-size:16px}
.simple-recorder .settings-inner label{font-size:12px;font-weight:700;color:#adf1e7;margin-top:5px}
.simple-recorder .settings-inner small{font-size:11px;color:#bbd6d1;line-height:1.45}
.simple-recorder .settings-inner input,.simple-recorder .settings-inner select{background:#061318;border:1px solid #4b7374;border-radius:7px;color:#fff;padding:11px;font-size:13px;width:100%;min-width:0}
.simple-recorder .settings-inner .input-line{display:flex;gap:6px}
.simple-recorder .settings-inner .input-line button{background:#17414a;color:#fff;border:1px solid #507a82;border-radius:8px;padding:0 8px;font-size:11px}
.simple-recorder .rec-label{position:absolute;z-index:3;top:calc(env(safe-area-inset-top,0px) + 64px);left:17px;border:1px solid #d33d46;background:#520d17e6;font-size:12px;padding:9px 12px;border-radius:9px}
.simple-recorder .bottom-overlay{z-index:4;position:absolute;left:0;right:0;bottom:0;padding:12px max(16px,env(safe-area-inset-left,0px)) calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#0009 8%,#000e 75%);max-width:100%;pointer-events:none}
.simple-recorder .bottom-overlay>*{pointer-events:auto}
.simple-recorder .hud-status{max-width:900px;margin:auto;display:grid;gap:6px;text-align:center}
.simple-recorder .hud-row{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;color:#b2f3e9;font-weight:800;font-size:12px}
.simple-recorder .hud-detail{font-size:12px;color:#d9edeb;line-height:1.3;min-height:14px}
.simple-recorder .alerts{margin:0 auto 6px;max-width:850px;max-height:54px;overflow:auto;padding:6px 10px;background:#062125ac;border:0;border-radius:7px;font-size:11px;color:#d4eeeb;line-height:1.4}
.simple-recorder .alerts.error{background:#621721da;color:#fff0f2}
.simple-recorder .alerts.warn{background:#514006d9;color:#fff0d0}
.simple-recorder .record-actions{display:flex;align-items:stretch;justify-content:center;gap:10px;margin:8px auto 0;max-width:900px}
.simple-recorder .record-actions .btn{margin:0;padding:18px 17px;min-height:62px;border:0;border-radius:12px;font-weight:900;font-size:clamp(13px,2.0vw,17px);letter-spacing:.02em;box-shadow:0 5px 18px #0007}
.simple-recorder .btn-primary{flex:1.1;background:#35ddc4;color:#042d2e}
.simple-recorder .btn-primary.is-recording{background:#ef4657;color:white}
.simple-recorder .btn-view{flex:1;background:#173d46e8;border:1px solid #52898e!important;color:#e8ffff}
.simple-recorder .screen-note{margin:9px auto 0;text-align:center;font-size:10px;color:#c7e3e1;max-width:900px}
.simple-recorder .gallery-overlay{position:fixed;z-index:30;inset:0;background:#061719;overflow-y:auto;color:#e9fdfa}
.simple-recorder .gallery-shell{max-width:1100px;margin:auto;padding:calc(12px + env(safe-area-inset-top,0px)) 15px calc(30px + env(safe-area-inset-bottom,0px))}
.simple-recorder .gallery-header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #315e63;padding-bottom:16px}
.simple-recorder .gallery-header h1{font-size:clamp(19px,3vw,28px);margin:0}
.simple-recorder .gallery-header button,.simple-recorder .gallery-player-top button{background:#173c42;border:1px solid #4b777b;color:#f7ffff;border-radius:8px;padding:11px 13px;cursor:pointer;font-weight:800}
.simple-recorder .gallery-feedback{border-radius:8px;background:#143036;color:#d6eeec;margin:15px 0 10px;padding:10px 12px;font-size:13px;line-height:1.5}
.simple-recorder .gallery-feedback.error{background:#5b2030;color:#fff}
.simple-recorder .gallery-section{margin:18px 0 24px}
.simple-recorder .gallery-section h2{font-size:18px;margin:0 0 13px}
.simple-recorder .gallery-section h2 span{font-size:12px;color:#abd2cf;margin-left:10px}
.simple-recorder .gallery-list{display:grid;gap:9px}
.simple-recorder .gallery-card{border-radius:11px;background:#0d282f;border:1px solid #2d5962;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.simple-recorder .gallery-card strong{display:block;font-size:14px;overflow-wrap:anywhere}
.simple-recorder .gallery-card small{display:block;color:#a6cdce;font-size:12px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.simple-recorder .gallery-card button,.simple-recorder .login-row button,.simple-recorder .gallery-player-bottom button{background:#2ed5bd;color:#022d2e;border:0;border-radius:9px;padding:12px 15px;white-space:nowrap;font-size:12px;font-weight:900;cursor:pointer}
.simple-recorder .gallery-card button:disabled{opacity:.6;cursor:wait}
.simple-recorder .gallery-empty{color:#a9cecb;font-size:13px;padding:10px 0}
.simple-recorder .admin-unlock{background:#0b2428;border:1px solid #355e62;border-radius:10px;padding:14px;margin-bottom:10px}
.simple-recorder .admin-unlock label{font-size:12px;color:#cdebe5;display:block;margin-bottom:8px}
.simple-recorder .login-row{display:flex;gap:8px}
.simple-recorder .login-row input{border-radius:8px;border:1px solid #538084;background:#04191e;color:#fff;padding:11px 12px;flex:1;min-width:0}
.simple-recorder .gallery-folder{color:#9fbdba;font-size:12px;line-height:1.7}
.simple-recorder .gallery-folder code{overflow-wrap:anywhere;color:#a3e7dc}
.simple-recorder .gallery-player{position:fixed;z-index:40;inset:0;background:#000f;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px}
.simple-recorder .gallery-player-top,.simple-recorder .gallery-player-bottom{width:min(100%,1050px);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;font-size:13px}
.simple-recorder .gallery-player video{width:min(100%,1050px);height:auto;max-height:73dvh;background:#000;box-shadow:0 5px 40px #000}
.simple-recorder .gallery-player-bottom span{color:#c6e6e3;font-size:12px}
@media(max-width:600px){
 .simple-recorder .top-overlay{padding-left:10px;padding-right:10px}
 .simple-recorder .app-title{font-size:12px;gap:6px;white-space:normal;max-width:50vw}
 .simple-recorder .app-mark{width:27px;height:27px;font-size:20px}
 .simple-recorder .top-right{gap:5px}
 .simple-recorder .status-pill{font-size:9px;padding:7px 8px}
 .simple-recorder .settings-popup summary{height:34px;width:34px}
 .simple-recorder .bottom-overlay{padding-left:10px;padding-right:10px}
 .simple-recorder .hud-row{gap:9px;font-size:10px}
 .simple-recorder .record-actions{gap:7px}
 .simple-recorder .record-actions .btn{padding:15px 8px;min-height:58px;font-size:12px}
 .simple-recorder .gallery-card{align-items:flex-start;flex-direction:column}
 .simple-recorder .gallery-card button{width:100%}
 .simple-recorder .gallery-player-bottom button{font-size:11px;padding:10px}
 .simple-recorder .login-row button{padding:11px 9px}
}
@media(orientation:landscape) and (max-height:520px){
 .simple-recorder .app-title{font-size:12px}
 .simple-recorder .camera-message{padding-top:10px;gap:6px}
 .simple-recorder .camera-symbol{font-size:35px}
 .simple-recorder .bottom-overlay{padding-top:4px;padding-bottom:4px}
 .simple-recorder .record-actions .btn{min-height:40px;padding:10px}
 .simple-recorder .alerts{max-height:24px}
 .simple-recorder .screen-note{display:none}
}
