/* Existing brand tokens own all interface colors; the graph is a diagram. */
.atlas-space-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem; }
.atlas-space-toolbar button { min-height: 44px; margin: 0; }
#atlas-space-status { font-size: .875rem; overflow-wrap: anywhere; }
.atlas-space-replaced { display: none !important; }
.atlas-space-host { position: relative; height: clamp(20rem, 48vh, 34rem); overflow: hidden; border: 1px solid var(--ul-edge); border-radius: var(--ul-radius-s); background: #091a30; }
.atlas-space-host > canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.atlas-space-host > canvas:focus-visible { outline: 3px solid var(--ul-focus); outline-offset: -4px; }
.atlas-space-labels { position: absolute; inset: 0; pointer-events: none; }
.atlas-space-labels button { position: absolute; width: max-content; max-width: min(230px,calc(100% - 8px)); white-space: normal; overflow-wrap: anywhere; text-align: left; background: #091a30; color: #dbeaff; border: 1px solid #72bded; font: 12px/1.3 system-ui,sans-serif; padding: .25rem .4rem; margin: 0; pointer-events: auto; }
.atlas-space-labels button.selected { color: #f4c76b; border-color: #f4c76b; }
.atlas-space p, .atlas-space li { font-size: .875rem; overflow-wrap: anywhere; }
.atlas-space details { margin-block: .75rem; }
.atlas-space ul { padding-left: 1.4rem; max-height: 20rem; overflow: auto; }
.atlas-space ul button { min-height: 44px; margin-block: .2rem; overflow-wrap: anywhere; }
@media (max-width:720px) {
 .atlas:not([data-atlas-panel=browse]) .atlas-space-toolbar, .atlas:not([data-atlas-panel=browse]) #atlas-space-status-region { display: none; }
 .atlas-space-toolbar button { flex: 1 1 8rem; }
 .atlas-space-host { height: 22rem; }
}
@media (prefers-reduced-motion:reduce) { .atlas-space *, .atlas-space-toolbar * { animation: none; transition: none; scroll-behavior: auto; } }
@media print { .atlas-space-host,.atlas-space-toolbar { display:none; } .atlas-space ul { max-height:none; overflow:visible; } }
.atlas-space ul button small { display: block; font-size: .8125rem; font-weight: 400; color: inherit; }
