*{box-sizing:border-box}body{margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#10202b;color:#e8eef2}
header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#1f3a4d;border-bottom:2px solid #f2b632}
.brand{font-weight:700}.tag{background:#f2b632;color:#10202b;border-radius:4px;padding:1px 6px;font-size:12px;margin-left:4px}
main{max-width:680px;margin:0 auto;padding:12px 12px 90px}
h1{font-size:22px;margin:8px 0}h2{font-size:18px;margin:16px 0 6px}h3{font-size:16px;margin:12px 0 4px}
.card{background:#182d3b;border:1px solid #2c4a5e;border-radius:10px;padding:12px;margin:10px 0}
.danger{border-left:5px solid #e5484d}.warn{border-left:5px solid #f2b632}.info{border-left:5px solid #3e9bd6}.ok{border-left:5px solid #3fb950}
button,.btn{font:inherit;border:0;border-radius:8px;padding:12px 14px;margin:4px 4px 4px 0;background:#2c4a5e;color:#fff;min-height:44px;cursor:pointer}
button.primary{background:#f2b632;color:#10202b;font-weight:700}button:disabled{opacity:.4}
button.fb{background:#f2b632;color:#10202b;font-weight:700;padding:8px 12px;min-height:36px}
.big{display:block;width:100%;text-align:left}
input,textarea,select{font:inherit;width:100%;padding:10px;border-radius:8px;border:1px solid #2c4a5e;background:#0d1a23;color:#fff;margin:4px 0 10px}
label{display:block;font-size:14px;color:#b7c7d2}
.chk{display:flex;gap:10px;align-items:flex-start;margin:10px 0;color:#e8eef2;font-size:15px}.chk input{width:22px;height:22px;flex:none;margin:2px 0}
.legal{max-height:46vh;overflow:auto;background:#0d1a23;border:1px solid #2c4a5e;border-radius:8px;padding:10px;font-size:14px;white-space:pre-wrap}
nav.tabs{position:fixed;bottom:0;left:0;right:0;display:flex;background:#1f3a4d;border-top:1px solid #2c4a5e;padding-bottom:env(safe-area-inset-bottom);z-index:5}
nav.tabs button{flex:1;margin:0;border-radius:0;background:none;font-size:13px;padding:10px 2px}nav.tabs button.on{color:#f2b632;font-weight:700;border-top:3px solid #f2b632}
.seg{display:flex;flex-wrap:wrap}.seg button.on{background:#f2b632;color:#10202b}
.result{font-size:20px;font-weight:700;color:#f2b632}.crumb{font-size:13px;color:#b7c7d2}
.pill{display:inline-block;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:700}.p-low{background:#3fb950;color:#000}.p-moderate{background:#f2b632;color:#000}.p-high{background:#e5484d}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.photos img{width:100%;border-radius:8px;aspect-ratio:1;object-fit:cover}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:10;display:flex;align-items:flex-end;justify-content:center}.modal>div{background:#182d3b;width:100%;max-width:680px;max-height:90vh;overflow:auto;border-radius:14px 14px 0 0;padding:16px}
small,.muted{color:#9fb2bf;font-size:13px}code{background:#0d1a23;padding:1px 4px;border-radius:4px}
[hidden]{display:none!important}
