html, body { margin: 0; height: 100%; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; background: #e9eef5; color: #1d2738; }
#map { position: absolute; inset: 0; }
#panel { position: absolute; top: 10px; left: 10px; z-index: 5; width: 300px; max-height: calc(100% - 20px); overflow: auto;
  background: rgba(255, 255, 255, .95); border: 1px solid #c8d3e4; border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(30, 50, 90, .18); }
#panel.collapsed #body { display: none; }
.head { display: flex; align-items: center; justify-content: space-between; }
h1 { font-size: 15px; margin: 0; color: #4667a4; }
label { display: block; margin-top: 8px; color: #4667a4; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
select, input[type=number] { width: 100%; box-sizing: border-box; background: #fff; color: #1d2738; border: 1px solid #b5c3d9; border-radius: 5px; padding: 3px 5px; font: inherit; }
input[type=range] { width: 100%; }
button { background: #fff; color: #4667a4; border: 1px solid #b5c3d9; border-radius: 5px; padding: 2px 8px; cursor: pointer; font: inherit; }
button:hover { background: #eef2f9; }
.row { display: flex; gap: 8px; align-items: center; } .row > * { flex: 1; min-width: 0; }
.row.tight > button { flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.chips button.on { background: #4667a4; color: #fff; border-color: #4667a4; }
.info { font-size: 12px; color: #4b5a72; margin-top: 4px; }
.info a { color: #4667a4; }
.tval { font-family: ui-monospace, monospace; color: #1d2738; text-transform: none; letter-spacing: 0; font-size: 13px; margin-left: 4px; }
.grad { height: 12px; border-radius: 3px; margin-top: 6px; border: 1px solid #b5c3d9; }
.ticks { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 11px; }
.val { font-family: ui-monospace, monospace; font-size: 13px; margin-top: 8px; color: #1d2738; min-height: 1.4em; }
.hint { font-size: 11px; color: #6b7891; margin-top: 6px; }
#tsbox { display: none; margin-top: 6px; border-top: 1px solid #dde4ef; padding-top: 6px; }
.tshead { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #4b5a72; }
.tshead button { padding: 0 6px; }
#ts { width: 100%; height: 130px; }
details { margin-top: 6px; font-size: 11px; color: #6b7891; }
#net { font-family: ui-monospace, monospace; white-space: pre-wrap; }
#msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4; max-width: 420px; display: none;
  background: rgba(255, 255, 255, .96); border: 1px solid #c8d3e4; border-radius: 8px; padding: 16px 20px; color: #1d2738; text-align: center; }
#msg a { color: #4667a4; }
.row.tight > select { flex: 0 0 auto; width: auto; }
.row.tight > #field { flex: 1 1 auto; width: 100%; }
#view3d { position: absolute; inset: 0; z-index: 3; display: none; background: #dfe8f2; }
#v3host { position: absolute; inset: 0; }
#v3bar { position: absolute; top: 10px; right: 10px; display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .95);
  border: 1px solid #c8d3e4; border-radius: 8px; padding: 6px 10px; }
#v3bar label { margin: 0; display: flex; gap: 6px; align-items: center; }
#v3bar select { width: auto; }
#scenbox { display: none; }
#v3attr { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: #4b5a72; background: rgba(255, 255, 255, .8); padding: 1px 6px; border-radius: 4px; }
