/* Tree of Life focused view, guide and responsive controls. */
@media (min-width:768px) and (max-height:500px){
.ecl-kingdoms-tree-tools{flex-wrap:nowrap;flex-shrink:0;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:8px}
.ecl-kingdoms-tree-tools>*{flex-shrink:0}
.ecl-kingdoms-tree-tools button{white-space:nowrap}
}
.ecl-kingdoms-tree-visual--focused{position:fixed;inset:0;z-index:2147483000;width:100%;height:100dvh;min-height:0!important;flex:none!important;background:#06180f;box-sizing:border-box}
.ecl-kingdoms-tree-visual--focused .ecl-kingdoms-tree-tools{flex-wrap:nowrap;flex-shrink:0;overflow-x:auto;overflow-y:hidden}
.ecl-kingdoms-tree-visual--focused .ecl-kingdoms-tree-tools>*{flex-shrink:0}
.ecl-kingdoms-tree-visual--focused .ecl-kingdoms-tree-mount{min-height:0!important}
.ecl-tree-focus-branch{display:flex;align-items:center;gap:12px;padding:6px 12px;background:#f5f3e9;color:#173f34;flex-shrink:0;font:13px/1.35 system-ui,sans-serif}
.ecl-tree-focus-branch label{display:flex;align-items:center;gap:8px;flex:0 1 340px}
.ecl-tree-focus-branch select{min-height:48px;max-width:100%;min-width:0;flex:1;background:#fffdf5;color:#173f34;border:1px solid #809486;border-radius:8px}
.ecl-tree-focus-branch p{flex:1;margin:0;max-height:65px;overflow-y:auto}
@media(max-width:599px){.ecl-tree-focus-branch{display:block}.ecl-tree-focus-branch label{display:flex}.ecl-tree-focus-branch p{max-height:48px;margin-top:4px}}

.ecl-tree-guide-note{padding:12px 18px;color:#173f34;background:#f5f3e9;font:13px/1.4 system-ui,sans-serif}.ecl-tree-guide-note p{margin:0 0 8px}
.ecl-tree-focus-reading{flex:1;max-height:88px;overflow:auto;outline-offset:2px}.ecl-tree-focus-reading p{max-height:none;overflow:visible;margin:0 0 6px}
@media(max-width:599px){.ecl-tree-focus-reading{margin-top:4px;max-height:88px}}

/* Host-owned instructions remain associated with the interactive stage. */
.ecl-tree-screenreader-guide{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ecl-tree-inline-branch{padding:10px 18px;color:#173f34;background:#f5f3e9;font:14px/1.4 system-ui,sans-serif}
.ecl-tree-inline-branch label{display:flex;align-items:center;gap:8px}
.ecl-tree-inline-branch select{flex:1;min-width:0;min-height:48px;max-width:100%;border:1px solid #809486;border-radius:8px;background:#fffdf5;color:#173f34;font:inherit}
.ecl-tree-inline-branch p{margin:8px 0 0}
.ecl-tree-inline-branch :focus-visible{outline:3px solid #276b50;outline-offset:3px}
@media(max-width:599px){
.ecl-kingdoms-tree-visual--focused .ecl-kingdoms-tree-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.ecl-kingdoms-tree-visual--focused .ecl-kingdoms-tree-tools>span{grid-column:1/-1}
.ecl-kingdoms-tree-visual--focused .ecl-kingdoms-tree-tools button{white-space:normal;min-width:0;width:100%}
}
