/* Wave239 — Files view controls + gallery tiles. The list view keeps
 * files.css; everything here is the switcher's own skin. */

.fx-viewctl { display: inline-flex; align-items: center; gap: 8px; }
.fx-sortwrap { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.fx-sort { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; }
.fx-viewtgl { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fx-viewtgl .btn { border: 0; border-radius: 0; }
.fx-viewtgl .btn.on { background: var(--ink, #1c2430); color: #fff; }

/* wave273 — the Windows Explorer LOOK (Micheal, 2026-10-30: "make it
 * more like windows… good looks and colour"). Large-icons tiles are
 * Explorer tiles now: borderless on white, art centred, the name centred
 * under it in plain regular-weight text. Folders are the yellow tabbed
 * folder (fxFolderArt, files-explorer.js); photos and video frames fill
 * their frame with a soft shadow, no grey well; other files sit on a
 * white page in their kind's colour. Hover = pale blue-grey wash,
 * selected = Windows pale blue (files-explorer.css). Skin only — the
 * tick box and the ⋮ menu keep their places and their jobs. */
.fxg-wrap { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.fxg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; }
.fxg-tile { position: relative; border: 1px solid transparent; border-radius: 4px; padding: 26px 10px 10px; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.fxg-main { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; text-align: center; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.fxg-media { display: block; position: relative; width: 100%; height: 118px; border-radius: 3px; background: #f4f6f9; overflow: hidden; box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px rgba(16, 24, 40, .05); }
.fxg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fxg-media img:not([src]) { visibility: hidden; }
.fxg-ico { display: flex; align-items: center; justify-content: center; width: 100%; height: 118px; background: transparent; color: #5f6b7a; }
.fxg-ico .i-kind { width: 40px; height: 40px; }
.fxg-folder .fxg-ico { height: 118px; }
.fxg-folder .fxg-ico .fx-folder-art { width: 124px; height: 101px; }
/* a file with no picture: a white page with a folded corner, its kind's
 * glyph in colour — the Explorer document look */
.fxg-media.fxg-nopic { background: transparent; box-shadow: none; overflow: visible; }
.fxg-ico.fxg-doc { position: relative; width: 70px; height: 90px; margin: 14px auto; border-radius: 3px; background: linear-gradient(225deg, transparent 13px, #fff 13px); filter: drop-shadow(0 0 .6px rgba(16, 24, 40, .45)) drop-shadow(0 1.5px 2px rgba(16, 24, 40, .14)); }
.fxg-ico.fxg-doc::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(45deg, #e6eaf0 50%, transparent 50%); border-bottom-left-radius: 2px; }
.fxg-ico.fxg-doc .i-kind { width: 34px; height: 34px; margin-top: 8px; }
.fxg-name { max-width: 100%; font-size: 13.5px; font-weight: 400; line-height: 1.3; color: var(--ink, #1c2430); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; text-align: center; }
.fxg-sub { max-width: 100%; font-size: 11.5px; color: var(--muted); text-align: center; }
.fxg-tick { position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; z-index: 2; }
.fxg-menu { position: absolute; top: 4px; right: 4px; z-index: 2; background: transparent; }
.fxg-empty { padding: 18px 6px; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .fxg-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fxg-media, .fxg-ico, .fxg-folder .fxg-ico { height: 92px; }
  .fxg-folder .fxg-ico .fx-folder-art { width: 92px; height: 75px; }
  .fxg-ico.fxg-doc { width: 56px; height: 72px; margin: 10px auto; }
}

/* wave239b: the Folder set dialog + the Settings → File folders editor. */
.fx-fsets { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.fx-fset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.fx-fset-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fx-fset-names { margin: 4px 0 10px; font-size: 12.5px; }
.fx-dlg-acts { display: flex; justify-content: flex-end; margin-top: 6px; }

.fsx-rows { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.fsx-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fsx-name { flex: 1; min-width: 180px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.fsx-share { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fsx-btns { display: inline-flex; gap: 4px; }
.fsx-presets { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.fsx-preset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fsx-preset-t { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fsx-pname { flex: 1; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.fsx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fsx-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.fsx-chip.on { background: var(--ink, #1c2430); color: #fff; border-color: var(--ink, #1c2430); }
