/* AgentixPulse-specific styles layered on top of shared styles.css */
header {
  z-index: 3000;
}

.mobile-menu {
  top: var(--header-h-mobile);
  z-index: 999;
}

.pulse-shell {
  max-width: none;
  width: var(--page-content-width, 90%);
  margin: 0 auto;
}
.pulse-public-notice{
  margin:10px 20px 0;
  padding:10px 14px;
  border:1px solid #334155;
  border-radius:8px;
  background:#1e293b;
  color:#e2e8f0;
  text-align:center;
  font-size:12px;
  letter-spacing:.2px;
  line-height:1.5;
}
.pulse-upgrade-banner{
  margin:10px 20px 0;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #1d4d7a;
  background:linear-gradient(135deg,#0d2238 0%,#10324f 55%,#0f2a43 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pulse-upgrade-copy{
  font-size:12px;
  line-height:1.5;
  color:#dbeafe;
}
.pulse-upgrade-copy strong{
  color:#f8fafc;
  font-weight:700;
}
.pulse-upgrade-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.pulse-upgrade-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:7px;
  border:1px solid transparent;
  text-decoration:none;
  font-size:10px;
  letter-spacing:1px;
  font-weight:700;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
.pulse-upgrade-btn.is-login{
  color:#e2e8f0;
  border-color:#60a5fa66;
  background:#1e3a5f;
}
.pulse-upgrade-btn.is-login:hover{background:#25466f}
.pulse-upgrade-btn.is-trial{
  color:#0f172a;
  border-color:#fbbf24;
  background:#fbbf24;
}
.pulse-upgrade-btn.is-trial:hover{background:#f59e0b}
body{background:#0f172a;color:#e2e8f0;font-family:Urbanist,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow-x:hidden}
@keyframes pulse{0%,100%{opacity:.85}50%{opacity:1}}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#4f46e5;border-radius:4px}
.leaflet-container{background:#0f172a!important;font-family:inherit}
.leaflet-control-zoom{display:none}
.leaflet-control-attribution{display:none!important}
.leaflet-tile-pane{opacity:.72}
#topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"alert alert" "header controls";border-bottom:1px solid #33415550;z-index:1800;position:relative;background:#0f172a}
#header{grid-area:header;padding:8px 20px 12px}
.pulse-alert{grid-area:alert;display:flex;align-items:center;gap:8px;padding:12px 20px 0}
.pulse-alert .dot{width:7px;height:7px;border-radius:50%;background:#ef4444;box-shadow:0 0 16px #ef444490;animation:pulse 1.4s infinite}
.pulse-alert span{font-size:12px;color:#ef4444;letter-spacing:2.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
#header h1{font-size:23px;font-weight:600;font-family:Urbanist,system-ui,-apple-system,sans-serif;color:#f8fafc;letter-spacing:-0.3px}
.pulse-title-row{display:flex;align-items:center;gap:8px;position:relative}
.pulse-info-wrap{display:inline-flex;align-items:center;position:relative}
.pulse-info-btn{width:20px;height:20px;border-radius:50%;border:1px solid rgba(148,163,184,.8);background:transparent;color:#e2e8f0;font-size:12px;line-height:18px;text-align:center;cursor:pointer;padding:0}
.pulse-info-btn:hover{background:rgba(148,163,184,.14)}
.pulse-info-btn:focus-visible{outline:2px solid #fbbf24;outline-offset:2px}
.pulse-info-popover{position:absolute;top:calc(100% + 8px);left:0;width:min(700px,calc(100vw - 64px));max-height:70vh;overflow:auto;background:#1e293b;border:1px solid #334155;border-radius:8px;padding:12px;font-size:12px;line-height:1.5;box-shadow:0 16px 32px rgba(0,0,0,.45);display:none;z-index:2600;text-align:left}
.pulse-info-popover.open{display:block}
.pulse-popover-block{margin-bottom:10px}
.pulse-popover-block:last-child{margin-bottom:0}
.pulse-popover-heading{font-weight:800;letter-spacing:.8px;color:#f8fafc;margin-bottom:4px}
.pulse-popover-text{color:#dbe5f5}
#header .sub{font-size:11px;color:#94a3b8;margin-top:2px;letter-spacing:1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
#controls{grid-area:controls;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px 20px 12px}
.mode-nav-label{font-size:12px;color:#ffffff;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;text-transform:uppercase;line-height:1}
.mode-bar{display:flex;background:#1e293b;border-radius:6px;border:1px solid #334155;overflow:hidden}
.mode-btn{padding:8px 14px;font-size:11px;letter-spacing:1.6px;background:transparent;color:#ffffff;border:none;cursor:pointer;font-weight:400;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;transition:all .2s}
.mode-btn.active{background:#fbbf24;color:#ffffff;font-weight:700}
.mode-btn-locked{opacity:.72}
.mode-auth-note{font-size:10px;color:#94a3b8;letter-spacing:.5px}
.mode-auth-cta{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:10px;
  color:#cbd5e1;
}
.mode-auth-text{color:#cbd5e1}
.mode-auth-links{display:inline-flex;align-items:center;gap:8px}
.mode-auth-links a{color:#93c5fd;text-decoration:none;font-weight:700}
.mode-auth-links a:last-child{color:#fbbf24}
.mode-auth-links a:hover{text-decoration:underline}
.bundle-tabs{padding:10px 20px 0;display:flex;gap:4px;align-items:flex-end;border-bottom:1px solid #33415570;background:#0f172a;position:relative;z-index:11}
.bundle-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px 9px;border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;background:transparent;color:#94a3b8;text-decoration:none;font-size:11px;letter-spacing:1px;line-height:1;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;transition:all .15s}
.bundle-tab:hover{color:#cbd5e1;background:#1e293b50}
.bundle-tab.active{color:#f1f5f9;background:#1e293b;border-color:#475569;font-weight:700}
.bundle-tab.is-disabled{color:#64748b;background:#1e293b20;border-color:#33415570;cursor:not-allowed}
.bundle-tab-note{font-size:10px;color:#64748b;font-style:italic}
#filter-bar{padding:6px 20px;display:flex;gap:4px;align-items:center;border-bottom:1px solid #33415530;flex-wrap:wrap;z-index:9;position:relative;background:#0f172a}
.flabel{font-size:10px;color:#94a3b8;letter-spacing:2px;margin-right:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.fbtn{padding:5px 12px;font-size:10px;letter-spacing:1px;border-radius:3px;background:#1e293b;color:#94a3b8;border:1px solid #334155;cursor:pointer;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;display:flex;align-items:center;gap:4px;transition:all .15s}
.fbtn.active{font-weight:600}
.fdot{width:5px;height:5px;border-radius:50%;opacity:.4}
.fbtn.active .fdot{opacity:1}
#main{display:flex;position:relative}
#map-col{flex:1;position:relative}
#leaflet-map{width:100%;height:680px}
#overlay-canvas{position:absolute;top:0;left:0;width:100%;height:680px;pointer-events:none;z-index:450}
#decision-brief{position:absolute;top:10px;left:16px;width:320px;background:#1e293bEE;backdrop-filter:blur(16px);border-radius:8px;border:1px solid #4f46e550;padding:14px;z-index:600;animation:fadeUp .3s ease;display:none;max-height:calc(100% - 80px);overflow-y:auto}
#decision-brief.show{display:block}
.db-toggle{position:absolute;top:10px;left:344px;z-index:601;width:28px;height:28px;background:#1e293bEE;border:1px solid #4f46e550;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;backdrop-filter:blur(16px);transition:all .2s}
.db-toggle:hover{background:#273449;color:#e2e8f0}
.db-title{font-size:9px;color:#ef4444;letter-spacing:2.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;margin-bottom:10px;display:flex;align-items:center;gap:6px}
.db-title .db-dot{width:6px;height:6px;border-radius:50%;background:#ef4444;animation:pulse 1.4s infinite}
.db-section{margin-bottom:10px}
.db-sec-t{font-size:8px;color:#94a3b8;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;margin-bottom:5px;padding-bottom:3px;border-bottom:1px solid #33415560}
.db-item{font-size:11px;color:#c4c9d8;line-height:1.55;margin-bottom:4px;padding-left:12px;position:relative}
.db-item::before{content:'›';position:absolute;left:0;color:#ef4444;font-weight:700}
.v-red{color:#ef4444;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.v-amber{color:#fbbf24;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.v-blue{color:#818cf8;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.db-exp{display:inline-block;padding:2px 8px;border-radius:3px;font-size:9.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;letter-spacing:1px}
#tooltip{position:fixed;pointer-events:none;z-index:9999;display:none;max-width:380px;background:#1e293bF8;backdrop-filter:blur(16px);border-radius:8px;padding:16px;border:1px solid #4f46e550;box-shadow:0 8px 32px rgba(0,0,0,.6)}
#tooltip.show{display:block;animation:fadeUp .12s ease}
.tt-seg{font-size:8px;color:#94a3b8;letter-spacing:2px;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;margin-bottom:2px}
.tt-name{font-size:16px;font-family:Urbanist,system-ui,sans-serif;font-weight:600;color:#f8fafc;margin-bottom:6px}
.tt-status{display:inline-block;font-size:8.5px;padding:3px 8px;border-radius:3px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;letter-spacing:1px;margin-bottom:8px}
.tt-narrative{font-size:11px;color:#b0b5c5;line-height:1.6;margin-bottom:8px}
.tt-narrative ul{margin:0;padding-left:14px;list-style:none}
.tt-narrative li{margin-bottom:5px;position:relative;padding-left:2px}
.tt-narrative li::before{content:'•';position:absolute;left:-12px;color:#ef4444;font-weight:700}
.tt-narrative li .tt-at{font-weight:600;font-size:10px;padding:1px 5px;border-radius:2px;margin-right:4px}
.tt-assets{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}
.tt-tag{font-size:8px;padding:2px 6px;border-radius:2px}
.tt-impact{font-size:12px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;color:#ef4444}
.tt-whatif{margin-top:8px;padding-top:8px;border-top:1px solid #33415570;font-size:10px;color:#818cf8;font-style:italic}
#scenario-panel{position:absolute;bottom:14px;right:14px;width:360px;max-height:calc(100% - 30px);overflow-y:auto;background:#1e293bF0;backdrop-filter:blur(16px);border-radius:8px;border:1px solid #818cf830;padding:14px;z-index:600;display:none}
#scenario-panel.show{display:block;animation:slideIn .3s ease}
.sp-title{font-size:9px;color:#818cf8;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;margin-bottom:8px}
.sp-scenario{font-size:11px;color:#f8fafc;font-family:Urbanist,system-ui,sans-serif;font-weight:600;margin-bottom:8px}
.sp-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #33415535}
.sp-row-l{display:flex;align-items:center;gap:6px}
.sp-d{width:7px;height:7px;border-radius:50%}
.sp-a{font-size:10px;color:#94a3b8}
.sp-v{font-size:11px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;color:#ef4444}
.sp-reset{margin-top:10px;padding:7px;background:#818cf815;border:1px solid #818cf830;border-radius:4px;color:#818cf8;font-size:9px;cursor:pointer;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;letter-spacing:1.5px;width:100%;text-align:center}
.sp-inst{font-size:9.5px;color:#94a3b8;line-height:1.5;margin-bottom:10px;font-style:italic}
#right-panel{width:340px;border-left:1px solid #334155;padding:14px 16px;overflow-y:auto;display:none;max-height:680px;background:#0f172a;position:relative;z-index:800}
#right-panel.show{display:block}
.rp-t{font-size:8px;color:#94a3b8;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;padding-bottom:6px;border-bottom:1px solid #33415540;margin-bottom:8px}
.ic{background:#1e293b;border-radius:6px;padding:10px;margin-bottom:5px;cursor:pointer;transition:all .2s;animation:fadeUp .2s ease both}
.ic .ic-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}
.ic .ic-seg{font-size:7px;color:#94a3b8;letter-spacing:1.5px;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.ic .ic-badge{font-size:7px;padding:2px 6px;border-radius:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.ic .ic-hl{font-size:11px;color:#e2e8f0;font-family:Urbanist,system-ui,sans-serif;line-height:1.4;margin-bottom:5px;font-weight:500}
.ic .ic-meta{display:flex;justify-content:space-between}.ic .ic-src{font-size:8px;color:#94a3b8}.ic .ic-time{font-size:8px;color:#64748b}
.ic .ic-exp{margin-top:6px;padding-top:6px;border-top:1px solid #334155;display:none}
.ic.expanded .ic-exp{display:block}
.ic .ic-url{display:inline-block;margin-top:4px;font-size:8px;color:#818cf8;text-decoration:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.ic .ic-url:hover{text-decoration:underline}
.cg{background:#1e293b;border-radius:6px;padding:12px;margin-bottom:6px;animation:fadeUp .25s ease both}
.cg-t{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.cg-name{font-size:11px;font-family:Urbanist,system-ui,sans-serif;font-weight:600;color:#f8fafc}
.cg-text{font-size:9px;color:#94a3b8;line-height:1.55;margin-bottom:8px}
.cg-label{font-size:7px;color:#94a3b8;letter-spacing:2px;margin-bottom:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.cg-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #33415530}
.agg{background:linear-gradient(135deg,#1e1028,#1e293b);border-radius:6px;padding:12px;margin-top:4px;border:1px solid #ef444420}
.agg-t{font-size:7.5px;color:#ef4444;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;margin-bottom:6px}
#legend{background:#1e293b;border-top:1px solid #33415570;border-bottom:1px solid #33415570;padding:6px 20px;font-size:9px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;display:flex;align-items:center;gap:16px;flex-wrap:wrap;position:relative;z-index:500}
#legend .lt{font-size:7px;color:#94a3b8;letter-spacing:2px;font-weight:700;margin-right:2px}
#legend .leg-group{display:flex;align-items:center;gap:10px}
#legend .li{display:flex;align-items:center;gap:4px;color:#94a3b8;white-space:nowrap}
#legend .si{font-size:8px}
#legend .ld{display:none}
#legend .ln{width:14px;display:inline-block}
#bottom{padding:12px 20px 18px;border-top:1px solid #33415550;position:relative;z-index:5;background:#0f172a}
.chains-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.ch{background:#1e293b;border-radius:6px;padding:12px;border:1px solid #33415540}
.ch-top{display:flex;align-items:center;gap:5px;margin-bottom:6px}
.ch-dots{display:flex;gap:3px}
.ch-d{width:5px;height:5px;border-radius:50%}
.ch-name{font-size:10px;font-family:Urbanist,system-ui,sans-serif;font-weight:600;color:#f8fafc}
.ch-steps{list-style:none;padding:0;margin:0 0 8px 0}
.ch-steps li{font-size:9.5px;color:#94a3b8;line-height:1.5;padding:3px 0 3px 16px;position:relative;border-left:1px solid #33415570;margin-left:3px}
.ch-steps li::before{content:'';position:absolute;left:-4px;top:9px;width:7px;height:7px;border-radius:50%;background:#273449;border:1px solid #4f46e5}
.ch-steps li.disrupted::before{background:#ef4444;border-color:#ef4444}
.ch-steps li.at-risk::before{background:#fbbf24;border-color:#fbbf24}
.ch-impact{font-size:10px;color:#ef4444;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}

/* ═══ REPORT TAB ═══ */
#right-panel.report-mode{width:55vw;min-width:700px;max-width:950px;background:#0f172a}
.rpt-header{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #334155}
.rpt-hl{font-size:20px;font-family:Urbanist,system-ui,sans-serif;font-weight:700;color:#f1f5f9;line-height:1.3;margin-bottom:10px}
.rpt-body{font-size:13px;color:#cbd5e1;line-height:1.7;margin-bottom:12px}
.rpt-reads{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rpt-read{background:#1e293b;border-radius:6px;padding:12px;border:1px solid #334155}
.rpt-read-label{font-size:9px;color:#60a5fa;letter-spacing:2.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;margin-bottom:5px}
.rpt-read-text{font-size:12px;color:#e2e8f0;line-height:1.6}
.rpt-sec{margin-bottom:10px;border:1px solid #334155;border-radius:6px;overflow:hidden}
.rpt-sec-hdr{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#1e293b;cursor:pointer;user-select:none;transition:background .15s}
.rpt-sec-hdr:hover{background:#273449}
.rpt-sec-title{font-size:10px;color:#818cf8;letter-spacing:2.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.rpt-sec-badge{font-size:10px;color:#94a3b8;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.rpt-sec-chevron{color:#94a3b8;font-size:12px;transition:transform .2s}
.rpt-sec.open .rpt-sec-chevron{transform:rotate(90deg)}
.rpt-sec-body{display:none;padding:12px 14px;background:#0f172a}
.rpt-sec.open .rpt-sec-body{display:block}
.rpt-sec.open .rpt-sec-hdr{border-bottom:1px solid #334155}
.rpt-tbl-wrap{width:100%}
.rpt-tbl{width:100%;border-collapse:collapse;font-size:12px}
.rpt-tbl th{text-align:left;padding:8px 10px;font-size:9px;color:#94a3b8;letter-spacing:1.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;border-bottom:2px solid #334155;background:#1a2332}
.rpt-tbl td{padding:9px 10px;border-bottom:1px solid #1e293b;color:#e2e8f0;vertical-align:top;line-height:1.55}
.rpt-tbl tr:hover td{background:#1e293b}
.rpt-mobile-list{display:none}
.rpt-tbl .rpt-tk{font-weight:700;color:#f1f5f9;white-space:nowrap;font-size:13px}
.rpt-tbl .rpt-co{color:#94a3b8;font-size:11px}
.rpt-tbl .rpt-cat{font-size:10px;color:#94a3b8;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.rpt-tbl .rpt-reason{font-size:11px;color:#94a3b8;line-height:1.55;max-width:280px}
.rpt-signal-tag{font-size:9px;padding:3px 8px;border-radius:3px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:.5px;white-space:nowrap;display:inline-block}
.rpt-bull{background:#16a34a22;color:#4ade80;border:1px solid #4ade8040}
.rpt-bear{background:#dc262622;color:#f87171;border:1px solid #f8717140}
.rpt-neut{background:#64748b22;color:#cbd5e1;border:1px solid #cbd5e140}
.rpt-high{background:#dc262622;color:#f87171;border:1px solid #f8717140}
.rpt-med{background:#d9770622;color:#fbbf24;border:1px solid #fbbf2440}
.rpt-low{background:#16a34a22;color:#4ade80;border:1px solid #4ade8040}
.rpt-row{background:#141c2b;border-radius:5px;padding:10px 12px;margin-bottom:6px;border:1px solid #1e293b}
.rpt-row-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.rpt-row-label{font-size:13px;font-family:Urbanist,system-ui,sans-serif;font-weight:600;color:#f1f5f9}
.rpt-row-text{font-size:12px;color:#94a3b8;line-height:1.6;margin-top:3px}
.rpt-row-meta{font-size:10px;color:#64748b;margin-top:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.rpt-state{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #334155}
.rpt-state-tag{font-size:10px;padding:4px 10px;border-radius:4px;background:#1e293b;border:1px solid #334155;color:#94a3b8;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.rpt-state-tag strong{color:#e2e8f0}
.rpt-empty{font-size:13px;color:#64748b;font-style:italic;padding:40px;text-align:center}
.rpt-pdf-btn{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding:12px 20px;background:#4f46e5;color:#f1f5f9;border:none;border-radius:6px;font-size:12px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:1.5px;cursor:pointer;width:100%;transition:background .15s}
.rpt-pdf-btn:hover{background:#6366f1}
.rpt-pdf-btn:disabled{background:#334155;color:#64748b;cursor:wait}
/* ═══ DESK TAB ═══ */
.desk-persona{margin-bottom:16px;border:1px solid #334155;border-radius:8px;overflow:hidden;background:#0f172a}
.desk-persona-hdr{padding:14px 16px;background:#1e293b;border-bottom:1px solid #334155;cursor:pointer;user-select:none}
.desk-persona-hdr:hover{background:#273449}
.desk-persona-title{font-size:15px;font-family:Urbanist,system-ui,sans-serif;font-weight:700;color:#f1f5f9;margin-bottom:2px}
.desk-persona-sub{font-size:10px;color:#818cf8;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.desk-urgency{font-size:9px;padding:3px 10px;border-radius:3px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:1px;float:right;margin-top:2px}
.desk-urgency-CRITICAL{background:#dc262630;color:#f87171;border:1px solid #f8717150}
.desk-urgency-HIGH{background:#d9770630;color:#fbbf24;border:1px solid #fbbf2450}
.desk-urgency-MODERATE{background:#2563eb20;color:#60a5fa;border:1px solid #60a5fa40}
.desk-urgency-LOW{background:#16a34a20;color:#4ade80;border:1px solid #4ade8040}
.desk-body{display:none;padding:14px 16px}
.desk-persona.desk-open .desk-body{display:block}
.desk-persona.desk-open .desk-persona-hdr{border-bottom:1px solid #334155}
.desk-read{font-size:13px;color:#cbd5e1;line-height:1.7;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #1e293b}
.desk-actions{margin-bottom:14px}
.desk-action{background:#141c2b;border:1px solid #1e293b;border-radius:6px;padding:12px;margin-bottom:8px;transition:border-color .15s}
.desk-action:hover{border-color:#334155}
.desk-action-top{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.desk-action-priority{font-size:9px;width:20px;height:20px;border-radius:50%;background:#4f46e520;color:#818cf8;border:1px solid #818cf840;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:ui-monospace,monospace;flex-shrink:0}
.desk-action-dir{font-size:9px;padding:3px 8px;border-radius:3px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:.5px;white-space:nowrap}
.desk-dir-LONG,.desk-dir-ACCUMULATE{background:#16a34a22;color:#4ade80;border:1px solid #4ade8040}
.desk-dir-SHORT,.desk-dir-REDUCE_EXPOSURE{background:#dc262622;color:#f87171;border:1px solid #f8717140}
.desk-dir-HEDGE,.desk-dir-EXTEND_COVERAGE{background:#2563eb20;color:#60a5fa;border:1px solid #60a5fa40}
.desk-dir-SWITCH,.desk-dir-HOLD{background:#d9770620;color:#fbbf24;border:1px solid #fbbf2440}
.desk-action-title{font-size:13px;font-weight:600;color:#f1f5f9;font-family:Urbanist,system-ui,sans-serif}
.desk-action-detail{font-size:12px;color:#94a3b8;line-height:1.6;margin-bottom:6px}
.desk-action-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.desk-action-tag{font-size:9px;padding:2px 7px;border-radius:3px;background:#1e293b;border:1px solid #334155;color:#94a3b8;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.desk-action-evidence{font-size:10px;color:#64748b;font-style:italic;margin-top:4px}
.desk-risk{background:#dc262610;border:1px solid #f8717130;border-radius:6px;padding:10px 12px;margin-bottom:14px}
.desk-risk-label{font-size:9px;color:#f87171;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;margin-bottom:4px}
.desk-risk-text{font-size:12px;color:#fca5a5;line-height:1.6}
.desk-edge{background:#22d3ee10;border:1px solid #22d3ee30;border-radius:6px;padding:10px 12px}
.desk-edge-label{font-size:9px;color:#22d3ee;letter-spacing:2px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;margin-bottom:4px}
.desk-edge-text{font-size:12px;color:#67e8f9;line-height:1.6}
@media print{
  body *{visibility:hidden}
  #right-panel,#right-panel *{visibility:visible}
  #right-panel{position:absolute;left:0;top:0;width:100%;max-height:none;overflow:visible;background:#fff;color:#000;z-index:99999}
  #right-panel.report-mode{width:100%}
  .rpt-header,.rpt-sec,.rpt-sec-body,.rpt-tbl,.rpt-row,.rpt-reads,.rpt-read,.rpt-state{background:#fff;border-color:#ddd;color:#111}
  .rpt-hl{color:#111}.rpt-body{color:#333}.rpt-read-text{color:#333}
  .rpt-tbl th{background:#f5f5f5;color:#333;border-color:#ccc}
  .rpt-tbl td{color:#222;border-color:#eee}
  .rpt-sec-hdr{background:#f5f5f5}.rpt-sec-body{display:block!important;background:#fff}
  .rpt-row{background:#fafafa}.rpt-row-text{color:#444}.rpt-row-meta{color:#666}
  .rpt-state-tag{background:#f0f0f0;border-color:#ddd;color:#444}
  .rpt-pdf-btn{display:none}
  .rp-t{color:#4f46e5}
}
/* ═══ MOBILE RESPONSIVE ═══ */
@media(max-width:768px){
  html,body{overflow-x:hidden;max-width:100vw}
  #topbar{display:block}
  .pulse-alert{padding:10px 12px 0}
  #header{padding:10px 12px 6px}
  #header h1{font-size:18px;line-height:1.3}
  .pulse-title-row{align-items:flex-start;gap:6px}
  .pulse-info-btn{width:18px;height:18px;font-size:11px;line-height:16px}
  .pulse-info-popover{position:fixed;left:12px;right:12px;bottom:12px;top:auto;width:auto;max-height:64vh;z-index:2200}
  #header .sub{font-size:9px;letter-spacing:.5px;line-height:1.5}
  .pulse-alert span{font-size:9px;letter-spacing:1.5px}
  #controls{padding:6px 12px;justify-content:center;align-items:flex-start}
  .mode-nav-label{font-size:10px;letter-spacing:1.4px}
  .mode-btn{padding:6px 10px;font-size:9px;letter-spacing:1px}
  .mode-auth-cta{font-size:9px;gap:6px}
  .pulse-upgrade-banner{margin:8px 10px 0;padding:10px;flex-direction:column;align-items:flex-start;gap:8px}
  .pulse-upgrade-copy{font-size:11px}
  .pulse-upgrade-btn{font-size:9px;padding:6px 9px}
  .bundle-tabs{padding:8px 10px 0;gap:4px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .bundle-tab{padding:7px 10px 8px;font-size:9px;white-space:nowrap;flex-shrink:0}
  .bundle-tab-note{font-size:8px}
  #filter-bar{padding:5px 10px;gap:3px;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .flabel{font-size:8.5px;margin-right:2px;white-space:nowrap}
  .fbtn{padding:4px 8px;font-size:8.5px;white-space:nowrap;flex-shrink:0}
  #leaflet-map{height:55vh}
  #overlay-canvas{height:55vh}
  #main{flex-direction:column}
  #decision-brief{width:calc(100% - 24px);left:12px;top:6px;max-height:45vh;padding:10px}
  .db-toggle{left:calc(100% - 44px);top:6px}
  .db-title{font-size:9.5px}
  .db-sec-t{font-size:8.5px}
  .db-item{font-size:12px}
  #tooltip{max-width:calc(100vw - 24px);padding:12px;font-size:12px;left:12px!important;right:12px;width:auto}
  .tt-name{font-size:15px}
  .tt-narrative{font-size:12px;line-height:1.5}
  .tt-narrative li{margin-bottom:3px}
  #scenario-panel{width:calc(100% - 24px);right:12px;bottom:8px;max-height:40vh;padding:10px}
  #right-panel{
    position:relative;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    width:100%;
    max-width:100%;
    max-height:none;
    margin-top:10px;
    border-left:none;
    border-top:1px solid #334155;
    border-radius:10px;
    background:#0f172a;
    z-index:2;
    padding:10px;
    overflow:visible
  }
  #right-panel.report-mode{
    position:relative;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    width:100%;
    min-width:0;
    max-width:100%;
    max-height:none;
    margin-top:0;
    border-left:none;
    border-top:1px solid #334155;
    border-radius:10px;
    padding:10px 10px 14px;
    background:#0f172a;
    box-sizing:border-box;
    overflow:visible;
    z-index:2
  }
  /* Force ALL children to respect viewport — no exceptions */
  #right-panel.report-mode *{
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    min-width:0!important
  }
  /* Override nowrap on signal tags and tickers specifically */
  #right-panel.report-mode .rpt-signal-tag,
  #right-panel.report-mode .rpt-tk{
    white-space:normal!important;
    word-break:break-word!important
  }
  #right-panel.report-mode .rpt-header{margin-bottom:12px;padding-bottom:10px}
  #right-panel.report-mode .rpt-header img{height:26px!important;width:auto!important;flex-shrink:0}
  #right-panel.report-mode .rpt-hl{font-size:15px;line-height:1.35;margin-bottom:7px}
  #right-panel.report-mode .rpt-body{font-size:10.5px;line-height:1.6;margin-bottom:8px}
  #right-panel.report-mode .rpt-reads{grid-template-columns:1fr;gap:8px}
  #right-panel.report-mode .rpt-reads>*{min-width:0}
  #right-panel.report-mode .rpt-read{padding:9px;min-width:0;overflow:hidden}
  #right-panel.report-mode .rpt-read-label{font-size:8px;letter-spacing:1.6px}
  #right-panel.report-mode .rpt-read-text{font-size:10px;line-height:1.5}
  #right-panel.report-mode .rpt-sec{border-radius:8px;margin-bottom:8px;overflow:hidden}
  #right-panel.report-mode .rpt-sec-hdr{padding:9px 10px;flex-wrap:wrap;row-gap:5px}
  #right-panel.report-mode .rpt-sec-title{font-size:8px;letter-spacing:1.3px;line-height:1.2}
  #right-panel.report-mode .rpt-sec-badge{font-size:8px}
  #right-panel.report-mode .rpt-sec-body{padding:8px;overflow:hidden}
  /* ─ MOBILE: hide desktop tables, show card layout ─ */
  #right-panel.report-mode .rpt-tbl-wrap{display:none!important}
  #right-panel.report-mode .rpt-tbl{display:none!important}
  #right-panel.report-mode .rpt-mobile-list{display:flex!important;flex-direction:column;gap:6px;margin-bottom:8px}
  #right-panel.report-mode .rpt-mobile-card{background:#141c2b;border:1px solid #243244;border-radius:8px;padding:8px;overflow:hidden}
  #right-panel.report-mode .rpt-mobile-item{padding:5px 0;border-bottom:1px solid #1e293b}
  #right-panel.report-mode .rpt-mobile-item:last-child{border-bottom:none;padding-bottom:0}
  #right-panel.report-mode .rpt-mobile-k{font-size:8px;color:#94a3b8;letter-spacing:.8px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;margin-bottom:3px}
  #right-panel.report-mode .rpt-mobile-v{font-size:10px;line-height:1.45;color:#e2e8f0;word-break:break-word;overflow-wrap:anywhere}
  #right-panel.report-mode .rpt-mobile-v *{max-width:100%!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important}
  #right-panel.report-mode .rpt-mobile-v .rpt-tk{font-size:10.5px;white-space:normal!important}
  #right-panel.report-mode .rpt-mobile-v .rpt-cat{font-size:8.5px}
  #right-panel.report-mode .rpt-mobile-v .rpt-co{display:block;margin-top:2px}
  #right-panel.report-mode .rpt-mobile-v .rpt-reason{max-width:none!important;font-size:9.5px}
  #right-panel.report-mode .rpt-mobile-v .rpt-signal-tag{display:inline-block;margin-top:2px}
  /* ─ Non-table report rows (ripple effects, buffer analysis) ─ */
  #right-panel.report-mode .rpt-row{padding:8px;overflow:hidden}
  #right-panel.report-mode .rpt-row-top{flex-wrap:wrap;gap:6px}
  #right-panel.report-mode .rpt-row-label{font-size:10.5px;word-break:break-word}
  #right-panel.report-mode .rpt-row-text{font-size:9.5px;word-break:break-word;overflow-wrap:anywhere}
  #right-panel.report-mode .rpt-row-text span{white-space:normal!important;display:inline;font-size:inherit!important}
  #right-panel.report-mode .rpt-row-meta{word-break:break-word;font-size:8px}
  /* ─ Directional impact chips in ripple effects ─ */
  #right-panel.report-mode .rpt-row div[style*="margin-top:6px"]{display:flex;flex-wrap:wrap;gap:4px}
  /* ─ State tags ─ */
  #right-panel.report-mode .rpt-state{gap:6px;flex-wrap:wrap}
  #right-panel.report-mode .rpt-state-tag{font-size:8px;padding:3px 7px;line-height:1.35;white-space:normal;word-break:break-word}
  #right-panel.report-mode .rpt-signal-tag{font-size:7px;padding:2px 5px;white-space:normal}
  #right-panel.report-mode .rpt-pdf-btn{margin-top:10px;padding:10px 10px;font-size:9px;letter-spacing:1px}
  #right-panel.report-mode .rpt-empty{padding:20px 12px;font-size:10px}
  #right-panel:not(.report-mode) .rp-t{font-size:7px;letter-spacing:1.6px;margin-bottom:7px;padding-bottom:5px}
  #right-panel:not(.report-mode) .ic{padding:8px;margin-bottom:4px}
  #right-panel:not(.report-mode) .ic .ic-hl{font-size:10px;line-height:1.35}
  #right-panel:not(.report-mode) .ic .ic-src,
  #right-panel:not(.report-mode) .ic .ic-time,
  #right-panel:not(.report-mode) .ic .ic-url{font-size:7px}
  #right-panel:not(.report-mode) .cg{padding:9px;margin-bottom:5px}
  #right-panel:not(.report-mode) .cg-name{font-size:10px}
  #right-panel:not(.report-mode) .cg-text{font-size:8px;line-height:1.45}
  #right-panel:not(.report-mode) .cg-row{padding:3px 0}
  #right-panel:not(.report-mode) .agg{padding:9px}
  #legend{padding:5px 12px;font-size:7px;gap:8px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  #legend .lt{font-size:6px;letter-spacing:1.5px}
  #legend .li{font-size:7px;gap:3px}
  #bottom{padding:8px 12px 14px}
  .chains-grid{grid-template-columns:1fr;gap:8px}
  .ch{padding:10px}
  .ch-name{font-size:11px}
  .ch-steps li{font-size:10px}
  .ch-impact{font-size:11px}
}
@media(max-width:420px){
  #header h1{font-size:15px}
  #header .sub{font-size:8.5px}
  .pulse-alert span{font-size:8.5px}
  .mode-btn{padding:5px 7px;font-size:8.5px;letter-spacing:.8px}
  .mode-auth-cta{font-size:8px}
  #leaflet-map{height:50vh}
  #overlay-canvas{height:50vh}
  #decision-brief{padding:8px;max-height:40vh}
  .db-item{font-size:11px}
  #tooltip{padding:10px}
  .tt-name{font-size:14px}
  .tt-seg{font-size:8.5px}
  .tt-narrative{font-size:11px}
  #right-panel{margin-top:8px;padding:8px}
  #right-panel.report-mode{margin-top:0;padding:8px 8px 12px}
  #right-panel.report-mode .rpt-header img{height:22px!important}
  #right-panel.report-mode .rpt-hl{font-size:14px}
  #right-panel.report-mode .rpt-body{font-size:10px}
  #right-panel.report-mode .rpt-sec-hdr{padding:8px 9px}
  #right-panel.report-mode .rpt-sec-body{padding:7px}
  #right-panel.report-mode .rpt-mobile-card{padding:8px}
  #right-panel.report-mode .rpt-mobile-item{padding:5px 0}
  #right-panel.report-mode .rpt-mobile-k{font-size:8px}
  #right-panel.report-mode .rpt-mobile-v{font-size:9.5px}
  #right-panel.report-mode .rpt-row{padding:8px}
  #right-panel.report-mode .rpt-row-label{font-size:10px}
  #right-panel.report-mode .rpt-row-text{font-size:9px}
  #right-panel.report-mode .rpt-state-tag{font-size:8px;padding:3px 6px}
  #right-panel.report-mode .rpt-signal-tag{font-size:7px;padding:2px 5px}
  #right-panel.report-mode .rpt-pdf-btn{font-size:8.5px;letter-spacing:.8px}
  #right-panel.report-mode .rpt-read-label{font-size:7.5px;letter-spacing:1.2px}
  #right-panel.report-mode .rpt-read-text{font-size:9.5px}
  #right-panel:not(.report-mode) .rp-t{font-size:6.5px;letter-spacing:1.4px}
  #right-panel:not(.report-mode) .ic .ic-hl{font-size:9.5px}
  #right-panel:not(.report-mode) .cg-name{font-size:9.5px}
  #right-panel:not(.report-mode) .cg-text{font-size:7.5px}
}
