/* web/style.css */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, sans-serif; }
body { display: flex; }
#panel {
  width: 320px; padding: 16px; overflow-y: auto; background: #0f172a; color: #e2e8f0;
  flex: 0 0 320px;
}
#panel h1 { font-size: 18px; margin: 0 0 2px; }
#panel .sub { margin: 0 0 16px; color: #94a3b8; font-size: 12px; }
#panel label { display: block; font-size: 13px; margin: 12px 0 4px; }
#panel output { float: right; color: #38bdf8; font-variant-numeric: tabular-nums; }
#panel input[type=range] { width: 100%; }
.toggle { margin: 16px 0; }
#layerBtn {
  width: 100%; padding: 10px; border: 0; border-radius: 8px; cursor: pointer;
  background: #2563eb; color: white; font-size: 14px;
}
#fitBtn { width:100%; padding:8px; margin-top:8px; border:0; border-radius:8px; cursor:pointer; background:#334155; color:#e2e8f0; font-size:13px; }
.note { margin-top: 16px; font-size: 12px; color: #cbd5e1; }
.note code { color: #7dd3fc; }
#map { flex: 1; position: relative; }
#readouts {
  position: absolute; top: 12px; right: 12px; z-index: 1000;
  background: rgba(15,23,42,0.88); color: #e2e8f0; padding: 12px 14px;
  border-radius: 10px; font-size: 13px; min-width: 210px;
}
#readouts div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
#readouts span { color: #94a3b8; }
#readouts b { font-variant-numeric: tabular-nums; }
.badge { justify-content: center !important; margin-top: 8px; padding: 6px;
  border-radius: 6px; font-weight: 700; }
.badge.on { background: #15803d; color: white; }
.badge.off { background: #475569; color: #e2e8f0; }
#colorbar {
  position: absolute; bottom: 18px; left: 12px; z-index: 1000;
  background: rgba(15,23,42,0.88); color: #e2e8f0; padding: 10px;
  border-radius: 10px; font-size: 12px; width: 180px;
}
#cbRamp { height: 12px; border-radius: 4px; margin: 6px 0;
  background: linear-gradient(to right,
    rgb(48,18,59), rgb(33,144,231), rgb(27,229,181),
    rgb(165,254,74), rgb(246,211,39), rgb(228,90,18), rgb(122,4,3)); }
#cbLabels { display: flex; justify-content: space-between; }
.plume-canvas { z-index: 200; }
#readouts .rsec { color:#7dd3fc; font-weight:700; margin:8px 0 2px; border-top:1px solid #334155; padding-top:6px; }
#readouts .rsec:first-child { border-top:0; padding-top:0; }
#panel select { width: 100%; padding: 6px; border-radius: 6px; border: 0; background: #1e293b; color: #e2e8f0; font-size: 13px; }
