:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;--ink:#15243c;--muted:#61738d;--line:#dfe6f0;--paper:#f5f8fc;--navy:#101e35;--blue:#2165e8;--teal:#12b5aa}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--blue)}.app-shell{max-width:740px;min-height:100dvh;margin:auto;background:#f7f9fc;box-shadow:0 0 35px #1628480d}.app-header{height:76px;padding:14px 20px;background:var(--navy);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:9px}.brand-mark{font-size:29px;color:#64dcca}.brand strong{font-size:17px;letter-spacing:-.35px}.brand strong span{color:#78e6dd}.brand small{display:block;font-size:10px;color:#a6bad1;margin-top:4px}.header-right{display:flex;align-items:flex-end;flex-direction:column;gap:6px}.phase-pill{font-size:9px;letter-spacing:1.5px;border-radius:20px;padding:4px 9px;color:#88eadb;border:1px solid #3d958e}.header-right .warn,.header-right .ok{font-size:10px}.warn{color:#f9ca86}.ok{color:#79e7cc}.view{padding:24px 18px 105px}.view[hidden]{display:none}.intro{border-radius:18px;padding:27px 24px 29px;color:#fff;background:linear-gradient(132deg,#182c4c 10%,#243e61 65%,#125d62 140%);overflow:hidden;position:relative}.intro:after{content:'▱';font-size:230px;opacity:.08;position:absolute;right:-10px;top:-80px;transform:rotate(-17deg);pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:750;color:#38b9ad;margin:0 0 11px}.intro .eyebrow{color:#68e6ce}.intro h1{margin:0;font-size:clamp(27px,7vw,43px);line-height:1.32;letter-spacing:-.7px}.intro h1 em{font-style:normal;color:#8af1dc}.intro>p:last-child{font-size:13px;line-height:1.85;color:#c8d6e7;max-width:320px;margin:14px 0 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:17px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 8px;text-align:center}.stat b{display:block;font-size:23px;color:#173961;font-variant-numeric:tabular-nums}.stat span{display:block;font-size:10px;color:#70819a;margin-top:4px}.surface{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px;margin-bottom:15px;box-shadow:0 2px 7px #13294307}.featured{border:1px solid #c5e9e4;display:grid;grid-template-columns:44px 1fr;gap:11px;background:#f6fffc}.section-icon{font-size:30px}.featured h2{font-size:18px;margin:4px 0}.featured p{margin:5px 0 0;color:#60758a;font-size:12px;line-height:1.7}.caption-label{font-size:10px;letter-spacing:1px;color:#16857c;font-weight:800}.featured .button{grid-column:1/-1;margin-top:9px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-heading h2{margin:0;font-size:16px}.section-heading span{font-size:11px;font-weight:800;color:#b2bfcd}.surface label{display:block;font-size:12px;font-weight:700;margin:10px 0 6px}.surface input:not([type=checkbox]):not([type=range]),.surface select,.surface textarea{width:100%;background:#fff;color:var(--ink);border-radius:9px;border:1px solid #cfd9e6;padding:12px;font-size:14px;min-width:0}.surface input:focus,.surface select:focus,.surface textarea:focus{outline:2px solid #85b8ff;outline-offset:1px}.surface details{border-top:1px solid var(--line);margin-top:16px;padding-top:13px}.surface summary{cursor:pointer;color:#2165e8;font-weight:750;font-size:13px}.form-stack{margin-top:12px}.button{border-radius:10px;border:0;min-height:46px;padding:10px 13px;font-weight:760;font-size:13px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:7px}.button.primary{color:#fff;background:linear-gradient(110deg,#286fec,#1255dc);box-shadow:0 5px 13px #2670e925}.button.secondary{background:#edf3fc;color:#1e4b83}.button.subtle{background:transparent;color:#3d5d81;border:1px solid #c8d3e0}.button.danger{background:#c84545;color:#fff}.form-stack>.button{margin-top:15px;width:100%}.item{padding:12px 0;border-bottom:1px solid #e6ecf3;display:flex;justify-content:space-between;gap:12px;align-items:center;min-width:0}.item:last-child{border-bottom:0}.item strong{font-size:13px;display:block;overflow-wrap:anywhere}.item small{font-size:11px;display:block;color:#78879a;margin-top:5px}.item p{color:#526780;font-size:12px;line-height:1.7;margin:8px 0}.item-list{font-size:12px;color:#64748b}.button.small{min-height:33px;font-size:11px;flex-shrink:0}.view-heading{margin:2px 2px 21px}.view-heading h1{font-size:27px;letter-spacing:-.5px;margin:0 0 8px}.view-heading>p:last-child{font-size:13px;line-height:1.75;color:var(--muted);margin:0}.video-wrap{height:clamp(290px,87vw,500px);border-radius:17px;position:relative;overflow:hidden;background:#07111c;border:1px solid #1b3645;margin-bottom:14px}.video-wrap video{width:100%;height:100%;display:block;object-fit:cover}.video-wrap canvas{pointer-events:none;position:absolute;inset:0;width:100%;height:100%}.video-footer{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:8px;background:linear-gradient(transparent,#091427db);color:#fff;font-size:11px;line-height:1.5;padding:27px 14px 15px;min-height:58px}.live-dot{width:9px;height:9px;border-radius:50%;background:#55e5c5;box-shadow:0 0 0 4px #55e5c527;flex-shrink:0}.button-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.scan-controls>.button.subtle{width:100%}.small-note{font-size:11px;line-height:1.8;color:#708198;margin:11px 0 2px}.status-bar{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom));z-index:4;background:#dcece9;color:#235552;padding:9px 16px;font-size:11px;line-height:1.5;border-top:1px solid #c3ddd8;max-height:64px;overflow:auto}.bottom-nav{z-index:5;position:sticky;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid #e2e9f1;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -3px 15px #081b330a}.bottom-nav button{padding:10px 2px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;color:#8b9aa9}.bottom-nav button span{font-size:22px;line-height:25px}.bottom-nav button small{font-size:9px;font-weight:800}.bottom-nav button.active{color:#2366df}.bottom-nav button.active:before{content:'';height:3px;width:28px;border-radius:3px;background:#286eeb;position:absolute;top:0}.links{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;font-size:12px}.surface .check{display:flex;align-items:center;gap:8px;font-weight:600}.surface input[type=range]{width:100%}.info-box{background:#eef5fd;padding:12px;border-radius:10px;border:1px solid #deebfa;font-size:12px;line-height:1.7;color:#45617d}.error-message{color:#b74545!important;overflow-wrap:anywhere}.logs{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6;max-height:220px;overflow:auto;padding:13px;border-radius:10px;background:#13243e;color:#c9e4e4}.page-dialog{border:0;border-radius:17px;padding:15px;max-width:650px;width:calc(100vw - 24px);max-height:92dvh;overflow:auto;color:var(--ink)}.page-dialog::backdrop{background:#102036bb}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialog-header h2{font-size:16px}.page-dialog img{max-width:100%;max-height:55vh;object-fit:contain;display:block;margin:10px auto;border:1px solid var(--line)}.page-dialog label{font-size:12px;display:block;margin:10px 0 5px}.page-dialog textarea{width:100%;min-height:190px;border:1px solid var(--line);border-radius:9px;padding:9px;font-size:12px;line-height:1.65}.page-dialog a{font-size:12px}@media(min-width:700px){.view{padding:30px}.intro{padding:35px}.stats{gap:13px}.surface{padding:22px}}@media(max-width:360px){.app-header{padding:13px}.phase-pill{display:none}.view{padding:16px 12px 100px}.button-grid{grid-template-columns:1fr}.intro h1{font-size:26px}} 
