.iah-root {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: #173b4a;
  background: #edf3f5;
}

.iah-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #c6d5da;
}

.iah-heading h2, .iah-card h3 { margin: 0; color: #102f40; }
.iah-heading h2 { font-size: 18px; }
.iah-eyebrow { margin: 0 0 5px; color: #63808d; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.iah-scope { max-width: 58%; margin: 0; overflow: hidden; color: #4f6e79; font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }

.iah-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px;
}

.iah-card { min-width: 0; min-height: 0; padding: 12px; background: #fff; border: 1px solid #cad9de; border-radius: 8px; overflow: auto; }
.iah-card h3 { margin-bottom: 10px; font-size: 13px; }
.iah-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.iah-event { display: grid; gap: 3px; width: 100%; padding: 9px; color: #244b59; text-align: left; background: #f7fafb; border: 1px solid #d3e0e4; border-radius: 7px; cursor: pointer; }
.iah-event[aria-current="true"] { background: #dff2f1; border-color: #74bbb5; }
.iah-event strong { font-size: 11px; }
.iah-event span { overflow: hidden; font: 9px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.iah-current { color: #116860; font-weight: 800; }

.iah-details { display: grid; gap: 12px; }
.iah-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.iah-facts div { min-width: 0; }
.iah-facts dt { color: #718993; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.iah-facts dd { overflow-wrap: anywhere; margin: 2px 0 0; font: 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.iah-effects { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.iah-effect { padding: 8px; background: #f7fafb; border: 1px solid #d7e2e5; border-radius: 6px; font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }

.iah-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.iah-actions button, .iah-refresh { min-height: 30px; padding: 6px 10px; color: #fff; font-size: 10px; font-weight: 750; background: #0d746d; border: 1px solid #0b655f; border-radius: 6px; cursor: pointer; }
.iah-actions button.secondary, .iah-refresh { color: #31515b; background: #eef5f6; border-color: #b9cdd3; }
.iah-actions button:disabled, .iah-refresh:disabled { cursor: not-allowed; opacity: .5; }
.iah-status { margin: 0; padding: 9px 18px; color: #526f7a; font-size: 10px; background: #fff; border-top: 1px solid #c6d5da; }
.iah-status[data-tone="ready"] { color: #116860; }
.iah-status[data-tone="error"] { color: #a94135; }
.iah-empty { color: #6a828c; font-size: 11px; }

.audit-stage { grid-column: 2 / 4; min-width: 0; min-height: 0; overflow: hidden; }

@media (max-width: 1250px) {
  .iah-layout { grid-template-columns: minmax(290px, .8fr) minmax(390px, 1.2fr); }
}

/* Portal monochrome theme. */
.iah-current,.iah-status[data-tone="ready"]{color:#555}
.iah-actions button,.iah-refresh{background:#111;border-color:#111}
