html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #000;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#globe { position: absolute; inset: 0; }
#panel { position: absolute; top: 12px; left: 12px; width: 290px; max-height: calc(100% - 60px); overflow: auto;
  background: rgba(14, 20, 32, 0.82); color: #e8eef7; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 10px 14px; backdrop-filter: blur(6px); font-size: 13px; z-index: 10;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
#panel header { display: flex; justify-content: space-between; align-items: center; }
#panel h1 { font-size: 17px; margin: 2px 0 8px; font-weight: 600; letter-spacing: .3px; }
#panel.collapsed #panelBody { display: none; }
.field { display: block; margin: 8px 0; color: #aab8cc; }
.field select, .field input[type=date], .field input[type=range] { width: 100%; margin-top: 4px; }
select, input[type=date], button { background: #1d2a40; color: #e8eef7; border: 1px solid #3a4c6b;
  border-radius: 6px; padding: 5px 7px; font-size: 13px; }
button { cursor: pointer; }
button:hover { background: #2a3b59; }
button:disabled, input:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.row input[type=date] { flex: 1; margin-top: 0; }
fieldset { border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; margin: 10px 0; padding: 6px 10px 8px; }
legend { color: #8fb3ff; padding: 0 4px; }
fieldset label { display: block; margin: 4px 0; cursor: pointer; }
#info { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 8px; padding-top: 8px; line-height: 1.55; }
#info b { color: #8fb3ff; font-weight: 600; }
#status { color: #ffd479; min-height: 1em; margin-top: 4px; }
#dateBlock.disabled { opacity: .45; pointer-events: none; }
.cesium-viewer-bottom { opacity: .8; }
@media (max-width: 600px) { #panel { width: calc(100% - 48px); font-size: 12px; } }
.odate { color: #9fb0c8; font-size: 11px; }

/* ---- v2 additions ---- */
#panel { width: 320px; }
.field.slim { margin: 2px 0 8px; font-size: 12px; }
.lbl { color: #aab8cc; min-width: 78px; }
#geoRow input[type=time] { flex: 1; background: #1d2a40; color: #e8eef7; border: 1px solid #3a4c6b; border-radius: 6px; padding: 4px 6px; }
#liveRow { margin: 6px 0; }
#liveRow label { cursor: pointer; }
optgroup { color: #8fb3ff; font-style: normal; }
option { color: #e8eef7; }
.desc { color: #c3cfdf; font-size: 12px; margin: 2px 0 4px; }
img.legend { display: block; width: 100%; max-width: 290px; margin: 4px 0; background: rgba(255,255,255,0.92); border-radius: 4px; }
.ovinfo { border-top: 1px dashed rgba(255,255,255,0.15); margin-top: 6px; padding-top: 6px; }
#zoomCtl { position: absolute; right: 12px; bottom: 110px; display: flex; flex-direction: column; gap: 6px; z-index: 11; }
#zoomCtl button { width: 42px; height: 42px; font-size: 22px; line-height: 1; border-radius: 10px; padding: 0;
  background: rgba(20, 30, 48, 0.88); border: 1px solid #4a6290; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
#zoomCtl button:hover { background: #2f4a78; }
#zoomAlt { position: absolute; right: 62px; bottom: 116px; z-index: 11; color: #dfe8f5; font-size: 12px;
  background: rgba(14,20,32,.75); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
#resHint { display: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 46px; z-index: 11; max-width: 520px;
  background: rgba(40, 32, 8, 0.9); color: #ffe7a3; border: 1px solid #a8862d; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; text-align: center; }
#resHint button { margin-left: 4px; }
#hintToast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9; background: rgba(14,20,32,.85);
  color: #e8eef7; padding: 7px 14px; border-radius: 20px; font-size: 13px; transition: opacity 1s; pointer-events: none; white-space: nowrap; }
#hintToast.hide { opacity: 0; }
/* keep the place-search box always expanded so it is easy to find */
.cesium-viewer-toolbar { top: 12px; right: 12px; }
.cesium-viewer-geocoderContainer .cesium-geocoder-input { width: 240px !important; }
.cesium-viewer-geocoderContainer .cesium-geocoder-input::placeholder { color: #9fb0c8; }
@media (max-width: 700px) { #hintToast { white-space: normal; width: 80%; top: 60px; } .cesium-viewer-geocoderContainer .cesium-geocoder-input { width: 160px !important; } }
#zoomCtl button svg { vertical-align: middle; color: #e8eef7; }
#infoPanel { position: absolute; top: 56px; right: 12px; width: 300px; max-height: calc(100% - 300px); overflow: auto; z-index: 10;
  background: rgba(14, 20, 32, 0.82); color: #e8eef7; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 8px 12px; font-size: 12.5px; backdrop-filter: blur(6px); box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
#infoPanel header { display: flex; justify-content: space-between; align-items: center; }
#infoPanel h2 { font-size: 14px; margin: 0; color: #8fb3ff; font-weight: 600; }
#infoPanel.collapsed #info { display: none; }
#infoPanel #info { border-top: none; margin-top: 4px; padding-top: 0; }
@media (max-width: 900px) { #infoPanel { top: auto; bottom: 60px; left: 12px; right: auto; width: calc(100% - 100px); max-height: 30%; } }
#geoRow input[type=date] { flex: 1.3; min-width: 0; }
#geoRow input[type=time] { flex: 1; min-width: 0; }
