
html { overflow-y: scroll; scrollbar-gutter: stable; }
:root { --bg:#0b1118; --panel:#17212b; --panel2:#202c36; --text:#eef3f7; --muted:#aab7c4; --gold:#f3c969; --line:#314151; --red:#a43737; --panel-soft:rgba(15,22,30,.94); --border:rgba(255,255,255,.16); }
* { box-sizing:border-box; }
body { min-height:100vh; margin:0; font-family:Arial,Helvetica,sans-serif; background:linear-gradient(180deg,var(--bg),#101820 60%,#0b1118); color:var(--text); }
a { color:var(--gold); }
.topbar { display:flex; justify-content:space-between; align-items:stretch; gap:1rem; padding:.9rem 1.15rem; background:rgba(8,12,16,.96); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5000; box-shadow:0 10px 28px rgba(0,0,0,.28); }
.topbar-brand-wrap { display:flex; align-items:center; gap:.8rem; min-width:0; flex:1 1 460px; }
.topbar-logo { height:66px!important; width:auto!important; max-width:255px; object-fit:contain; display:block; flex:0 0 auto; background:linear-gradient(180deg,rgba(15,23,42,.98),rgba(8,13,24,.98)); border-radius:.55rem; padding:.18rem .34rem; }
.topbar-brand { min-width:0; display:flex; flex-direction:column; justify-content:center; }
h1 { margin:.04rem 0 0; font-size:1.48rem; letter-spacing:.015em; line-height:1.02; }
.eyebrow { color:var(--gold); text-transform:uppercase; letter-spacing:.085em; font-size:.84rem; font-weight:900; line-height:1; }
.topbar-subtitle { color:var(--muted); font-size:.98rem; margin-top:.12rem; line-height:1.05; }
.prism-letter { color:var(--gold); font-weight:950; }
.title-home { color:inherit; text-decoration:none; cursor:pointer; }
.container { max-width:1220px; margin:0 auto; padding:1.25rem; }
.card { background:linear-gradient(180deg,rgba(24,32,40,.98),rgba(19,27,35,.98)); border:1px solid var(--line); border-radius:1rem; padding:1.25rem; margin-bottom:1rem; box-shadow:0 12px 30px rgba(0,0,0,.22); }
.card h2,.card h3 { margin-top:0; }
label { display:flex; flex-direction:column; gap:.35rem; margin-bottom:.8rem; color:var(--muted); font-weight:700; }
input,select,textarea { width:100%; background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:.65rem; padding:.65rem; font-size:1rem; }
textarea { min-height:90px; resize:vertical; }
input:focus,select:focus,textarea:focus { outline:2px solid rgba(243,201,105,.35); border-color:rgba(243,201,105,.7); }
.actions { display:flex; gap:.75rem; align-items:center; flex-wrap:wrap; margin-top:1rem; }
.button,button.button { display:inline-block; border:1px solid var(--line); background:var(--panel2); color:var(--text); padding:.7rem 1rem; border-radius:.75rem; text-decoration:none; cursor:pointer; font-weight:800; font-family:inherit; font-size:1rem; line-height:1.2; }
.button.primary { background:var(--gold); color:#17120a; border-color:var(--gold); }
.button.small { padding:.38rem .6rem; font-size:.85rem; }
.flash { background:#24311d; border:1px solid #4a6b32; border-radius:.85rem; padding:.6rem 1rem; margin-bottom:1rem; }
.login-card { max-width:520px; margin:32px auto; }
.login-warning { background:#7f1d1d; border:1px solid #fca5a5; color:#fff7ed; border-radius:.85rem; padding:.75rem 1rem; margin-bottom:1rem; font-weight:900; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
.grid { display:grid; gap:1rem; }
.grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.message-preview { white-space:pre-wrap; background:#0b0f13; border:1px solid var(--line); border-radius:.8rem; padding:1rem; line-height:1.45; max-height:60vh; overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:.95rem; }
th,td { border-bottom:1px solid var(--line); padding:.65rem; text-align:left; vertical-align:top; }
th { color:var(--gold); font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; }
tr:hover td { background:rgba(255,255,255,.025); }
.nav-menus { flex:1 1 auto; display:flex; align-items:center; justify-content:flex-end; gap:.55rem; flex-wrap:wrap; }
.menu-primary,.menu-link,.map-link,.nav-icon-link,.nav-menu>summary { list-style:none; text-decoration:none; color:var(--text); padding:.55rem .78rem; border:1px solid var(--line); border-radius:.8rem; background:rgba(255,255,255,.04); font-weight:900; font-size:.88rem; cursor:pointer; user-select:none; min-height:2.66rem; height:2.66rem; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; line-height:1; white-space:nowrap; }
.menu-primary,.nav-create-link { background:var(--gold)!important; color:#17120a!important; border-color:var(--gold)!important; }
.menu-primary:hover,.menu-link:hover,.map-link:hover,.nav-icon-link:hover,.nav-menu>summary:hover { border-color:rgba(243,201,105,.65); background:rgba(243,201,105,.12); }
.nav-menu { position:relative; }
.nav-menu>summary::-webkit-details-marker { display:none; }
.nav-menu>summary::after { content:''!important; display:none!important; }
.nav-menu[open]>summary { border-color:rgba(243,201,105,.75); background:rgba(243,201,105,.14); }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.nav-icon-link,.nav-icon-menu>summary { width:2.6rem!important; min-width:2.6rem!important; max-width:2.6rem!important; height:2.66rem!important; min-height:2.66rem!important; max-height:2.66rem!important; padding:0!important; border-radius:.8rem!important; }
.nav-icon-svg { width:1.18rem; height:1.18rem; display:block; fill:currentColor; color:var(--text); opacity:.95; }
.nav-icon-link:hover .nav-icon-svg,.nav-icon-menu>summary:hover .nav-icon-svg { color:var(--gold); opacity:1; }
.nav-create-link { order:-20; gap:.48rem!important; padding:.66rem 1.06rem .66rem .94rem!important; font-size:.9rem!important; font-weight:900!important; }
.nav-create-svg { width:1.16rem!important; height:1.16rem!important; min-width:1.16rem!important; display:block!important; fill:currentColor!important; flex:0 0 auto!important; }
.nav-status-boxes { display:flex; gap:.45rem; align-items:center; flex-wrap:wrap; }
.nav-status-box { min-width:88px; height:2.66rem; padding:.34rem .58rem; border:1px solid var(--line); border-radius:.8rem; background:rgba(255,255,255,.035); display:flex; flex-direction:column; justify-content:center; line-height:1.05; }
.nav-status-box span { color:var(--muted); font-size:.64rem; text-transform:uppercase; letter-spacing:.06em; font-weight:900; }
.nav-status-box strong { color:var(--gold); font-size:.82rem; margin-top:.16rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:120px; }
.map-menu-panel { position:absolute; top:calc(100% + .45rem); right:0; width:max-content; min-width:220px; max-width:min(320px,calc(100vw - 1.5rem)); display:flex; flex-direction:column; gap:.35rem; padding:.5rem; border:1px solid rgba(255,255,255,.16); border-radius:1rem; background:rgba(15,22,30,.98); box-shadow:0 18px 42px rgba(0,0,0,.38); z-index:5100; box-sizing:border-box; overflow:hidden; }
.map-menu-panel a,.map-menu-panel button { appearance:none; display:block; width:100%; box-sizing:border-box; text-align:left; color:var(--text); text-decoration:none; border:1px solid transparent; border-radius:.7rem; padding:.65rem .75rem; font-weight:800; white-space:nowrap; background:rgba(255,255,255,.035); font-size:.86rem; cursor:pointer; font-family:inherit; line-height:1.2; }
.map-menu-panel a:hover,.map-menu-panel button:hover { background:rgba(243,201,105,.13); border-color:rgba(243,201,105,.45); }
body.map-page { overflow:hidden; }
body.map-page .topbar { position:fixed; left:0; right:0; top:0; z-index:5000; }
#map { position:fixed; inset:0; height:100dvh; width:auto; z-index:1; background:#0b1726; }
.map-floating { position:fixed; z-index:1200; background:var(--panel-soft); border:1px solid var(--border); border-radius:16px; padding:10px 12px; box-shadow:0 14px 36px rgba(0,0,0,.28); font-size:.88rem; }
.legend { right:12px; bottom:44px; width:290px; max-width:calc(100vw - 24px); }
.legend h3,.selection-panel h3 { margin:0 0 8px; font-size:.92rem; color:var(--gold); }
.legend-row { display:grid; grid-template-columns:26px 1fr; gap:8px; align-items:center; margin:5px 0; color:var(--muted); }
.swatch { height:14px; width:24px; border-radius:999px; display:inline-block; }
.swatch.ten { border:3px solid #f3c969; background:rgba(243,201,105,.13); }
.swatch.twentyfive { border:2px dashed #000000; background:rgba(238,243,247,.08); }
.swatch.fifty { border:3px solid #8fb6ff; background:rgba(143,182,255,.1); }
.swatch.cone { background:rgba(255,184,77,.28); border:2px solid #ffb84d; }
.selection-panel { left:12px; top:104px; width:min(390px,calc(100vw - 24px)); max-height:calc(100dvh - 120px); overflow:auto; }
.selection-panel p { color:var(--muted); line-height:1.35; }
.selection-grid { display:grid; gap:.5rem; grid-template-columns:1fr 1fr; }
.selection-grid label { margin:0; font-size:.78rem; }
.selection-actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.75rem; }
.leaflet-control-zoom { border:1px solid rgba(255,255,255,.22)!important; border-radius:12px!important; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.25)!important; }
.leaflet-control-zoom.prism-zoom-control { position:fixed!important; margin:0!important; z-index:1300!important; right:12px!important; bottom:220px!important; }
.leaflet-control-zoom a { background:rgba(7,17,31,.95)!important; color:var(--text)!important; border-bottom:1px solid rgba(255,255,255,.16)!important; }
.leaflet-control-attribution { background:rgba(7,17,31,.72)!important; color:#cbd5e1!important; }
.ring-label div { background:rgba(17,21,27,.9); color:#fff; border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:4px 8px; font-weight:900; }
@media (min-width:901px){ .app-topbar.topbar{flex-direction:row!important;align-items:stretch!important;gap:1rem!important;padding:.9rem 1.15rem!important}.app-topbar .topbar-logo{height:66px!important;max-width:255px!important}.app-topbar .nav-menus{align-self:stretch!important} }
@media (max-width:900px){ body.map-page{overflow:auto}.topbar,.app-topbar.topbar{position:relative!important;flex-direction:column!important;gap:.65rem!important}.topbar-logo{height:54px!important;max-width:215px}.nav-menus{justify-content:flex-start;max-height:110px;overflow:auto}.nav-status-boxes{order:99}.selection-panel{top:160px}.legend{display:none}.grid.two,.grid.three{grid-template-columns:1fr} }


.authorized-use-notice { background:rgba(127,29,29,.22); border:1px solid rgba(252,165,165,.55); border-radius:.9rem; padding:1rem; margin-bottom:1rem; color:#fff7ed; }
.authorized-use-notice h3 { color:#fecaca; margin:0 0 .65rem; text-transform:uppercase; letter-spacing:.08em; font-size:.92rem; }
.authorized-use-notice p { margin:.55rem 0; line-height:1.42; }
.stacked-form { display:block; }
.login-submit { width:100%; margin-top:.3rem; }
.muted { color:var(--muted); }
.badge,.pill { display:inline-flex; align-items:center; justify-content:center; gap:.25rem; border:1px solid rgba(243,201,105,.45); color:var(--gold); background:rgba(243,201,105,.1); padding:.22rem .48rem; border-radius:999px; font-size:.76rem; font-weight:900; margin:.1rem .15rem .1rem 0; white-space:nowrap; }
.pill.good { color:#bbf7d0; border-color:rgba(74,222,128,.45); background:rgba(34,197,94,.12); }
.pill.danger,.button.danger { color:#fecaca; border-color:rgba(248,113,113,.55); background:rgba(127,29,29,.35); }
.checkbox-line { flex-direction:row; align-items:center; gap:.5rem; }
.checkbox-line input { width:auto; }
.menu-note { display:block; padding:.55rem .7rem; color:var(--muted); font-size:.78rem; line-height:1.25; border-top:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1); }
code { color:#fde68a; background:rgba(0,0,0,.22); padding:.08rem .25rem; border-radius:.25rem; }


.center-radiation-marker {
  width: 20px !important;
  height: 20px !important;
  background: transparent !important;
  border: 0 !important;
}
.center-radiation-icon {
  width: 20px !important;
  height: 20px !important;
  display: block;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85));
}

.credit-card { border-top: 1px solid rgba(234,179,8,.28); }
.credit-card p { max-width: 980px; line-height: 1.55; }

/* v0.3.6: match PRISM map navbar placement for Manage Data and System buttons. */
.nav-menus .nav-data-link { order: 90; margin-left: 0; }
.nav-menus .nav-system-menu { order: 100; margin-left: 0; }
.nav-menus:not(:has(.nav-data-link)) .nav-system-menu { margin-left: 0; }
