/* Layered infrastructure map. Uses af-theme tokens; the map panel stays dark in every theme so layer colours keep contrast. */
.ix-wide { max-width: 1280px; }
.ix-notice { border: 2px solid var(--theme-primary); border-radius: var(--theme-radius-sm); background: var(--theme-card-bg); padding: 14px 18px; margin: 0 0 16px; }
.ix-notice h2, .ix-notice summary { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--theme-text-primary); }
.ix-notice summary { cursor: pointer; list-style: none; position: relative; padding-left: 16px; }
.ix-notice summary::-webkit-details-marker { display: none; }
.ix-notice summary::marker { content: ""; }
.ix-notice summary::before { content: ""; position: absolute; left: 0; top: 0.45em; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--theme-primary); }
.ix-notice[open] > summary { margin-bottom: 8px; }
.ix-notice[open] > summary::before { top: 0.55em; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--theme-primary); border-bottom: 0; }
.ix-notice summary:focus-visible { outline: 3px solid var(--theme-link); outline-offset: 2px; }
.ix-notice p { margin: 0 0 6px; color: var(--theme-text-secondary); font-size: 0.92rem; }
.ix-notice strong { color: var(--theme-text-primary); }
.ix-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 920px) { .ix-grid { grid-template-columns: 1fr; } }
.ix-panel { background: var(--theme-card-bg); border: 1px solid var(--theme-border-color); border-radius: var(--theme-radius-sm); padding: 14px; margin-bottom: 16px; }
.ix-panel h2 { font-size: 1.02rem; margin: 0 0 8px; color: var(--theme-text-primary); }
.ix-h3 { font-size: 0.88rem; margin: 12px 0 6px; color: var(--theme-text-primary); }
.ix-fold { border-bottom: 1px solid var(--theme-border-color); margin: 8px 0 0; }
.ix-fold-sum { cursor: pointer; position: relative; list-style: none; font-size: 0.88rem; font-weight: 600; color: var(--theme-text-primary); padding: 8px 0 8px 16px; }
.ix-fold-sum::-webkit-details-marker { display: none; }
.ix-fold-sum::marker { content: ""; }
.ix-fold-sum::before { content: ""; position: absolute; left: 0; top: 12px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--theme-primary); }
.ix-fold[open] > .ix-fold-sum::before { top: 14px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--theme-primary); border-bottom: 0; }
.ix-fold-sum:focus-visible { outline: 3px solid var(--theme-link); outline-offset: 2px; }
.ix-below { margin: 0; }
.ix-below > .ix-fold-sum { font-size: 1.05rem; padding: 4px 8px 12px 22px; }
.ix-below .af-figures { display: grid; gap: 16px; }
.ix-list, .ix-ul { list-style: none; padding: 0; margin: 0; }
.ix-ul { list-style: disc; padding-left: 18px; color: var(--theme-text-secondary); font-size: 0.85rem; }
.ix-list li { padding: 6px 0; border-bottom: 1px solid var(--theme-border-color); }
.ix-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--theme-text-primary); font-size: 0.92rem; flex-wrap: wrap; }
.ix-label input { width: 18px; height: 18px; accent-color: var(--theme-primary); }
.ix-label input:focus-visible, .ix-btn:focus-visible, #ix-map:focus-visible, .ix-select:focus-visible { outline: 3px solid var(--theme-link); outline-offset: 2px; }
.ix-name { font-weight: 600; }
.ix-icon { flex: none; }
.ix-meta { color: var(--theme-text-soft); font-size: 0.78rem; line-height: 1.45; margin: 2px 0 0 26px; }
.ix-meta a, .ix-note a, .ix-panel a { color: var(--theme-link); }
.ix-state { font-size: 0.68rem; padding: 1px 8px; border-radius: 40px; border: 1px solid var(--theme-text-soft); color: var(--theme-text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.ix-state-cached { border-style: solid; }
.ix-state-simulated { border-style: dashed; }
.ix-state-gap { border-style: dotted; border-width: 2px; }
.ix-count { color: var(--theme-text-secondary); font-weight: 600; }
.ix-mapwrap { position: relative; border: 1px solid var(--theme-border-color); border-radius: var(--theme-radius-sm); overflow: hidden; background: #0b1220; }
#ix-map { display: block; width: 100%; height: 440px; touch-action: none; cursor: grab; }
.ix-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.ix-btn { background: transparent; color: var(--theme-link); border: 1px solid var(--theme-primary); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 0.85rem; min-height: 34px; }
.ix-btn:hover { background: var(--theme-input-bg); }
.ix-select { background: var(--theme-input-bg); color: var(--theme-input-text); border: 1px solid var(--theme-input-border); border-radius: 8px; padding: 7px 10px; font-size: 0.85rem; }
.ix-status { color: var(--theme-text-secondary); font-size: 0.85rem; margin: 8px 0; border-left: 3px solid var(--theme-primary); padding-left: 10px; }
.ix-dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; font-size: 0.85rem; }
.ix-dl dt { color: var(--theme-text-soft); } .ix-dl dd { margin: 0; color: var(--theme-text-secondary); }
.ix-note { color: var(--theme-text-secondary); font-size: 0.88rem; border-left: 3px solid var(--theme-warn); padding-left: 10px; margin: 0 0 8px; }
.ix-scroll { overflow-x: auto; max-width: 100%; }
.ix-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.ix-table th, .ix-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--theme-border-color); color: var(--theme-text-secondary); white-space: nowrap; }
.ix-table thead th { color: var(--theme-text-primary); }
.ix-table tbody th { color: var(--theme-text-primary); font-weight: 600; }
.ix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ix-keys { color: var(--theme-text-soft); font-size: 0.78rem; margin-top: 6px; }
.ix-assets { max-height: 240px; overflow-y: auto; list-style: none; padding: 0; margin: 0; }
.ix-assets li { padding: 3px 0; }
.ix-credit { font-size: 0.78rem; color: var(--theme-text-soft); margin-top: 8px; }

.ix-cached { border-left: 4px solid var(--theme-primary, #00f3ff); padding: 8px 12px; margin: 12px 0; }
.ix-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.ix-table th, .ix-table td { border-bottom: 1px solid var(--theme-nav-border, #333); padding: 6px; text-align: left; vertical-align: top; }
@media (max-width: 768px) { .ix-table { display: block; overflow-x: auto; } }
