@font-face{font-family:system-fallback;src:local("Arial");font-display:swap}
:root{color-scheme:dark;--bg:#101a24;--panel:#172431;--panel-light:#21313f;--text:#f5f6f1;--muted:#b3c0ca;--accent:#f9c95d;--line:#364856;--green:#9bd6b4;--red:#ffb6aa;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,select,input{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:5px}button svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{touch-action:manipulation}a{color:inherit;text-decoration:none}button[hidden],[hidden]{display:none!important}
.app{height:100dvh;min-height:590px;max-width:1120px;margin:auto;display:flex;flex-direction:column;padding:max(22px,env(safe-area-inset-top)) 28px max(15px,env(safe-area-inset-bottom));gap:22px}.header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px}.brand>svg{width:44px;height:44px;color:var(--accent)}.brand strong{display:block;font-size:30px;font-weight:650;line-height:1;letter-spacing:-1.3px}.brand-dot{color:var(--accent)}.brand small{display:block;font-size:9px;letter-spacing:2.1px;color:var(--muted);margin-top:7px;font-weight:600}.header-actions{display:flex;gap:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--text);flex-shrink:0}.icon-button:hover{background:var(--panel-light)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:24px;min-height:0;flex:1}.camera{position:relative;border:1px solid var(--line);border-radius:24px;overflow:hidden;min-height:180px;background:radial-gradient(ellipse at 50% 42%,#223543 0%,#172633 46%,#111e29 100%);isolation:isolate}.camera::before{content:"";position:absolute;inset:0;background-image:linear-gradient(#8eacbc08 1px,transparent 1px),linear-gradient(90deg,#8eacbc08 1px,transparent 1px);background-size:38px 38px;z-index:-1}#cameraVideo,#overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#cameraVideo{display:none;background:#0a1118}#cameraVideo.visible{display:block}#overlay{pointer-events:none}.camera-top{position:absolute;top:20px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:2}.status-pill{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #ffffff22;border-radius:40px;font-size:12px;letter-spacing:.2px;background:#0b141ee8;color:#d3dde2}.status-pill i{width:6px;height:6px;border-radius:50%;background:#8a9ba8}.status-pill.running i{background:var(--green);box-shadow:0 0 0 4px #9bd6b41c}.status-pill.loading i{background:var(--accent);animation:pulse 1.3s infinite}.status-pill.error i{background:var(--red)}.camera-label{color:#d3dde2;font-size:9px;letter-spacing:1.5px;background:#0b141edb;padding:8px;border-radius:8px}.camera-placeholder{position:absolute;inset:60px 10px 38px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.viewfinder{position:relative;width:92px;height:92px;margin-bottom:24px;color:var(--accent)}.viewfinder::before,.viewfinder::after,.viewfinder>span::before,.viewfinder>span::after{content:"";position:absolute;width:20px;height:20px;border-color:#6a8494;border-style:solid}.viewfinder::before{top:0;left:0;border-width:2px 0 0 2px;border-radius:10px 0 0}.viewfinder::after{top:0;right:0;border-width:2px 2px 0 0;border-radius:0 10px 0 0}.viewfinder>span::before{bottom:0;left:0;border-width:0 0 2px 2px;border-radius:0 0 0 10px}.viewfinder>span::after{bottom:0;right:0;border-width:0 2px 2px 0;border-radius:0 0 10px}.viewfinder svg{width:62px;height:62px;position:absolute;top:15px;left:15px;stroke:currentColor;stroke-width:1.6}.camera h1{font-size:clamp(30px,4vw,47px);font-weight:500;line-height:1.17;letter-spacing:-1.7px;margin:0}.camera h1 em{font-style:normal;color:var(--accent)}.camera-placeholder p{font-size:14px;line-height:1.7;color:var(--muted);margin:17px 0 0}.camera-bottom{position:absolute;bottom:17px;left:20px;right:20px;display:flex;justify-content:space-between;color:#b3c0ca;font-size:8px;letter-spacing:1.3px;pointer-events:none}.camera-bottom span{background:#0b141ecc;border-radius:5px;padding:5px 6px}
.interaction{display:flex;flex-direction:column;justify-content:center;gap:22px;min-width:0}.description-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px}.card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:10px;letter-spacing:1.5px;font-weight:600}.description-card #description{margin:20px 0 14px;font-size:25px;letter-spacing:-.6px;line-height:1.35;font-weight:500;min-height:68px;overflow-wrap:anywhere}.status-text{margin:0;color:var(--muted);font-size:13px;line-height:1.5;min-height:20px}.audio-bars{height:15px;display:flex;align-items:center;gap:3px}.audio-bars i{width:3px;background:var(--accent);border-radius:4px;height:5px}.audio-bars i:nth-child(2){height:13px}.audio-bars i:nth-child(3){height:9px}.audio-bars.speaking i{animation:audio .7s ease-in-out infinite alternate}.audio-bars.speaking i:nth-child(2){animation-delay:.25s}.audio-bars.speaking i:nth-child(3){animation-delay:.4s}.controls{display:grid;gap:12px}.primary-button{border:0;background:var(--accent);color:#17212c;min-height:66px;width:100%;border-radius:16px;display:flex;gap:10px;justify-content:center;align-items:center;padding:14px 16px;font-size:16px;font-weight:700;line-height:1.25}.primary-button:hover{background:#ffda80}.primary-button.active{background:#e3eaf0}.primary-button.busy{background:var(--accent)}.secondary-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.secondary-button{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);min-height:54px;padding:12px;font-size:14px;font-weight:550}.secondary-button:hover:not(:disabled){background:var(--panel-light)}.secondary-button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.scope-note{color:var(--muted);font-size:12px;line-height:1.6;margin:0;text-align:center;padding:0 10px}.alert-box{border:1px solid #9d6257;background:#3a2827;color:#ffcdc4;border-radius:14px;padding:14px;font-size:14px;line-height:1.5}.alert-box:empty{display:none}footer{display:flex;align-items:center;color:var(--muted);font-size:11px;gap:7px;flex-shrink:0}.privacy-dot{width:5px;height:5px;background:var(--green);border-radius:50%;flex-shrink:0}.version{margin-left:auto;font-size:10px;color:#91a3b1}
dialog{width:calc(100% - 28px);max-width:490px;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:24px;background:var(--bg);color:var(--text);padding:0;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#030b12c9;backdrop-filter:blur(6px)}.dialog-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line);background:var(--bg);z-index:1}.dialog-header h2{font-size:21px;letter-spacing:-.5px;margin:0}.dialog-header .icon-button{width:44px;height:44px}.dialog-content{padding:22px;display:flex;flex-direction:column;gap:13px}.dialog-content>label:not(.switch-row){font-weight:600;font-size:14px;margin-top:6px}.dialog-content select{width:100%;min-height:50px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);padding:10px;font-size:15px}.field-help{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 4px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:14px;padding:14px 0}.switch-row input{width:26px;height:26px;accent-color:var(--accent);flex-shrink:0}.full-width{width:100%}.info-box{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.info-box strong{font-size:14px}.info-box p{color:var(--muted);font-size:13px;line-height:1.65;margin:8px 0 0}.help-content ol{padding-left:22px;margin:0}.help-content li{font-size:14px;line-height:1.7;margin-bottom:14px;padding-left:4px}.help-content li strong{display:block}.help-content h3{font-size:16px;margin:8px 0 0}.help-content>p{font-size:14px;line-height:1.7;color:var(--muted);margin:0}.help-content>.primary-button{margin-top:8px}
@keyframes pulse{50%{opacity:.35}}@keyframes audio{to{height:4px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
@media(max-width:799px){.app{max-width:560px;padding:max(16px,env(safe-area-inset-top)) 18px max(12px,env(safe-area-inset-bottom));gap:16px;min-height:610px}.workspace{display:flex;flex-direction:column;gap:14px}.camera{flex:1;border-radius:21px;min-height:175px}.interaction{gap:12px;flex-shrink:0}.description-card{padding:17px 18px;border-radius:17px}.description-card #description{font-size:21px;min-height:28px;margin:12px 0 7px}.status-text{font-size:12px}.card-heading{font-size:9px}.camera h1{font-size:34px}.viewfinder{width:68px;height:68px;margin-bottom:17px}.viewfinder svg{width:48px;height:48px;top:10px;left:10px}.camera-placeholder p{font-size:12px;line-height:1.6;margin-top:11px}.camera-top{left:15px;right:15px;top:15px}.camera-label{font-size:8px}.camera-bottom{left:12px;right:12px;bottom:11px}.camera-placeholder{inset:50px 8px 35px}.scope-note{font-size:10.5px;line-height:1.4}.primary-button{min-height:62px}.controls{gap:10px}.secondary-button{min-height:50px}.header .icon-button{width:44px;height:44px}.brand>svg{width:37px;height:37px}.brand strong{font-size:27px}footer{font-size:9.5px}.version{font-size:9px}}
@media(max-height:760px) and (max-width:799px){.app{gap:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}.workspace{gap:10px}.interaction{gap:10px}.camera-placeholder h1{font-size:29px}.viewfinder{display:none}.camera-placeholder p{font-size:11px}.description-card{padding:13px 16px}.description-card #description{font-size:19px;margin:10px 0 6px}.primary-button{min-height:57px}.secondary-button{min-height:48px}.scope-note{font-size:10px}.brand small{font-size:8px;margin-top:6px}.header-actions{gap:6px}}
@media(max-width:350px){.app{padding-left:12px;padding-right:12px}.brand>svg{width:30px}.brand{gap:8px}.brand strong{font-size:24px}.brand small{font-size:7px;letter-spacing:1.5px}.header .icon-button{width:42px;height:42px}.primary-button{font-size:14px}.camera-label{display:none}}
.description-card #description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mode-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-button{min-height:52px;padding:10px 9px;border:1px solid var(--line);border-radius:13px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;line-height:1.3}.mode-button[aria-pressed=true]{border-color:var(--accent);background:#f9c95d14;color:var(--accent)}.mode-button:hover{background:var(--panel-light)}.description-card.has-obstacle{border-color:var(--accent);background:#2b2b24}.description-card.has-obstacle .card-heading{color:var(--accent)}
@media(max-height:760px) and (max-width:799px){.mode-button{min-height:48px;font-size:12px}.interaction{gap:8px}.camera{min-height:135px}.camera-placeholder h1{font-size:27px}.camera-placeholder p{margin-top:8px;font-size:10.5px}}
