/* ExaGuards desktop folders and files: the folder explorer (My Files), the Notepad, the Share window, the upload panel and the folder and file icons of the desktop wall.
   One look, the Windows 11 File Explorer inside a desktop window. Every colour comes from the desktop tokens (exa-desktop.css: --inv-*, --accent, --sel, --winbg ...), which switch with data-theme,
   so light and dark follow the desktop; the fallbacks after each token only matter when a page is shown without the desktop around it.
   Every class starts with fx- (checked against the site-wide CSS) except the two the wall already owns (dnode, dnode-badge). */

.fx-root, .fx-upl, .fx-np, .fv-root {
    --fx-text: var(--inv-text, #12301A);
    --fx-muted: var(--inv-muted, #45614C);
    --fx-faint: var(--inv-faint, #66806C);
    --fx-line: var(--inv-line, #DCE8DD);
    --fx-soft: var(--inv-soft, #EEF6EE);
    --fx-card: var(--inv-card, #FFFFFF);
    --fx-hover: var(--inv-hover, #F1F8F1);
    --fx-bg: var(--winbg, #F6FBF5);
    --fx-accent: var(--accent, #176916);
    --fx-accent-soft: var(--accent-soft, rgba(47, 179, 46, .18));
    --fx-sel: var(--sel, rgba(47, 179, 46, .18));
    --fx-selline: var(--selline, rgba(47, 179, 46, .35));
    --fx-btn: var(--btn, linear-gradient(180deg, #1B7A1A, #14631A));
    --fx-bad: var(--inv-warn, #981F19);
    --fx-bad-soft: var(--inv-warn-soft, rgba(220, 38, 38, .14));
    --fx-good: var(--inv-good, #136019);
    --fx-good-soft: var(--inv-good-soft, rgba(47, 179, 46, .18));
    --fx-info: var(--blue, #1742C4);
    --fx-info-soft: var(--blue-soft, rgba(37, 99, 235, .14));
    --fx-shadow: var(--shadow, 0 18px 44px rgba(20, 70, 30, .26), 0 0 0 1px rgba(18, 48, 26, .08));
    --fx-font: var(--fb, Roboto, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif);
    --fx-r: 8px;
}

.fx-root *, .fx-root *::before, .fx-root *::after, .fx-upl *, .fx-np *, .fx-modal *, .fv-root *, .fv-root *::before, .fv-root *::after { box-sizing: border-box; }

/* ───────────── the window ───────────── */
.fx-root {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    margin: 0 -8px;                       /* the window keeps 8px at each side of a page; the explorer touches both borders like every window frame */
    background: var(--fx-bg);
    color: var(--fx-text);
    font-family: var(--fx-font);
    font-size: 13px;
    line-height: 1.35;
    outline: none;
    overflow: hidden;
}
.fx-root button { font-family: inherit; color: inherit; }
.fx-root button:disabled { opacity: .42; cursor: default; }
.fx-root :focus-visible, .fx-modal :focus-visible, .fx-np :focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 1px; }
.fx-faint { color: var(--fx-faint); }

.fx-denied { margin: auto; max-width: 420px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--fx-muted); }
.fx-denied i { font-size: 38px; color: var(--fx-faint); }
.fx-denied b { color: var(--fx-text); font-size: 16px; }

/* ───────────── top: back/forward/up, the address and the search ───────────── */
.fx-top { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; }
.fx-navbtns { display: flex; align-items: center; gap: 2px; }
.fx-nb {
    width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; font-size: 15px; cursor: pointer;
}
.fx-nb:hover:not(:disabled) { background: var(--fx-hover); }
.fx-nb:active:not(:disabled) { background: var(--fx-sel); }
.fx-address {
    flex: 1 1 auto; min-width: 0; height: 34px; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 10px; overflow: hidden; white-space: nowrap;
    background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r);
}
.fx-address > i.bi:first-child { color: var(--fx-accent); font-size: 14px; margin-right: 2px; }
.fx-sep { font-size: 9px; color: var(--fx-faint); margin: 0 1px; }
.fx-crumb { border: 0; background: transparent; padding: 3px 7px; border-radius: 5px; font-size: 13px; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.fx-crumb:hover { background: var(--fx-hover); }
.fx-crumb:last-child { font-weight: 600; }
.fx-search {
    flex: 0 0 auto; width: 250px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
    background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); color: var(--fx-faint);
}
.fx-search:focus-within { border-color: var(--fx-accent); box-shadow: 0 0 0 2px var(--fx-accent-soft); }
.fx-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fx-text); font: inherit; }
.fx-search input::placeholder { color: var(--fx-faint); }

/* ───────────── the command bar ───────────── */
/* The bar must never clip: the menus of New, Upload, Sort and View open below their buttons, and a bar that scrolls (overflow) cuts them off. A bar that is too wide for the window wraps instead. */
.fx-cmd { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 4px 10px 6px; border-bottom: 1px solid var(--fx-line); flex-wrap: wrap; }
.fx-rel { position: relative; flex: 0 0 auto; }
.fx-tb {
    height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.fx-tb i { font-size: 15px; }
.fx-tb:hover:not(:disabled) { background: var(--fx-hover); }
.fx-tb:active:not(:disabled), .fx-tb.on { background: var(--fx-sel); }
.fx-tb.accent i:first-child { color: var(--fx-accent); }
.fx-tb.danger:hover:not(:disabled) { background: var(--fx-bad-soft); color: var(--fx-bad); }
.fx-caret { font-size: 9px !important; opacity: .65; margin-left: -2px; }
.fx-tb-sep { flex: 0 0 auto; width: 1px; height: 20px; margin: 0 5px; background: var(--fx-line); }
.fx-tb-fill { flex: 1 1 auto; }

/* menus under a toolbar button, and the context menu */
.fx-dd-back, .fx-ctx-back { position: fixed; inset: 0; z-index: 35; background: transparent; }
.fx-ctx-back { z-index: 65; }
.fx-dd, .fx-ctx {
    z-index: 40; min-width: 210px; padding: 5px; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 10px; box-shadow: var(--fx-shadow);
}
.fx-dd { position: absolute; left: 0; top: calc(100% + 4px); }
.fx-dd.right { left: auto; right: 0; }
.fx-ctx { position: fixed; z-index: 70; width: 232px; max-height: calc(100vh - 16px); overflow-y: auto; }
.fx-dd-i {
    width: 100%; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; text-align: left; cursor: pointer;
    color: inherit; text-decoration: none;
}
/* the embedded-window rule that colours every link beats a single class: a menu row that is a link looks like the buttons around it */
.fx-dd a.fx-dd-i, .fx-ctx a.fx-dd-i { color: inherit !important; text-decoration: none; }
.fx-dd-i i { width: 16px; text-align: center; font-size: 14px; color: var(--fx-muted); flex: 0 0 auto; }
.fx-dd-i:hover { background: var(--fx-hover); color: inherit; text-decoration: none; }
.fx-dd-i.danger:hover { background: var(--fx-bad-soft); color: var(--fx-bad); }
.fx-dd-i.danger:hover i { color: var(--fx-bad); }
.fx-dd-i kbd { margin-left: auto; padding: 0; background: transparent; box-shadow: none; color: var(--fx-faint); font: inherit; font-size: 11.5px; }
.fx-dd-i .fx-end { margin-left: auto; width: 16px; color: var(--fx-accent); }
.fx-dd hr, .fx-ctx hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--fx-line); opacity: 1; }
.fx-dd-h { padding: 6px 10px 3px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--fx-faint); }
.fx-dd-note { padding: 6px 10px 4px; font-size: 11.5px; color: var(--fx-faint); max-width: 220px; }
.fx-narrow-only { display: none; }

/* ───────────── messages ───────────── */
.fx-bar {
    flex: 0 0 auto; display: flex; align-items: center; gap: 9px; margin: 8px 10px 0; padding: 8px 10px 8px 12px; border-radius: var(--fx-r); font-size: 12.5px;
    background: var(--fx-info-soft); color: var(--fx-text); border: 1px solid var(--fx-line);
}
.fx-bar > i:first-child { font-size: 15px; flex: 0 0 auto; }
.fx-bar > span { flex: 1 1 auto; min-width: 0; }
.fx-bar.ok { background: var(--fx-good-soft); }
.fx-bar.ok > i:first-child { color: var(--fx-good); }
.fx-bar.bad { background: var(--fx-bad-soft); }
.fx-bar.bad > i:first-child { color: var(--fx-bad); }
.fx-bar.info > i:first-child { color: var(--fx-info); }
.fx-bar-act { border: 0; background: transparent; color: var(--fx-accent); font-weight: 700; padding: 3px 8px; border-radius: 5px; cursor: pointer; }
.fx-bar-act:hover { background: var(--fx-hover); }
.fx-bar-x { flex: 0 0 auto; width: 24px; height: 24px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 5px; font-size: 11px; cursor: pointer; opacity: .7; }
.fx-bar-x:hover { background: var(--fx-hover); opacity: 1; }

/* ───────────── the body: folders | list | details ───────────── */
.fx-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.fx-root.has-details .fx-body { grid-template-columns: 214px minmax(0, 1fr) 270px; }

.fx-tree { overflow: auto; padding: 8px 6px; border-right: 1px solid var(--fx-line); scrollbar-width: thin; }
.fx-tr { display: flex; align-items: center; gap: 4px; height: 30px; padding-right: 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; position: relative; user-select: none; }
.fx-tr:hover { background: var(--fx-hover); }
.fx-tr.on { background: var(--fx-sel); }
.fx-tr.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--fx-accent); }
.fx-tr-chev { flex: 0 0 18px; width: 18px; height: 18px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 4px; font-size: 9px; color: var(--fx-faint); padding: 0; cursor: pointer; }
.fx-tr-chev:hover { background: var(--fx-sel); }
.fx-tr-ic { flex: 0 0 auto; width: 20px; text-align: center; font-size: 15px; color: var(--fx-accent); }
.fx-tr-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.fx-tr.fx-droptarget { background: var(--fx-accent-soft); box-shadow: inset 0 0 0 1.5px var(--fx-accent); }

.fx-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.fx-details { overflow: auto; padding: 18px 16px; border-left: 1px solid var(--fx-line); scrollbar-width: thin; }

/* ───────────── the list ───────────── */
.fx-list { flex: 1 1 auto; min-height: 0; overflow: auto; outline: none; scrollbar-width: thin; padding: 4px 8px 12px; }
.fx-v-details .fx-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(180px, 1fr) 150px 140px 90px; background: var(--fx-bg); border-bottom: 1px solid var(--fx-line); }
.fx-hc { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--fx-muted); font-size: 12px; cursor: pointer; user-select: none; border-radius: 4px; }
.fx-hc:hover { background: var(--fx-hover); }
.fx-hc i { font-size: 9px; }
.fx-hc.c-size { justify-content: flex-end; }
.fx-row { display: grid; grid-template-columns: minmax(180px, 1fr) 150px 140px 90px; align-items: center; height: 36px; border-radius: 6px; border: 1px solid transparent; cursor: default; user-select: none; position: relative; }
.fx-row:hover { background: var(--fx-hover); }
.fx-row.fx-sel { background: var(--fx-sel); border-color: var(--fx-selline); }
.fx-row.fx-focus:not(.fx-sel) { border-color: var(--fx-selline); }
.fx-cell { min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fx-muted); font-size: 12.5px; }
.fx-cell.c-name { display: flex; align-items: center; gap: 9px; color: var(--fx-text); font-size: 13px; }
.fx-cell.c-size { text-align: right; }
.fx-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pill { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; background: var(--fx-soft); color: var(--fx-muted); border: 1px solid var(--fx-line); }
.fx-row.fx-droptarget, .fx-card.fx-droptarget { background: var(--fx-accent-soft); border-color: var(--fx-accent); box-shadow: inset 0 0 0 1px var(--fx-accent); }
.fx-crumb.fx-droptarget { background: var(--fx-accent-soft); box-shadow: inset 0 0 0 1.5px var(--fx-accent); }

.fx-rename {
    flex: 1 1 auto; min-width: 80px; height: 26px; padding: 0 7px; border: 1.5px solid var(--fx-accent); border-radius: 5px; outline: 0; font: inherit; color: var(--fx-text); background: var(--fx-card); user-select: text;
}

/* list view: one name per line; tiles and large icons: a grid of cards */
.fx-v-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 36px; gap: 2px 8px; align-content: start; }
.fx-v-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; align-content: start; }
.fx-v-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; align-content: start; padding-top: 10px; }
.fx-card { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; cursor: default; user-select: none; min-width: 0; }
.fx-card:hover { background: var(--fx-hover); }
.fx-card.fx-sel { background: var(--fx-sel); border-color: var(--fx-selline); }
.fx-card.fx-focus:not(.fx-sel) { border-color: var(--fx-selline); }
.fx-card-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.fx-card-s { font-size: 11.5px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-v-tiles .fx-card { padding: 10px 12px; }
.fx-v-icons .fx-card { flex-direction: column; text-align: center; padding: 12px 6px 8px; gap: 8px; }
.fx-v-icons .fx-card-t { align-items: center; width: 100%; }
.fx-v-icons .fx-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; font-size: 12.5px; max-width: 100%; }
.fx-v-icons .fx-rename { width: 100%; min-width: 0; text-align: center; }

/* ───────────── file and folder icons ───────────── */
.fx-ic {
    --soft: rgba(47, 179, 46, .18); --line: rgba(47, 179, 46, .35); --tink: #136019;
    position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 15px;
    background: var(--soft); color: var(--tink); box-shadow: inset 0 0 0 1px var(--line);
}
.fx-ic.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.fx-ic.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.fx-ic.xl { width: 62px; height: 62px; border-radius: 18px; font-size: 30px; }
.fx-ic.xxl { width: 84px; height: 84px; border-radius: 24px; font-size: 40px; }
.fx-ic.t-folder { --soft: rgba(250, 190, 40, .30); --line: rgba(217, 150, 6, .42); --tink: #8A5A00; }
.fx-ic.t-red { --soft: rgba(220, 38, 38, .14); --line: rgba(220, 38, 38, .30); --tink: #981F19; }
.fx-ic.t-blue { --soft: rgba(37, 99, 235, .14); --line: rgba(37, 99, 235, .30); --tink: #1742C4; }
.fx-ic.t-green { --soft: rgba(47, 179, 46, .18); --line: rgba(47, 179, 46, .35); --tink: #136019; }
.fx-ic.t-amber { --soft: rgba(217, 119, 6, .16); --line: rgba(217, 119, 6, .35); --tink: #724A05; }
.fx-ic.t-teal { --soft: rgba(45, 212, 191, .16); --line: rgba(45, 212, 191, .35); --tink: #0C625B; }
.fx-ic.t-violet { --soft: rgba(124, 58, 237, .14); --line: rgba(124, 58, 237, .30); --tink: #5B2BB8; }
.fx-ic.t-slate { --soft: rgba(18, 48, 26, .07); --line: rgba(18, 48, 26, .18); --tink: #45614C; }
html[data-theme=dark] .fx-ic.t-folder { --soft: rgba(250, 190, 40, .24); --line: rgba(250, 190, 40, .40); --tink: #F7CF6A; }
html[data-theme=dark] .fx-ic.t-red { --soft: rgba(248, 113, 113, .22); --line: rgba(248, 113, 113, .40); --tink: #FF9C94; }
html[data-theme=dark] .fx-ic.t-blue { --soft: rgba(59, 130, 246, .24); --line: rgba(59, 130, 246, .42); --tink: #8DB4FF; }
html[data-theme=dark] .fx-ic.t-green { --soft: rgba(76, 187, 75, .24); --line: rgba(76, 187, 75, .42); --tink: #7FE07D; }
html[data-theme=dark] .fx-ic.t-amber { --soft: rgba(245, 158, 11, .22); --line: rgba(245, 158, 11, .40); --tink: #F5C04E; }
html[data-theme=dark] .fx-ic.t-teal { --soft: rgba(45, 212, 191, .20); --line: rgba(45, 212, 191, .40); --tink: #6FE8D6; }
html[data-theme=dark] .fx-ic.t-violet { --soft: rgba(167, 139, 250, .22); --line: rgba(167, 139, 250, .42); --tink: #C4B0FF; }
html[data-theme=dark] .fx-ic.t-slate { --soft: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .18); --tink: #A9C4AF; }
/* the bundled icon font colours every i[class]: keep the tile's own ink */
.fx-ic i.bi { color: inherit; }
.fx-badge {
    position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 8px;
    background: var(--fx-accent); color: #fff !important; box-shadow: 0 0 0 2px var(--fx-bg);
}
.fx-ic.sm .fx-badge { width: 12px; height: 12px; font-size: 6.5px; right: -3px; bottom: -3px; }
.fx-ic.xl .fx-badge, .fx-ic.xxl .fx-badge { width: 20px; height: 20px; font-size: 10px; }
.fx-ic.lg .fx-badge { width: 17px; height: 17px; font-size: 9px; }

/* ───────────── empty states ───────────── */
.fx-empty { margin: auto; max-width: 420px; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fx-muted); }
.fx-empty > i { font-size: 46px; color: var(--fx-faint); margin-bottom: 4px; }
.fx-empty b { color: var(--fx-text); font-size: 15px; font-weight: 600; }
.fx-empty-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.fx-empty-small { padding: 14px 10px; text-align: center; color: var(--fx-faint); font-size: 12.5px; }

/* ───────────── the details pane ───────────── */
.fx-dp-hero { display: flex; justify-content: center; padding: 6px 0 14px; }
.fx-dp-name { text-align: center; font-weight: 700; font-size: 14.5px; word-break: break-word; }
.fx-dp-type { text-align: center; color: var(--fx-muted); font-size: 12px; margin-top: 2px; }
.fx-dp-hint { text-align: center; color: var(--fx-faint); font-size: 12px; margin-top: 18px; }
.fx-dp-dl { margin: 18px 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 12.5px; }
.fx-dp-dl dt { color: var(--fx-faint); font-weight: 400; }
.fx-dp-dl dd { margin: 0; min-width: 0; word-break: break-word; }
.fx-role { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--fx-soft); color: var(--fx-muted); border: 1px solid var(--fx-line); }
.fx-role.r2 { background: var(--fx-info-soft); color: var(--fx-info); border-color: transparent; }
.fx-role.r3 { background: var(--fx-good-soft); color: var(--fx-good); border-color: transparent; }

/* ───────────── the status bar ───────────── */
.fx-status { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-top: 1px solid var(--fx-line); color: var(--fx-muted); font-size: 12px; background: var(--fx-bg); }
.fx-dot { opacity: .5; }
.fx-quota { display: inline-flex; align-items: center; gap: 8px; }
.fx-quota-bar { width: 90px; height: 5px; border-radius: 3px; background: var(--fx-soft); border: 1px solid var(--fx-line); overflow: hidden; display: inline-block; }
.fx-quota-bar i { display: block; height: 100%; background: var(--fx-accent); border-radius: 3px; }
.fx-quota-bar.high i { background: var(--fx-bad); }

/* ───────────── buttons and fields (the share window, the dialogs, the notepad) ───────────── */
.fx-btn {
    height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid var(--fx-line); background: var(--fx-card); border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--fx-text);
}
.fx-btn:hover:not(:disabled) { background: var(--fx-hover); }
.fx-btn:disabled { opacity: .5; cursor: default; }
.fx-btn.primary { background: var(--fx-btn); color: #fff; border-color: transparent; font-weight: 600; }
.fx-btn.primary:hover:not(:disabled) { background: var(--fx-btn); filter: brightness(1.12); }
.fx-btn.danger { background: #C42B1C; border-color: transparent; color: #fff; font-weight: 600; }
.fx-btn.danger:hover:not(:disabled) { background: #C42B1C; filter: brightness(1.12); }
.fx-btn-row { display: inline-flex; gap: 8px; }
.fx-input, .fx-select {
    height: 34px; padding: 0 10px; border: 1px solid var(--fx-line); border-radius: 6px; background: var(--fx-card); color: var(--fx-text); font: inherit; outline: 0;
}
.fx-input:focus, .fx-select:focus { border-color: var(--fx-accent); box-shadow: 0 0 0 2px var(--fx-accent-soft); }
.fx-select { padding: 0 6px; cursor: pointer; }

/* ───────────── dialogs (Share, Move to, questions) ───────────── */
.fx-modal-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 16, 11, .40); }
html[data-theme=dark] .fx-modal-back { background: rgba(0, 0, 0, .55); }
.fx-modal {
    width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--fx-bg); color: var(--fx-text); border: 1px solid var(--fx-line); border-radius: 14px;
    box-shadow: var(--fx-shadow); font-family: var(--fx-font); font-size: 13px; outline: none; overflow: hidden;
}
.fx-modal.fx-ask { width: min(420px, 100%); }
.fx-modal-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--fx-line); }
.fx-modal-head > i { font-size: 20px; color: var(--fx-accent); }
.fx-modal.fx-ask .fx-modal-head > i { color: var(--fx-bad); }
.fx-modal-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fx-modal-title b { font-size: 15px; font-weight: 700; }
.fx-modal-title span { color: var(--fx-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px 18px 16px; scrollbar-width: thin; }
.fx-modal-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--fx-line); background: var(--fx-soft); }
.fx-modal-foot .fx-help { margin: 0; max-width: 340px; }
.fx-icon-btn { flex: 0 0 auto; width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--fx-muted); }
.fx-icon-btn:hover { background: var(--fx-hover); color: var(--fx-text); }
.fx-modal .fx-bar { margin: 10px 18px 0; }

.fx-sec { margin: 16px 0 8px; font-size: 12px; font-weight: 700; color: var(--fx-muted); display: flex; align-items: center; gap: 8px; }
.fx-sec:first-child { margin-top: 0; }
.fx-count { padding: 0 7px; border-radius: 999px; background: var(--fx-soft); border: 1px solid var(--fx-line); font-weight: 600; font-size: 11px; }
.fx-find { position: relative; display: flex; align-items: center; }
.fx-find > i { position: absolute; left: 11px; color: var(--fx-faint); font-size: 13px; }
.fx-find .fx-input { width: 100%; padding-left: 32px; }
.fx-cands { margin-top: 6px; max-height: 210px; overflow: auto; border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-card); scrollbar-width: thin; }
.fx-cands.tall { max-height: 320px; }
.fx-person { width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 0; }
button.fx-person:hover { background: var(--fx-hover); }
.fx-person + .fx-person { border-top: 1px solid var(--fx-line); }
.fx-person.on { background: var(--fx-sel); }
.fx-tick { margin-left: auto; color: var(--fx-accent); }
.fx-person.static { cursor: default; }
.fx-person.gone { opacity: .6; }
.fx-person > i.bi-plus-lg { color: var(--fx-accent); margin-left: auto; }
.fx-person-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fx-person-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-person-t span { color: var(--fx-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--fx-accent-soft); color: var(--fx-accent); font-weight: 700; font-size: 12px; }
.fx-add { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--fx-selline); border-radius: 8px; background: var(--fx-card); flex-wrap: wrap; }
.fx-add .fx-person-t { min-width: 120px; }
.fx-help { margin: 8px 2px 0; color: var(--fx-muted); font-size: 12px; }
.fx-warn { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: var(--fx-bad-soft); color: var(--fx-text); font-size: 12.5px; }
.fx-warn i { color: var(--fx-bad); margin-top: 2px; }
.fx-people { border: 1px solid var(--fx-line); border-radius: 8px; background: var(--fx-card); overflow: hidden; }
.fx-people .fx-person { cursor: default; }
.fx-confirm { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--fx-bad-soft); border: 1px solid var(--fx-line); }
.fx-confirm-row { display: flex; gap: 8px; margin-top: 10px; }

/* ───────────── drag and drop ───────────── */
.fx-root.fx-dropping::after {
    content: "Drop files or folders here to upload them"; position: absolute; inset: 8px; z-index: 30; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 20px;
    border: 2px dashed var(--fx-accent); border-radius: 12px; background: var(--fx-accent-soft); color: var(--fx-accent); font-size: 15px; font-weight: 700; backdrop-filter: blur(2px);
}

/* ───────────── the upload panel ───────────── */
.fx-upl {
    position: absolute; right: 14px; bottom: 40px; z-index: 50; width: min(360px, calc(100% - 28px)); padding: 12px 14px 12px; border-radius: 12px;
    background: var(--fx-card); border: 1px solid var(--fx-line); box-shadow: var(--fx-shadow); color: var(--fx-text); font-family: var(--fx-font); font-size: 12.5px;
}
.fx-upl-float { position: fixed; right: 16px; bottom: 64px; z-index: 8500; }
.fx-upl-head { display: flex; align-items: center; gap: 10px; }
.fx-upl-head > i { font-size: 20px; color: var(--fx-accent); }
.fx-upl.done > .fx-upl-head > i { color: var(--fx-good); }
.fx-upl.bad > .fx-upl-head > i { color: var(--fx-bad); }
.fx-upl-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fx-upl-title b { font-size: 13px; }
.fx-upl-title span { color: var(--fx-muted); font-size: 11.5px; }
.fx-upl-x, .fx-upl-cancel { flex: 0 0 auto; border: 0; background: transparent; border-radius: 5px; cursor: pointer; color: var(--fx-muted); }
.fx-upl-x { width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 12px; }
.fx-upl-cancel { padding: 4px 9px; font-weight: 700; color: var(--fx-accent); }
.fx-upl-x:hover, .fx-upl-cancel:hover { background: var(--fx-hover); }
.fx-upl-bar { height: 5px; margin: 10px 0 2px; border-radius: 3px; background: var(--fx-soft); border: 1px solid var(--fx-line); overflow: hidden; }
.fx-upl-bar i { display: block; height: 100%; border-radius: 3px; background: var(--fx-accent); transition: width .2s; }
.fx-upl.bad .fx-upl-bar i { background: var(--fx-bad); }
.fx-upl-now { margin-top: 6px; color: var(--fx-faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-upl-errs { list-style: none; margin: 8px 0 0; padding: 0; max-height: 120px; overflow: auto; }
.fx-upl-errs li { display: flex; flex-direction: column; padding: 5px 0; border-top: 1px solid var(--fx-line); }
.fx-upl-errs li b { font-weight: 600; word-break: break-all; }
.fx-upl-errs li span { color: var(--fx-bad); font-size: 11.5px; }

/* ───────────── the Notepad ───────────── */
.fx-np { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; height: 100%; margin: 0 -8px; background: var(--fx-bg); color: var(--fx-text); font-family: var(--fx-font); font-size: 13px; overflow: hidden; }
.fx-np-menu { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--fx-line); }
.fx-np-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-np-name i { color: var(--fx-accent); }
.fx-np-name .fx-dirty { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-accent); flex: 0 0 auto; }
.fx-np-name small { color: var(--fx-faint); font-weight: 400; }
.fx-np-text {
    flex: 1 1 auto; min-height: 0; width: 100%; resize: none; border: 0; outline: 0; padding: 14px 18px; background: var(--fx-card); color: var(--fx-text);
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: 14px; line-height: 1.5; tab-size: 4; scrollbar-width: thin;
}
.fx-np-text:read-only { background: var(--fx-soft); }
.fx-np-text.wrap-off { white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.fx-np-stat { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-top: 1px solid var(--fx-line); color: var(--fx-muted); font-size: 12px; }
.fx-np-pick { max-height: 300px; }

/* ───────────── the desktop wall: folder and file icons ───────────── */
.exa-desktop .dicon .tile { position: relative; }
.exa-desktop .dnode-badge {
    position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; display: grid; place-items: center; font-size: 10px; border-radius: 50%;
    background: var(--accent, #176916); color: #fff !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 6px rgba(20, 70, 30, .35);
}
[data-theme=dark] .exa-desktop .dnode-badge { box-shadow: 0 0 0 2px rgba(20, 38, 28, .95), 0 2px 6px rgba(0, 0, 0, .5); }
.exa-desktop .dicon.fx-droptarget { background: rgba(47, 179, 46, .26); border-color: var(--accent, #176916); box-shadow: 0 0 0 2px rgba(47, 179, 46, .55); }
.exa-desktop.fx-dropping::after {
    content: "Drop files or folders here to put them on your desktop"; position: fixed; inset: 10px 10px 58px; z-index: 8; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 20px;
    border: 2px dashed var(--accent, #176916); border-radius: 22px; background: rgba(47, 179, 46, .14); color: var(--accent, #176916); font-size: 18px; font-weight: 800; text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}
.exa-desktop .pinmenu.fx-menu .fx-menu-note { padding: 6px 11px 8px; font-size: 12px; color: var(--text2); white-space: normal; }
.exa-desktop .pinmenu.fx-menu.fx-ask { width: 268px; padding-bottom: 10px; }
.exa-desktop .fx-ask-input {
    display: block; width: calc(100% - 12px); height: 34px; margin: 4px 6px 8px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--accent, #176916); outline: 0;
    background: var(--hole, rgba(255, 255, 255, .88)); color: var(--text); font: inherit; font-size: 13px;
}
.exa-desktop .fx-ask-row { display: flex; gap: 8px; padding: 0 6px; }
.exa-desktop .pinmenu button.fx-ask-btn { width: auto; flex: 1 1 0; justify-content: center; height: 34px; border-radius: 10px; font-weight: 600; border: 1px solid var(--stroke); }
.exa-desktop .pinmenu button.fx-ask-btn.primary { background: var(--btn); color: #fff; border-color: transparent; }
.exa-desktop .pinmenu button.fx-ask-btn.danger { background: #C42B1C; color: #fff; border-color: transparent; }
.exa-desktop .pinmenu button.fx-ask-btn:hover { filter: brightness(1.08); }
.exa-desktop .pinmenu .fx-faint { color: var(--text3); }

/* ───────────── smaller windows ───────────── */
@media (max-width: 1040px) {
    .fx-root.has-details .fx-body { grid-template-columns: 214px minmax(0, 1fr); }
    .fx-details { display: none; }
}
@media (max-width: 760px) {
    .fx-body, .fx-root.has-details .fx-body { grid-template-columns: minmax(0, 1fr); }
    .fx-tree { display: none; }
    .fx-narrow-only { display: block; }
    .fx-search { width: 160px; }
    .fx-v-details .fx-head, .fx-row { grid-template-columns: minmax(150px, 1fr) 120px 80px; }
    .fx-hc.c-type, .fx-cell.c-type { display: none; }
}
@media (max-width: 560px) {
    .fx-top { flex-wrap: wrap; }
    .fx-address { order: 3; flex: 1 0 100%; }
    .fx-search { flex: 1 1 auto; width: auto; }
    .fx-tb span, .fx-hide-s { display: none; }
    .fx-tb { padding: 0 9px; }
    .fx-v-details .fx-head, .fx-row { grid-template-columns: minmax(120px, 1fr) 76px; }
    .fx-hc.c-date, .fx-cell.c-date { display: none; }
    .fx-modal-foot { flex-direction: column; align-items: stretch; }
    .fx-modal-foot .fx-help { max-width: none; }
}
@media (max-width: 420px) {
    .fx-cmd { padding: 4px 6px 6px; }
    .fx-tb { padding: 0 6px; gap: 4px; }
    .fx-tb-sep { margin: 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-upl-bar i { transition: none; }
}

/* ───────────── the PDF and picture viewer (a window of the desktop) ───────────── */
.fv-root {
    position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; height: 100%; margin: 0 -8px; background: var(--fx-bg); color: var(--fx-text);
    font-family: var(--fx-font); font-size: 13px; line-height: 1.35; outline: none; overflow: hidden;
}
.fv-root button { font-family: inherit; color: inherit; }
.fv-root button:disabled { opacity: .42; cursor: default; }
.fv-root :focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 1px; }
.fv-bar { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px 10px; border-bottom: 1px solid var(--fx-line); background: var(--fx-bg); }
.fv-btn {
    height: 34px; min-width: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 9px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.fv-btn i { font-size: 15px; }
.fv-btn:hover:not(:disabled) { background: var(--fx-hover); }
.fv-btn:active:not(:disabled) { background: var(--fx-sel); }
.fv-sep { flex: 0 0 auto; width: 1px; height: 20px; margin: 0 5px; background: var(--fx-line); }
.fv-fill { flex: 1 1 auto; }
.fv-title { flex: 1 1 140px; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 0 8px; overflow: hidden; }
.fv-title b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-title span { color: var(--fx-faint); font-size: 12px; white-space: nowrap; }
.fv-zoomtext { min-width: 62px; text-align: center; color: var(--fx-muted); font-size: 12.5px; }
.fv-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; overflow: auto; padding: 16px; background: var(--fx-soft); scrollbar-width: thin; cursor: default; touch-action: pan-x pan-y; }
.fv-stage.drag { cursor: grabbing; user-select: none; }
.fv-holder { position: relative; flex: 0 0 auto; margin: auto; }
.fv-img { position: absolute; max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; box-shadow: 0 2px 14px rgba(0, 0, 0, .22); background: #fff; }
.fv-pdf { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: var(--fx-soft); }
.fv-msg { margin: auto; max-width: 420px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--fx-muted); }
.fv-msg[hidden] { display: none; }
.fv-msg i { font-size: 38px; color: var(--fx-faint); }
.fv-msg b { color: var(--fx-text); font-size: 16px; }
.fv-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fx-faint); pointer-events: none; }
@media (max-width: 560px) {
    .fv-btn span { display: none; }
    .fv-btn { padding: 0 7px; }
}
