/* EF Shell H room chrome — pairs with shell-e.css (Finance parity) */
:root {
  --surface: var(--ef-surface, #f8fafc);
  --container: var(--ef-container, #f1f5f9);
  --primary: var(--ef-primary, #1e3a5f);
  --primary-soft: var(--ef-primary-soft, #dbe4f0);
  --primary-on: var(--ef-primary-on, #0f2942);
  --outline: var(--ef-outline, #94a3b8);
  --ink: var(--ef-ink, #0f172a);
  --muted: var(--ef-muted, #64748b);
  --faint: var(--ef-muted, #64748b);
  --white: #ffffff;
  --radius-soft: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.shell-e { display: flex; flex-direction: column; min-height: 100dvh; }
.shell-e-root { display: flex; flex-direction: column; flex: 1; min-height: 100dvh; width: 100%; }
.pane-title {
  font-family: var(--ef-font-display, Fredoka, Nunito, system-ui, sans-serif);
  font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--ink);
}
.upd { font-size: 12px; font-weight: 700; color: var(--faint); margin: 0 0 14px; }
.muted { color: var(--faint); font-size: 13px; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; font-weight: 600; }
.sec { display: none; }
.sec.on { display: block; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--ef-outline-soft, #e2e8f0);
  border-radius: var(--radius-soft);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 41, 66, 0.04);
}
.card-lbl { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.card-val { font-family: var(--ef-font-display, Fredoka, sans-serif); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.card-val.sm { font-size: 18px; }
.card-h { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.perf-card { margin: 0; }
.perf-card-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.perf-card.tone-ok { border-top: 3px solid #16a34a; }
.perf-card.tone-watch { border-top: 3px solid #d97706; }
.perf-card.tone-risk { border-top: 3px solid #dc2626; }
.perf-card.tone-stub { border-top: 3px solid var(--outline); opacity: .92; }
.why { font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 0 0; }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li {
  padding: 10px 12px; border-bottom: 1px solid var(--ef-outline-soft, #e2e8f0);
  font-size: 13px; font-weight: 700;
}
.list-clean li:last-child { border-bottom: none; }
.stub-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}
.app-foot {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 8px 16px calc(8px + var(--safe-b));
  border-top: 1px solid var(--ef-outline-soft, #e2e8f0);
  background: var(--white); font-size: 11px; color: var(--faint);
}
.err { background: #fee2e2; color: #991b1b; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.deep-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-on); font-size: 13px; font-weight: 800;
}

/* Footer — Finance parity: version · date · access by NAME */
.app-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 14px calc(10px + var(--safe-b));
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.app-foot .ver-badge,
.app-foot .ver-pill,
.app-foot #ver {
  display: inline-flex;
  align-items: center;
  font: 600 12px/1.2 var(--ef-font-body, system-ui, sans-serif);
  color: #fff;
  background: #b3261e;
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
}
.app-foot .muted,
.app-foot #footAsOf,
.app-foot #footAccess {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
}

/* Room accent = B4 felt-crest outfit */
:root { --ef-room-accent: #16a34a; --ef-accent: #16a34a; }
.ef-opinion-card { border-left-color: #16a34a; }
.ef-sumup-av { color: #16a34a; }
.header-title { color: #16a34a; }
