:root{font:15px/1.5 system-ui,sans-serif;color:#20343a;background:#eef3f2}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid #c9d8d7;border-radius:9px;background:#fff;color:#24444a;padding:9px 14px;font-weight:650;min-height:42px}button:hover{background:#edf5f4}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #277b84;outline-offset:3px}a{color:#216871}a:hover{text-decoration:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}
.app-header{position:relative;z-index:1001;display:flex;gap:16px;align-items:center;padding:12px 22px;min-height:72px;background:white;border-bottom:1px solid #d7e2e0}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:3px;color:#27717a}.brand h1{display:block;font-size:17px;line-height:inherit;font-weight:700;margin:0}.app-header form{display:flex;gap:6px;flex:1;max-width:520px}.app-header input{width:100%;min-width:0;border:1px solid #bdcece;border-radius:9px;padding:10px 12px;background:#f8faf9}.app-header form button{background:#176b73;color:white;border-color:#176b73}.map-modes{display:flex;background:#f2f6f5;padding:3px;border-radius:10px;margin-left:auto}.map-modes button{border:0;background:none;padding:7px 13px}.map-modes [aria-pressed=true]{background:#176b73;color:white}.map-stage{position:relative;height:calc(100dvh - 72px);min-height:380px}#map{height:100%}.map-actions{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:700;display:flex;gap:4px;padding:6px;background:#ffffffee;border:1px solid #d7e3df;border-radius:13px;box-shadow:0 4px 20px #28434a20;max-width:calc(100% - 20px)}.map-actions button{font-size:13px;white-space:nowrap;border:0;padding:8px 12px}.map-message{position:absolute;left:65px;top:12px;max-width:calc(100% - 80px);z-index:800;background:white;border:1px solid #c8d9d4;border-radius:9px;padding:10px 14px;box-shadow:0 2px 12px #20343a20;margin:0;max-width:540px}
.panel{position:fixed;right:16px;top:88px;width:min(390px,calc(100vw - 30px));max-height:calc(100dvh - 184px);background:white;z-index:900;border:1px solid #d2dfdc;border-radius:17px;box-shadow:0 9px 30px #20343a20;overflow:hidden;display:flex;flex-direction:column}.panel-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d8e3df;padding:13px 17px;gap:10px}.panel-header h2{font-size:18px;margin:0}.panel-close{padding:0;min-width:42px;width:42px;height:42px;border:0;border-radius:50%;background:#f0f5f3;font-size:26px;line-height:1}.panel-content{padding:18px;overflow:auto;overscroll-behavior:contain}.panel-content h3{font-size:16px;margin:18px 0 5px}.panel-content h3:first-child{margin-top:0}.panel-content p{margin:9px 0}.muted{font-size:13px;color:#5d7377}.scope-note{font-size:13px;background:#eff5f3;padding:12px;border-radius:8px}.distance-value{font-size:32px;font-weight:720;color:#146a72;line-height:1.2}.check-row{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:14px;cursor:pointer}.check-row input{width:20px;height:20px;accent-color:#176b73}.fault-line{height:0;width:40px;border-top:4px solid;flex:none}.related{display:flex;flex-direction:column;gap:8px;margin-top:22px}.search-results{position:absolute;top:68px;left:285px;width:min(510px,calc(100vw - 30px));z-index:1100;background:white;padding:12px 15px;border:1px solid #c8dad6;border-radius:10px;box-shadow:0 4px 18px #20343a20}.search-results>button{float:right;border:0;font-size:20px;padding:2px 8px}.search-results p{margin:6px 0 10px}.search-results #search-options button{display:block;text-align:left;width:100%;margin:5px 0;font-size:13px;font-weight:500}.leaflet-popup-content{line-height:1.5;font-size:14px;min-width:180px}.leaflet-popup-content h3{font-size:16px;margin:0 0 6px}.leaflet-control-zoom a{min-height:40px;min-width:40px;padding-top:5px}.leaflet-bar a{min-width:38px;min-height:38px}.leaflet-control-attribution{font-size:10px!important;max-width:calc(100vw - 15px)}
@media(max-width:760px){.app-header{flex-wrap:wrap;padding:10px 12px;gap:8px;min-height:112px}.brand{order:0;flex:1;gap:7px}.brand img{width:30px;height:30px}.brand h1{font-size:15px}.brand small{font-size:8px}.account-open{order:1;padding:8px 12px}.app-header form{order:2;flex-basis:100%;max-width:none}.map-modes{position:absolute;right:12px;top:124px;z-index:700;box-shadow:0 2px 9px #20343a20}.map-stage{height:calc(100dvh - 112px)}.panel{top:auto;bottom:87px;right:9px;width:calc(100% - 18px);max-height:58dvh;border-radius:16px}.panel-content{padding:15px}.map-actions{bottom:24px}.map-actions button{font-size:12px;padding:7px 8px}.map-message{top:64px;left:65px;right:10px;max-width:none;font-size:13px}.search-results{top:109px;left:10px;width:calc(100vw - 20px)}.distance-value{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
/* Animate the inner dot only: Leaflet owns the outer marker's map transform. */
.fault-quake-pulse{background:transparent;border:0;pointer-events:none}.fault-quake-pulse-core{position:absolute;inset:2px;border:2px solid white;border-radius:50%;background:#f00;opacity:.9;box-shadow:0 1px 4px #0006;animation:fault-quake-radio 2s ease-out infinite}
@keyframes fault-quake-radio{0%{box-shadow:0 0 0 0 #fffffff0}70%,100%{box-shadow:0 0 0 20px #ff000000}}
.quake-key{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0;font-size:12px}.quake-key span{display:inline-flex;align-items:center;gap:6px}.quake-key i{width:12px;height:12px;border:2px solid var(--quake-color);background:var(--quake-color);opacity:.7;border-radius:50%;flex:none}

/* Results remain reachable in short landscape views. */
.search-results{max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain}.search-results a{color:#176b70}@media(max-width:760px){.search-results{max-height:calc(100dvh - 130px)}}
