/* A readable workbench beside the map; details stay behind deliberate disclosure. */
#panel { width: min(390px, calc(100vw - 24px)); background: #fff; padding: 18px; font-size: 14px; }
#panel .panel-title h1 { font-size: 22px; letter-spacing: -.5px; }
#panel .param-group-title { text-transform: none; font-size: 13px; }
#panel .params-hint, #panel .bucket-hint { font-size: 12px; }
#panel :is(button, summary, select, input, a):focus-visible { outline: 3px solid #287c9a; outline-offset: 3px; }
#panel [hidden] { display: none !important; }
.profile-picker { margin: 18px 0; }
.profile-picker > label { display: block; font-weight: 700; margin-bottom: 6px; }
.profile-picker select { min-height: 44px; font-weight: 650; }
.profile-picker p { color: #52636c; margin: 7px 0 0; font-size: 13px; }
.preference-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preference-heading h2 { font-size: 18px; margin: 0; letter-spacing: -.3px; }
.preference-status { font-size: 11px; color: #34684f; }
.preference-intro { color: #52636c; margin: 8px 0 12px; font-size: 13px; }
.preference-guide { display: block; padding: 10px 12px; border-left: 3px solid #2f6f58; background: #edf5f0; font-size: 13px; margin-bottom: 16px; }
.preference { padding: 14px 0; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; }
.preference + .preference { border-top: 1px solid #e6ece8; }
.preference label { font-weight: 650; color: #263f34; }
.preference output { color: #2f6f58; font-size: 12px; font-variant-numeric: tabular-nums; align-self: center; }
.preference p { grid-column: 1 / -1; margin: 4px 0 8px; color: #52636c; font-size: 12px; }
.preference input[type=range] { grid-column: 1 / -1; margin: 0; height: 30px; }
.preference-endpoints { grid-column: 1 / -1; display: flex; justify-content: space-between; color: #667480; font-size: 11px; }
.extra-preferences { margin: 8px 0 16px; border-top: 1px solid #dde3dc; padding-top: 12px; }
.extra-preferences summary { color: #456456; cursor: pointer; font-size: 13px; }
.extra-preferences > p, .preference-empty { font-size: 13px; color: #52636c; }
.profile-rules { margin-top: 18px; border-top: 1px solid #dde3dc; padding-top: 16px; }
.profile-rules h3 { font-size: 15px; margin: 0 0 5px; }
.profile-rules > p { font-size: 12px; color: #52636c; margin: 0 0 12px; }
.profile-reset { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.profile-reset small { color: #667480; font-size: 11px; }
#panel .config-source { font-size: 11px; margin-top: 10px; }
@media (max-width: 600px) {
  #panel { top: 8px; left: 8px; width: min(390px, calc(100vw - 16px)); max-height: 62dvh; padding: 14px; }
}

.map-data > summary { font-weight: 650; cursor: pointer; color: #52636c; margin-bottom: 12px; }
.map-data .graph-identity { overflow-wrap: anywhere; margin-bottom: 10px; }
#panel .profile-reset .button { min-height: 40px; }
