import { useState, useEffect } from “react”;
import { BarChart, Bar, XAxis, YAxis, Tooltip, ResponsiveContainer, RadarChart, PolarGrid, PolarAngleAxis, PolarRadiusAxis, Radar, Legend, Cell } from “recharts”;

const C = {
bg: “#f7f7f5”,
white: “#ffffff”,
border: “#e0ddd8”,
borderLight: “#ece9e4”,
accent: “#b8102e”,
accentLight: “#fceef0”,
dark: “#1a1a1a”,
body: “#333333”,
caption: “#6b6b6b”,
muted: “#999999”,
iran: “#b8102e”,
iranLight: “#fceef0”,
us: “#1e5fa6”,
usLight: “#eaf1f9”,
green: “#1a7a3a”,
greenLight: “#e8f5ec”,
amber: “#a16207”,
amberLight: “#fef9ec”,
gridLine: “#e8e5e0”,
};

const font = {
display: “‘Playfair Display’, Georgia, ‘Times New Roman’, serif”,
body: “‘Source Sans 3’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif”,
mono: “‘DM Mono’, ‘Courier New’, monospace”,
};

const outcomes = [
{ name: “War continuation beyond 30 more days”, prob: 55, trend: “Steady”, detail: “Both sides remain entrenched in an asymmetric stalemate. The US dominates the air domain but Iran maintains effective control of the Strait of Hormuz. Neither side has achieved its stated objectives — the US has not forced Iranian capitulation, and Iran has not expelled US forces from the region. The April 6 deadline for energy strikes is the third such extension, suggesting the administration is reluctant to follow through on its most extreme threats.” },
{ name: “Escalation to regional war”, prob: 30, trend: “Rising”, detail: “The conflict has already expanded well beyond the Iran-US bilateral axis. Hezbollah has engaged Israel in a full-scale Lebanon war with over 1,100 killed. Yemen’s Houthis have resumed missile attacks on Israel. Iraqi Popular Mobilisation Forces have struck US bases. Gulf states — the UAE, Saudi Arabia, Bahrain and Kuwait — have all sustained Iranian missile or drone strikes. An attack targeted the residence of KRG President Nechirvan Barzani.” },
{ name: “US ground operation”, prob: 25, trend: “Rising”, detail: “The Pentagon has deployed 3,500 Marines aboard the USS Tripoli and alerted soldiers from the 82nd Airborne Division. The Washington Post reported discussions about seizing Kharg Island, Iran’s main oil export hub, and raiding coastal areas near the Strait of Hormuz. Trump told the Financial Times he had ‘a lot of options’ regarding Kharg Island. Iran’s parliament speaker warned that Iranian forces are ‘waiting for the arrival of American soldiers on the ground.'” },
{ name: “Partial ceasefire or de-escalation”, prob: 20, trend: “Rising”, detail: “Pakistan has emerged as the primary mediator, hosting foreign ministers from Turkey, Saudi Arabia and Egypt in Islamabad. Pakistan’s army commander Asim Munir has served as the key interlocutor. Some ships have been permitted through the Strait of Hormuz under Iranian approval — about 6 per day compared with 135 in normal times. Trump has described negotiations as going ‘extremely well,’ though Iran denies direct talks are taking place.” },
{ name: “Regime change in Iran (12-month horizon)”, prob: 18, trend: “Uncertain”, detail: “The Atlantic identified five conditions for revolution and assessed them as ‘nearly’ met. However, Carnegie’s analysis of authoritarian resilience warns that security force loyalty — which held through the January massacre of an estimated 30,000 protesters — is the decisive blocking factor. The opposition remains fragmented between monarchists (Pahlavi), the MEK, Kurdish parties and reformists. German Chancellor Merz stated regime change is ‘unlikely’ based on past precedents.” },
{ name: “Frozen conflict or new status quo”, prob: 15, trend: “Rising”, detail: “Iran is effectively converting the Strait of Hormuz into a toll road, with vessels required to coordinate with IRGC intermediaries and pay fees for transit. Bloomberg data shows Iran’s own oil exports have increased 8% during the war, flowing primarily to China. This arrangement could harden into a permanent feature if neither side forces a resolution, creating a de facto new maritime order in the Persian Gulf.” },
{ name: “Iranian nuclear escalation”, prob: 10, trend: “Rising”, detail: “Iran’s parliament is debating withdrawal from the Nuclear Non-Proliferation Treaty. Nuclear facilities were damaged in the initial strikes but not fully destroyed. Pre-war enrichment had reached 60%. The IAEA has been denied access to damaged sites. If Iran pursues a weapons programme, the breakout timeline could be measured in weeks. This represents the single highest-consequence low-probability outcome.” },
{ name: “Comprehensive peace deal”, prob: 8, trend: “Low”, detail: “The US 15-point plan demands total nuclear disarmament, cessation of enrichment, handover of enriched uranium stocks, limits on missiles, an end to proxy support and freedom of navigation in the Strait. Iran has rejected this as ‘excessive, unrealistic and unreasonable.’ Iran’s counter-demands include reparations, closure of US bases, formalised control over Hormuz transit and lifting of all sanctions. The bargaining range between these positions is functionally zero.” },
];

const forceData = [
{ dim: “Air superiority”, iran: 5, us: 95 },
{ dim: “Precision strike”, iran: 25, us: 95 },
{ dim: “Air defence”, iran: 10, us: 90 },
{ dim: “Command and control”, iran: 20, us: 85 },
{ dim: “Force readiness”, iran: 35, us: 85 },
{ dim: “Technology”, iran: 10, us: 95 },
{ dim: “Asymmetric capability”, iran: 75, us: 20 },
{ dim: “Casualty tolerance”, iran: 70, us: 30 },
{ dim: “Maritime control (Hormuz)”, iran: 70, us: 40 },
{ dim: “Proxy networks”, iran: 50, us: 10 },
];

const radarData = [
{ axis: “Air”, Iran: 5, US: 95 },
{ axis: “Precision”, Iran: 25, US: 95 },
{ axis: “Asymmetric”, Iran: 75, US: 20 },
{ axis: “Maritime”, Iran: 70, US: 40 },
{ axis: “Cyber/Info”, Iran: 35, US: 85 },
{ axis: “Nuclear”, Iran: 30, US: 95 },
{ axis: “Proxy”, Iran: 50, US: 10 },
{ axis: “Endurance”, Iran: 70, US: 30 },
];

const dealFactors = {
favoring: [
{ factor: “Mutual economic pain”, weight: 10, detail: “Brent crude above $116 per barrel. S&P 500 in four consecutive weeks of decline. Over 3,200 ships stranded in or around the Persian Gulf.” },
{ factor: “Pakistan mediation channel”, weight: 8, detail: “Four-country format established with Pakistan, Turkey, Saudi Arabia and Egypt. Pakistan army chief acting as direct interlocutor with both sides.” },
{ factor: “Trump’s stated desire for a deal”, weight: 7, detail: “The president has described negotiations as going ‘extremely well’ and repeatedly extended energy-strike deadlines, suggesting a preference for a negotiated exit.” },
{ factor: “Rising war costs”, weight: 6, detail: “The administration is seeking a $200 billion war supplemental from Congress. US casualties stand at 13 killed and over 300 wounded. Global economic disruption is accelerating.” },
{ factor: “Partial Hormuz opening”, weight: 3, detail: “Iran released 20 oil tankers as a reported gesture. A transit-fee system is emerging with vessels coordinating passage through IRGC intermediaries.” },
],
blocking: [
{ factor: “Demand gap”, weight: 15, detail: “The US demands total nuclear disarmament. Iran demands reparations, base closures, and formalised Hormuz control. There is near-zero overlap between these positions.” },
{ factor: “Trust deficit”, weight: 12, detail: “The US-Israeli strikes were launched on 28 February — one day after Oman announced a diplomatic ‘breakthrough’ in which Iran had agreed to downgrade enriched uranium and accept full IAEA verification.” },
{ factor: “Absence of face-saving exit”, weight: 10, detail: “Iran’s leadership cannot accept terms that appear to be capitulation. The regime killed an estimated 30,000 of its own citizens in January to maintain control; accepting US dictation would undermine that position fatally.” },
{ factor: “Commitment problem (Fearon)”, weight: 10, detail: “The attack during active negotiations creates a structural trust failure. Any future agreement lacks credibility because Iran has no reason to believe the US will honour its commitments.” },
{ factor: “Israeli escalation”, weight: 8, detail: “Netanyahu has ordered maximum destruction of Iran’s arms industry. Israel has stated it has no intention of scaling back strikes regardless of diplomatic developments.” },
{ factor: “Iranian rejectionism”, weight: 8, detail: “The 15-point plan was rejected as ‘excessive.’ The IRGC remains ideologically committed to confrontation. Iran’s five-point counter-offer demands conditions Washington cannot accept.” },
{ factor: “Ground operations planning”, weight: 7, detail: “Continued deployment of Marines, alerting of the 82nd Airborne, and public discussion of Kharg Island seizure signal to Tehran that Washington is not negotiating in good faith.” },
],
};

const regimeConditions = [
{ condition: “Fiscal crisis”, status: “Met”, score: 90, color: C.accent, detail: “The rial has lost over 60% of its value in twelve months. Inflation exceeds 40%. The World Bank projected negative growth for both 2025 and 2026. Oil revenue is disrupted. Sanctions are at maximum pressure levels.” },
{ condition: “Divided elites”, status: “Partial”, score: 45, color: C.amber, detail: “Reformists and hardliners have aligned under external threat, but the succession crisis following Khamenei’s death creates latent instability. Mojtaba Khamenei has not appeared publicly since being appointed supreme leader.” },
{ condition: “Diverse opposition”, status: “Partial”, score: 30, color: C.amber, detail: “Multiple opposition currents exist — monarchists behind Pahlavi, the MEK, Kurdish parties (PDKI, PJAK, KDP-I, Komala, PAK), and reformists — but they offer competing visions and lack unified leadership inside Iran.” },
{ condition: “Resistance narrative”, status: “Partial”, score: 55, color: C.amber, detail: “‘Death to the Dictator’ was chanted across 200 cities in January. The Lion and Sun flag has become a protest symbol. But the regime’s counter-narrative of defending Iran against foreign aggression also resonates.” },
{ condition: “International environment”, status: “Partial”, score: 50, color: C.amber, detail: “The US explicitly supports regime change. Pahlavi has presented a 180-day governance transition plan. But the war itself is widely condemned internationally, and no coherent multilateral transition framework exists.” },
];

const regimeBlocking = [
{ factor: “Security force loyalty”, score: 75, detail: “The decisive variable. No defections were observed during the January crackdown that killed an estimated 30,000 people, nor during the current war. The IRGC’s internal security apparatus remains functional despite degradation of its conventional military capabilities.” },
{ factor: “Opposition fragmentation”, score: 70, detail: “Pahlavi’s monarchist movement, the MEK, Kurdish parties and reformists cannot agree on a post-regime vision. The exile opposition held rallies of up to 350,000 people but lacks organisational capacity and legitimacy inside Iran.” },
{ factor: “Rally-around-the-flag effect”, score: 55, detail: “The US-Israeli attack has generated nationalist solidarity even among Iranians who oppose the regime. The framing of the conflict as defence of the homeland temporarily suppresses domestic opposition dynamics.” },
];

const keyVars = [
{ code: “BARGAIN_RANGE”, name: “Bargaining range width”, iran: 0.10, us: 0.10, bl: 0.30, note: “Near-zero overlap between US and Iranian demands” },
{ code: “CHKN_TENS”, name: “Chicken game tension”, iran: 0.85, us: 0.85, bl: 0.30, note: “April 6 deadline; Hormuz closure vs energy strikes” },
{ code: “COMMIT_PROB”, name: “Commitment problem severity”, iran: 0.80, us: 0.70, bl: 0.40, note: “War launched during diplomatic breakthrough” },
{ code: “FACE_SAVING”, name: “Face-saving exit availability”, iran: 0.15, us: 0.25, bl: 0.30, note: “Neither side can accept terms without loss of position” },
{ code: “HURTING_STALE”, name: “Mutually hurting stalemate”, iran: 0.50, us: 0.40, bl: 0.20, note: “Emerging: US air dominance vs Iran Hormuz control” },
{ code: “RIPENESS”, name: “Conflict ripeness”, iran: 0.30, us: 0.30, bl: 0.20, note: “Not yet ripe — both believe escalation improves position” },
{ code: “WAY_OUT”, name: “Perceived way out”, iran: 0.20, us: 0.30, bl: 0.30, note: “Pakistan channel is only viable diplomatic track” },
{ code: “INADV_ESC”, name: “Inadvertent escalation risk”, iran: 0.70, us: 0.60, bl: 0.20, note: “Multiple fronts, Gulf states hit, ground ops planned” },
];

const Tip = ({ active, payload, label }) => {
if (!active || !payload?.length) return null;
return (

{label}

{payload.map((p, i) => (

{p.name}: {p.value}

))}

);
};

function Section({ title, sub, children }) {
return (

{title}

{sub &&

{sub}

}
{!sub &&

}
{children}

);
}

function Card({ children, style = {} }) {
return (

{children}

);
}

function MetricBox({ label, value, sub, borderColor = C.border }) {
return (

{value}
{label}

{sub &&

{sub}

}

);
}

export default function Dashboard() {
const [activeTab, setActiveTab] = useState(“overview”);
const [expandedOutcome, setExpandedOutcome] = useState(null);

const tabs = [
{ id: “overview”, label: “Situation overview” },
{ id: “military”, label: “Force balance” },
{ id: “deal”, label: “Deal analysis” },
{ id: “regime”, label: “Regime change” },
{ id: “variables”, label: “Key variables” },
];

return (

{/* Masthead */}

Analysis

Iran–US conflict: Day 31 situation assessment

OOQUA analytical framework — 82 variables adjusted from open-source intelligence, 31 March 2026

{/* Key figures strip */}




{/* Navigation */}

{/* Main content */}

{/* === OVERVIEW === */}
{activeTab === “overview” && (<>

{outcomes.map((o, i) => (

setExpandedOutcome(expandedOutcome === i ? null : i)}
style={{ display: “grid”, gridTemplateColumns: “1fr 60px 70px”, gap: 12, alignItems: “center”, padding: “10px 14px”, background: i % 2 === 0 ? C.white : “transparent”, cursor: “pointer”, borderLeft: expandedOutcome === i ? `3px solid ${C.accent}` : “3px solid transparent”, transition: “border-color 0.15s” }}
>

{o.name}
= 50 ? C.accent : o.prob >= 25 ? C.amber : o.prob >= 15 ? C.us : C.green, borderRadius: 1, transition: “width 0.8s ease” }} />

{o.prob}%
{o.trend}

{expandedOutcome === i && (

{o.detail}

)}

))}

{[
{ title: “The Hormuz stalemate”, text: “Shipping through the strait has collapsed from roughly 135 vessel transits per day to approximately six. Iran is now operating what amounts to a toll system, with 80% of exiting tankers being Iranian or from countries on friendly terms. Iran’s own oil exports have risen 8% during the war, flowing almost entirely to China. The IRGC’s asymmetric capabilities — fast-attack boats, submersibles and fortified island positions — remain largely intact despite the destruction of Iran’s conventional navy.” },
{ title: “The deadline pattern”, text: “Trump has issued three successive deadlines threatening strikes on Iranian energy infrastructure if the Strait is not reopened. Each has been extended, most recently to 6 April. This pattern erodes US coercive credibility while simultaneously providing implicit de-escalation signals. The administration appears caught between the desire to demonstrate resolve and the recognition that destroying Iranian energy infrastructure would worsen the global economic shock.” },
{ title: “The mediation track”, text: “Pakistan has become the primary diplomatic intermediary, with army commander Asim Munir maintaining direct contact with Iran’s security establishment. A four-country format involving Turkey, Saudi Arabia and Egypt has been established, with Islamabad offering to host direct US-Iran talks. However, Iran denies participating in negotiations and has rejected the US 15-point proposal. The diplomatic track exists but has not yet produced substantive progress.” },
{ title: “The ground operation question”, text: “The arrival of 3,500 Marines, the alerting of the 82nd Airborne and public discussion of seizing Kharg Island represent either a genuine escalation pathway or coercive bargaining leverage. Iran’s parliament speaker has warned of asymmetric retaliation. Analysts note that any amphibious operation would first require neutralising Iran’s fortified island chain at the mouth of the Gulf — a significant military undertaking.” },
].map((d, i) => (

{d.title}

{d.text}

))}


)}

{/* === MILITARY === */}
{activeTab === “military” && (<>






} />





Capability radar










Iran’s asymmetric advantages

Despite catastrophic losses in conventional military domains, Iran retains several asymmetric capabilities that have proven strategically significant:

{[
{ title: “Fortified island chain”, text: “Abu Musa has been described as a ‘mini missile city’ with elaborate underground fortifications, drone bases, missile batteries and landing strips. These positions have barely been touched by US strikes.” },
{ title: “IRGC fast-attack boats and submersibles”, text: “The IRGC Navy’s asymmetric flotilla — small, fast and dispersed — remains largely intact even as the conventional IRIN has been destroyed.” },
{ title: “Insurance-based soft closure”, text: “Iran demonstrated that a credible threat alone can shut down the strait. War risk insurance was withdrawn on 5 March, making the economic risk too high for most ship operators to transit.” },
{ title: “Revenue generation under blockade”, text: “Iran’s own oil exports have increased 8% during the conflict, flowing to China under IRGC escort. The emerging transit-fee system represents a new revenue stream.” },
{ title: “Second chokepoint threat”, text: “Iran has threatened to open a front at the Bab al-Mandeb strait through Houthi allies in Yemen, potentially disrupting Red Sea shipping as well.” },
].map((item, i) => (

{item.title}
{item.text}

))}

)}

{/* === DEAL === */}
{activeTab === “deal” && (<>

Factors favouring a deal

{dealFactors.favoring.map((f, i) => (

{f.factor}
+{f.weight}%

{f.detail}

))}

Net positive contribution: +34%

Factors blocking a deal

{dealFactors.blocking.map((f, i) => (

{f.factor}
-{f.weight}%

{f.detail}

))}

Net negative contribution: -70%


On 27 February 2026, Oman’s foreign minister announced that Iran had agreed to downgrade its enriched uranium to the lowest possible level and accept full IAEA verification. He described peace as “within reach.” The following day, the United States and Israel launched Operation Epic Fury.

This sequence creates what the political scientist James Fearon identified as a commitment problem — one of the three rationalist explanations for why wars occur. Iran now has overwhelming evidence that the US will not honour diplomatic commitments, even those mediated by a trusted third party. Any future agreement therefore requires enforcement mechanisms that neither side can credibly provide. Iran’s rational response is to demand guarantees so extreme — reparations, base closures, formalised Hormuz control — that they are functionally unacceptable to Washington. The result is a bargaining range that has collapsed to near zero.



)}

{/* === REGIME CHANGE === */}
{activeTab === “regime” && (<>

{regimeConditions.map((c, i) => (

{c.condition}
{c.status}
{c.score}

{c.detail}

))}


{regimeBlocking.map((b, i) => (

{b.factor}

{b.score}/100

{b.detail}

))}






} />

{[C.us, C.amber, C.accent, C.muted, C.iran, C.caption].map((c, i) => )}


The highest risk window is at the 12-month horizon, where a scenario of the war ending with the regime weakened but intact, combined with a post-war legitimacy crisis and the impossibility of economic reconstruction under sanctions, could create conditions for renewed mass mobilisation. The critical variable remains whether the security forces — particularly the IRGC’s internal security apparatus — fracture under accumulated strain.



)}

{/* === VARIABLES === */}
{activeTab === “variables” && (<>


{[“Code”, “Variable”, “Baseline”, “Iran”, “US/Israel”, “Note”].map((h, i) => (

))}

{keyVars.map((v, i) => (

))}

{h}
{v.code} {v.name} {v.bl.toFixed(2)} {v.iran.toFixed(2)} {v.us.toFixed(2)} {v.note}







} />






This assessment uses the OOQUA Master Variable Catalog V2, which contains 487 variables across 56 analytical categories spanning strategic, military, economic, social, diplomatic, nuclear, game-theoretic and systemic domains.

Of these, 82 variables were adjusted from their baseline values for both Iran (Agent A) and the US/Israel coalition (Agent B), based on open-source intelligence current as of 31 March 2026 — Day 31 of the conflict.

Sources consulted include: ACLED conflict data; ISW and Critical Threats daily updates; Carnegie Endowment and RAND assessments; the US Congressional Research Service; UK House of Commons Library briefings; IISS strategic analysis; Real Instituto Elcano; Al Jazeera Centre for Studies; Bloomberg and Lloyd’s List maritime intelligence; and reporting from CNN, NPR, the Washington Post, Financial Times, Foreign Policy and the New York Times.

The analytical framework draws on Fearon’s bargaining theory of war, Zartman’s ripeness theory, Putnam’s two-level games, prospect theory and game-theoretic models including chicken, iterated prisoner’s dilemma and Bayesian updating under incomplete information.


)}

{/* Footer */}

OOQUA Analytical Framework v2 — 487 variables across 56 categories — 82 adjusted for this assessment
31 Mar 2026

);
}