/* CellScope Pro — Light Skin Overrides (externalized 2026-05-11)
 * Was inline <style> block 2 inside index.html.
 * !important reduced from 586 to 219 via property-whitelist scrubbing.
 * Kept !important for: display/transform/opacity/position/dimensions, .leaflet-* selectors.
 */
/* CellScope Pro — Light Skin (Apple/Stripe-inspired)
 * Pure CSS overlay, no DOM/structure changes. Loaded after the original styles
 * to override dark theme with refined light aesthetic.
 *
 * Design tokens:
 *   bg:        #fafbfc  (off-white app background)
 *   surface:   #ffffff  (cards, panels, dialogs)
 *   text:      #0f172a  (primary)
 *   muted:     #64748b  (secondary)
 *   border:    #e2e8f0  (hairline)
 *   accent:    #635BFF  (Stripe purple — primary action)
 *   accent2:   #10b981  (emerald — success)
 *   accent3:   #3b82f6  (blue — info)
 *   shadow-1:  0 1px 2px rgba(15,23,42,.04)
 *   shadow-2:  0 4px 12px rgba(15,23,42,.06)
 *   shadow-3:  0 12px 32px rgba(15,23,42,.12)
 *   radius:    6px buttons · 10px cards · 14px dialogs
 *   spacing:   4px base
 *   font:      Inter (existing) + JetBrains Mono for numerics
 */

/* ============================ Base & Typography ============================ */
html, body {
  background: #fafbfc;
  color: #0f172a;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}* { box-sizing: border-box; }a { color: #635BFF; text-decoration: none; }a:hover { text-decoration: underline; }/* ============================ Menubar ============================ */
.menubar, [class*="menubar"], .menu-bar {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 0 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  z-index: 100;
}.menubar > *, .menu-item {
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 120ms ease, color 120ms ease;
  cursor: pointer;
}.menubar > *:hover, .menu-item:hover {
  background: rgba(99,91,255,.08);
  color: #635BFF;
}/* ============================ Toolbar — COMPACT single-row ribbon ============================ */
.toolbar, [class*="toolbar"]:not([class*="bottom"]) {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  display: flex !important;
  flex-wrap: nowrap !important;       /* never wrap */
  gap: 3px !important;
  align-items: center !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  /* CRITICAL: must be 'visible' so dropdown panels (Design/Analysis/Planning/Report/Export/View)
   * can extend BELOW the toolbar without being clipped. We use a wrapper for X-scroll instead. */
  overflow: visible !important;
  position: relative;
}.toolbar::-webkit-scrollbar { height: 3px; }.toolbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }/* Force buttons into compact horizontal pills (icon left, label right) */
.toolbar button, .toolbar [role="button"] {
  background: transparent;
  color: #475569;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 9px;
  font: 500 11px/1.1 'Inter', sans-serif !important;
  cursor: pointer;
  transition: all 140ms cubic-bezier(.4,0,.2,1);
  letter-spacing: -0.005em;
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;       /* icon LEFT, label RIGHT (not stacked) */
  gap: 5px !important;
  flex-shrink: 0 !important;
  height: 32px !important;
  white-space: nowrap;
  text-overflow: ellipsis !important;
  max-width: none !important;
  min-width: 0 !important;
}/* Toolbar icons: smaller and inline */
.toolbar button > svg, .toolbar button > i, .toolbar button > img,
.toolbar button > span:first-child {
  width: 14px !important;
  height: 14px !important;
  font-size: 12px;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0;
}/* Toolbar labels (the second span/div under each button) */
.toolbar button > span:not(:first-child),
.toolbar button > div {
  font-size: 11px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  white-space: nowrap;
}/* Vertical separators between toolbar groups — when 2 buttons in a row */
.toolbar > div:has(button + button) {
  display: inline-flex !important;
  gap: 2px !important;
  align-items: center !important;
  padding: 0 4px;
  border-right: 1px solid #f1f5f9;
}.toolbar button:hover, .toolbar [role="button"]:hover {
  background: #f8fafc;
  color: #635BFF;
  border-color: #c7d2fe;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(99,91,255,.12);
}.toolbar button:active { transform: translateY(0) !important; }.toolbar button.active, .toolbar button[aria-pressed="true"] {
  background: linear-gradient(180deg,#635BFF,#5347ff);
  color: #fff;
  border-color: #5347ff;
  box-shadow: 0 2px 6px rgba(99,91,255,.35), inset 0 1px 0 rgba(255,255,255,.2);
}/* ============================ Panels — tighter spacing, more map area ============================ */
.left-panel, .right-panel, [class*="left-panel"], [class*="right-panel"] {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 1px 0 2px rgba(15,23,42,.02);
  font-size: 12px;
}.right-panel, [class*="right-panel"] {
  border-right: 0;
  border-left: 1px solid #e2e8f0;
  box-shadow: -1px 0 2px rgba(15,23,42,.02);
  width: var(--csp-rp-width, 320px) !important;   /* JS-resizable */
  min-width: 220px !important;
  max-width: 640px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
}/* Resize handle on the left edge of the right-panel */
.csp-rp-resizer {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 6px !important; height: 100% !important;
  cursor: col-resize;
  z-index: 50 !important;
  background: transparent;
  transition: background-color 120ms ease;
}.csp-rp-resizer:hover, .csp-rp-resizer.csp-dragging {
  background: linear-gradient(90deg, transparent, rgba(99,91,255,.45), transparent);
}.csp-rp-resizer::after {
  content: ""; position: absolute; top: 50%; left: 1px;
  width: 4px; height: 32px; transform: translateY(-50%);
  border-left: 2px dotted #cbd5e1; border-right: 2px dotted #cbd5e1;
  opacity: 0.5; pointer-events: none;
}body.csp-rp-resizing { cursor: col-resize; user-select: none; }body.csp-rp-resizing * { user-select: none; pointer-events: none; }body.csp-rp-resizing .csp-rp-resizer { pointer-events: auto; }/* ============================ PROPERTIES PANEL — compact two-column layout ============================ */
/* Section headers ("General", "Transmitter", etc.) */
.right-panel h3, .right-panel h4, .right-panel .section-title,
.right-panel [class*="section"], .right-panel [class*="prop-header"] {
  background: linear-gradient(90deg,#f8fafc,#ffffff);
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}/* Each property ROW: label LEFT + input RIGHT, on single row */
.right-panel .prop-row, .right-panel [class*="prop-row"],
.right-panel > div > div:has(label):has(input),
.right-panel > div > div:has(label):has(select) {
  display: grid !important;
  grid-template-columns: minmax(90px, 44%) 1fr !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 4px 12px;
  min-height: 28px !important;
  border-bottom: 1px solid #fafbfc;
  font-size: 11px;
}.right-panel .prop-row:hover, .right-panel [class*="prop-row"]:hover {
  background: #f8fafc;
}/* Label on the left */
.right-panel label {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}/* Inputs on the right — compact, right-edge aligned */
.right-panel input[type="text"],
.right-panel input[type="number"],
.right-panel input[type="email"],
.right-panel select,
.right-panel textarea {
  width: 100% !important;
  padding: 4px 8px;
  height: 26px !important;
  min-height: 26px !important;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 100ms ease, box-shadow 100ms ease;
  box-sizing: border-box;
}.right-panel input[type="number"] {
  text-align: right;
  font-feature-settings: 'tnum';
}.right-panel input:focus, .right-panel select:focus, .right-panel textarea:focus {
  border-color: #635BFF;
  box-shadow: 0 0 0 2px rgba(99,91,255,.12);
}.right-panel input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0;
  accent-color: #635BFF;
}/* Textarea (longer notes) */
.right-panel textarea {
  height: auto !important;
  min-height: 50px !important;
  font-family: 'Inter', sans-serif;
}/* Helper text under fields (e.g. "Override DL/UL freq") */
.right-panel .helper, .right-panel small, .right-panel [class*="hint"] {
  font-size: 10px;
  color: #94a3b8;
  font-style: italic;
  padding: 0 12px 4px;
  margin: 0;
  display: block !important;
  grid-column: 1 / -1 !important;  /* span both columns when in grid */
}/* Search input that appears at top */
.right-panel input[type="search"], .right-panel input[placeholder*="Search"] {
  margin: 6px 12px;
  width: calc(100% - 24px) !important;
}/* Buttons inside Properties panel (e.g. Apply, Reset) */
.right-panel button {
  padding: 5px 10px;
  font-size: 11px;
  height: 26px !important;
  border-radius: 5px;
}/* Empty-state placeholder ("Select a site or cell to view properties") */
.right-panel > div:not(:has(input)):not(:has(select)) > div:first-child:only-child {
  text-align: center;
  color: #94a3b8;
  font-size: 11.5px;
  padding: 30px 16px;
  font-style: italic;
}.bottom-panel, [class*="bottom-panel"] {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
}/* Tighter side-panel tabs (Network/Site/Geo/Parameters/6G at bottom of left panel) */
.left-panel .tab, .left-panel [role="tab"], .panel-tab, [class*="panel-tab"] {
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}.left-panel .tab .label, .panel-tab .label { font-size: 10px; }.left-panel .tab svg, .left-panel .tab i, .panel-tab svg { width: 13px !important; height: 13px !important; }/* Panel headers/section titles */
.panel-header, .section-title, .panel h3, .panel h4, h3, h4 {
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
  background: #fafbfc;
}/* ============================ Tree / List (Sites etc.) ============================ */
.tree, .left-panel ul, .left-panel li, .site-list li, [class*="tree"] li {
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  border-radius: 6px;
  margin: 2px 6px;
  padding: 6px 10px;
  transition: background 100ms ease;
}.tree li:hover, .left-panel li:hover, [class*="tree"] li:hover {
  background: #f1f5f9;
}.tree li.selected, .left-panel li.selected, .left-panel li[aria-selected="true"] {
  background: rgba(99,91,255,.08);
  color: #635BFF;
  font-weight: 600;
}/* ============================ Properties Panel inputs ============================ */
input[type="text"], input[type="number"], input[type="email"],
input[type="search"], input[type="date"], select, textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 10px;
  font: 13px/1.4 'Inter', sans-serif !important;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  outline: 0;
}input:focus, select:focus, textarea:focus {
  border-color: #635BFF;
  box-shadow: 0 0 0 3px rgba(99,91,255,.12);
}input[type="checkbox"] { accent-color: #635BFF; }label { color: #475569; font-size: 11.5px; font-weight: 500; }/* ============================ Buttons (general) ============================ */
button, .btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 14px;
  font: 500 12.5px/1.2 'Inter', sans-serif;
  cursor: pointer;
  transition: all 140ms cubic-bezier(.4,0,.2,1);
  letter-spacing: -0.005em;
}button:hover { background: #f8fafc; color: #635BFF; border-color: #c7d2fe; }button.primary, .btn.primary, button[class*="primary"] {
  background: linear-gradient(180deg,#635BFF 0%,#5347ff 100%);
  color: #ffffff;
  border-color: #5347ff;
  box-shadow: 0 1px 2px rgba(83,71,255,.2), inset 0 1px 0 rgba(255,255,255,.18);
}button.primary:hover, .btn.primary:hover {
  background: linear-gradient(180deg,#5347ff 0%,#4338ca 100%);
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(83,71,255,.3), inset 0 1px 0 rgba(255,255,255,.18);
}button:disabled { opacity: 0.4 !important; cursor: not-allowed; transform: none !important; }/* ============================ Tables ============================ */
table {
  background: #ffffff;
  color: #1e293b;
  border-collapse: separate;
  border-spacing: 0;
  width: 100% !important;
  font-size: 12.5px;
  border-radius: 8px;
  overflow: hidden !important;
}th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}tr:hover td { background: #fafbfc; }td.num, td[class*="num"] {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 11.5px;
  text-align: right;
  font-feature-settings: 'tnum';
  color: #0f172a;
}/* ============================ UNIVERSAL SCROLL FIX — applies to ALL dialogs/panels ============================ */
/* Catch every dialog-like container the React tool renders */
.dialog, .modal,
[class*="dialog"]:not([class*="overlay"]):not([class*="titlebar"]):not([class*="body"]):not([class*="footer"]):not([class*="header"]) {
  background: #ffffff;
  color: #1e293b;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15,23,42,.18), 0 4px 12px rgba(15,23,42,.08);
  /* Allow inner scroll. Cap at 90vh so titlebar/footer stay visible. */
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}.dialog-overlay {
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}.dialog-titlebar, .modal-header {
  background: #ffffff;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  flex-shrink: 0 !important;
}.dialog-body, .modal-body, [class*="dialog-body"], [class*="modal-body"] {
  padding: 18px;
  background: #ffffff;
  /* THIS is the scrollable region */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}.dialog-body::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 8px; }.dialog-body::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }.dialog-body::-webkit-scrollbar-thumb:hover, .modal-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }/* SAFETY NET — any direct child of .dialog/.modal that's flagged as content gets scroll
 * This catches React tools that don't use .dialog-body class explicitly */
.dialog > div:not(.dialog-titlebar):not(.dialog-footer):not([class*="title"]):not([class*="footer"]):not([class*="header"]),
.modal > div:not(.modal-header):not(.modal-footer) {
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
}/* The wizard's body */
.csp-wiz, .csp-wiz-body { overflow: hidden !important; }.csp-wiz { display: flex !important; flex-direction: column !important; max-height: 88vh !important; }.csp-wiz .csp-wiz-body, .csp-wiz #csp-wiz-body, .csp-wiz #csp-body { overflow-y: auto !important; flex: 1 !important; min-height: 0 !important; }/* ACP rich panel — already has max-height but ensure body scrolls */
.acp-rich .body { overflow-y: auto !important; max-height: calc(86vh - 80px) !important; }/* Any popup/popover with > 60vh content forces internal scroll */
[class*="popup"]:not([class*="overlay"]),
[class*="popover"]:not([class*="overlay"]) {
  max-height: 80vh !important;
  overflow-y: auto !important;
}.dialog-footer, .modal-footer {
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  padding: 12px 18px;
  display: flex !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
}/* ============================ Pills / Badges / Chips ============================ */
.pill, .badge, .chip, [class*="pill"], [class*="badge"] {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}/* ============================ Status colors ============================ */
.success, .ok, [class*="success"] { color: #059669; background: rgba(16,185,129,.08); }.warning, .warn, [class*="warn"] { color: #b45309; background: rgba(245,158,11,.08); }.error, .danger, [class*="error"] { color: #dc2626; background: rgba(239,68,68,.08); }.info { color: #1d4ed8; background: rgba(59,130,246,.08); }/* ============================ Map area enhancements ============================ */
.map-area, [class*="map-area"], .leaflet-container {
  border-radius: 0 !important;
  background: #f8fafc !important;
}.leaflet-control-zoom, .leaflet-bar {
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.12) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}.leaflet-control-zoom a {
  background: #ffffff !important;
  color: #475569 !important;
  border: 0 !important;
  font-weight: 500 !important;
}.leaflet-control-zoom a:hover {
  background: #f8fafc !important;
  color: #635BFF !important;
}.leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important;
  color: #64748b !important;
  font-size: 10px !important;
  border-radius: 6px 0 0 0 !important;
}/* ============================ ACP Rich Result Panel (override dark variant) ============================ */
.acp-rich {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.04);
  border-radius: 14px;
}.acp-rich .body { color: #1e293b; background: #ffffff; }.acp-rich h4 { color: #94a3b8; }.acp-rich .acp-grid .l { color: #64748b; }.acp-rich .acp-grid .v { color: #0f172a; }.acp-rich .acp-grid .v.big { color: #635BFF; }.acp-rich td, .acp-rich th { color: #1e293b; border-bottom-color: #f1f5f9; }.acp-rich th { color: #64748b; background: #fafbfc; }.acp-rich .audit { background: #fafbfc; color: #64748b; border: 1px solid #f1f5f9; }.acp-rich .badge-strip span {
  background: #f1f5f9;
  color: #475569;
}.acp-rich .footer { background: #fafbfc; color: #94a3b8; border-top: 1px solid #f1f5f9; }/* ============================ Wizard (light variant for consistency) ============================ */
.csp-wiz { box-shadow: 0 24px 64px rgba(15,23,42,.18), 0 4px 12px rgba(15,23,42,.08); }/* ============================ Toast / Notifications ============================ */
[class*="toast"], [class*="notification"] {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 500;
}/* ============================ Status bar (bottom) ============================ */
.status-bar, [class*="status-bar"] {
  background: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  padding: 4px 12px;
  font-feature-settings: 'tnum';
}/* ============================ Scrollbars (refined) ============================ */
::-webkit-scrollbar { width: 10px; height: 10px; }::-webkit-scrollbar-track { background: #fafbfc; }::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; border: 2px solid #fafbfc; }::-webkit-scrollbar-thumb:hover { background: #94a3b8; }/* ============================ Toolbar Open Project button (compact) ============================ */
#csp-tb-btn {
  background: linear-gradient(180deg,#10b981 0,#059669 100%);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 11px;
  height: 28px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(16,185,129,.3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: all 140ms cubic-bezier(.4,0,.2,1);
  margin-right: 4px;
  display: inline-flex !important; align-items: center !important; gap: 4px !important;
  white-space: nowrap;
}#csp-tb-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(16,185,129,.4), inset 0 1px 0 rgba(255,255,255,.2);
}/* AI Auto-Design — match compact toolbar height */
#csp-ai-design {
  height: 28px !important;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  margin-right: 4px;
  flex-shrink: 0 !important;
}/* ============================ Welcome modal polish ============================ */
[data-csp-wm] {
  background: linear-gradient(180deg,#10b981 0,#059669 100%);
  color: #ffffff;
  font-weight: 700;
  border: 0;
  box-shadow: 0 2px 6px rgba(16,185,129,.3);
}/* ============================ Selection ============================ */
::selection { background: rgba(99,91,255,.2); color: #1e1b4b; }

/* ============================ Subtle entrance animation for dialogs ============================ */
@keyframes csp-fade-in {from { opacity: 0; transform: translateY(4px); }to { opacity: 1; transform: translateY(0); } }.dialog, .modal, .acp-rich, .csp-wiz { animation: csp-fade-in 200ms cubic-bezier(.4,0,.2,1) !important; }/* ============================ DROPDOWN MENUS — TARGETED (only menu-dropdown class) ============================ */
/* The React tool uses `.menu-dropdown` for the menubar's File/Edit/View/etc. popovers.
 * We ONLY target that exact class — broad [class*="dropdown"] selectors broke other things.
 * Toolbar dropdowns (Design▾/Analysis▾/Planning▾/Report/Export▾/View▾) keep their native styling. */

/* Allow menubar to overflow so dropdowns extend below it */
.menubar, .menu-bar { overflow: visible !important; }/* The menubar dropdown panel (verified live: class="menu-dropdown") */
.menu-dropdown {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15,23,42,.16), 0 4px 10px rgba(15,23,42,.08);
  padding: 4px;
  z-index: 9999 !important;
  /* Hard cap height so it never overflows the viewport. 65vh ≈ 700 px on 1080 screen. */
  max-height: min(640px, 70vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* Scroll-edge fade hints — top and bottom shadow when there's more content */
  background-image:
    linear-gradient(#fff 30%, rgba(255,255,255,0)),
    linear-gradient(rgba(255,255,255,0), #fff 70%) 0 100%,
    radial-gradient(50% 8px at 50% 0, rgba(15,23,42,.08), transparent),
    radial-gradient(50% 8px at 50% 100%, rgba(15,23,42,.08), transparent) 0 100% !important;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
  background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px;
  /* Always-visible scrollbar so users know they can scroll */
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b8 #f1f5f9;
}.menu-dropdown::-webkit-scrollbar { width: 9px !important; background: #f8fafc; }.menu-dropdown::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 0 10px 10px 0; }.menu-dropdown::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 5px; border: 2px solid #f1f5f9; }.menu-dropdown::-webkit-scrollbar-thumb:hover { background: #64748b; }/* Menu items — clean horizontal layout: icon left · label middle · shortcut right */
.menu-dropdown > div, .menu-dropdown > button, .menu-dropdown > a, .menu-dropdown .menu-item {
  padding: 7px 12px;
  border-radius: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease, padding-left 120ms ease;
  margin: 1px 4px;
  white-space: nowrap;
  line-height: 1.4;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: -0.005em;
}.menu-dropdown > div:hover, .menu-dropdown > button:hover, .menu-dropdown .menu-item:hover {
  background: rgba(99,91,255,.07);
  color: #635BFF;
  padding-left: 14px;
}.menu-dropdown > div > svg:first-child, .menu-dropdown > div > i:first-child,
.menu-dropdown > div > .icon, .menu-dropdown .menu-item-icon {
  width: 16px !important; height: 16px !important;
  flex-shrink: 0 !important;
  opacity: 0.65 !important;
  font-size: 14px;
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
}.menu-dropdown > div:hover > svg:first-child, .menu-dropdown > div:hover > i:first-child,
.menu-dropdown > div:hover > .icon, .menu-dropdown .menu-item:hover .menu-item-icon {
  opacity: 1 !important;
  color: #635BFF;
}/* Shortcut hints (e.g. "Ctrl+Shift+P") aligned to the right */
.menu-dropdown .shortcut, .menu-dropdown [class*="shortcut"], .menu-dropdown kbd,
.menu-dropdown > div > span:last-child:not(:first-child) {
  margin-left: auto;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  padding: 1px 5px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
}/* SECTION SEPARATORS — much more prominent now */
.menu-dropdown hr, .menu-dropdown [role="separator"] {
  height: 0 !important;
  background: transparent;
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 6px 8px;
  padding: 0;
  position: relative !important;
}/* Subtle section bands — every other "group" gets a faint background tint
 * so visual chunking is obvious even without explicit headers */
.menu-dropdown hr + div, .menu-dropdown [role="separator"] + div {
  margin-top: 4px;
}/* Disabled / submenu indicator items */
.menu-dropdown > div[aria-disabled="true"],
.menu-dropdown > div.disabled,
.menu-dropdown > div[disabled] {
  opacity: 0.4 !important;
  cursor: default;
  pointer-events: none;
}/* Items with submenu indicator (►) */
.menu-dropdown > div[aria-haspopup]::after,
.menu-dropdown > div[class*="submenu"]::after {
  content: '›' !important;
  margin-left: auto;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
}/* ============================ QGIS-STYLE SITE MARKERS — clean colored dots ============================ */
/* Force ALL Leaflet markers to render as small clean dots (QGIS style).
 * The existing tool uses tower-icon images that overlap heavily at low zoom.
 * We override to a 7-9px circle with per-vendor color (set via data-vendor attr or fallback). */
.leaflet-marker-icon {
  /* Apply at all zooms; high-zoom can re-add labels via tooltip */
  width: 9px !important;
  height: 9px !important;
  margin-left: -4.5px !important;
  margin-top: -4.5px !important;
  border-radius: 50% !important;
  background-color: #635BFF !important;
  background-image: none !important;
  box-shadow: 0 0 0 1.5px #ffffff, 0 1px 2px rgba(15,23,42,.3) !important;
  border: none !important;
  transition: all 150ms ease !important;
  cursor: pointer !important;
  /* hide any inner image content */
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}.leaflet-marker-icon:hover {
  width: 13px !important;
  height: 13px !important;
  margin-left: -6.5px !important;
  margin-top: -6.5px !important;
  z-index: 1000 !important;
  box-shadow: 0 0 0 2px #ffffff, 0 4px 12px rgba(99,91,255,.5) !important;
}.leaflet-marker-icon img, .leaflet-marker-icon svg, .leaflet-marker-icon::before, .leaflet-marker-icon::after {
  display: none !important;
}/* Vendor color overrides via data attribute (set by csp_ui_polish.js if available) */
.leaflet-marker-icon[data-vendor="MTNL"] { background-color: #22c55e !important; }.leaflet-marker-icon[data-vendor="BSNL"] { background-color: #10b981 !important; }.leaflet-marker-icon[data-vendor="Indus"] { background-color: #a855f7 !important; }.leaflet-marker-icon[data-vendor="INDUS"] { background-color: #a855f7 !important; }.leaflet-marker-icon[data-vendor="GTL"] { background-color: #f59e0b !important; }.leaflet-marker-icon[data-vendor="ATC"] { background-color: #ec4899 !important; }.leaflet-marker-icon[data-vendor="Summit Digital"] { background-color: #8b5cf6 !important; }.leaflet-marker-icon[data-vendor="Tower Vision"] { background-color: #06b6d4 !important; }.leaflet-marker-icon[data-vendor="Railtel"] { background-color: #dc2626 !important; }.leaflet-marker-icon[data-tech="nr"], .leaflet-marker-icon[data-tech="5g"] { background-color: #10b981 !important; }.leaflet-marker-icon[data-status="proposed"], .leaflet-marker-icon[data-status="candidate"] {
  background-color: #ef4444 !important;
  width: 11px !important; height: 11px !important;
  margin-left: -5.5px !important; margin-top: -5.5px !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.3), 0 0 0 1px white, 0 2px 6px rgba(239,68,68,.5) !important;
}.leaflet-marker-icon[data-status="selected"] {
  background-color: #635BFF !important;
  width: 11px !important; height: 11px !important;
  box-shadow: 0 0 0 2px rgba(99,91,255,.3), 0 0 0 1px white, 0 2px 6px rgba(99,91,255,.5) !important;
}/* ============================ MAP LABELS — overlap fix at low zoom ============================ */
/* By default, hide ALL site labels (Leaflet tooltips/divIcons used as labels) */
.leaflet-tooltip,
.leaflet-marker-icon[class*="label"],
.leaflet-div-icon[class*="label"],
.site-label, .pci-label, .marker-label,
[class*="marker-tooltip"] {
  display: none !important;
}/* When map has class .csp-zoom-high (zoom ≥ 13), reveal labels */
.csp-zoom-high .leaflet-tooltip,
.csp-zoom-high .leaflet-marker-icon[class*="label"],
.csp-zoom-high .leaflet-div-icon[class*="label"],
.csp-zoom-high .site-label,
.csp-zoom-high .pci-label,
.csp-zoom-high .marker-label,
.csp-zoom-high [class*="marker-tooltip"] {
  display: block !important;
}/* Tooltip styling refresh */
.leaflet-tooltip {
  background: rgba(255,255,255,0.96) !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(15,23,42,.08) !important;
  padding: 4px 8px !important;
  font: 600 11px 'Inter', sans-serif !important;
  white-space: nowrap !important;
}.leaflet-tooltip:before, .leaflet-tooltip:after { display: none !important; }/* Zoom-level info badge in corner */
.csp-zoom-badge {
  position: absolute; bottom: 60px; right: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  font: 500 10.5px 'Inter', sans-serif;
  color: #475569;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(15,23,42,.06);
  pointer-events: none;
}/* ============================ LEFT PANEL — QGIS-style layer groups ============================ */
.csp-layer-group {
  margin: 4px 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}.csp-layer-group .lg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fafbfc;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-weight: 600;
  font-size: 11.5px;
  color: #1e293b;
  letter-spacing: -0.005em;
}.csp-layer-group .lg-header:hover { background: #f1f5f9; }.csp-layer-group .lg-toggle {
  width: 14px; height: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  flex-shrink: 0;
  position: relative;
}.csp-layer-group .lg-toggle.checked {
  background: #635BFF;
  border-color: #635BFF;
}.csp-layer-group .lg-toggle.checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}.csp-layer-group .lg-name { flex: 1; }.csp-layer-group .lg-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}.csp-layer-group .lg-chevron {
  width: 10px; height: 10px;
  border: solid #94a3b8;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform 150ms ease;
  flex-shrink: 0;
}.csp-layer-group.collapsed .lg-chevron { transform: rotate(-45deg); }.csp-layer-group.collapsed .lg-body { display: none; }.csp-layer-group .lg-body {
  padding: 4px 0;
  background: #ffffff;
}.csp-layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 28px;
  font-size: 11.5px;
  color: #475569;
  cursor: pointer;
  border-radius: 0;
  transition: background 100ms ease;
}.csp-layer-row:hover { background: #f8fafc; color: #635BFF; }.csp-layer-row .lr-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,1), 0 0 0 3px rgba(15,23,42,.06);
}.csp-layer-row .lr-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.csp-layer-row .lr-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
}/* ============================ ANIMATED SPLASH SCREEN ============================ */
#csp-splash {
  position: fixed; inset: 0; z-index: 99998;
  background: radial-gradient(ellipse at center, #0f172a 0%, #020617 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  animation: csp-splash-out 600ms cubic-bezier(.4,0,.2,1) 1800ms forwards;
}
@keyframes csp-splash-out {to { opacity: 0; visibility: hidden; pointer-events: none; } }#csp-splash .ring-container {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}#csp-splash .ring {
  position: absolute; inset: 0;
  border: 1.5px solid transparent;
  border-radius: 50%;
  border-top-color: #635BFF;
  animation: csp-spin 2s linear infinite;
}#csp-splash .ring:nth-child(2) { inset: 18px; border-top-color: #10b981; animation-duration: 2.6s; animation-direction: reverse; }#csp-splash .ring:nth-child(3) { inset: 36px; border-top-color: #3b82f6; animation-duration: 1.6s; }#csp-splash .ring:nth-child(4) { inset: 54px; border-top-color: #f59e0b; animation-duration: 3.2s; animation-direction: reverse; }
@keyframes csp-spin {from { transform: rotate(0deg); }to { transform: rotate(360deg); } }#csp-splash .core {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #635BFF 0%, #4338ca 70%, transparent 100%);
  box-shadow: 0 0 40px rgba(99,91,255,.6), 0 0 80px rgba(99,91,255,.3);
  animation: csp-pulse 1.5s ease-in-out infinite;
}
@keyframes csp-pulse {0%,100% { transform: scale(1); opacity: 1; }50% { transform: scale(1.15); opacity: .85; } }#csp-splash .brand {
  margin-top: 36px; font-family: 'Instrument Serif', 'Inter', serif;
  font-size: 38px; color: #ffffff; letter-spacing: -0.02em; font-weight: 400;
  background: linear-gradient(120deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: csp-fade-in 800ms 200ms cubic-bezier(.4,0,.2,1) backwards;
}#csp-splash .brand em { font-style: italic; color: #635BFF; -webkit-text-fill-color: #635BFF; }#csp-splash .tag {
  margin-top: 6px; font-size: 12px; color: #64748b; font-weight: 500; letter-spacing: 0.04em;
  animation: csp-fade-in 800ms 500ms cubic-bezier(.4,0,.2,1) backwards;
}#csp-splash .badges {
  margin-top: 28px; display: flex; gap: 8px;
  animation: csp-fade-in 800ms 800ms cubic-bezier(.4,0,.2,1) backwards;
}#csp-splash .badges span {
  padding: 4px 10px; background: rgba(99,91,255,0.15); color: #cbd5e1;
  border: 1px solid rgba(99,91,255,0.3); border-radius: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
}
@keyframes csp-fade-in {from { opacity: 0; transform: translateY(8px); }to { opacity: 1; transform: translateY(0); } }/* ============================ KPI DASH WIDGET — REMOVED (overlap with Properties panel) ============================ */
#csp-kpi-dash {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none;
}
/* Suppress in case stale DOM exists */
#csp-kpi-dash-DISABLED-FOR-OVERLAP {position: fixed; top: 110px; right: 14px; z-index: 800;
  display: none;
#csp-kpi-dash.visible { display: block; animation: csp-slide-in 350ms cubic-bezier(.4,0,.2,1); }
@keyframes csp-slide-in {from { opacity: 0; transform: translateX(20px); }to { opacity: 1; transform: translateX(0); } }#csp-kpi-dash .kpi-title {
  font-size: 9px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}#csp-kpi-dash .kpi-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,.6);
  animation: csp-blink 2s infinite;
}
@keyframes csp-blink {0%, 100% { opacity: 1; }50% { opacity: .3; } }#csp-kpi-dash .kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
}#csp-kpi-dash .kpi-cell { display: flex; flex-direction: column; gap: 2px; }#csp-kpi-dash .kpi-cell .l { font-size: 9.5px; color: #64748b; font-weight: 500; }#csp-kpi-dash .kpi-cell .v {
  font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1; color: #0f172a;
  font-weight: 400;
}#csp-kpi-dash .kpi-cell .v small { font-size: 10px; color: #64748b; font-family: 'Inter'; }#csp-kpi-dash .kpi-bar { height: 3px; background: #f1f5f9; border-radius: 2px; margin-top: 4px; overflow: hidden; }#csp-kpi-dash .kpi-bar > div {
  height: 100%; background: linear-gradient(90deg, #10b981, #635BFF);
  transition: width 600ms cubic-bezier(.4,0,.2,1);
}/* ============================ AI AUTO-DESIGN BUTTON ============================ */
#csp-ai-design {
  background: linear-gradient(135deg, #635BFF 0%, #ec4899 100%);
  color: white;
  border: 0;
  padding: 7px 13px;
  border-radius: 7px;
  font: 700 11.5px 'Inter', sans-serif !important;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(99,91,255,.3), inset 0 1px 0 rgba(255,255,255,.2);
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 200ms cubic-bezier(.4,0,.2,1);
  margin-right: 6px;
}#csp-ai-design::before {
  content: '✨'; font-size: 13px;
}#csp-ai-design::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}#csp-ai-design:hover::after { transform: translateX(100%); }#csp-ai-design:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,91,255,.45), inset 0 1px 0 rgba(255,255,255,.2);
}

/* ============================ CINEMATIC LOADING SHIMMER ============================ */
@keyframes csp-shimmer {0% { background-position: -1000px 0; }100% { background-position: 1000px 0; } }.csp-shimmer {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 1000px 100%;
  animation: csp-shimmer 1.6s infinite linear;
  border-radius: 6px;
  color: transparent;
}/* ============================ AI AUTO-DESIGN MODAL (cinematic running state) ============================ */
#csp-ai-modal {
  position: fixed; inset: 0; z-index: 99000;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}#csp-ai-modal.visible { display: flex; animation: csp-fade-in 200ms ease; }#csp-ai-modal .panel {
  width: 480px; max-width: 92vw;
  background: white; border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(15,23,42,.3);
  text-align: center;
}#csp-ai-modal .panel h2 {
  margin: 0 0 4px; font-family: 'Instrument Serif', serif; font-size: 26px; color: #0f172a;
  font-weight: 400;
}#csp-ai-modal .panel h2 em { color: #635BFF; }#csp-ai-modal .panel .sub { color: #64748b; font-size: 12px; margin-bottom: 20px; }#csp-ai-modal .stages {
  display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 14px;
}#csp-ai-modal .stage {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0;
  font-size: 12.5px; font-weight: 500; color: #475569;
  transition: all 250ms ease;
}#csp-ai-modal .stage.active { background: rgba(99,91,255,0.08); border-color: rgba(99,91,255,0.3); color: #635BFF; }#csp-ai-modal .stage.done { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); color: #059669; }#csp-ai-modal .stage .icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: #cbd5e1; }#csp-ai-modal .stage.active .icon { background: #635BFF; box-shadow: 0 0 0 4px rgba(99,91,255,.18); animation: csp-pulse 1.2s infinite; }#csp-ai-modal .stage.done .icon {
  background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,0);
  position: relative;
}#csp-ai-modal .stage.done .icon::after {
  content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 700;
}#csp-ai-modal .progress {
  margin-top: 16px; height: 4px; background: #f1f5f9; border-radius: 2px; overflow: hidden;
}#csp-ai-modal .progress > div {
  height: 100%; background: linear-gradient(90deg, #635BFF, #ec4899, #f59e0b, #10b981);
  background-size: 300% 100%;
  animation: csp-progress-bg 3s linear infinite;
  transition: width 400ms ease;
}
@keyframes csp-progress-bg {0% { background-position: 0 0; }100% { background-position: 300% 0; } }

/* Print fallback */
@media print {html, body { background: #fff; }.toolbar, .menubar { display: none !important; } }/* Allow long values to wrap on a wider panel */
.right-panel .prop-row > *:last-child,
.right-panel [class*="prop-row"] > *:last-child {
  min-width: 0 !important;
  word-break: break-word;
}/* Site-name / object-title row at top of panel */
.csp-prop-title {
  padding: 10px 12px;
  background: linear-gradient(135deg,#635BFF,#4F46E5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #4338ca;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}.csp-prop-title .csp-prop-icon { font-size: 16px; }.csp-prop-title .csp-prop-sub { font-size: 10px; opacity: 0.85 !important; font-weight: 500; margin-left: auto; }
