.collection-folder-explorer{margin:16px 0;min-width:0}.collection-folder-layout{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:16px}.collection-folder-sidebar{padding:12px;border:1px solid #6b5534;border-radius:12px;background:#101720;min-width:0;max-height:75vh;overflow:auto}.collection-folder-sidebar ul{list-style:none;margin:0;padding-left:12px}.collection-folder-sidebar>nav>ul{padding-left:0}.collection-folder-sidebar button{width:100%;text-align:left;min-height:44px;white-space:normal;overflow-wrap:anywhere;margin:3px 0}.collection-folder-sidebar summary{font-size:.8rem;color:#d5b370;padding:6px;cursor:pointer}.collection-folder-sidebar [aria-current]{border-color:#e4b65f;background:#322819}.collection-folder-content{min-width:0;max-height:70vh;max-height:70dvh;overflow:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}.collection-folder-content:focus-visible{outline:2px solid #e4b65f;outline-offset:3px}.collection-folder-toolbar,.collection-folder-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.collection-folder-toolbar button,.collection-folder-breadcrumb button{min-height:44px}.collection-folder-breadcrumb{overflow-wrap:anywhere}.collection-folder-breadcrumb button{white-space:normal;max-width:100%;overflow-wrap:anywhere}.collection-folder-children{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:12px;margin:12px 0}.collection-folder-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:16px;border:1px solid #8d6f3f;border-radius:12px;background:linear-gradient(145deg,#1e2531,#16131c);color:#f5d99d;min-height:120px;overflow-wrap:anywhere;min-width:0}.collection-folder-tile>span{font-size:2rem}.collection-folder-tile small{color:#c5bcaa}.collection-folder-create,.collection-folder-move{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}.collection-folder-create label,.collection-folder-move label{display:flex;flex-direction:column;gap:6px;max-width:100%;min-width:0}.collection-folder-create input,.collection-folder-move select{min-height:44px;max-width:100%}.collection-folder-content .unified-collection-panel{margin:0}.collection-folder-explorer [hidden]{display:none!important}@media(max-width:700px){.collection-folder-layout{grid-template-columns:minmax(0,1fr)}.collection-folder-sidebar{max-height:260px}.collection-folder-toolbar{gap:5px}.collection-folder-toolbar button{padding:9px}.collection-folder-create label,.collection-folder-move label{flex:1 1 180px}.collection-folder-create input,.collection-folder-move select{width:100%}}
.collection-color-symbols{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;font-size:14px;white-space:nowrap}
.collection-color-dot{display:inline-flex;align-items:center;justify-content:center;flex:none;width:17px;height:17px;border-radius:50%;border:1px solid #d6bd87;font:700 10px/1 Arial,sans-serif;box-shadow:0 1px 3px #0008}
.collection-color-dot.color-W{background:#fff1c5;color:#40341a}.collection-color-dot.color-U{background:#64b8e6;color:#082335}.collection-color-dot.color-B{background:#34313d;color:#fff}.collection-color-dot.color-R{background:#e65a4b;color:#260500}.collection-color-dot.color-G{background:#58a76a;color:#092e11}
.collection-folder-tile strong{display:block;line-height:1.6}.collection-folder-tile>.collection-color-symbols{font-size:14px}

/* Unified Explorer commands and compact directory rows. */
.collection-explorer-commandbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 12px;margin:0 0 12px;border:1px solid #6b5534;border-radius:10px;background:#141a23;position:relative;z-index:5}
.collection-explorer-menu{position:relative}.collection-explorer-menu>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 12px;color:#f5d99d;list-style:none;border:1px solid #6b5534;border-radius:7px}
.collection-explorer-menu[open]>summary{background:#322819}
.collection-explorer-menu-body,.collection-explorer-menu>.collection-folder-create{position:absolute;top:100%;left:0;z-index:20;display:flex;flex-direction:column;align-items:stretch;gap:12px;width:280px;max-width:calc(100vw - 48px);padding:16px;margin:6px 0;background:#101720;border:1px solid #8d6f3f;border-radius:10px;box-shadow:0 8px 24px #0008}
.collection-explorer-menu-body label{display:flex;flex-direction:column;gap:6px}.collection-explorer-menu-body select,.collection-explorer-view select{min-height:44px;max-width:100%}.collection-explorer-menu-body small{color:#c5bcaa;white-space:normal}
.collection-explorer-menu>p{display:none}.collection-explorer-view{display:flex;align-items:center;gap:8px}
#collectionFolderExplorer .unified-display-controls[hidden]{display:none!important}
.collection-explorer-column-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,160px);gap:12px;padding:8px 12px;color:#d5b370;border-bottom:1px solid #6b5534;font-size:.85rem}
#collectionFolderChildren{display:flex;flex-direction:column;gap:2px;margin:0 0 12px}
#collectionFolderChildren .collection-folder-tile{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(100px,160px);align-items:center;gap:12px;padding:8px 12px;min-height:48px;border:1px solid transparent;border-radius:5px;background:transparent}
#collectionFolderChildren .collection-folder-tile:hover,#collectionFolderChildren .collection-folder-tile:focus-visible{background:#322819;border-color:#8d6f3f}
#collectionFolderChildren .collection-folder-tile>span{font-size:1.2rem}#collectionFolderChildren .collection-folder-tile small{font-size:.8rem}
@media(max-width:700px){.collection-explorer-commandbar{gap:6px;padding:8px}.collection-explorer-menu-body,.collection-explorer-menu>.collection-folder-create{position:static;width:auto;box-shadow:none}.collection-explorer-menu[open]{flex:1 1 100%}.collection-explorer-column-head{grid-template-columns:minmax(0,1fr) 100px}#collectionFolderChildren .collection-folder-tile{grid-template-columns:24px minmax(0,1fr) 100px;gap:6px;padding:8px}.collection-explorer-view{flex-wrap:wrap}}

/* Explorer-style address path; scroll long paths without widening the page. */
.collection-explorer-addressbar{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:12px}
.collection-explorer-travel{display:flex;gap:4px;flex:none}.collection-explorer-travel button{width:44px;min-height:44px;padding:6px;font-size:1.2rem}
#collectionFolderBreadcrumb{display:block;flex:1 1 0;min-width:0;margin:0;padding:0 8px;border:1px solid #6b5534;border-radius:8px;background:#101720;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.collection-address-segments{display:flex;align-items:center;width:max-content;min-width:100%;list-style:none;margin:0;padding:0;gap:0}
.collection-address-segments li{display:flex;align-items:center;flex:none;gap:3px;min-height:44px}
#collectionFolderBreadcrumb button,.collection-address-current{white-space:nowrap;overflow-wrap:normal;max-width:none;display:inline-flex;align-items:center;min-height:44px;padding:8px 10px}
#collectionFolderBreadcrumb button{border:1px solid transparent;background:transparent;border-radius:5px;margin:0;color:#ecd5a7}
#collectionFolderBreadcrumb button:hover{border-color:#8d6f3f;background:#322819}
#collectionFolderBreadcrumb button:focus-visible{outline:2px solid #e4b65f;outline-offset:-2px}
.collection-address-current{color:#ffe0a2;font-weight:600}.collection-address-chevron{padding:0 2px;color:#b19b76;font-size:1.3rem}
@media(max-width:700px){.collection-explorer-addressbar{gap:4px;flex-wrap:wrap}.collection-explorer-travel{width:100%}#collectionFolderBreadcrumb{flex-basis:100%}.collection-address-current,#collectionFolderBreadcrumb button{padding:8px}}

/* Collection is the single home for owned cards, discovery and deck management. */
.collection-tool-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px;padding-bottom:10px;border-bottom:1px solid #6b5534}
.collection-tool-tabs button{min-height:44px;padding:10px 16px;border:1px solid #6b5534;border-radius:8px;background:#141a23;color:#ecd5a7}
.collection-tool-tabs button.active{background:#322819;border-color:#e4b65f;color:#ffe0a2}
.collection-tool-tabs button:focus-visible{outline:2px solid #e4b65f;outline-offset:2px}
.collection-owned-content.hidden,.collection-tool-host.hidden,.collection-tool-panel.hidden{display:none!important}
.collection-tool-panel{min-width:0}.collection-tool-panel>.workspace-tabs{display:none!important}
@media(max-width:700px){.collection-tool-tabs{gap:6px}.collection-tool-tabs button{flex:1 1 auto;padding:10px}}
