:root {
  --bg:        #070b12;
  --bg-2:      #0b1220;
  --panel:     #0e1726;
  --panel-2:   #111d31;
  --line:      #1d2c44;
  --line-soft: #16233a;
  --ink:       #eaf1fb;
  --muted:     #8ea3c2;
  --muted-2:   #5e7088;
  --accent:    #4cc6ff;
  --accent-2:  #6ee7b7;
  --gold:      #f4c361;
  --flare:     #ff7a45;
  --flare-2:   #ffb066;
  --danger:    #ff6b6b;
  --good:      #45e3a0;
  --radius:    16px;
  --shadow:    0 18px 50px -22px rgba(0,0,0,0.8);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(76,198,255,0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(110,231,183,0.06), transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.01em; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(76,198,255,0.3); }

.app { display: grid; grid-template-columns: 264px 1fr; height: 100vh; }

/* ---------------- RAIL ---------------- */
.rail {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, var(--accent), #2b7bd6);
  color: #04121f; box-shadow: 0 8px 22px -8px rgba(76,198,255,0.7);
}
.brand-text strong { display: block; font-size: 16px; font-weight: 800; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.rail-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.persona-switch { position: relative; display: flex; flex-direction: column; gap: 7px; }
.persona-trigger {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 12px; border-radius: 11px; text-align: left;
}
.persona-trigger:hover { border-color: var(--accent); }
.persona-ico { font-size: 15px; color: var(--accent); }
.persona-name { flex: 1; font-size: 13px; font-weight: 600; }
.caret { color: var(--muted); font-size: 11px; }
.persona-menu {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; z-index: 40;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.persona-opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; cursor: pointer; }
.persona-opt:hover { background: rgba(76,198,255,0.08); }
.persona-opt.active { background: rgba(76,198,255,0.12); }
.persona-opt i { color: var(--accent); font-size: 15px; font-style: normal; margin-top: 1px; }
.persona-opt strong { display: block; font-size: 13px; }
.persona-opt small { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.rail-nav { display: flex; flex-direction: column; gap: 3px; }
.rail-item {
  display: flex; align-items: center; gap: 11px;
  background: transparent; border: none; color: var(--muted);
  padding: 9px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500; text-align: left;
}
.rail-item i { font-style: normal; width: 18px; text-align: center; font-size: 14px; opacity: 0.85; }
.rail-item:hover { background: var(--panel); color: var(--ink); }
.rail-item.active { background: linear-gradient(90deg, rgba(76,198,255,0.16), rgba(76,198,255,0.02)); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
/* grouped nav */
.rail-group { display: flex; align-items: center; gap: 11px; width: 100%; background: transparent; border: none; color: var(--muted); padding: 9px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; }
.rail-group i { font-style: normal; width: 18px; text-align: center; font-size: 14px; opacity: 0.85; }
.rail-group:hover { background: var(--panel); color: var(--ink); }
.rail-group.active { background: linear-gradient(90deg, rgba(76,198,255,0.16), rgba(76,198,255,0.02)); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); font-weight: 600; }
.rail-subnav { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px 22px; padding-left: 9px; border-left: 1px solid var(--line); }
.rail-subnav.open { display: flex; }
.rail-subitem { background: transparent; border: none; color: var(--muted-2); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; text-align: left; cursor: pointer; }
.rail-subitem:hover { background: var(--panel); color: var(--ink); }
.rail-subitem.active { color: var(--accent); background: rgba(76,198,255,0.08); font-weight: 600; }

.usage {
  margin-top: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px;
}
.usage-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.usage-top strong { color: var(--ink); }
.meter { height: 6px; background: var(--line); border-radius: 99px; margin: 9px 0 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width 0.4s; }
.usage small { font-size: 11px; color: var(--muted-2); }
.rail-upgrade { margin-top: 10px; width: 100%; background: rgba(76,198,255,0.12); color: var(--accent); border: 1px solid rgba(76,198,255,0.3); border-radius: 9px; padding: 8px; font-weight: 600; font-size: 12.5px; }
.rail-upgrade:hover { background: rgba(76,198,255,0.2); }

.rail-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-2); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(69,227,160,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(69,227,160,0.5);} 70% { box-shadow: 0 0 0 7px rgba(69,227,160,0);} 100% { box-shadow: 0 0 0 0 rgba(69,227,160,0);} }

/* ---------------- STAGE ---------------- */
.stage { overflow-y: auto; padding: 22px 26px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.topbar-head h1 { font-size: 27px; margin: 5px 0 4px; font-weight: 700; }
.subnote { font-size: 13px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-wrap { position: relative; display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 4px 4px 4px 14px; width: 380px; }
.search-wrap:focus-within { border-color: var(--accent); }
.ask-input { background: transparent; border: none; outline: none; color: var(--ink); font-size: 13px; flex: 1; }
.ask-input::placeholder { color: var(--muted-2); }
.ask-go { background: var(--accent); color: #04121f; border: none; border-radius: 8px; padding: 7px 13px; font-weight: 600; font-size: 12.5px; }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 500; }
.ghost-btn:hover { border-color: var(--accent); }
.primary-btn { background: linear-gradient(135deg, var(--accent), #2b7bd6); color: #04121f; border: none; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 13px; box-shadow: 0 10px 24px -10px rgba(76,198,255,0.7); }
.primary-btn:hover { filter: brightness(1.07); }
.primary-btn.wide, .ghost-btn.wide { width: 100%; justify-content: center; }

/* ---------------- VIEWS ---------------- */
.view { display: none; animation: fade 0.35s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.hint { font-size: 11.5px; color: var(--muted-2); }

/* metric strip */
.metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 14px; position: relative; overflow: hidden; }
.metric::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: 0.7; }
.metric span { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.metric strong { display: block; font-size: 24px; font-weight: 800; margin: 5px 0 2px; font-family: 'Space Grotesk'; }
.metric small { font-size: 11.5px; color: var(--muted-2); }
.metric.up small { color: var(--good); }
.metric.flare::after { background: var(--flare); }

/* radar grid */
.radar-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.map-panel { display: flex; flex-direction: column; }
.map-toggles { display: flex; gap: 6px; }
.chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 11px; font-size: 12px; font-weight: 500; }
.chip.active { background: rgba(76,198,255,0.16); color: var(--accent); border-color: rgba(76,198,255,0.4); }
.chip[data-layer="flaring"].active { background: rgba(255,122,69,0.18); color: var(--flare-2); border-color: rgba(255,122,69,0.45); }
.map-base { padding: 5px 8px; font-size: 11.5px; }
.map-conc { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.map-conc input { accent-color: var(--accent); }
.leaflet-tooltip { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); font-family: 'Inter'; font-size: 11.5px; }
.leaflet-tooltip small { color: var(--muted); }
.map { height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 4px; background: #0a1322; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

.asset-panel { max-height: 560px; }
.asset-list { display: flex; flex-direction: column; gap: 9px; max-height: 500px; overflow-y: auto; padding-right: 4px; }
.asset-card { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; cursor: pointer; transition: 0.18s; }
.asset-card:hover { border-color: var(--accent); transform: translateX(2px); }
.asset-card.warn { box-shadow: inset 3px 0 0 var(--flare); }
.asset-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.asset-name { font-size: 13.5px; font-weight: 600; }
.asset-score { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(76,198,255,0.12); padding: 2px 8px; border-radius: 7px; }
.asset-meta { display: flex; gap: 12px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.asset-meta b { color: var(--ink); font-weight: 600; }
.asset-thesis { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.asset-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--flare-2); font-weight: 600; }

/* satellite */
.sat-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(255,122,69,0.1), rgba(14,23,38,0.4)); border: 1px solid rgba(255,122,69,0.25); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.sat-hero-copy h2 { font-size: 22px; margin: 6px 0 8px; }
.sat-hero-copy p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 52ch; }
.sat-hero-copy strong { color: var(--flare-2); }
.sat-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-content: center; }
.sat-stat { background: rgba(7,11,18,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.sat-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sat-stat strong { display: block; font-size: 22px; font-weight: 800; font-family: 'Space Grotesk'; margin-top: 4px; color: var(--flare-2); }
.sat-stat small { font-size: 11px; color: var(--muted-2); }
.sat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.anomaly-list { display: flex; flex-direction: column; gap: 10px; }
.anomaly { background: var(--panel-2); border: 1px solid rgba(255,122,69,0.3); border-radius: 12px; padding: 13px; }
.anomaly-top { display: flex; justify-content: space-between; align-items: center; }
.anomaly-top strong { font-size: 13.5px; }
.anomaly-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--flare); background: rgba(255,122,69,0.14); padding: 3px 8px; border-radius: 7px; }
.anomaly p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.anomaly .lead-bar { display: flex; gap: 8px; margin-top: 9px; font-size: 11px; }
.anomaly .lead-bar span { background: rgba(7,11,18,0.6); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; }
.anomaly .lead-bar b { color: var(--flare-2); }
.flare-rank { display: flex; flex-direction: column; gap: 8px; }
.flare-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.flare-row .fr-name { font-size: 12.5px; }
.flare-row .fr-track { grid-column: 1 / -1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.flare-row .fr-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--flare), var(--flare-2)); }
.flare-row .fr-val { font-size: 12px; color: var(--flare-2); font-weight: 600; }
.basin-chart { width: 100%; }
.method-note { font-size: 11.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.5; max-width: 90ch; }

/* operators */
.ops-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(76,198,255,0.1), rgba(14,23,38,0.4)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.ops-hero h2 { font-size: 22px; margin: 6px 0 8px; }
.ops-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 56ch; }
.ops-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-content: center; }
.ops-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.ops-table { display: flex; flex-direction: column; gap: 4px; }
.ops-row { display: grid; grid-template-columns: 18px 1.6fr 1fr 1fr 0.7fr; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 9px; font-size: 12.5px; }
.ops-row:hover { background: var(--panel-2); }
.ops-row.head { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); border-radius: 0; }
.ops-row .op-rank { color: var(--muted-2); font-weight: 700; }
.ops-row .op-name { font-weight: 600; }
.ops-row .op-name small { display: block; color: var(--muted-2); font-weight: 400; font-size: 11px; }
.ops-bar { position: relative; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.ops-bar i { display: block; height: 100%; border-radius: 99px; }
.op-oil i { background: linear-gradient(90deg, var(--accent-2), #2ea36f); }
.op-gas i { background: linear-gradient(90deg, var(--accent), #2b7bd6); }
.op-val { font-weight: 700; }
.ops-donut { display: grid; place-items: center; padding: 8px; }
.ops-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ops-legend span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ops-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* economics */
.econ-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.econ-valuation { background: linear-gradient(135deg, rgba(110,231,183,0.1), rgba(14,23,38,0.4)); border-color: rgba(110,231,183,0.25); }
.econ-ev { font-size: 46px; font-weight: 800; font-family: 'Space Grotesk'; color: var(--accent-2); margin: 8px 0 4px; letter-spacing: -0.02em; }
.econ-ev-note { font-size: 12px; color: var(--muted); }
.econ-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
.econ-kpis .kpi-cell strong { color: var(--ink); }
.deck-controls { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.deck-ctl label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.deck-ctl label b { color: var(--accent-2); font-family: 'Space Grotesk'; }
.deck-ctl input[type=range] { width: 100%; accent-color: var(--accent-2); }
.deck-note { font-size: 11px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }
.econ-table { display: flex; flex-direction: column; gap: 3px; }
.econ-trow { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 10px; align-items: center; padding: 10px 8px; border-radius: 9px; font-size: 12.5px; }
.econ-trow:hover { background: var(--panel-2); }
.econ-trow.head { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); border-radius: 0; }
.econ-trow .et-name { font-weight: 600; }
.econ-trow .et-name small { display: block; color: var(--muted-2); font-weight: 400; font-size: 11px; }
.econ-trow .et-val { font-variant-numeric: tabular-nums; }
.econ-trow .et-pos { color: var(--good); }
.econ-trow .et-neg { color: var(--danger); }

/* wells explorer */
.wells-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.wells-search { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; color: var(--ink); font-size: 13px; min-width: 200px; }
.wells-search:focus { outline: none; border-color: var(--accent); }
.wfilter { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--ink); font-size: 12.5px; cursor: pointer; max-width: 200px; }
.wfilter:focus { outline: none; border-color: var(--accent); }
.unit-toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.unit-toggle button { background: transparent; border: none; color: var(--muted); font-size: 12px; padding: 6px 12px; border-radius: 7px; font-weight: 600; }
.unit-toggle button.active { background: rgba(76,198,255,0.16); color: var(--accent); }
.wells-count { font-size: 12px; color: var(--muted-2); margin-left: auto; }
.pxx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pxx { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px; text-align: center; }
.pxx span { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.pxx strong { display: block; font-size: 17px; font-family: 'Space Grotesk'; margin-top: 3px; }
.pxx.p90 strong { color: var(--danger); } .pxx.p50 strong { color: var(--accent); } .pxx.p10 strong { color: var(--good); }
.wells-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.wells-table-panel { padding: 8px; max-height: 620px; display: flex; flex-direction: column; }
.wells-thead, .well-row { display: grid; grid-template-columns: 24px 1.5fr 1.1fr 1.2fr 0.9fr 0.8fr 0.5fr; gap: 8px; align-items: center; }
.well-row .wcheck { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
/* compare tray */
.compare-tray { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--accent); border-radius: 11px; padding: 8px 12px; margin-bottom: 12px; }
.ct-label { font-size: 12px; color: var(--muted); }
.ct-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; font-size: 11.5px; }
.ct-chip b { color: var(--accent); cursor: pointer; }
.ct-btn { padding: 7px 12px; font-size: 12px; }
/* compare view */
.cmp-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.cmp-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; }
.cmp-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.cmp-legend i { width: 12px; height: 3px; border-radius: 2px; }
.cmp-chart { margin-top: 6px; }
.cmp-grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.cmp-table { overflow-x: auto; }
.cmp-trow { display: grid; grid-template-columns: 1.4fr repeat(8, 1fr); gap: 8px; padding: 9px 6px; font-size: 12px; align-items: center; border-top: 1px solid var(--line-soft); }
.cmp-trow.head { border: none; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-trow .cn { font-weight: 600; } .cmp-trow .cn i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.cmp-trow .num { text-align: right; font-variant-numeric: tabular-nums; }
/* lift timeline */
.lift-timeline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lift-step { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: 11.5px; }
.lift-step .lt { font-weight: 600; color: var(--ink); }
.lift-step .lf { color: var(--muted-2); }
.lift-arrow { color: var(--muted-2); align-self: center; }
.lift-now { color: var(--accent-2); font-weight: 700; }
/* decline */
.dec-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.wd-actions { display: flex; gap: 8px; margin: 12px 0 4px; }
.wd-actions button { flex: 1; font-size: 12px; padding: 8px; }
.eur-band { background: linear-gradient(135deg, rgba(244,195,97,0.1), rgba(14,23,38,0.3)); border: 1px solid rgba(244,195,97,0.25); border-radius: 11px; padding: 12px; margin: 10px 0; }
.eur-band .eurv { font-size: 24px; font-family: 'Space Grotesk'; font-weight: 800; color: var(--gold); }
.eur-band small { font-size: 11px; color: var(--muted); }
.wells-thead { padding: 8px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); border-bottom: 1px solid var(--line); }
.wells-thead .num, .well-row .num { text-align: right; }
.wells-tbody { overflow-y: auto; }
.well-row { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.well-row:hover { background: var(--panel-2); }
.well-row.sel { background: rgba(76,198,255,0.12); box-shadow: inset 2px 0 0 var(--accent); }
.well-row .wname { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.well-row .wsub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.well-row .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.well-row .wtype { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.wtype.oil { background: var(--good); } .wtype.gas { background: var(--accent); }
.well-detail { max-height: 620px; overflow-y: auto; }
.well-empty { display: grid; place-items: center; height: 480px; color: var(--muted-2); font-size: 13px; text-align: center; }
.wd-head h3 { font-size: 18px; } .wd-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.wd-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-top: 8px; }
.wd-badge.oil { color: var(--good); background: rgba(69,227,160,0.12); } .wd-badge.gas { color: var(--accent); background: rgba(76,198,255,0.12); }
.wd-chart { margin: 14px 0; }
.wd-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.wd-legend i { display: inline-block; width: 10px; height: 3px; vertical-align: middle; margin-right: 5px; }
.wd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.wd-kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; }
.wd-kpi span { font-size: 10px; color: var(--muted-2); text-transform: uppercase; }
.wd-kpi strong { display: block; font-size: 15px; font-family: 'Space Grotesk'; margin-top: 3px; }
.wd-section { margin-top: 16px; }
.wd-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 9px; }
.wd-frac { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wd-frac div { font-size: 12px; color: var(--muted); }
.wd-frac b { color: var(--ink); }

/* market */
.market-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; background: linear-gradient(135deg, rgba(110,231,183,0.08), rgba(14,23,38,0.4)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.market-hero h2 { font-size: 21px; margin: 6px 0 8px; }
.market-hero p { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 50ch; }
.market-fx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.fx-card { background: rgba(7,11,18,0.5); border: 1px solid var(--line); border-radius: 11px; padding: 12px; }
.fx-card span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.fx-card strong { display: block; font-size: 19px; font-family: 'Space Grotesk'; margin-top: 4px; }
.fx-card small { font-size: 10.5px; color: var(--muted-2); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.commodity-list { display: flex; flex-direction: column; gap: 9px; }
.commodity-row { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.commodity-row .cl { font-size: 13px; font-weight: 600; } .commodity-row .cl small { display: block; font-size: 11px; color: var(--muted-2); font-weight: 400; }
.commodity-row .cv { font-size: 16px; font-family: 'Space Grotesk'; font-weight: 700; color: var(--accent-2); }
.commodity-row .cv small { font-size: 11px; color: var(--muted); font-weight: 400; }
.market-read { font-size: 13px; color: var(--muted); line-height: 1.7; }
.market-read b { color: var(--ink); } .market-read .big { font-size: 22px; font-family: 'Space Grotesk'; color: var(--gold); }

/* deformation (InSAR) */
.dfm-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(183,148,246,0.1), rgba(14,23,38,0.4)); border: 1px solid rgba(183,148,246,0.22); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.dfm-hero-copy h2 { font-size: 22px; margin: 6px 0 8px; }
.dfm-hero-copy p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 54ch; }
.dfm-hero-copy strong { color: #b794f6; }
.dfm-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-content: center; }
.dfm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.dfm-anoms { display: flex; flex-direction: column; gap: 9px; max-height: 440px; overflow-y: auto; }
.dfm-anom { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px; border-left: 3px solid var(--muted-2); }
.dfm-anom.sub { border-left-color: var(--danger); } .dfm-anom.up { border-left-color: var(--accent); }
.dfm-anom-top { display: flex; justify-content: space-between; align-items: center; }
.dfm-anom-top strong { font-size: 13px; }
.dfm-anom-v { font-family: 'Space Grotesk'; font-weight: 700; font-size: 14px; }
.dfm-anom-v.sub { color: var(--danger); } .dfm-anom-v.up { color: var(--accent); }
.dfm-anom p { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.dfm-table { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; }
.dfm-trow { display: grid; grid-template-columns: 1.4fr 0.7fr 0.8fr 0.8fr; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; font-size: 12px; }
.dfm-trow.head { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); border-radius: 0; }
.dfm-trow:not(.head):hover { background: var(--panel-2); }
.dfm-trow .num { text-align: right; font-variant-numeric: tabular-nums; }
.dfm-comm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dfm-cc { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.dfm-cc strong { font-size: 12.5px; color: var(--accent); } .dfm-cc p { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.dfm-commercial .panel-head h2 { font-size: 15px; }

/* patterns */
.pat-insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.pat-ins { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 14px; border-left: 3px solid var(--accent); }
.pat-ins.good { border-left-color: var(--good); } .pat-ins.bad { border-left-color: var(--danger); } .pat-ins.gold { border-left-color: var(--gold); }
.pat-ins span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }
.pat-ins strong { display: block; font-size: 15px; margin: 5px 0 4px; font-family: 'Space Grotesk'; }
.pat-ins p { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.pat-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.pat-map { height: 440px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0a1322; }
.pat-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--muted-2); flex-wrap: wrap; }
.pat-legend .scale { flex: 0 0 140px; height: 11px; border-radius: 5px; }
.pat-drivers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pat-drv { display: grid; grid-template-columns: 90px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; cursor: pointer; }
.pat-drv:hover .pd-name { color: var(--ink); }
.pat-drv .pd-name { color: var(--muted); }
.pat-drv.sel .pd-name { color: var(--accent); font-weight: 600; }
.pat-drv .pd-track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pat-drv .pd-track i { display: block; height: 100%; border-radius: 99px; }
.pat-drv .pd-r { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.pat-scatter-head { margin: 6px 0; }
.pat-rank { display: flex; flex-direction: column; gap: 2px; max-height: 400px; overflow-y: auto; }
.pat-rrow { display: grid; grid-template-columns: 20px 1.4fr 0.7fr 0.7fr 0.7fr 0.7fr; gap: 8px; align-items: center; padding: 8px 8px; border-radius: 8px; font-size: 12px; }
.pat-rrow.head { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); border-radius: 0; }
.pat-rrow:not(.head):hover { background: var(--panel-2); }
.pat-rrow .rr-name { font-weight: 600; } .pat-rrow .rr-name small { display: block; color: var(--muted-2); font-weight: 400; font-size: 10.5px; }
.pat-rrow .num { text-align: right; font-variant-numeric: tabular-nums; }
.pat-rrow.top { box-shadow: inset 3px 0 0 var(--good); } .pat-rrow.bot { box-shadow: inset 3px 0 0 var(--danger); }
.pat-clusters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pcl { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; border-top: 3px solid var(--accent); }
.pcl-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pcl-top strong { font-size: 13.5px; } .pcl-top .pcl-n { font-size: 11px; color: var(--muted-2); }
.pcl-eur { font-size: 22px; font-family: 'Space Grotesk'; font-weight: 800; margin-bottom: 2px; }
.pcl-eur small { font-size: 11px; color: var(--muted); font-weight: 400; }
.pcl-feats { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.pcl-feats div { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.pcl-feats b { color: var(--ink); }
.pcl-tags { font-size: 11px; color: var(--muted-2); line-height: 1.4; border-top: 1px solid var(--line); padding-top: 8px; }
.pcl-tags b { color: var(--muted); }

/* well map + fingerprint radar */
.wd-map { height: 240px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); margin-top: 6px; background: #0a1322; }
/* well mini-map: controls + legend + hover-curve tooltip */
.wdmap-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.wdmap-bar .wfilter { padding: 5px 8px; font-size: 11.5px; }
.wdmap-hint { font-size: 11px; color: var(--muted-2); margin-left: auto; font-style: italic; }
.wdmap-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; font-size: 10.5px; color: var(--muted); }
.wdmap-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wdmap-legend .lg-line { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.wdmap-legend .lg-line.dash { background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
.wdmap-legend .lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wdmap-legend .lg-sep { margin-left: auto; gap: 6px; }
.leaflet-tooltip.wc-tt { padding: 8px 9px; border-radius: 9px; box-shadow: var(--shadow); max-width: none; }
.leaflet-tooltip.wc-tt::before { display: none; }
.wc-pop b { font-size: 12px; color: var(--ink); }
.wc-pop small { display: block; color: var(--muted); font-size: 10.5px; margin: 1px 0 4px; }
.wc-spark { display: block; }
.wc-rows { display: flex; gap: 10px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.wc-rows b { color: var(--ink); font-weight: 600; }
.wd-toggle { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; margin-left: auto; }
.wd-toggle button { background: transparent; border: none; color: var(--muted); font-size: 11px; padding: 4px 10px; border-radius: 6px; }
.wd-toggle button.active { background: rgba(76,198,255,0.16); color: var(--accent); }
.wd-section-head { display: flex; align-items: center; gap: 8px; }
.radar-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin: 6px 0; }
.radar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 5px; }
.cmp-map { height: 300px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: #0a1322; }
/* production heatmap calendar */
.cal-grid { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.cal-row { display: grid; grid-template-columns: 34px repeat(12, 1fr); gap: 3px; }
.cal-row.cal-head .cal-c { background: transparent; color: var(--muted-2); font-size: 9px; text-align: center; height: auto; }
.cal-y { font-size: 10px; color: var(--muted); display: flex; align-items: center; }
.cal-c { height: 15px; border-radius: 3px; }
.cal-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 10.5px; color: var(--muted-2); }
.cal-scale { flex: 0 0 90px; height: 10px; border-radius: 4px; background: linear-gradient(90deg, #111d31, rgb(140,120,45), rgb(255,220,30)); }
/* curve selector */
.curve-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.curve-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.curve-legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 5px; }
.curve-custom { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.curve-custom .cc { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.curve-custom input[type=range] { accent-color: var(--gold); width: 150px; }

/* development builder */
.dev-top { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.dev-lbl { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.dev-ctls { display: flex; flex-direction: column; gap: 13px; margin: 16px 0; }
.dev-ctl label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.dev-ctl label b { color: var(--accent-2); font-family: 'Space Grotesk'; }
.dev-ctl input[type=range] { width: 100%; accent-color: var(--accent); }
.dev-headline { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.dev-npv-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.dev-npv { font-size: 40px; font-weight: 800; font-family: 'Space Grotesk'; margin-top: 4px; }
.dev-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-badge { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; text-align: center; }
.dev-badge span { font-size: 10px; color: var(--muted-2); text-transform: uppercase; display: block; }
.dev-badge strong { font-size: 16px; font-family: 'Space Grotesk'; }
.dev-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 18px; }
.dev-kpis .kpi-cell strong { color: var(--ink); }
.dev-chart-wrap { margin-top: 6px; }
.dev-chart { margin-top: 6px; }

/* vm vs permian */
.pmn-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(76,198,255,0.09), rgba(255,122,69,0.06)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.pmn-hero h2 { font-size: 22px; margin: 6px 0 8px; }
.pmn-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 62ch; }
.pmn-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-content: center; }
.pmn-table { display: flex; flex-direction: column; gap: 2px; }
.pmn-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; padding: 10px 8px; align-items: center; font-size: 12.5px; border-top: 1px solid var(--line-soft); }
.pmn-row.head { border: none; color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.pmn-row .metric { color: var(--muted); }
.pmn-row .metric small { display: block; color: var(--muted-2); font-size: 10.5px; }
.pmn-row .v { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.pmn-row .v.vm { color: var(--accent); } .pmn-row .v.mid { color: var(--flare-2); } .pmn-row .v.del { color: var(--gold); }
.pmn-row.win-vm .v.vm { color: var(--good); }
.pmn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.pmn-bars { display: flex; flex-direction: column; gap: 12px; }
.pmn-bar { }
.pmn-bar .pl { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.pmn-bar .pl b { font-family: 'Space Grotesk'; }
.pmn-bar .track { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pmn-bar .track i { display: block; height: 100%; border-radius: 99px; }
.pmn-val { display: flex; flex-direction: column; gap: 9px; }
.pmn-vrow { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
.pmn-vrow .vm-m { display: flex; justify-content: space-between; font-size: 12.5px; }
.pmn-vrow .vm-m b { font-family: 'Space Grotesk'; }
.pmn-vrow .vm-vm b { color: var(--accent); } .pmn-vrow .vm-px b { color: var(--flare-2); }
.pmn-vrow small { display: block; font-size: 11px; color: var(--good); margin-top: 5px; }

/* blocks · breakeven */
.blk-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(110,231,183,0.09), rgba(14,23,38,0.4)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.blk-hero h2 { font-size: 22px; margin: 6px 0 8px; }
.blk-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 60ch; }
.blk-hero strong { color: var(--accent-2); }
.blk-brent { align-self: center; background: rgba(7,11,18,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.blk-brent label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.blk-brent label b { color: var(--gold); font-family: 'Space Grotesk'; font-size: 15px; }
.blk-brent input[type=range] { width: 100%; accent-color: var(--good); }
.blk-brent-read { margin-top: 12px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.blk-brent-read b { color: var(--good); } .blk-brent-read .neg { color: var(--danger); }
.blk-table { display: flex; flex-direction: column; gap: 2px; }
.blk-row { display: grid; grid-template-columns: 22px 1.5fr 1.1fr 0.7fr 0.7fr 0.6fr 0.7fr 0.8fr 42px; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 8px; font-size: 12.5px; }
.blk-row.head { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); border-radius: 0; }
.blk-row:not(.head):hover { background: var(--panel-2); }
.blk-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.blk-row .bname { font-weight: 600; }
.blk-row .bname small { display: block; color: var(--muted-2); font-weight: 400; font-size: 11px; }
.blk-row .clears { text-align: center; font-weight: 700; }
.blk-row.win { box-shadow: inset 3px 0 0 var(--good); }
.blk-row.lose { box-shadow: inset 3px 0 0 var(--danger); opacity: 0.78; }
.blk-row .be.ok { color: var(--good); } .blk-row .be.no { color: var(--danger); }
.blk-row .npv.pos { color: var(--good); } .blk-row .npv.neg { color: var(--danger); }
.tier-chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tier-1 { color: var(--good); background: rgba(69,227,160,0.14); }
.tier-2 { color: var(--accent); background: rgba(76,198,255,0.12); }
.tier-3 { color: var(--gold); background: rgba(244,195,97,0.12); }
.tier-4 { color: var(--danger); background: rgba(255,107,107,0.12); }
.blk-comps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.blk-comp { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.blk-comp strong { font-size: 13px; } .blk-comp .cvals { display: flex; gap: 14px; margin: 7px 0; }
.blk-comp .cvals span { font-size: 13px; color: var(--accent-2); font-family: 'Space Grotesk'; }
.blk-comp small { font-size: 11px; color: var(--muted-2); }
.blk-notes { display: flex; flex-direction: column; gap: 7px; }
.blk-notes div { font-size: 12.5px; color: var(--muted); padding-left: 16px; position: relative; line-height: 1.5; }
.blk-notes div::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* guidance: relato vs realidad */
.guid-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(244,195,97,0.1), rgba(14,23,38,0.4)); border: 1px solid rgba(244,195,97,0.25); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.guid-hero h2 { font-size: 22px; margin: 6px 0 8px; }
.guid-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 58ch; }
.guid-hero strong { color: var(--gold); }
.guid-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-content: center; }
.guid-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.guid-cards { display: flex; flex-direction: column; gap: 13px; }
.guid-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.guid-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.guid-op { font-size: 15px; font-weight: 700; }
.guid-op small { display: block; font-size: 11.5px; color: var(--muted-2); font-weight: 400; margin-top: 2px; }
.guid-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 8px; white-space: nowrap; }
.v-confirmado, .v-entrega { color: var(--good); background: rgba(69,227,160,0.14); }
.v-enriesgo, .v-alerta { color: var(--danger); background: rgba(255,107,107,0.14); }
.v-brecha, .v-pordebajo { color: var(--gold); background: rgba(244,195,97,0.14); }
.v-contraintuitivo, .v-encaminado, .v-neutral { color: var(--accent); background: rgba(76,198,255,0.12); }
.crossing { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.crossing:first-of-type { border-top: none; }
.cross-says { font-size: 12.5px; color: var(--ink); line-height: 1.45; }
.cross-says .tag { display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 5px; margin-right: 7px; vertical-align: middle; }
.tag.news { color: var(--accent); background: rgba(76,198,255,0.12); }
.tag.guidance { color: var(--gold); background: rgba(244,195,97,0.12); }
.cross-says .why { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.cross-says a { color: var(--accent); }
.cross-reality { text-align: right; min-width: 92px; }
.cross-reality .rv { font-size: 18px; font-weight: 800; font-family: 'Space Grotesk'; }
.cross-reality .rv.pos { color: var(--good); } .cross-reality .rv.neg { color: var(--danger); }
.cross-reality small { display: block; font-size: 10px; color: var(--muted-2); }
.cross-reality .gap { font-size: 11px; margin-top: 3px; }
.news-rail { max-height: 660px; display: flex; flex-direction: column; }
.news-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.news-item { display: block; padding: 10px 8px; border-radius: 9px; border-left: 2px solid transparent; }
.news-item:hover { background: var(--panel-2); }
.news-item.pos { border-left-color: var(--good); } .news-item.neg { border-left-color: var(--danger); } .news-item.neu { border-left-color: var(--line); }
.news-item .nt { font-size: 12px; color: var(--ink); line-height: 1.4; }
.news-item .nm { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; color: var(--muted-2); }
.news-item .nm .topic { color: var(--accent); }

/* signals */
.signals-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg-item { background: transparent; border: none; color: var(--muted); padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.seg-item.active { background: rgba(76,198,255,0.16); color: var(--accent); }
.signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.signal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 15px; position: relative; }
.signal-card.locked { overflow: hidden; }
.signal-card.locked .sig-body { filter: blur(5px); user-select: none; }
.sig-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sig-type { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 7px; }
.sig-type.commercial { color: var(--good); background: rgba(69,227,160,0.12); }
.sig-type.risk { color: var(--danger); background: rgba(255,107,107,0.12); }
.sig-type.asset { color: var(--accent); background: rgba(76,198,255,0.12); }
.sig-type.weird { color: var(--gold); background: rgba(244,195,97,0.12); }
.sig-score { font-size: 12px; font-weight: 700; color: var(--ink); }
.sig-title { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.sig-summary { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sig-action { margin-top: 10px; font-size: 12px; color: var(--accent-2); display: flex; gap: 6px; align-items: flex-start; }
.sig-foot { display: flex; justify-content: space-between; margin-top: 11px; font-size: 11px; color: var(--muted-2); }
.lock-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(14,23,38,0.2), rgba(14,23,38,0.85)); border-radius: 13px; }
.lock-overlay button { background: var(--gold); color: #1a1304; border: none; border-radius: 9px; padding: 9px 16px; font-weight: 700; font-size: 12.5px; }
.lock-overlay span { display: block; font-size: 11px; color: var(--gold); margin-bottom: 8px; text-align: center; }

/* brief */
.brief-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.brief-hero { background: linear-gradient(135deg, rgba(76,198,255,0.12), rgba(14,23,38,0.3)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.brief-hero h2 { font-size: 22px; margin: 6px 0 6px; }
.brief-hero p { color: var(--muted); font-size: 14px; max-width: 64ch; line-height: 1.55; }
.brief-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.brief-block { margin-bottom: 16px; }
.brief-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.brief-point { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.brief-point:last-child { border-bottom: none; }
.brief-num { width: 24px; height: 24px; border-radius: 7px; background: rgba(76,198,255,0.14); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.brief-point p { font-size: 13px; color: var(--ink); line-height: 1.5; }
.brief-point p b { color: var(--accent-2); }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi-cell { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.kpi-cell span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.kpi-cell strong { display: block; font-size: 19px; font-weight: 700; font-family: 'Space Grotesk'; margin-top: 4px; }

/* copilot */
.copilot-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.copilot-panel { display: flex; flex-direction: column; min-height: 560px; }
.chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; padding: 4px; max-height: 440px; }
.msg { max-width: 84%; padding: 12px 14px; border-radius: 13px; font-size: 13px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: rgba(76,198,255,0.14); border: 1px solid rgba(76,198,255,0.3); }
.msg.ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.msg.ai strong { color: var(--accent-2); }
.msg.ai .cite { display: inline-block; font-size: 10.5px; color: var(--accent); background: rgba(76,198,255,0.1); border-radius: 5px; padding: 1px 6px; margin: 0 2px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.chat-suggest button { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 9px; padding: 7px 11px; font-size: 12px; }
.chat-suggest button:hover { border-color: var(--accent); color: var(--ink); }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; color: var(--ink); font-size: 13px; outline: none; }
.chat-input input:focus { border-color: var(--accent); }
.chat-input button { background: var(--accent); color: #04121f; border: none; border-radius: 11px; padding: 0 18px; font-weight: 700; font-size: 13px; }
.copilot-side { display: flex; flex-direction: column; gap: 16px; }
.source-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.source-list li { display: flex; gap: 9px; font-size: 12px; color: var(--muted); align-items: flex-start; }
.source-list li::before { content: '◦'; color: var(--accent); }
.source-list li b { color: var(--ink); display: block; font-weight: 600; }
.context-box { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.context-box b { color: var(--ink); }

/* report */
.report-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.report-lead { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.report-opts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.report-opt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.report-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.report-out { min-height: 560px; overflow-y: auto; }
.report-placeholder { color: var(--muted-2); display: grid; place-items: center; height: 480px; font-size: 13px; }
.report-doc h2 { font-size: 20px; margin-bottom: 4px; }
.report-doc .doc-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.report-doc h3 { font-size: 14px; color: var(--accent); margin: 18px 0 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.report-doc p { font-size: 13px; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
.report-doc ul { margin: 0 0 10px 18px; }
.report-doc li { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 5px; }
.report-doc li b { color: var(--ink); }
.report-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* pricing */
.pricing-hero { text-align: center; margin-bottom: 26px; }
.pricing-hero h2 { font-size: 26px; margin-top: 8px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 18px 50px -20px rgba(76,198,255,0.4); position: relative; }
.price-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #04121f; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.price-name { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.price-amt { font-size: 34px; font-weight: 800; font-family: 'Space Grotesk'; margin: 8px 0 2px; }
.price-amt small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.price-feats li { font-size: 12.5px; color: var(--ink); display: flex; gap: 8px; }
.price-feats li::before { content: '✓'; color: var(--good); font-weight: 700; }
.price-feats li.off { color: var(--muted-2); }
.price-feats li.off::before { content: '–'; color: var(--muted-2); }
.enterprise-band { display: flex; justify-content: space-between; align-items: center; gap: 22px; background: linear-gradient(135deg, rgba(244,195,97,0.1), rgba(14,23,38,0.3)); border: 1px solid rgba(244,195,97,0.25); border-radius: var(--radius); padding: 24px; }
.enterprise-band h3 { font-size: 19px; margin-bottom: 6px; }
.enterprise-band p { font-size: 13px; color: var(--muted); max-width: 64ch; line-height: 1.55; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,8,14,0.75); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 440px; width: 92%; position: relative; box-shadow: var(--shadow); }
.modal-x { position: absolute; top: 16px; right: 16px; background: transparent; border: none; color: var(--muted); font-size: 16px; }
.modal h3 { font-size: 21px; margin: 6px 0 10px; }
.modal p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.paywall-list { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.paywall-list li { font-size: 13px; display: flex; gap: 9px; }
.paywall-list li::before { content: '✦'; color: var(--gold); }
.paywall-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--accent); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-size: 13px; z-index: 200; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }

/* leaflet dark fixes */
.leaflet-container { background: #0a1322; }
.leaflet-popup-content-wrapper { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; }
.leaflet-popup-tip { background: var(--panel-2); }
.leaflet-popup-content { font-family: 'Inter'; font-size: 12.5px; }
.leaflet-popup-content b { color: var(--accent); }
.leaflet-control-zoom a { background: var(--panel-2); color: var(--ink); border-color: var(--line); }

@media (max-width: 1180px) {
  .radar-grid, .sat-grid, .copilot-wrap, .report-wrap, .brief-cols, .sat-hero { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
/* hamburger + off-canvas nav — hidden on desktop */
.nav-toggle { display: none; }
.rail-backdrop { display: none; }

@media (max-width: 860px) {
  html, body { height: auto; overflow: auto; -webkit-text-size-adjust: 100%; }
  .app { grid-template-columns: 1fr; height: auto; min-height: 100vh; }

  /* rail becomes a slide-in drawer */
  .rail {
    position: fixed; top: 0; left: 0; bottom: 0; width: 84vw; max-width: 300px;
    transform: translateX(-100%); transition: transform 0.25s ease;
    z-index: 120; overflow-y: auto; box-shadow: 0 0 60px rgba(0,0,0,0.65);
  }
  .app.nav-open .rail { transform: translateX(0); }
  .app.nav-open .rail-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 110; }

  /* hamburger visible */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; background: var(--panel); border: 1px solid var(--line);
    color: var(--ink); border-radius: 11px; font-size: 19px; line-height: 1;
  }

  /* topbar: sticky, compact, wraps */
  .stage { padding: 12px 13px 64px; overflow-y: visible; }
  .topbar { position: sticky; top: 0; z-index: 90; flex-wrap: wrap; align-items: center; gap: 10px;
    background: var(--bg); margin: -12px -13px 16px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
  .topbar-head { order: 3; flex: 1 1 100%; }
  .topbar-actions { order: 2; margin-left: auto; gap: 8px; flex-wrap: wrap; }
  #viewTitle { font-size: 21px; }
  #viewEyebrow, #viewNote { font-size: 11px; }
  .search-wrap, #shareBtn, .free-pill { display: none; }

  /* collapse every multi-column view grid to one column */
  .radar-grid, .wells-grid, .cmp-grid2, .dfm-grid, .pat-grid, .ops-grid, .market-grid,
  .pmn-grid, .fc-grid, .fc-hero, .econ2-grid, .econ2-top, .econ2-hero, .econ-top,
  .guid-layout, .dev-top, .sat-grid, .sat-hero, .dfm-hero, .ops-hero, .blk-hero,
  .pmn-hero, .guid-hero, .copilot-wrap, .report-wrap, .brief-cols, .fc-comm, .dfm-comm {
    grid-template-columns: 1fr !important;
  }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .econ2-scen, .seg { justify-self: start; flex-wrap: wrap; }

  /* shorter maps on a phone */
  .map, .pat-map { height: 300px; }
  .wd-map, .cmp-map { height: 200px; }

  /* wide tables scroll horizontally instead of squishing */
  .wells-table-panel, .ops-table, .econ-table, .econ2-scale-table, .blk-table,
  .pmn-table, .fc-ops, .fc-guid, .dfm-table, .pat-rank, .cmp-table {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .wells-thead, .well-row, .es-row, .econ-trow, .ops-row, .blk-row, .pmn-row,
  .cmp-trow, .fc-orow, .fc-grow, .dfm-trow, .pat-rrow { min-width: 540px; }

  /* wells explorer filters wrap */
  .wells-bar, .signals-bar { flex-wrap: wrap; gap: 8px; }
  .wells-bar .wfilter, .wells-search { flex: 1 1 44%; }
}

/* ============================ FORECAST (Outlook) ============================ */
.fc-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; background: linear-gradient(135deg, rgba(76,198,255,0.1), rgba(14,23,38,0.4)); border: 1px solid rgba(76,198,255,0.22); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.fc-hero-copy h2 { font-size: 22px; margin: 6px 0 8px; }
.fc-hero-copy p { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 58ch; }
.fc-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.fc-stat { background: rgba(7,11,18,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fc-stat span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fc-stat strong { display: block; font-size: 21px; font-weight: 800; font-family: 'Space Grotesk'; margin-top: 3px; color: var(--ink); }
.fc-stat small { font-size: 10.5px; color: var(--muted-2); }

.fc-chart-panel { margin-bottom: 16px; }
.fc-chart { margin-top: 6px; }
.fc-svg .fc-band { fill: rgba(76,198,255,0.16); stroke: none; }
.fc-svg .fc-p50 { stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.fc-svg .fc-histline { stroke: #eaf1fb; stroke-width: 2.2; stroke-linejoin: round; }
.fc-svg .fc-ceil { stroke: #f0b429; stroke-width: 1.8; stroke-dasharray: 6 4; opacity: 0.9; }
.fc-svg .fc-unc { stroke: var(--accent-2); stroke-width: 1.4; stroke-dasharray: 2 4; opacity: 0.6; }

.fc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.fc-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.fc-sw { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.fc-sw.p50 { background: var(--accent); }
.fc-sw.band { background: rgba(76,198,255,0.4); height: 10px; }
.fc-sw.hist { background: #eaf1fb; }
.fc-sw.ceil { background: repeating-linear-gradient(90deg,#f0b429 0 6px,transparent 6px 10px); }
.fc-sw.unc { background: repeating-linear-gradient(90deg,var(--accent-2) 0 2px,transparent 2px 6px); }

.fc-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.fc-kpi { background: rgba(7,11,18,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.fc-kpi span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fc-kpi strong { display: block; font-size: 19px; font-weight: 800; font-family: 'Space Grotesk'; margin-top: 3px; color: var(--accent); }
.fc-kpi strong small { font-size: 11px; font-weight: 500; color: var(--muted-2); font-family: 'Inter'; display: block; }
.fc-kpi em { font-size: 10px; color: var(--muted-2); font-style: normal; }

.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fc-cgroup { margin-bottom: 12px; }
.fc-cgroup h4 { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.fc-cgroup h4 em { font-style: normal; color: var(--muted-2); font-weight: 400; font-size: 11px; }
.fc-crow { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 12px; align-items: center; }
.fc-cname { color: var(--muted); }
.fc-cadd { color: var(--accent-2); font-weight: 600; font-family: 'Space Grotesk'; }
.fc-cwhen { color: var(--muted-2); font-size: 10.5px; text-align: right; }
.fc-seedtag { font-size: 10.5px; color: var(--muted-2); margin-top: 8px; }
.fc-seedtag code { color: var(--accent); }

.fc-grow, .fc-orow { display: grid; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 12px; }
.fc-grow { grid-template-columns: 1.6fr 0.7fr 1.3fr 0.7fr; }
.fc-orow { grid-template-columns: 1.7fr 0.85fr 0.5fr 0.7fr 0.7fr 0.5fr 0.6fr; }
.fc-grow.head, .fc-orow.head { border-top: none; color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.fc-grow .num, .fc-orow .num { text-align: right; font-family: 'Space Grotesk'; }
.fc-seed { font-style: normal; font-size: 9.5px; color: var(--muted-2); background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 5px; }
.fc-bar { position: relative; height: 14px; background: rgba(255,255,255,0.05); border-radius: 7px; overflow: hidden; display: flex; align-items: center; }
.fc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; opacity: 0.55; }
.fc-bar b { position: relative; font-size: 10px; padding-left: 7px; color: var(--ink); font-weight: 600; }

.fc-comm { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.fc-cc { background: rgba(7,11,18,0.4); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.fc-cc strong { font-size: 12.5px; color: var(--accent); }
.fc-cc p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 5px; }

@media (max-width: 980px) {
  .fc-hero, .fc-grid, .fc-comm { grid-template-columns: 1fr; }
  .fc-kpis { grid-template-columns: 1fr 1fr; }
  .fc-orow { font-size: 11px; }
}

/* ---- language + unit toggles (topbar) ---- */
.seg-toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-shrink: 0; }
.seg-toggle button { background: transparent; border: none; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 7px 12px; border-radius: 7px; line-height: 1; transition: background .15s, color .15s; }
.seg-toggle button:hover { color: var(--ink); }
.seg-toggle button.active { background: rgba(76,198,255,0.16); color: var(--accent); }
/* language switch = the "notorious" one: brighter, gradient active, subtle glow */
.lang-switch { border-color: rgba(76,198,255,0.55); box-shadow: 0 0 0 1px rgba(76,198,255,0.12), 0 10px 26px -14px rgba(76,198,255,0.6); }
.lang-switch button { min-width: 34px; text-align: center; }
.lang-switch button.active { background: linear-gradient(135deg, var(--accent), #2b7bd6); color: #04121f; box-shadow: 0 6px 16px -8px rgba(76,198,255,0.85); }
.unit-switch button { min-width: 30px; text-align: center; }

@media (max-width: 1180px) {
  .topbar-actions .search-wrap { display: none; }
}
@media (max-width: 720px) {
  .lang-switch button { padding: 7px 9px; }
  .unit-switch button { padding: 7px 8px; }
}

/* ---- world-class economics ---- */
.econ2-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }
.econ2-hero-copy h2 { font-size: 26px; margin: 4px 0 8px; }
.econ2-hero-copy p { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 720px; }
.econ2-hero-copy strong { color: var(--ink); }
.econ2-scen { justify-self: end; flex-wrap: wrap; }
.econ2-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.econ2-headline { background: linear-gradient(135deg, rgba(76,198,255,0.12), rgba(14,23,38,0.4)); border-color: rgba(76,198,255,0.28); display: flex; flex-direction: column; }
.econ2-headline .eyebrow { color: var(--accent); }
.econ2-nav { font-size: 44px; font-weight: 800; font-family: 'Space Grotesk'; letter-spacing: -0.02em; margin: 6px 0 2px; }
.econ2-navsub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.econ2-badges { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.econ2-badge { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px; text-align: center; }
.econ2-badge span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.econ2-badge strong { display: block; font-size: 22px; font-weight: 700; font-family: 'Space Grotesk'; color: var(--accent); margin-top: 3px; }
.econ2-sub { margin-top: auto; font-size: 12px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 10px; }
.econ2-sub b { color: var(--ink); }
.econ2-deckpanel .deck-controls { margin-top: 4px; }
.econ2-scale { margin-bottom: 16px; }
.econ2-scale-table { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; }
.es-row { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 8px; align-items: center; padding: 9px 8px; border-radius: 9px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.es-row.head { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); border-radius: 0; }
.es-row.win { background: rgba(69,227,160,0.07); }
.es-row.lose { background: rgba(255,107,107,0.05); }
.es-row .es-name { font-weight: 600; }
.es-row .num { text-align: right; }
.es-eco.ok { color: var(--good); font-weight: 700; }
.es-eco.no { color: var(--danger); font-weight: 700; }
.econ2-note { margin-top: 12px; line-height: 1.6; }
.econ2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.econ2-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.econ2-leg { display: flex; gap: 14px; justify-content: center; margin-top: 6px; font-size: 11px; color: var(--muted); }
.econ2-leg span { display: inline-flex; align-items: center; gap: 5px; }
.econ2-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
@media (max-width: 980px) { .econ2-hero, .econ2-top, .econ2-grid { grid-template-columns: 1fr; } .econ2-scen { justify-self: start; } .es-row { font-size: 11px; } }

/* ---- free / early-access badges ---- */
.free-note { text-align: left; }
.free-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12.5px; color: #04121f; background: linear-gradient(135deg, var(--accent-2), var(--accent)); padding: 6px 12px; border-radius: 999px; margin-bottom: 9px; box-shadow: 0 8px 20px -12px rgba(110,231,183,0.8); }
.free-note small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.free-pill { display: inline-flex; align-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.02em; color: var(--accent-2); border: 1px solid rgba(110,231,183,0.5); background: rgba(110,231,183,0.09); padding: 8px 13px; border-radius: 10px; white-space: nowrap; }

/* ---- Activity view: relations chain + fleet / share bars ---- */
.ac-rel { display: flex; flex-direction: column; gap: 9px; }
.ac-relrow { display: flex; gap: 11px; align-items: flex-start; }
.ac-relrow b { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #04121f; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.ac-relrow p { margin: 1px 0 0; font-size: 12.8px; line-height: 1.5; color: var(--ink); }
.ac-fleet, .ac-share { display: flex; flex-direction: column; gap: 7px; }
.ac-frow { display: grid; grid-template-columns: 116px 1fr 40px; align-items: center; gap: 10px; }
.ac-fname { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-fbar { height: 9px; border-radius: 99px; background: rgba(255,255,255,0.05); overflow: hidden; }
.ac-fbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #2b7bd6); }
.ac-frow b { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--ink); }

/* ===== Well Health (Salud de pozos) ===== */
.wh-bench { display: flex; flex-direction: column; gap: 9px; }
.wh-brow { display: flex; flex-direction: column; gap: 3px; }
.wh-top { display: flex; align-items: center; gap: 10px; }
.wh-rank { width: 30px; flex: none; font-size: 12px; color: var(--muted-2); font-weight: 600; }
.wh-op { width: 172px; flex: none; font-size: 13px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-tag { font-size: 9.5px; color: var(--muted-2); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.wh-bar { flex: 1; height: 9px; background: var(--line); border-radius: 99px; overflow: hidden; }
.wh-bar i { display: block; height: 100%; border-radius: 99px; }
.wh-score { width: 30px; flex: none; font-size: 13px; font-weight: 700; text-align: right; }
.wh-sub { margin-left: 40px; font-size: 11px; color: var(--muted-2); }
.wh-sub b { color: var(--muted); }
.wh-perm { font-size: 9px; background: rgba(255,122,61,.18); color: #ff9a6b; padding: 1px 4px; border-radius: 5px; letter-spacing: .03em; }
.wh-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.wh-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 720px) { .wh-op { width: 120px; } .wh-sub { margin-left: 0; } }

/* ===== Well Health · camadas (type-curves) ===== */
.wh-camadas { display: flex; flex-direction: column; gap: 14px; }
.wh-cam-legend { display: flex; flex-direction: column; gap: 9px; }
.wh-cam-keys { display: flex; flex-wrap: wrap; gap: 16px; }
.wh-cam-key { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.wh-cam-key i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.wh-cam-key i.wh-ramp { width: 42px; height: 5px; background: linear-gradient(90deg, rgb(58,74,102), rgb(150,170,205)); }
.wh-cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.wh-cam { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 12px 4px; }
.wh-cam-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.wh-cam-area { font-size: 13px; font-weight: 600; color: var(--ink); }
.wh-cam-verdict { margin-left: auto; font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) { .wh-cam-grid { grid-template-columns: 1fr; } }
/* explainers + inline visuals */
.wh-explain { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.wh-explain b { color: var(--ink); font-weight: 600; }
.wh-gbar { display: inline-block; width: 78px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.wh-gbar i { display: block; height: 100%; background: #d98a00; border-radius: 99px; }
/* well-health tables use 3 columns (name · detail · metric) — override dfm's 4-col grid */
#whEvents .dfm-trow, #whIntegrity .dfm-trow, #whPlacement .dfm-trow { grid-template-columns: 1.25fr 1.75fr 0.7fr; }
#whEvents .wh-explain, #whIntegrity .wh-explain, #whPlacement .wh-explain { grid-column: 1 / -1; }
