
:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#e8f1fb;background:#07111f;font-size:16px;--line:#29445b;--muted:#b0c0d0;--cyan:#64e4e8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 75% -10%,#16334b 0,transparent 42%),#07111f}button,input,select{font:inherit}button,.button-like,select{border:1px solid #45617a;background:#13263a;color:#f1f6fb;border-radius:10px;padding:.75rem 1rem;cursor:pointer;min-height:44px}button:hover,.button-like:hover{border-color:var(--cyan)}button:disabled{opacity:.48;cursor:not-allowed}.primary{background:linear-gradient(110deg,#1e777e,#235c79);font-weight:700}.topbar{min-height:76px;padding:12px clamp(18px,5vw,70px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1a3045;position:sticky;top:0;z-index:5;background:#07111fee;backdrop-filter:blur(16px)}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-weight:800;letter-spacing:.12em}.brand small{display:block;font-size:.58rem;color:var(--muted);letter-spacing:.18em;margin-top:4px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--cyan);border-radius:13px;color:var(--cyan);font-size:1.4rem}.top-actions{display:flex;align-items:center;gap:14px}.status,.pill{font-size:.7rem;letter-spacing:.08em;color:var(--cyan)}.icon-button{font-size:1.3rem}.layout{max-width:1240px;margin:auto;padding:45px clamp(16px,4vw,48px) 70px}.intro{margin:12px 0 32px;max-width:760px}.eyebrow{font-size:.68rem;letter-spacing:.2em;color:var(--cyan);font-weight:800}.intro h1{font-size:clamp(2.5rem,6vw,4.6rem);line-height:1.02;letter-spacing:-.055em;margin:14px 0}.intro p,.muted{color:var(--muted);line-height:1.65}.work-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.card{background:linear-gradient(145deg,#102238ed,#0b1828ed);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 16px 45px #0002}.card-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.card h2{font-size:1.25rem;margin:5px 0}.viewer{min-height:310px;display:grid;place-items:center;overflow:hidden;background:#0b1725;border:1px solid #34536c;border-radius:13px}.viewer img,.viewer video{max-width:100%;max-height:440px;object-fit:contain}.empty-state{display:grid;justify-items:center;gap:10px;padding:25px;text-align:center;color:var(--muted)}.empty-state strong{color:#e8f1fb}.scan-icon{font-size:3rem;color:var(--cyan)}.controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.button-like{display:inline-flex;align-items:center}.model-note,.small{font-size:.8rem;color:var(--muted);line-height:1.6;margin-top:14px}.result-block{border-top:1px solid var(--line);padding:15px 0}.result-block h3,.inline-head h3{font-size:.92rem;margin:0 0 9px}.detection-list{padding-left:20px;margin:0;line-height:1.9}.inline-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.ocr-output{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}.assistant-card,.profile-card{margin-top:18px}.question-form{display:flex;gap:10px}.question-form input{flex:1;min-width:0;background:#081522;border:1px solid #45617a;border-radius:10px;padding:.8rem 1rem;color:white}.answer{padding:14px;border-radius:10px;background:#081522;border:1px solid #29445c;margin-top:12px;line-height:1.7;overflow-wrap:anywhere}.voice-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.voice-controls span{font-size:.8rem}.profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.profile-grid label{display:grid;gap:8px;font-size:.88rem;color:var(--muted)}select{width:100%}.check-label{display:flex!important;align-items:center;gap:10px!important;color:#f1f6fb!important}.check-label input{width:20px;height:20px;accent-color:#64e4e8;flex:0 0 auto}.settings-panel{position:fixed;z-index:10;right:20px;top:88px;width:min(360px,calc(100vw - 40px));padding:20px;background:#102238f7;border:1px solid #55758f;border-radius:16px;box-shadow:0 20px 70px #0009}.settings-panel label{margin:16px 0}footer{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:20px clamp(18px,5vw,70px);border-top:1px solid #1a3045;color:var(--muted);font-size:.76rem}.skip-link{position:absolute;left:-999px;top:8px;background:white;color:black;padding:10px;z-index:20}.skip-link:focus{left:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:3px solid #b4f18b!important;outline-offset:3px}body.high-contrast{background:#000;color:#fff;--muted:#fff;--line:#fff}body.high-contrast .card,body.high-contrast .answer,body.high-contrast input,body.high-contrast select,body.high-contrast button{background:#000;color:#fff;border:2px solid #fff}body.keyboard-mode :focus-visible{outline:4px solid #ffe66d!important;outline-offset:4px}body.large-targets button,body.large-targets .button-like,body.large-targets select{min-height:56px;padding:1rem 1.2rem}body.visual-status .status,body.visual-status .answer{border:2px solid #64e4e8;padding:8px;border-radius:8px}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(max-width:850px){.work-grid{grid-template-columns:1fr}.profile-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.layout{padding-top:28px}.card{padding:16px}.viewer{min-height:240px}.question-form{flex-direction:column}.profile-grid{grid-template-columns:1fr 1fr}.status{max-width:110px;text-align:right;font-size:.58rem}.topbar{gap:10px}.brand{letter-spacing:.06em}.brand small{letter-spacing:.1em}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
#accessibility-results{max-height:220px;overflow:auto}#accessibility-scan-status{margin:.5rem 0}.profile-screen-reader .answer{border-width:2px}.profile-hearing .voice-controls span,.profile-hearing #voice-status{display:inline-block;padding:8px;border:2px solid var(--cyan);border-radius:8px}.profile-motor .question-form input{min-height:56px}
/* SYNVORA motion system: persistent ambient light, stable sticky navigation and staged panel reveals. */
:root{scroll-padding-top:92px;--glow:rgba(71,224,235,.22);--violet-glow:rgba(119,93,255,.16)}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{position:relative;isolation:isolate;background:radial-gradient(ellipse at 15% 15%,rgba(26,93,127,.34),transparent 38%),radial-gradient(ellipse at 88% 42%,rgba(52,37,116,.28),transparent 38%),#050d19}
body:before,body:after{content:"";position:fixed;inset:-18%;z-index:-1;pointer-events:none;will-change:transform,opacity}
body:before{background:radial-gradient(circle at 22% 30%,rgba(54,211,226,.15),transparent 24%),radial-gradient(circle at 78% 62%,rgba(110,85,255,.13),transparent 28%),radial-gradient(circle at 52% 90%,rgba(20,136,160,.12),transparent 24%);filter:blur(28px);animation:ambient-drift 19s ease-in-out infinite alternate}
body:after{inset:0;background:linear-gradient(115deg,transparent 0%,rgba(110,231,239,.025) 48%,transparent 72%);background-size:220% 100%;animation:ambient-sweep 16s linear infinite}
@keyframes ambient-drift{0%{transform:translate3d(-2%,0,0) scale(.96);opacity:.65}100%{transform:translate3d(2%,-1.5%,0) scale(1.06);opacity:1}}
@keyframes ambient-sweep{0%{background-position:120% 0}100%{background-position:-120% 0}}
.topbar{position:sticky;top:0;z-index:100;min-height:76px;background:rgba(4,12,23,.9);border-bottom:1px solid rgba(100,228,232,.25);box-shadow:0 8px 30px rgba(0,0,0,.24);backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%)}
.brand-mark{box-shadow:0 0 22px rgba(100,228,232,.2),inset 0 0 18px rgba(100,228,232,.08);animation:brand-pulse 4s ease-in-out infinite}
@keyframes brand-pulse{50%{box-shadow:0 0 30px rgba(100,228,232,.42),inset 0 0 20px rgba(100,228,232,.15)}}
.card{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(17,37,59,.94),rgba(7,20,35,.94));border-color:rgba(94,153,184,.38);box-shadow:0 18px 52px rgba(0,0,0,.28),0 0 0 1px rgba(100,228,232,.025),inset 0 1px rgba(255,255,255,.035);transition:transform .45s cubic-bezier(.2,.75,.25,1),border-color .35s ease,box-shadow .35s ease}
.card:before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(100,228,232,.65),rgba(151,122,255,.5),transparent);opacity:.7;pointer-events:none}
.card:hover{transform:translateY(-3px);border-color:rgba(100,228,232,.58);box-shadow:0 24px 64px rgba(0,0,0,.34),0 0 28px rgba(65,208,222,.08)}
.reveal-panel{opacity:0;transform:translate3d(0,54px,0) scale(.965) rotateX(3deg);transform-origin:50% 100%;filter:blur(5px);transition:opacity .75s ease,transform .85s cubic-bezier(.16,1,.3,1),filter .75s ease;transition-delay:var(--reveal-delay,0ms);will-change:opacity,transform}
.reveal-panel.is-visible{opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0);filter:blur(0);will-change:auto}
.intro.reveal-panel{transform:translate3d(-24px,32px,0);transform-origin:left center}
.intro.reveal-panel.is-visible{transform:translate3d(0,0,0)}
button,.button-like,select{transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}
button:not(:disabled):active,.button-like:active{transform:scale(.975)}
button:not(:disabled):hover,.button-like:hover{box-shadow:0 0 20px rgba(100,228,232,.12)}
button:disabled{pointer-events:none}
.viewer{position:relative;box-shadow:inset 0 0 32px rgba(61,180,200,.06)}
.viewer:after{content:"";position:absolute;inset:0;pointer-events:none;border:1px solid rgba(100,228,232,.12);border-radius:inherit}
.result-block{scroll-margin-top:100px}
.settings-panel{z-index:120;max-height:calc(100dvh - 108px);overflow:auto;overscroll-behavior:contain;backdrop-filter:blur(24px);animation:panel-in .28s cubic-bezier(.2,.8,.2,1)}
@keyframes panel-in{from{opacity:0;transform:translate3d(18px,-8px,0) scale(.98)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
.status{max-width:min(46vw,320px);white-space:normal;text-align:right;line-height:1.35}
:focus-visible{scroll-margin-top:110px}
@media(max-width:520px){.topbar{min-height:68px;padding:10px 14px}.top-actions{gap:8px}.status{max-width:105px}.brand-mark{width:38px;height:38px}.reveal-panel{transform:translate3d(0,30px,0) scale(.98)}}
@media(prefers-reduced-motion:reduce){body:before,body:after,.brand-mark{animation:none!important}.reveal-panel,.reveal-panel.is-visible{opacity:1;transform:none;filter:none;transition:none;will-change:auto}.card,button,.button-like,select{transition:none!important}}
body.reduce-motion:before,body.reduce-motion:after{animation:none!important}
body.reduce-motion .reveal-panel,body.reduce-motion .reveal-panel.is-visible{opacity:1;transform:none;filter:none;transition:none}

/* Stage 2 CivicLens and continuous live-camera awareness */
.route-viewer{position:relative;min-height:260px;max-height:560px;aspect-ratio:4/3;background:#030914;border:1px solid rgba(100,228,232,.35);border-radius:14px;overflow:hidden;display:grid;place-items:center}
.route-viewer video,.route-viewer canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.route-viewer canvas{pointer-events:none}.route-empty{position:relative;z-index:1;color:var(--muted);padding:20px;text-align:center}
.route-voice{display:flex!important;align-items:center;gap:8px;padding:0 8px}
.civic-toolbar{display:grid;grid-template-columns:auto minmax(140px,1fr) auto auto auto auto;gap:9px;align-items:center;margin:16px 0}
.civic-toolbar input{min-width:0;background:#081522;border:1px solid #45617a;border-radius:10px;padding:.8rem;color:white}
.civic-toolbar label{font-size:.8rem;color:var(--muted)}
.civic-filters{display:flex;flex-wrap:wrap;gap:10px 16px;padding:12px 0;color:var(--muted);font-size:.82rem}
.civic-filters label{display:flex;align-items:center;gap:6px}.civic-filters input{accent-color:#64e4e8;width:17px;height:17px}
.civic-map{height:390px;border:1px solid #34536c;border-radius:14px;overflow:hidden;background:#0a1827;z-index:1}
.civic-map .leaflet-container{height:100%;font:inherit}.map-fallback{padding:28px;color:var(--muted)}
.civic-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 2px;color:var(--muted);font-size:.74rem}
.civic-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.civic-results{list-style:none;padding:0;margin:0;display:grid;gap:8px;max-height:300px;overflow:auto}
.civic-results li{display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:10px;border:1px solid rgba(100,228,232,.16);border-radius:10px;background:#071522}
.civic-results li strong{font-size:.88rem}.civic-results li span{grid-column:1;color:var(--muted);font-size:.72rem;overflow-wrap:anywhere}
.civic-results li button{grid-column:2;grid-row:1/3;padding:.45rem .7rem;min-height:34px}
.civic-report{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.civic-report h3{margin:8px 0}
.civic-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.civic-report-grid label{display:grid;gap:7px;color:var(--muted);font-size:.85rem}
.civic-report-grid select,.civic-report-grid textarea{width:100%;background:#081522;color:#f1f6fb;border:1px solid #45617a;border-radius:10px;padding:.75rem}
.civic-notes{grid-column:1/-1}.civic-report-grid textarea{resize:vertical}
@media(max-width:900px){.civic-toolbar{grid-template-columns:1fr 1fr}.civic-toolbar label{grid-column:auto}.civic-columns{grid-template-columns:1fr}}
@media(max-width:560px){.civic-toolbar{grid-template-columns:1fr 1fr}.civic-toolbar input{grid-column:1/-1}.civic-toolbar button{width:100%}.civic-map{height:320px}.civic-report-grid{grid-template-columns:1fr}.civic-notes{grid-column:auto}.route-viewer{min-height:220px}.civic-results li{grid-template-columns:1fr auto}}
@media(prefers-reduced-motion:reduce){.route-viewer *{animation:none!important;transition:none!important}}
body.high-contrast .civic-results li,body.high-contrast .route-viewer{background:#000;border:2px solid #fff}


.civic-ai,.civic-dashboard,.civic-backend{margin:18px 0;background:linear-gradient(145deg,rgba(15,36,57,.96),rgba(6,18,32,.96));border:1px solid rgba(100,228,232,.24);border-radius:15px;padding:18px;box-shadow:0 0 28px rgba(100,228,232,.06)}
.civic-ai-view{position:relative;min-height:230px;background:#030914;border:1px solid #31536c;border-radius:12px;overflow:hidden;display:grid;place-items:center}
.civic-ai-view video{width:100%;max-height:400px;object-fit:contain}.civic-ai-view canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.civic-ai-view #civic-ai-empty{position:absolute;color:#b0c0d0;text-align:center;padding:20px}
.civic-ai-findings{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.civic-ai-chip{font-size:.75rem}.civic-ai-chip.selected{border-color:#64e4e8;box-shadow:0 0 18px #64e4e833}
.civic-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}.civic-dashboard-grid h4{margin:4px 0 8px}.civic-backend summary{cursor:pointer;color:#a8f4f5;font-weight:700}.civic-backend-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.civic-backend-grid label{display:grid;gap:6px;color:var(--muted);font-size:.84rem}.civic-backend-grid input{width:100%;background:#081522;color:#fff;border:1px solid #45617a;border-radius:9px;padding:.7rem}
.civic-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.civic-metrics>div{display:grid;gap:5px;padding:12px;border:1px solid #29445b;border-radius:10px;background:#081522}.civic-metrics strong{font-size:1.5rem;color:#8af0ed}.civic-metrics span{font-size:.7rem;color:var(--muted)}.civic-evidence-thumb{grid-column:1/-1;max-width:150px;max-height:100px;object-fit:cover;border-radius:8px}.civic-report-status{font-size:.68rem;padding:3px 7px;border-radius:99px}.civic-report-status.verified{color:#ff9ba9;border:1px solid #ff536b}.civic-report-status.unverified{color:#ffe09a;border:1px solid #ffd166}.legend-dot.accessible{background:#55e5a0}.legend-dot.barrier{background:#ff536b}.legend-dot.pending{background:#ffd166}
@media(max-width:700px){.civic-metrics{grid-template-columns:repeat(2,1fr)}.civic-dashboard-grid,.civic-backend-grid{grid-template-columns:1fr}.civic-ai-view{min-height:200px}}

.civic-reveal{opacity:0;transform:translate3d(0,32px,0) scale(.985);filter:blur(3px);transition:opacity .7s ease,transform .8s cubic-bezier(.16,1,.3,1),filter .7s ease}
.civic-reveal.is-visible{opacity:1;transform:none;filter:none}
@media(prefers-reduced-motion:reduce){.civic-reveal,.civic-reveal.is-visible{opacity:1;transform:none;filter:none;transition:none}}
body.reduce-motion .civic-reveal,body.reduce-motion .civic-reveal.is-visible{opacity:1;transform:none;filter:none;transition:none}

/* Terrain depth-awareness overlay: visual cues only, never route or safe-footing guidance. */
.route-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:12px 0;color:var(--muted);font-size:.76rem}
.route-legend span{display:flex;align-items:center;gap:7px}
.route-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.route-blue{background:#399cff;box-shadow:0 0 10px #399cff88}.route-red{background:#ff536b;box-shadow:0 0 10px #ff536b88}.route-yellow{background:#ffd166;box-shadow:0 0 10px #ffd16688}
.route-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.route-metrics>div{display:grid;gap:5px;padding:12px;border:1px solid rgba(100,228,232,.2);border-radius:10px;background:rgba(5,19,33,.7);min-width:0}
.route-metrics strong{font-size:.9rem;color:#9cecf0;overflow-wrap:anywhere}.route-metrics span{font-size:.7rem;color:var(--muted)}
@media(max-width:560px){.route-metrics{gap:7px}.route-metrics>div{padding:9px}.route-metrics strong{font-size:.76rem}.route-legend{font-size:.7rem}}

/* Refined luminous scan surface and motion-safe visual feedback */
.route-viewer{border-color:rgba(79,169,255,.5);box-shadow:inset 0 0 36px rgba(35,142,255,.14),0 0 30px rgba(35,142,255,.1)}
.route-viewer:before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(115deg,transparent 28%,rgba(110,220,255,.045) 50%,transparent 72%);background-size:220% 100%;animation:route-scan-sheen 8s linear infinite}
@keyframes route-scan-sheen{from{background-position:120% 0}to{background-position:-120% 0}}
.route-legend span{padding:7px 10px;border:1px solid rgba(100,180,230,.16);border-radius:999px;background:rgba(5,17,31,.55)}
.route-dot{box-shadow:0 0 12px currentColor}
@media(prefers-reduced-motion:reduce){.route-viewer:before{animation:none}}
body.reduce-motion .route-viewer:before{animation:none}

/* FORMGENIUS — document intelligence workspace */
.formgenius-card{margin-top:24px;position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(14,34,56,.98),rgba(5,17,31,.98));border-color:rgba(100,228,232,.32);box-shadow:0 18px 55px rgba(0,0,0,.22),0 0 36px rgba(68,211,225,.07)}
.formgenius-card:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 95% 5%,rgba(66,193,222,.12),transparent 32%)}
.formgenius-reveal{opacity:0;transform:translateY(36px) scale(.99);filter:blur(4px);transition:opacity .75s ease,transform .8s cubic-bezier(.16,1,.3,1),filter .75s ease}
.formgenius-reveal.is-visible{opacity:1;transform:none;filter:none}
.fg-upload-grid,.fg-workspace{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.fg-drop{min-height:180px;border:1px dashed rgba(100,228,232,.6);border-radius:15px;background:rgba(7,25,42,.72);display:grid;align-content:center;justify-items:center;gap:9px;text-align:center;padding:22px;cursor:pointer;transition:transform .25s,border-color .25s,box-shadow .25s}
.fg-drop:hover,.fg-drop.dragging{transform:translateY(-3px);border-color:#a3ffff;box-shadow:0 0 28px rgba(100,228,232,.14)}
.fg-drop strong{color:#eafcff}.fg-drop span{font-size:.78rem;color:var(--muted)}.fg-file-icon{font-size:2rem;color:var(--cyan)}
.fg-upload-actions{display:grid;align-content:start;gap:9px}.fg-upload-actions select,.fg-service-label+select{width:100%;background:#081522;color:#fff;border:1px solid #45617a;border-radius:10px;padding:.75rem}
.fg-status{min-height:26px;color:#a8f4f5;font-size:.85rem;padding:9px 12px;border:1px solid rgba(100,228,232,.16);border-radius:9px;background:rgba(5,20,34,.6)}
.fg-pane{min-width:0;border:1px solid rgba(100,228,232,.18);border-radius:14px;padding:15px;background:rgba(4,17,30,.62)}
.fg-pane textarea{width:100%;resize:vertical;background:#061321;color:#e8f1fb;border:1px solid #36536a;border-radius:10px;padding:12px;line-height:1.55}
.fg-progress{height:7px;border-radius:99px;background:#14283b;overflow:hidden;margin:12px 0}.fg-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#37b9ca,#75f2c6);transition:width .35s}
.fg-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:480px;overflow:auto;padding:2px}
.fg-field{display:grid;gap:5px;align-content:start;padding:10px;border:1px solid rgba(100,228,232,.14);border-radius:10px;background:#081725;min-width:0}
.fg-field>span{font-size:.78rem;font-weight:700;color:#b9eff1}.fg-field>input[type=text]{min-width:0;width:100%;background:#07111f;color:#fff;border:1px solid #39576d;border-radius:8px;padding:9px}.fg-field small{font-size:.67rem;color:var(--muted);line-height:1.4}.fg-review{display:flex;align-items:center;gap:6px;font-size:.7rem;color:#a8f4f5}.fg-review input{accent-color:#55dfc1;width:16px;height:16px}
.fg-guide{margin-top:20px;padding:18px;border:1px solid rgba(100,228,232,.2);border-radius:14px;background:linear-gradient(130deg,rgba(10,30,48,.8),rgba(7,19,33,.8))}
.fg-service-label{display:block;font-size:.8rem;color:var(--muted);margin:12px 0 7px}.fg-service-label+select{max-width:440px}
.fg-guide-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.fg-guide-item{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid rgba(100,228,232,.14);border-radius:9px;background:#081725;color:#dce9f3;font-size:.8rem;line-height:1.45}.fg-guide-item input{accent-color:#55dfc1;flex:0 0 auto;margin-top:2px}.fg-guide-item.done{border-color:rgba(85,223,193,.55);color:#8ee6c9;background:rgba(17,63,57,.35)}
@media(max-width:760px){.fg-upload-grid,.fg-workspace{grid-template-columns:1fr}.fg-fields,.fg-guide-list{grid-template-columns:1fr}.fg-drop{min-height:145px}}
@media(prefers-reduced-motion:reduce){.formgenius-reveal,.formgenius-reveal.is-visible,.fg-drop,.fg-progress span{transition:none;transform:none;filter:none;opacity:1}}
body.reduce-motion .formgenius-reveal,body.reduce-motion .formgenius-reveal.is-visible{transition:none;transform:none;filter:none;opacity:1}
body.high-contrast .fg-pane,body.high-contrast .fg-field,body.high-contrast .fg-guide-item{background:#000;border:2px solid #fff}

.fg-glossary{margin:18px 0;padding:15px;border:1px solid rgba(100,228,232,.16);border-radius:13px;background:rgba(5,19,32,.62)}
.fg-explanations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.fg-explanation{padding:11px;border:1px solid rgba(100,228,232,.13);border-radius:9px;background:#081725}
.fg-explanation strong{font-size:.78rem;color:#a8f4f5}.fg-explanation p{font-size:.72rem;line-height:1.45;color:var(--muted);margin:6px 0 0}
@media(max-width:760px){.fg-explanations{grid-template-columns:1fr 1fr}}@media(max-width:480px){.fg-explanations{grid-template-columns:1fr}}


.fg-scroll-reveal{opacity:0;transform:translateY(24px) scale(.992);filter:blur(2px);transition:opacity .65s ease,transform .7s cubic-bezier(.16,1,.3,1),filter .65s ease;transition-delay:var(--fg-delay,0ms)}.fg-scroll-reveal.is-visible{opacity:1;transform:none;filter:none}@media(prefers-reduced-motion:reduce){.fg-scroll-reveal,.fg-scroll-reveal.is-visible{opacity:1;transform:none;filter:none;transition:none}}body.reduce-motion .fg-scroll-reveal,body.reduce-motion .fg-scroll-reveal.is-visible{opacity:1;transform:none;filter:none;transition:none}


/* TERRAIN AI: image-only experimental surface visualization */
.terrain-card,.live-object-card{margin-top:24px;position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(13,34,55,.98),rgba(5,17,31,.98));border-color:rgba(76,184,230,.32)}
.terrain-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .75s cubic-bezier(.16,1,.3,1)}.terrain-reveal.is-visible{opacity:1;transform:none}
.terrain-inputs{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}
.terrain-upload{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px dashed rgba(100,228,232,.5);border-radius:10px;cursor:pointer;background:rgba(5,24,40,.7)}.terrain-upload>span{font-size:1.4rem;color:#8ef1ed}.terrain-upload strong{font-size:.82rem}.terrain-upload small{font-size:.68rem;color:var(--muted)}
.terrain-status{padding:10px 12px;border:1px solid rgba(100,228,232,.18);border-radius:9px;background:rgba(4,18,31,.7);color:#a8f4f5;min-height:40px}
.terrain-viewer{position:relative;display:grid;place-items:center;min-height:210px;max-height:560px;overflow:hidden;border:1px solid rgba(80,180,230,.3);border-radius:14px;background:#030b14;box-shadow:inset 0 0 35px #1375a51a}
.terrain-viewer img{display:block;max-width:100%;max-height:560px;object-fit:contain}.terrain-viewer canvas{position:absolute;max-width:100%;max-height:100%;object-fit:contain;pointer-events:none}
.terrain-empty{display:grid;gap:8px;text-align:center;color:#91b6c8;letter-spacing:.12em;padding:50px 10px}.terrain-empty small{letter-spacing:normal;color:var(--muted)}
.terrain-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:13px 0;color:var(--muted);font-size:.75rem}.terrain-legend span{display:flex;align-items:center;gap:7px}.terrain-swatch{width:11px;height:11px;border-radius:3px;display:inline-block}.terrain-low{background:#2dd296}.terrain-mid{background:#ffbe37}.terrain-high{background:#ff415a}.terrain-uncertain{background:#7d9bb4}
.terrain-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.terrain-metrics>div{display:grid;gap:5px;padding:12px;border:1px solid rgba(100,228,232,.2);border-radius:10px;background:rgba(5,19,33,.7)}.terrain-metrics strong{color:#9cecf0}.terrain-metrics span{font-size:.7rem;color:var(--muted)}
.terrain-results{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.terrain-results>section{padding:14px;border:1px solid rgba(100,228,232,.16);border-radius:12px;background:rgba(5,18,31,.55)}.terrain-toggle{display:flex;gap:8px;align-items:center;margin:12px 0;color:var(--muted);font-size:.82rem}.terrain-toggle input{accent-color:#54d8c5}
.route-viewer{position:relative;min-height:220px;max-height:520px;overflow:hidden;border:1px solid rgba(79,169,255,.45);border-radius:14px;background:#030b14;display:grid;place-items:center}.route-viewer video{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}.route-viewer canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.route-empty{padding:55px 10px;text-align:center;color:#87b9d5;letter-spacing:.12em}.route-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.route-metrics>div{display:grid;gap:5px;padding:12px;border:1px solid rgba(100,228,232,.2);border-radius:10px;background:rgba(5,19,33,.7)}.route-metrics strong{font-size:.85rem;color:#9cecf0}.route-metrics span{font-size:.7rem;color:var(--muted)}
@media(max-width:700px){.terrain-results{grid-template-columns:1fr}.terrain-metrics{gap:7px}.terrain-metrics>div{padding:9px}.terrain-metrics strong{font-size:.78rem}.terrain-upload{width:100%;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.terrain-reveal,.terrain-reveal.is-visible{opacity:1;transform:none;transition:none}}
body.reduce-motion .terrain-reveal,body.reduce-motion .terrain-reveal.is-visible{opacity:1;transform:none;transition:none}
body.high-contrast .terrain-results>section,.high-contrast .terrain-status{background:#000;border:2px solid #fff}

/* STAGE 5 · SYNVORA CORE unified workspace */
.core-card{margin:24px 0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 12% 0%,rgba(44,190,205,.13),transparent 42%),linear-gradient(145deg,rgba(10,29,49,.98),rgba(5,16,30,.98));border-color:rgba(79,205,218,.38)}
.core-reveal{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .7s cubic-bezier(.16,1,.3,1)}.core-reveal.is-visible{opacity:1;transform:none}
.core-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.core-module{display:grid;gap:7px;min-width:0;padding:15px;border:1px solid rgba(100,228,232,.2);border-radius:13px;background:rgba(4,19,34,.78);text-decoration:none;color:inherit;transition:transform .22s,border-color .22s,box-shadow .22s}.core-module:hover,.core-module:focus-visible{transform:translateY(-3px);border-color:#78e7e8;box-shadow:0 0 24px rgba(76,211,220,.12)}.core-module strong{font-size:1rem;letter-spacing:.12em;color:#9bf2ee}.core-module span{font-size:.78rem;line-height:1.4;color:#d0e2ec}.core-module small{font-size:.68rem;color:#8fc1d0}
.core-orchestrator,.core-personalization,.core-shared{margin-top:16px;padding:16px;border:1px solid rgba(100,228,232,.17);border-radius:14px;background:rgba(4,17,30,.64)}.core-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin:12px 0}.core-form input{min-width:0;background:#061321;color:#fff;border:1px solid #45617a;border-radius:10px;padding:12px}.core-quick-actions,.core-input-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.core-quick-actions button,.core-input-actions button{font-size:.75rem}.core-output{min-height:88px;padding:14px;border:1px solid rgba(100,228,232,.17);border-radius:10px;background:rgba(4,13,24,.8);color:#dceef5;line-height:1.6;white-space:pre-wrap}.core-output strong{color:#9bf2ee}.core-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.core-settings-grid>label:not(.check-label){display:grid;gap:6px;font-size:.8rem;color:#b9d1df}.core-settings-grid select{width:100%;padding:10px;border-radius:9px;background:#081522;color:#fff;border:1px solid #45617a}.core-settings-grid .check-label{display:flex;align-items:center;gap:8px;font-size:.78rem;color:#c4d8e3}.core-settings-grid input{accent-color:#58dfcf}.core-shared .controls{display:flex;flex-wrap:wrap;gap:8px}.core-shared .check-label{display:flex;gap:9px;align-items:flex-start;color:#c5d9e4;font-size:.8rem;margin:12px 0}.core-shared input{accent-color:#58dfcf;flex:0 0 auto;margin-top:3px}
@media(max-width:760px){.core-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.core-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.core-form{grid-template-columns:1fr auto}.core-form button[type=submit]{grid-column:1/-1}}
@media(max-width:430px){.core-module-grid{grid-template-columns:1fr 1fr}.core-settings-grid{grid-template-columns:1fr}.core-orchestrator,.core-personalization,.core-shared{padding:12px}}
@media(prefers-reduced-motion:reduce){.core-reveal,.core-reveal.is-visible,.core-module{opacity:1;transform:none;transition:none}}body.reduce-motion .core-reveal,body.reduce-motion .core-reveal.is-visible{opacity:1;transform:none;transition:none}body.high-contrast .core-module,body.high-contrast .core-orchestrator,body.high-contrast .core-personalization,body.high-contrast .core-shared,body.high-contrast .core-output{background:#000;border:2px solid #fff}




/* SYNVORA scroll assembly v4 — visible staged entry and three pointer agents */
.panel-assembly-reveal{position:relative!important;isolation:isolate;opacity:0;transform:translate3d(0,62px,0) scale(.955);filter:blur(4px);transition:opacity .72s ease,transform .9s cubic-bezier(.16,1,.3,1),filter .72s ease;will-change:opacity,transform}
.panel-assembly-reveal.is-assembled{opacity:1;transform:translate3d(0,0,0) scale(1);filter:none;will-change:auto}
.panel-assembly-cursors{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:40;border-radius:inherit}
.panel-assembly-cursor{position:absolute;display:flex;align-items:flex-start;gap:5px;opacity:0;white-space:nowrap;filter:drop-shadow(0 0 9px currentColor);font:800 9px/1.2 ui-monospace,monospace;letter-spacing:.07em}
.panel-assembly-cursor svg{width:31px;height:38px;flex:none;overflow:visible}
.panel-assembly-cursor .cursor-tag{margin:9px 0 0 -2px;padding:5px 7px;border:1px solid currentColor;border-radius:5px;background:rgba(3,12,24,.96);box-shadow:0 0 13px currentColor}
.panel-assembly-cursor:nth-child(1){left:12px;top:12px;color:#62f5ff;--sx:-125px;--sy:-90px;--rot:-12deg}
.panel-assembly-cursor:nth-child(2){right:12px;top:12px;color:#ff7bea;--sx:135px;--sy:-105px;--rot:10deg}
.panel-assembly-cursor:nth-child(3){left:43%;bottom:10px;color:#b7ff78;--sx:20px;--sy:115px;--rot:-6deg}
.panel-assembly-reveal.is-assembling .panel-assembly-cursor{animation:assembly-pointer-v4 1.55s cubic-bezier(.18,.82,.22,1) both}
.panel-assembly-reveal.is-assembling .panel-assembly-cursor:nth-child(2){animation-delay:.12s}
.panel-assembly-reveal.is-assembling .panel-assembly-cursor:nth-child(3){animation-delay:.24s}
.panel-assembly-reveal.is-assembling .cursor-tag{animation:assembly-click-v4 .42s ease 1.08s both}
@keyframes assembly-pointer-v4{0%{opacity:0;transform:translate(var(--sx),var(--sy)) rotate(var(--rot)) scale(.72)}16%{opacity:1}68%{opacity:1;transform:translate(0,0) rotate(0) scale(1)}82%{opacity:1;transform:translate(0,0) scale(.88)}100%{opacity:0;transform:translate(0,0) scale(.9)}}
@keyframes assembly-click-v4{0%{transform:scale(1)}45%{transform:scale(.9);box-shadow:0 0 0 8px color-mix(in srgb,currentColor 38%,transparent),0 0 24px currentColor}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.panel-assembly-reveal,.panel-assembly-reveal.is-assembled{opacity:1;transform:none;filter:none;transition:none;will-change:auto}.panel-assembly-cursors{display:none}}
body.reduce-motion .panel-assembly-reveal,body.reduce-motion .panel-assembly-reveal.is-assembled{opacity:1;transform:none;filter:none;transition:none;will-change:auto}
body.reduce-motion .panel-assembly-cursors{display:none}
body.high-contrast .panel-assembly-cursor .cursor-tag{background:#000;border:2px solid #fff;color:#fff;box-shadow:none}

/* Stage 6: accessible hands-free control deck */
.settings-panel{width:min(430px,calc(100vw - 24px));right:12px;top:82px;max-height:calc(100dvh - 94px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#64e4e8 #102238;padding:18px}
.settings-panel[hidden]{display:none}.settings-panel .control-section{border-top:1px solid #29445b;padding:16px 0 8px}.settings-panel .control-section h3{margin:4px 0 12px;font-size:1rem}.settings-panel label:not(.check-label){display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0 7px;color:#dce9f5;font-size:.88rem}.settings-panel input[type=range]{width:100%;accent-color:#64e4e8}.settings-panel .check-label{margin:13px 0}.control-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gaze-preview-wrap{position:relative;overflow:hidden;border:1px solid #34536c;border-radius:12px;background:#030a12;aspect-ratio:16/9;margin:12px 0}#gaze-video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:block}.gaze-crosshair{position:absolute;inset:0;display:grid;place-items:center;color:#64e4e8;font-size:2rem;pointer-events:none}
#gaze-cursor{position:fixed;left:0;top:0;width:28px;height:28px;border:2px solid #64e4e8;border-radius:50%;z-index:9999;pointer-events:none;box-shadow:0 0 14px #64e4e8,0 0 32px #64e4e866;will-change:transform}#gaze-cursor span{position:absolute;inset:8px;border-radius:50%;background:#64e4e8}#gaze-cursor.gaze-actionable{width:38px;height:38px;border-color:#b4f18b;box-shadow:0 0 18px #b4f18b}#gaze-cursor.gaze-actionable span{background:#b4f18b}#gaze-cursor[hidden]{display:none}
@media(max-width:520px){.settings-panel{top:74px;right:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 82px);padding:14px}}
/* Stage 6 tracking stability patch r2 */
#gaze-cursor{width:14px;height:14px;border:1.5px solid #64e4e8;border-radius:50%;box-shadow:0 0 5px #64e4e8;transition:none}#gaze-cursor span{inset:4px;background:#64e4e8}#gaze-cursor.gaze-actionable{width:14px;height:14px;border-color:#64e4e8;box-shadow:0 0 5px #64e4e8}#gaze-cursor.gaze-actionable span{background:#64e4e8}

/* SYNVORA intent navigation, emergency support and live scene camera */
.journey-intelligence,.surface-vision-panel{margin:20px 0;padding:18px;border:1px solid rgba(75,218,235,.32);border-radius:16px;background:linear-gradient(145deg,rgba(10,35,55,.94),rgba(5,17,31,.96));box-shadow:0 0 28px rgba(62,207,232,.08)}
.journey-intelligence h3,.surface-vision-panel h3{margin:6px 0 10px}
.journey-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;margin:14px 0}
.journey-form input{min-width:0;padding:13px;border:1px solid #41657b;border-radius:10px;background:#061626;color:#f3fbff}
.journey-result{display:grid;gap:7px;padding:13px;border:1px solid rgba(76,222,230,.2);border-radius:10px;background:#041321;color:#dff8ff;overflow-wrap:anywhere}
.journey-result>span{font-size:.78rem;color:var(--muted)}
.journey-result p{margin:4px 0;font-size:.78rem;color:var(--muted)}
.journey-stats{display:flex;flex-wrap:wrap;gap:9px}.journey-stats b{padding:7px 10px;border:1px solid rgba(75,218,235,.3);border-radius:8px;color:#a6f2ed;font-size:.8rem}
.journey-route-legend{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0;font-size:.76rem;color:var(--muted)}
.journey-route-legend span{display:flex;align-items:center;gap:7px}.route-key{width:20px;height:4px;border-radius:5px;display:inline-block}.route-best{background:#43e5c2}.route-alt{background:#ffc857}
.emergency-quick{display:grid;grid-template-columns:minmax(150px,.7fr) 1.3fr;gap:12px;margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.emergency-quick p{margin:5px 0}.emergency-actions{display:flex;flex-wrap:wrap;gap:8px;align-content:start}.emergency-send{background:#103e36;border-color:#36c99c;color:#d8fff2}
.emergency-contact-list{display:grid;gap:10px}.emergency-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.emergency-contact-row label{display:grid;gap:6px;font-size:.8rem;color:var(--muted)}.emergency-contact-row input{min-width:0;width:100%;padding:10px;border-radius:9px;border:1px solid #41617a;background:#071827;color:white}
.emergency-settings{border-top:1px solid var(--line);padding-top:15px;margin-top:15px}
.surface-vision-viewer{position:relative;min-height:210px;max-height:480px;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(80,180,230,.3);border-radius:13px;background:#030b14}
.surface-vision-viewer video{display:block;width:100%;max-height:480px;object-fit:contain}.surface-vision-viewer canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#surface-vision-empty{padding:45px 10px;text-align:center;color:#91b6c8;letter-spacing:.12em;font-size:.8rem}
.surface-vision-panel .detection-list{max-height:170px;overflow:auto}
@media(max-width:620px){.journey-form{grid-template-columns:1fr 1fr}.journey-form input{grid-column:1/-1}.emergency-quick{grid-template-columns:1fr}.emergency-contact-row{grid-template-columns:1fr}}
