:root{
  --ex-system-font:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ex-system-ink:#10233f;
  --ex-system-muted:#6f7f95;
  --ex-system-soft:#f5f8fc;
  --ex-system-line:#d9e2ec;
  --ex-system-line-soft:#e6edf5;
  --ex-system-card:#ffffff;
  --ex-system-radius:18px;
  --ex-system-radius-sm:14px;
  --ex-system-shadow:0 18px 42px rgba(15,53,93,.045);
}

body{
  font-family:var(--ex-system-font);
  background:var(--ex-system-soft);
  color:var(--ex-system-ink);
}

h1,h2,h3,h4,h5,h6{
  color:var(--ex-system-ink);
  font-weight:760;
  letter-spacing:.08em;
}

p,span,div,td,th,input,button,a{
  font-weight:500;
}

strong,b{
  font-weight:760;
}

button,
input,
select,
textarea{
  font-family:var(--ex-system-font);
}

.ex-system-card,
.card,
.panel,
.tile,
.command-card,
.heatmap-panel,
.proofs-card,
.ex-protected-state{
  background:var(--ex-system-card);
  border:1px solid var(--ex-system-line);
  border-radius:var(--ex-system-radius);
  box-shadow:var(--ex-system-shadow);
}

.pill,
.badge,
.status,
.state,
.ex-engine-status span{
  border:1px solid var(--ex-system-line);
  border-radius:999px;
  font-size:10px;
  font-weight:760;
  letter-spacing:.14em;
}

pre,
code,
.raw,
.summary{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:12px;
  font-weight:500;
  line-height:1.55;
}

table{
  border-collapse:separate;
  border-spacing:0;
}

th{
  font-size:10px;
  font-weight:760;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#8b99aa;
}

td{
  font-size:13px;
  color:var(--ex-system-ink);
}

.ex-muted,
.muted,
small{
  color:var(--ex-system-muted);
  font-weight:500;
}

/* SYSTEM NUMERIC / STATUS SCALE — LIGHTER */
.ex-engine-shell h1,
.ex-engine-shell h2,
.ex-engine-shell h3{
  font-weight:680 !important;
}

.ex-engine-shell .card strong,
.ex-engine-shell .tile strong,
.ex-engine-shell .command-value,
.ex-engine-shell .stat-value,
.ex-engine-shell .metric-value,
.ex-engine-shell [class*="value"],
.ex-engine-shell [class*="Value"]{
  font-size:22px !important;
  line-height:1.05 !important;
  font-weight:680 !important;
  letter-spacing:-.02em !important;
}

.ex-engine-shell .card,
.ex-engine-shell .tile,
.ex-engine-shell .panel,
.ex-engine-shell .command-card{
  border:1px solid #dbe5ef !important;
  box-shadow:0 14px 34px rgba(15,53,93,.035) !important;
}

.ex-engine-shell .label,
.ex-engine-shell .command-label,
.ex-engine-shell .card-label,
.ex-engine-shell [class*="label"],
.ex-engine-shell [class*="Label"]{
  font-size:10px !important;
  font-weight:680 !important;
  letter-spacing:.16em !important;
  color:#9aa8b8 !important;
}

.ex-engine-shell p,
.ex-engine-shell span,
.ex-engine-shell div{
  font-weight:500;
}

/* EXECUTION STRUCTURE — SYSTEM FORM STANDARD */
.ex-structure-standard{
  padding:42px 42px 48px !important;
}

.ex-structure-tabs{
  margin:24px 0 26px !important;
  gap:10px !important;
}

.ex-structure-tab{
  height:38px !important;
  padding:0 24px !important;
  font-size:11px !important;
  font-weight:680 !important;
}

.ex-structure-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(132px,1fr)) minmax(220px,1.4fr) 170px !important;
  gap:10px !important;
  align-items:center !important;
}

.ex-structure-field{
  height:48px !important;
  min-height:48px !important;
  padding:0 14px !important;
  border-radius:13px !important;
  font-size:12px !important;
  font-weight:500 !important;
  color:#10233f !important;
}

textarea.ex-structure-field{
  height:48px !important;
  min-height:48px !important;
  padding:8px 14px !important;
  resize:none !important;
  overflow:hidden !important;
}

.ex-structure-action{
  height:48px !important;
  min-width:160px !important;
  padding:0 20px !important;
  border-radius:999px !important;
  font-size:11px !important;
  font-weight:700 !important;
}

@media(max-width:1200px){
  .ex-structure-grid{
    grid-template-columns:repeat(3,minmax(140px,1fr)) !important;
  }

  .ex-structure-action{
    width:100% !important;
  }
}
