.iommu-lab { padding: 1.1rem; border: 1px solid var(--line, #dce1dc); border-radius: 12px; background: var(--surface, #fff); }
.iommu-lab [hidden] { display: none !important; }
.iommu-lab h3, .iommu-lab h4, .iommu-lab p { margin: 0 0 .7rem; }
.iommu-lab .mechanism-view-heading { margin-bottom: .7rem; }
.iommu-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem; margin: 1rem 0; }
.iommu-controls label { display: grid; gap: .35rem; min-width: 0; max-width: 100%; }
.iommu-controls select { max-width: 100%; min-width: 0; }
.iommu-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.iommu-actions button { min-height: 40px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.iommu-actions button:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.iommu-actions button:disabled { opacity: .45; cursor: default; }
.iommu-status { font-weight: 600; }
.iommu-scene { display: grid; grid-template-columns: minmax(0, 1fr) 1rem minmax(0, 1.4fr) 1rem minmax(0, 1fr); gap: .55rem; align-items: stretch; }
.iommu-scene > section { min-width: 0; padding: .85rem; border: 1px solid var(--line, #dce1dc); border-radius: 8px; background: var(--bg, #f7f8f6); }
.iommu-scene > section[data-active="true"] { background: #e9f4f0; border-color: #6b9a8e; }
.iommu-scene h4 { font-size: 1rem; }
.iommu-scene p, .iommu-record, .iommu-scene dl { font-size: .88rem; line-height: 1.65; overflow-wrap: anywhere; }
.iommu-scene dl { margin: 0 0 .6rem; }
.iommu-scene dl > div { margin: .45rem 0; }
.iommu-scene dt { color: var(--muted, #657579); }
.iommu-scene dd { margin: 0; }
.iommu-edge { align-self: center; text-align: center; color: var(--muted, #657579); }
.iommu-record { display: grid; gap: .3rem; padding: .65rem 0; border-top: 1px solid var(--line, #dce1dc); }
.iommu-record code { white-space: normal; }
.iommu-detail { margin-top: 1rem; padding: .85rem; background: var(--bg, #f7f8f6); border-radius: 8px; }
.iommu-detail p { margin: .35rem 0 0; }
.iommu-note { margin-top: 1rem !important; font-size: .9rem; color: var(--muted, #657579); }
@media (max-width: 760px) {
  .iommu-lab { padding: .8rem; }
  .iommu-scene { grid-template-columns: minmax(0, 1fr); }
  .iommu-edge { transform: rotate(90deg); line-height: 1; }
  .iommu-controls { align-items: stretch; }
  .iommu-controls label { flex: 1 1 100%; }
  .iommu-actions { width: 100%; }
  .iommu-actions button { flex: 1; padding-inline: 7px; }
}
