:root{--viz-height:75dvh}body{margin:16px}.ground-motion-app{box-sizing:border-box;color:#1f2937;width:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}.ground-motion-app *,.ground-motion-app :before,.ground-motion-app :after{box-sizing:border-box}.ground-motion-app .gm-header{text-align:center;margin-bottom:16px}.ground-motion-app .gm-header h1{margin:0;font-size:1.75rem;font-weight:700}.ground-motion-app .gm-grid{grid-template-columns:2.2fr 1fr;align-items:stretch;gap:16px;width:100%;display:grid}.ground-motion-app .left-column{order:3;grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:start;gap:12px;min-width:0;padding-right:0;display:grid;overflow:visible}.ground-motion-app .file-upload-box{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;gap:8px;width:100%;padding:12px;display:flex}.ground-motion-app .file-upload-box input[type=file]{width:100%;font-size:12px}.ground-motion-app #file-status{color:#374151;font-size:12px;line-height:1.45}.ground-motion-app .control-group{background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;gap:8px;width:100%;padding:12px;display:flex}.ground-motion-app .control-group-title{text-transform:uppercase;letter-spacing:.04em;color:#6b7280;margin-bottom:2px;font-size:12px;font-weight:700}.ground-motion-app .control-row{cursor:pointer;align-items:center;gap:8px;font-size:13px;display:flex}.ground-motion-app .slider-label{flex-direction:column;gap:6px;width:100%;font-size:13px;display:flex}.ground-motion-app input[type=range]{width:100%;margin:0;display:block}.ground-motion-app .middle-column{width:100%;min-width:0;min-height:520px;max-height:var(--viz-height);background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;order:1;padding:12px;display:flex}.ground-motion-app #my_dataviz{flex:1;width:100%;min-width:0;height:100%;min-height:480px;position:relative}.ground-motion-app #my_dataviz>canvas,.ground-motion-app #my_dataviz>svg{width:100%;height:100%;display:block;position:absolute;top:0;left:0}.ground-motion-app #my_dataviz>svg{pointer-events:none}.ground-motion-app .right-column{min-width:0;min-height:0;max-height:var(--viz-height);flex-direction:column;order:2;gap:12px;display:flex}.ground-motion-app .side-chart{background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;flex:1;min-height:240px;padding:10px;display:flex}.ground-motion-app .side-chart h3{color:#374151;flex-shrink:0;margin:0 0 6px 12px;font-size:13px;font-weight:600}.ground-motion-app #mag_histogram,.ground-motion-app #pga_density{flex:1;width:100%;min-height:0}.ground-motion-app #mag_histogram>svg,.ground-motion-app #pga_density>svg{width:100%;height:100%;display:block}.ground-motion-app .grid line{stroke:#e5e7eb;stroke-opacity:.8;shape-rendering:crispedges}.ground-motion-app .grid path{stroke-width:0}.ground-motion-app .dual-slider-box{align-items:center;width:100%;height:22px;margin-top:2px;display:flex;position:relative}.ground-motion-app .dual-slider-track,.ground-motion-app .dual-slider-fill{pointer-events:none;border-radius:999px;height:5px;position:absolute}.ground-motion-app .dual-slider-track{z-index:1;background:#e5e7eb;width:100%}.ground-motion-app .dual-slider-fill{z-index:2;background:#2563eb;width:100%;left:0%}.ground-motion-app input[type=range].dual-range{pointer-events:none;appearance:none;z-index:3;background:0 0;width:100%;height:22px;margin:0;position:absolute;left:0}.ground-motion-app input[type=range].dual-range:focus{outline:none}.ground-motion-app input[type=range].dual-range::-webkit-slider-thumb{appearance:none;pointer-events:auto;cursor:pointer;background:#fff;border:2px solid #2563eb;border-radius:50%;width:16px;height:16px;transition:transform .1s,background-color .1s;box-shadow:0 1px 3px #00000040}.ground-motion-app input[type=range].dual-range::-webkit-slider-thumb:hover{background:#eff6ff;transform:scale(1.15)}.ground-motion-app input[type=range].dual-range::-moz-range-thumb{pointer-events:auto;cursor:pointer;background:#fff;border:2px solid #2563eb;border-radius:50%;width:16px;height:16px;transition:transform .1s,background-color .1s;box-shadow:0 1px 3px #00000040}.ground-motion-app input[type=range].dual-range::-moz-range-thumb:hover{background:#eff6ff;transform:scale(1.15)}@media (width<=1024px){.ground-motion-app .gm-grid{grid-template-columns:minmax(0,1fr);min-height:auto}.ground-motion-app #my_dataviz{height:55vh;min-height:380px}.ground-motion-app .side-chart{height:280px}}
