.iah-root {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: #333333;
  background: #f5f5f5;
}

.iah-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #cccccc;
}

.iah-heading h2, .iah-card h3 { margin: 0; color: #333333; }
.iah-heading h2 { font-size: 18px; }
.iah-eyebrow { margin: 0 0 5px; color: #777777; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.iah-scope { max-width: 58%; margin: 0; overflow: hidden; color: #666666; 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 #d9d9d9; 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: #333333; text-align: left; background: #fafafa; border: 1px solid #d9d9d9; border-radius: 7px; cursor: pointer; }
.iah-event[aria-current="true"] { background: #eeeeee; border-color: #aaaaaa; }
.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: #555555; 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: #777777; 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: #fafafa; border: 1px solid #d9d9d9; 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: #666666; border: 1px solid #555555; border-radius: 6px; cursor: pointer; }
.iah-actions button.secondary, .iah-refresh { color: #555555; background: #f5f5f5; border-color: #cccccc; }
.iah-actions button:disabled, .iah-refresh:disabled { cursor: not-allowed; opacity: .5; }
.iah-status { margin: 0; padding: 9px 18px; color: #666666; font-size: 10px; background: #fff; border-top: 1px solid #cccccc; }
.iah-status[data-tone="ready"] { color: #555555; }
.iah-status[data-tone="error"] { color: #555555; }
.iah-empty { color: #777777; 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}
