*{box-sizing:border-box}
:root{--navy:#0f172a;--blue:#2563eb;--bg:#f1f5f9;--muted:#64748b;--border:#e2e8f0;--danger:#dc2626}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--navy);padding-bottom:78px}
.topbar{background:#0f172a;color:white;padding:18px;position:sticky;top:0;z-index:1200;display:flex;justify-content:space-between;align-items:center}
.topbar h1{font-size:20px;margin:3px 0}.topbar small,.section-head small,.row small{letter-spacing:.12em;color:#94a3b8;font-weight:800}
.version-pill{background:#1d4ed8;border:1px solid #60a5fa;padding:6px 10px;border-radius:999px;font-size:12px}
.wrap{max-width:940px;margin:auto;padding:14px}
.card{background:white;border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 8px 24px rgba(15,23,42,.07)}
.hero{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:white}.hero h2{font-size:26px;margin:8px 0}.hero p{color:#dbeafe}.badge{background:#dbeafe;color:#1e3a8a;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats .card{margin:0}.stats span{font-size:12px;color:#64748b;display:block}.stats strong{font-size:28px}
.section-head,.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-head h3,.row h3{margin:3px 0}
.search-grid{display:grid;grid-template-columns:1fr;gap:8px}
.search-grid input,.search-grid select,input,select,textarea{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:12px;font-size:16px;background:white}
button{cursor:pointer}.primary,.secondary,.danger{border:0;border-radius:12px;padding:11px 13px;font-weight:750}.primary{background:#2563eb;color:white}.secondary{background:#e2e8f0;color:#0f172a}.danger{background:#fee2e2;color:#991b1b}
button:disabled{opacity:.45;cursor:not-allowed}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.mode-message{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:12px;padding:10px;font-size:13px;margin-bottom:10px}
#map{height:500px;border:1px solid #bfdbfe;border-radius:16px;overflow:hidden;z-index:1}
.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:#475569}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.verified{background:#16a34a}.review{background:#f59e0b}.draft{background:#2563eb}.roadlegend{background:#64748b}.buildinglegend{background:#7c3aed}
.result{border:1px solid var(--border);border-radius:12px;padding:11px;margin-top:8px;cursor:pointer}.result:hover{background:#f8fafc}.result small{color:#64748b}
.empty-record{padding:18px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b}
.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.record-grid div{background:#f8fafc;border-radius:10px;padding:10px}.record-grid span{display:block;font-size:11px;color:#64748b}.record-grid strong{display:block;margin-top:3px;word-break:break-word}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.check{background:#f8fafc;padding:10px;border-radius:10px;font-size:13px}.check input{width:auto;margin-right:7px}
textarea{min-height:90px;resize:vertical;margin-bottom:10px}
.audit-list{display:flex;flex-direction:column;gap:8px}.audit-item{border-left:4px solid #2563eb;background:#f8fafc;padding:10px;border-radius:8px}.audit-item strong{display:block}.audit-item small{color:#64748b}
.list-grid{display:grid;gap:8px}.list-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:11px}.list-item small{color:#64748b}.pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#e2e8f0;font-size:11px;font-weight:700}
.issue{border-left:4px solid #f59e0b;background:#fffbeb;padding:10px;border-radius:8px;margin-bottom:8px}.issue.high{border-left-color:#dc2626;background:#fef2f2}.issue.ok{border-left-color:#16a34a;background:#f0fdf4}
.neighbor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.neighbor-box{background:#f8fafc;padding:10px;border-radius:10px}.neighbor-box span{display:block;font-size:11px;color:#64748b}.neighbor-box strong{font-size:18px}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.65);display:flex;align-items:flex-end;justify-content:center;z-index:2200;padding:12px;overscroll-behavior:contain}
.modal-card{background:white;width:min(780px,100%);border-radius:22px;padding:18px;max-height:92vh;overflow:auto;position:relative;padding-top:0}
.modal-header{position:sticky;top:0;z-index:10;margin:0 -18px 12px;padding:14px 18px 12px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}
.modal-header h3{margin:0}.icon-btn{border:0;background:#e2e8f0;border-radius:999px;width:34px;height:34px}
.floating-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:14px;z-index:2300;width:44px;height:44px;border:0;border-radius:999px;background:#0f172a;color:#fff;font-size:20px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.form-grid{display:grid;grid-template-columns:1fr;gap:10px}.modal-card label{font-size:12px;color:#475569;font-weight:700}.modal-card label input,.modal-card label select,.modal-card label textarea{margin-top:5px}
.coords{display:flex;gap:15px;flex-wrap:wrap;background:#f8fafc;padding:10px;border-radius:10px;font-size:12px;margin-top:8px}
.validation-box{margin-top:10px;padding:10px;border-radius:12px;font-size:13px}.validation-ok{background:#dcfce7;color:#166534;border:1px solid #86efac}.validation-warn{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}.validation-bad{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sticky-actions{position:sticky;bottom:-18px;z-index:9;margin:14px -18px -18px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2e8f0}
.hidden{display:none!important}.number-label{background:transparent!important;border:0!important;box-shadow:none!important;color:white!important;font-weight:900!important;text-shadow:0 1px 2px rgba(0,0,0,.7)}
body.modal-open{overflow:hidden}
nav{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:1100}nav button{border:0;background:transparent;color:#64748b;padding:8px;font-size:11px}nav button.active{color:#2563eb;font-weight:800}
@media(min-width:700px){.stats{grid-template-columns:repeat(4,1fr)}.search-grid{grid-template-columns:1fr 180px auto}.form-grid{grid-template-columns:1fr 1fr}.modal{align-items:center}.neighbor-grid{grid-template-columns:repeat(4,1fr)}}

/* v2.0 RC additions */
.top-actions{display:flex;gap:7px;align-items:center}.status-badge{padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#14532d;color:#dcfce7}.status-badge.offline{background:#7f1d1d;color:#fee2e2}
.score-pill{background:#dcfce7;color:#166534;border-radius:999px;padding:6px 10px;font-weight:800}.progress-track{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress-bar{height:100%;width:0;background:#2563eb;transition:width .25s}.progress-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#64748b}
.scenario-list{display:grid;gap:9px}.scenario-card{border:1px solid #e2e8f0;border-radius:14px;padding:12px}.scenario-card.done{border-color:#86efac;background:#f0fdf4}.scenario-card h4{margin:0 0 5px}.scenario-card p{margin:0 0 8px;color:#64748b;font-size:13px}.scenario-actions{display:flex;gap:8px;flex-wrap:wrap}.scenario-active{background:#eff6ff;border-left:4px solid #2563eb;padding:13px;border-radius:10px}.scenario-active h4{margin:0 0 6px}
.data-actions{display:grid;grid-template-columns:1fr;gap:9px}.file-label{display:block;background:#e2e8f0;border-radius:12px;padding:11px 13px;font-weight:750;text-align:center;cursor:pointer}.file-label input{display:none}.info{margin-top:10px;background:#f8fafc;border-radius:12px;padding:10px;font-size:13px;color:#475569}
nav{grid-template-columns:repeat(6,1fr)!important;overflow-x:auto}nav button{min-width:46px}
@media(min-width:700px){.data-actions{grid-template-columns:1fr 1fr}}
@media print{.topbar,nav,button,.toolbar,.data-actions{display:none!important}.card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}body{padding:0;background:#fff}}

.workflow-strip{margin-top:12px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px;color:#dbeafe}.workflow-strip span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:6px 8px;border-radius:999px;font-weight:750}.workflow-strip b{opacity:.8}
