/* Wave260 — Files, Explorer-style: the toolbar dropdowns (Sort · Group ·
 * View), the List rows, Group-by bands, video tiles, the single-click
 * selection and the right-hand Details pane.
 * wave273 (2026-10-30) — the Windows Explorer LOOK: selection and hover
 * speak Windows' state colours (pale blue #CCE8FF fill inside a thin
 * #99D1FF border; a #E5F3FF wash on hover) on tiles, List rows and
 * Details-table rows alike — no navy ring, no side bar. Blue is a STATE
 * colour; gold stays the primary action's alone and appears nowhere
 * here. The folder art is the yellow tabbed folder (fxFolderArt). */

.fx-viewctl { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.fx-dd { position: relative; display: inline-flex; }
.fx-ddbtn { display: inline-flex; align-items: center; gap: 6px; }
.fx-ddbtn .fx-ddval { color: var(--muted); font-weight: 500; }
.fx-ddbtn .fx-ddchev { width: 14px; height: 14px; opacity: .7; }
.fx-ddpanel { position: absolute; top: calc(100% + 4px); right: 0; z-index: 1200; min-width: 196px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 28, 48, .14); padding: 5px; display: flex; flex-direction: column; }
.fx-ddpanel[hidden] { display: none; }
.fx-dditem { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-radius: 7px; padding: 7px 10px 7px 6px; font: inherit; font-size: 13.5px; color: var(--ds-navy, var(--ink, #1c2430)); text-align: left; cursor: pointer; }
.fx-dditem:hover, .fx-dditem:focus-visible { background: #eef2f8; outline: none; }
.fx-dditem.on { font-weight: 600; }
.fx-ddmark { display: inline-flex; width: 18px; justify-content: center; flex: none; color: var(--ds-navy, var(--ink, #1c2430)); }
.fx-ddmark .ico { width: 15px; height: 15px; }
.fx-ddsep { height: 1px; background: var(--line); margin: 5px 4px; }

/* List (compact) */
.fxe-compact { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius, 12px); padding: 6px; }
/* wave273: Explorer rows — no rules between them; each row is its own
 * soft cell that washes on hover and fills pale blue when selected. */
.fxe-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 10px; min-height: 42px; border: 1px solid transparent; border-radius: 4px; cursor: default; }
.fxe-row + .fxe-row { margin-top: 1px; }
.fxe-tickcell { width: 18px; flex: none; display: inline-flex; }
.fxe-tickcell input { width: 16px; height: 16px; }
.fxe-main { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink, #1c2430); cursor: pointer; text-align: left; }
.fxe-main:hover .fxe-name { text-decoration: underline; }
.fxe-kind { width: 40px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; background: transparent; color: #5f6b7a; overflow: hidden; }
.fxe-kind .i-kind { width: 20px; height: 20px; }
.fxe-kind.pic { box-shadow: 0 0 0 1px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .12); }
.fxe-kind.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fxe-kind-folder .fx-folder-art { width: 32px; height: 26px; }
.fxe-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxe-meta { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Group-by bands */
.fxe-band { display: flex; align-items: center; gap: 6px; padding: 10px 6px 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.fxe-compact .fxe-band { margin: 0 0 4px; padding: 10px 6px 6px; background: transparent; }
.fxg-wrap.fxe-banded .fxe-band:not(:first-child) { margin-top: 14px; }
.fxe-bandbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 4px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ds-navy, var(--ink, #1c2430)); cursor: pointer; flex: 1; text-align: left; }
.fxe-bandbtn .ico { width: 15px; height: 15px; color: var(--muted); }
.fxe-bandn { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.fxe-bandn::before { content: "("; } .fxe-bandn::after { content: ")"; }
.fxe-bandempty { margin: 4px 8px 10px; font-size: 12.5px; color: var(--muted); }
.fx-table tr.fxe-bandrow td { background: #f4f6fa; padding: 6px 10px; }
.fxe-bandrow .fxe-bandbtn { flex: none; }

/* Video tiles */
.fxe-vid { position: relative; }
.fxe-vid .fxg-ico { position: absolute; inset: 0; height: auto; }
.fxe-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s; pointer-events: none; background: #f4f6f9; }
.fxe-vid.ready video { opacity: 1; }
.fxe-playbadge { position: absolute; left: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(15, 23, 36, .72); color: #fff; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.fxe-playbadge .ico { width: 14px; height: 14px; fill: currentColor; }

/* Selection + hover — wave273: the Windows state colours. Hover washes
 * the whole tile / row; selected fills the whole cell (art AND name)
 * pale blue inside a thin blue border. Tiles, List rows and Details
 * rows share the same three values. */
.fxg-tile, tr.fx-row { cursor: default; }
.fxg-tile:hover, .fxe-row:hover { background: #E5F3FF; border-color: #E5F3FF; }
.fxg-tile.fxe-on, .fxe-row.fxe-on, .fxg-tile.fxe-on:hover, .fxe-row.fxe-on:hover { background: #CCE8FF; border-color: #99D1FF; box-shadow: none; }
.fx-table tr.fx-row:hover > td { background: #E5F3FF; }
.fx-table tr.fxe-on > td, .fx-table tr.fxe-on:hover > td { background: #CCE8FF; box-shadow: inset 0 1px 0 #99D1FF, inset 0 -1px 0 #99D1FF; }
.fx-table tr.fxe-on > td:first-child { box-shadow: inset 1px 0 0 #99D1FF, inset 0 1px 0 #99D1FF, inset 0 -1px 0 #99D1FF; }
.fx-table tr.fxe-on > td:last-child { box-shadow: inset -1px 0 0 #99D1FF, inset 0 1px 0 #99D1FF, inset 0 -1px 0 #99D1FF; }
.fx-tick input[data-fx-tick-all-files] { display: block; margin-top: 4px; }

/* wave273: the folder art at Details-table size, and the kinds' colours
 * (the look of a kind only — fileIcon still decides which kind). */
.fx-folder-art { display: block; flex: none; overflow: visible; filter: drop-shadow(0 1px .8px rgba(120, 84, 0, .22)); }
.fx-filelink > .fx-folder-art { width: 24px; height: 20px; }
[data-fx-kind="filetext"] { color: #2f6fd6; }
[data-fx-kind="chart"] { color: #1f8a4c; }
[data-fx-kind="plan"] { color: #3c5a86; }
[data-fx-kind="box"] { color: #7a52c7; }
[data-fx-kind="mic"] { color: #c2356f; }
[data-fx-kind="image"] { color: #0f8b8d; }
[data-fx-kind="video"] { color: #5b4bd6; }
[data-fx-kind="paperclip"] { color: #5f6b7a; }

/* The two-column shell + the Details pane */
.fxe-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.fxe-mainpane { min-width: 0; }
/* wave273: the pane reads like Explorer's (REF-05) — a calm white panel
 * with no border box, a hairline on its leading edge, the preview large
 * and centred on WHITE (no dark photo slab, no grey well), the name in
 * bold under it, then plain property rows. Content and order unchanged. */
.fxe-pane { position: sticky; top: 12px; background: #fff; border: 0; border-left: 1px solid #e6e9ee; border-radius: 0; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 40px); overflow-y: auto; }
.fxe-paneclose { position: absolute; top: 8px; right: 8px; z-index: 2; }
.fxe-prev { border-radius: 0; background: #fff; overflow: visible; display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 30px 8px 6px; }
.fxe-prev img { max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; display: block; background: transparent; border-radius: 2px; box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px rgba(16, 24, 40, .05); }
.fxe-prev img:not([src]) { visibility: hidden; }
.fxe-prevvid video { width: 100%; max-height: 220px; display: block; background: #f4f6f9; border-radius: 2px; box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }
.fxe-prev-ico:not([data-fx-kind]) { color: #5f6b7a; }
.fxe-prev-ico .i-kind { width: 72px; height: 72px; }
.fxe-prev-folder .fx-folder-art { width: 132px; height: 107px; }
.fxe-pname { margin: 4px 0 2px; font-size: 15px; font-weight: 700; color: var(--ink, #1c2430); word-break: break-word; padding-right: 28px; }
.fxe-facts, .fxe-flags { display: grid; grid-template-columns: 86px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.fxe-facts dt, .fxe-flags dt { color: var(--muted); }
.fxe-facts dd, .fxe-flags dd { margin: 0; color: var(--ink, #1c2430); word-break: break-word; }
.fxe-sect { margin: 8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink, #1c2430); }
.fxe-muted { margin: 0; font-size: 12.5px; color: var(--muted); }
.fxe-acts { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #eef0f3; padding-top: 8px; }
.fxe-acts .fxe-act { justify-content: flex-start; display: inline-flex; align-items: center; gap: 8px; width: 100%; }
.fxe-acts .fxe-act.danger { color: var(--danger, #b42318); }

@media (max-width: 900px) {
  .fxe-shell { grid-template-columns: minmax(0, 1fr); }
  .fxe-pane { position: relative; top: 0; max-height: none; order: -1; border-left: 0; border-bottom: 1px solid #e6e9ee; }
  .fx-viewctl { margin-left: 0; }
}
@media (max-width: 640px) {
  .fxe-meta { display: none; }
  .fx-ddpanel { right: auto; left: 0; }
}
