.poe-passive-preview { color: #dddde7; background: #171720; }
.poe-passive-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 15px; }
.poe-passive-heading span { color: #bdb8d3; }
.poe-passive-status { margin: 8px 0; color: #d5c49a; font-size: 12px; }
.poe-passive-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.poe-passive-controls button { border: 1px solid #494758; border-radius: 4px; padding: 5px 10px; color: #e4e0f0; background: #282635; cursor: pointer; }
.poe-passive-controls button:disabled { opacity: .45; cursor: default; }
.poe-passive-controls label { color: #c5bfd2; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.poe-passive-controls select, .poe-passive-node-select { color: #e4e0f0; background: #282635; border: 1px solid #494758; border-radius: 4px; padding: 5px; }
.poe-passive-node-label { display: block; font-size: 12px; color: #c5bfd2; }
.poe-passive-node-select { display: block; margin: 7px 0 12px; max-width: 100%; width: 100%; }
.poe-passive-controls button:focus-visible, .poe-passive-canvas:focus-visible { outline: 2px solid #b3a4e2; outline-offset: 2px; }
.poe-passive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 10px; }
.poe-passive-canvas { display: block; width: 100%; height: min(64vh, 640px); min-height: 320px; background: #101018; border: 1px solid #383846; border-radius: 5px; cursor: grab; touch-action: none; box-sizing: border-box; }
.poe-passive-canvas:active { cursor: grabbing; }
.poe-passive-details { padding: 12px; border: 1px solid #383846; border-radius: 5px; background: #20202b; font-size: 13px; overflow-wrap: anywhere; }
.poe-passive-details p { margin: 8px 0; }
.poe-passive-node-state { color: #e3bf72; }
@media (max-width: 700px) { .poe-passive-layout { grid-template-columns: minmax(0, 1fr); } .poe-passive-canvas { height: 50vh; min-height: 280px; } }

/* Give the passive tree the available screen while keeping equipment compact. */
#inventory-overlay.poe-inventory.is-passive-view .poe-inventory-wrapper { width: 100%; max-height: calc(100dvh - 40px); }
@media (min-width: 701px) { .is-passive-view .poe-passive-canvas { height: max(320px, calc(100dvh - 240px)); } }
@media (max-width: 600px) { #inventory-overlay.poe-inventory.is-passive-view .poe-inventory-wrapper { max-height: calc(100dvh - 16px); } }

.poe-passive-node-tooltip { position: fixed; z-index: 10005; width: max-content; max-width: min(380px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: hidden; pointer-events: none; padding: 10px 12px; box-sizing: border-box; background: #0e0e15f5; color: #dddde7; border: 1px solid #55515f; border-radius: 6px; font-size: 13px; line-height: 1.45; text-align: left; white-space: pre-line; overflow-wrap: anywhere; }
.poe-passive-node-tooltip > strong { display: block; color: #e8d071; font-size: 15px; line-height: 1.3; text-align: center; }
.poe-passive-node-tooltip > strong:not(:last-child) { border-bottom: 1px solid #393640; padding-bottom: 6px; margin-bottom: 6px; }
.poe-passive-node-tooltip p { margin: 4px 0 0; }
.poe-passive-load-error { color: #ef8888; font-size: 12px; }
