/* explorer.css — File Explorer layout: tabs in the title bar, toolbar, command bar, navigation pane, content (list / large icons / drives), status bar. Compact density. */
.exp { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.exp-tabs { display: flex; align-items: flex-end; gap: 2px; height: 100%; padding-top: 6px; min-width: 0; flex: 1; }
.exp-tab { display: flex; align-items: center; gap: 8px; height: 34px; min-width: 0; max-width: 200px; flex: 0 1 180px; padding: 0 6px 0 10px; border-radius: var(--r-md) var(--r-md) 0 0; color: var(--text-2); position: relative; }
.exp-tab:hover { background: var(--hover); }
.exp-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 -1px 0 var(--border) inset, 1px 0 0 var(--border), -1px 0 0 var(--border); margin-bottom: -1px; height: 35px; }
.exp-tab.is-active::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.exp-tab__label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.exp-tab__close { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--r-xs); opacity: 0; } .exp-tab:hover .exp-tab__close, .exp-tab.is-active .exp-tab__close { opacity: .8; } .exp-tab__close:hover { background: var(--press); opacity: 1; }
.exp-tab-add { width: 28px; height: 28px; margin: 0 0 3px 2px; }
.win.is-inactive .exp-tab.is-active { background: var(--surface); }

.exp__bar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; background: var(--surface); }
.exp-btn { width: 30px; height: 30px; }
.exp-address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 32px; margin: 0 8px; padding: 0 6px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; color: var(--text-3); }
.exp-address:hover { background: var(--hover); } .exp-address.is-editing { background: var(--surface); border-color: var(--accent); }
.exp-address__icon { margin: 0 6px 0 4px; flex: none; }
.exp-crumb { height: 24px; padding: 0 6px; border-radius: var(--r-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.exp-crumb:hover { background: var(--press); }
.exp-address__input { flex: 1; height: 100%; border: 0; outline: none; background: transparent; color: var(--text); padding: 0 6px; }
.exp-search { display: flex; align-items: center; gap: 6px; width: 240px; flex: none; height: 32px; padding: 0 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); }
.exp-search:focus-within { border-color: var(--accent); background: var(--surface); }
.exp-search__input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); height: 100%; }
.exp-search__input::-webkit-search-cancel-button { display: none; }

.exp__cmd { display: flex; align-items: center; gap: 2px; padding: 4px 10px 6px; border-bottom: 1px solid var(--border); background: var(--surface); min-height: 42px; overflow: hidden; }
.exp-cmd { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); color: var(--text); transition: background var(--dur-fast); white-space: nowrap; }
.exp-cmd:hover:not(:disabled) { background: var(--hover); } .exp-cmd:active:not(:disabled) { background: var(--press); } .exp-cmd:disabled { opacity: .38; }
.exp-cmd--text { padding: 0 10px; } .exp-cmd[data-menu-open] { background: var(--press); }
.exp-cmd-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--border); }

.exp__main { flex: 1; min-height: 0; display: flex; }
.exp__nav { width: 236px; flex: none; overflow-y: auto; padding: 6px 8px; background: var(--surface-2); border-right: 1px solid var(--border); }
.exp-nav__row { position: relative; display: flex; align-items: center; border-radius: var(--r-sm); }
.exp-nav__row.is-indent { padding-left: 14px; }
.exp-nav__row:hover { background: var(--hover); }
.exp-nav__row.is-active { background: var(--accent-soft); }
.exp-nav__row.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.exp-nav__twisty, .exp-nav__twisty-gap { width: 20px; height: 28px; flex: none; display: grid; place-items: center; color: var(--text-3); }
.exp-nav__twisty:hover { color: var(--text); }
.exp-nav__item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding-right: 8px; text-align: left; }
.exp-nav__label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-nav__item .sym { color: var(--text-3); }
.exp-nav__sep { height: 1px; margin: 6px 8px; background: var(--border); }

.exp__content { flex: 1; min-width: 0; overflow: auto; padding: 4px 12px 12px; background: var(--surface); outline: none; }
.exp-sec { margin-bottom: 14px; } .exp-sec__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-2); margin: 10px 4px 6px; }
.exp-list__head { display: grid; grid-template-columns: minmax(180px, 1fr) 160px 150px 90px; position: sticky; top: -4px; z-index: 1; background: var(--surface); border-bottom: 1px solid var(--border); padding: 4px 0 2px; margin-bottom: 2px; }
.exp-list__col { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 26px; padding: 0 10px; color: var(--text-2); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.exp-list__col:hover { background: var(--hover); } .exp-list__col.exp-cell--num { justify-content: flex-end; }
.exp-row { display: grid; grid-template-columns: minmax(180px, 1fr) 160px 150px 90px; align-items: center; height: 30px; border-radius: var(--r-sm); border: 1px solid transparent; }
.exp-row:hover { background: var(--hover); }
.exp-row.is-selected { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.exp-row.is-cut, .exp-tile.is-cut { opacity: .5; }
.exp-row__name { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; }
.exp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.exp-cell { padding: 0 10px; color: var(--text-2); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .exp-cell--num { text-align: right; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.exp-grid--large { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.exp-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: var(--r-md); border: 1px solid transparent; text-align: center; min-width: 0; }
.exp-tile .exp-label { max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; font-size: var(--fs-sm); }
.exp-tile:hover { background: var(--hover); } .exp-tile.is-selected { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.exp-tile__art { display: grid; place-items: center; height: 56px; }
.exp-grid--large .exp-tile__art { height: 80px; width: 100%; }
.exp-thumb { position: relative; width: 100%; height: 76px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.exp-thumb__badge { position: absolute; left: 6px; bottom: 6px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.exp-drives { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.exp-drive { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid transparent; }
.exp-drive:hover { background: var(--hover); } .exp-drive.is-selected { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.exp-drive__info { flex: 1; min-width: 0; display: grid; gap: 4px; } .exp-drive__text { font-size: var(--fs-xs); color: var(--text-3); }
.exp-meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--border); }
.exp-meter__fill { height: 100%; background: var(--accent); border-radius: 4px; } .exp-meter.is-full .exp-meter__fill { background: var(--danger); }
.exp-empty { display: grid; place-items: center; height: 60%; color: var(--text-3); }
.exp__status { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px 0 14px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); }
.exp__views { display: flex; gap: 2px; } .exp__views .exp-btn { width: 26px; height: 24px; }
