/* Radar Configure surface follows the existing .wl-settings vocabulary. */
#divradar-alert-dialog{--settings-border:rgba(99,102,241,.18);--settings-muted:#a0a6ba;box-sizing:border-box;color-scheme:dark;width:min(460px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;overflow:auto;border:1px solid var(--settings-border);border-radius:16px;padding:18px 20px;background:#111625;color:#e8eaf1;box-shadow:0 24px 80px rgba(0,0,0,.6);font:13px/1.5 var(--font-ui,'Outfit',sans-serif)}
#divradar-alert-dialog::backdrop{background:rgba(3,5,12,.72);backdrop-filter:blur(6px)}
#divradar-alert-dialog label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:10px 0;font-size:12px;font-weight:600}
#divradar-alert-dialog button,#divradar-alert-dialog input,#divradar-alert-dialog select{font:inherit;color:inherit}
#divradar-alert-dialog input[type=number],#divradar-alert-dialog select{box-sizing:border-box;width:160px;max-width:55%;min-height:44px;min-width:0;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px}
#divradar-alert-dialog input[type=checkbox]{width:24px;height:24px;margin-right:auto;accent-color:#6366f1}
#divradar-alert-dialog button{min-height:44px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 12px;cursor:pointer}
#divradar-alert-dialog [data-close]{width:44px;flex-shrink:0;padding:0;font-size:24px;border:0;background:transparent;color:var(--settings-muted)}
#divradar-alert-dialog button:focus-visible,#divradar-alert-dialog input:focus-visible,#divradar-alert-dialog select:focus-visible{outline:2px solid #a5b4fc;outline-offset:2px}
#divradar-alert-dialog h2{font-size:17px;margin:0}#divradar-alert-dialog h3{font-size:14px;margin-top:14px}
#divradar-alert-dialog p{font-size:11px;color:var(--settings-muted);overflow-wrap:anywhere;margin:8px 0}
#divradar-alert-dialog [data-state=error]{color:#fca5a5}
.divradar-alert-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.07)}
#divradar-alert-rule{white-space:nowrap;font-size:10px;flex-shrink:0}
.divradar-alert-stack{box-sizing:border-box;position:fixed;z-index:100000;right:max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;gap:8px;pointer-events:none;overflow:hidden}
.divradar-alert-toast{box-sizing:border-box;flex-shrink:0;width:100%;max-height:inherit;overflow:auto;padding:14px;border:1px solid #94a3b8;border-radius:8px;background:#111625;color:#e8eaf1;box-shadow:0 6px 24px #0008;font:12px/1.5 var(--font-ui,'Outfit',sans-serif);overflow-wrap:anywhere;pointer-events:auto;cursor:pointer}
.divradar-alert-toast:hover{border-color:#e2e8f0}
.divradar-alert-toast button{float:right;min-width:44px;min-height:44px;margin:-7px -7px 0 4px;border:0;border-radius:4px;background:none;color:inherit;font-size:22px;cursor:pointer}.divradar-alert-toast strong{display:block}
.divradar-alert-toast button:focus-visible{outline:2px solid #e2e8f0;outline-offset:-2px}

.divradar-alert-rulebar{padding:6px 10px;border-bottom:1px solid #334155;flex-shrink:0}

/* Recent Radar alerts: a compact labelled feed above the manual drawing
   signals. Radar records are completed detections, not drawing signals. */
.divradar-history{flex-shrink:0;max-height:168px;overflow-y:auto;scrollbar-width:thin;border-bottom:1px solid var(--glass-border,rgba(255,255,255,.06));background:rgba(15,23,42,.35)}
.divradar-history-title{margin:0;padding:6px 14px 3px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--accent-cyan,#00e5ff);opacity:.85}
.divradar-history-list{padding:0 0 4px;color:var(--text-dim,#64748b);font-size:11px}
.divradar-history-list:empty{display:none}
.divradar-history-list>:not(button){padding:0 14px}
.divradar-history-open{display:block;width:100%;min-height:34px;padding:7px 14px;border:0;border-top:1px solid rgba(255,255,255,.04);background:none;color:var(--text-secondary,#c8c8d8);font:11px/1.4 'JetBrains Mono',monospace;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.divradar-history-open:hover{background:rgba(255,255,255,.03);color:var(--text-primary,#e2e8f0)}
.divradar-history-open:focus-visible{outline:2px solid var(--accent-cyan,#00e5ff);outline-offset:-2px}
