/* skillomat Zentrale 1.13.0 (1.15.0: Hervorhebung, Baum-Einrückung, kompakte Freigabe) · Verwaltung › Dateien (Datei-Explorer und Editor) – nur Tokens der Zentrale (app.css), hell und dunkel,
   390 px ohne seitliches Scrollen, Trefferflächen 44 px, feste Spaltenbreiten (lange Namen mit Auslassungszeichen, voller Name im Hinweis). */
.fx-warn { align-items: flex-start; }
.fx-warn b { flex: none; }
.fx-warn span { flex: 1 1 260px; min-width: 0; }
.fx-gate { max-width: 560px; }
/* 1.15.0: Freigabe kompakt – Schloss als kleines Abzeichen (statt Symbol in voller Breite), Passwort und Schaltfläche in einer Reihe */
.fx-gate .cardhead { margin-bottom: 8px; }
.fx-gate .cardhead h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.fx-gate .cardhead h2 > svg { flex: none; width: 18px; height: 18px; padding: 7px; box-sizing: content-box; border-radius: 10px; background: var(--chip); color: var(--ink); }
.fx-gate form > .muted { margin: 0 0 10px; }
.fx-gate-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.fx-gate-row .field { flex: 1 1 220px; min-width: 0; margin: 0; }
.fx-gate-row .btn { min-height: 44px; flex: none; }
.fx-bar { margin-bottom: 12px; }
.fx-wrap { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-wrap > .card + .card { margin-top: 0; }
.fx-tree { padding: 14px 10px; position: sticky; top: 12px; max-height: calc(100dvh - 140px); overflow: auto; overscroll-behavior: contain; }
.fx-tree > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); }
.fx-tree > summary::-webkit-details-marker { display: none; }
.fx-tree > summary h2 { font-size: 15px; margin: 0; }
.fx-tree > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.fx-tree[open] > summary::after { transform: rotate(-135deg); }
.fx-tul, .fx-tul ul { list-style: none; margin: 0; padding: 0; }
/* 1.15.0: Ebenen deutlich eingerückt (20 px je Ebene) mit Führungslinie unter dem Pfeil der Elternebene; der Pfad zum aktuellen
   Ordner ist hervorgehoben. Tiefe Pfade: der Baum wird breiter als die Spalte und scrollt waagerecht in sich (nicht die Seite). */
.fx-treeroot { position: relative; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 2px; }
.fx-tul { width: max-content; min-width: 100%; }
.fx-tul ul { margin-left: 15px; padding-left: 5px; border-left: 1px solid var(--line-strong); }
.fx-tul ul:has(.fx-tn.on) { border-left-color: var(--a11y-accent-text); }
.fx-tn { display: flex; align-items: center; gap: 2px; border-radius: var(--r-sm); }
.fx-tn.on { background: var(--selected); }
.fx-tog, .fx-tl { border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; min-height: 44px; border-radius: var(--r-sm); }
.fx-tog { width: 32px; flex: none; display: grid; place-items: center; color: var(--muted); }
.fx-tog svg { width: 14px; height: 14px; transition: transform 150ms ease; }
.fx-tog[aria-expanded="true"] svg { transform: rotate(90deg); }
.fx-tl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px; text-align: left; font-size: 13.5px; }
.fx-tl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30ch; }
.fx-tl svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.fx-tl[aria-current="true"] { font-weight: 600; }
.fx-tog:hover, .fx-tl:hover { background: var(--hover); }
.fx-main { min-width: 0; }
.fx-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fx-crumbs { min-width: 0; flex: 1 1 260px; }
.fx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 14px; }
.fx-crumbs li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.fx-crumbs li + li::before { content: "›"; color: var(--muted); margin: 0 6px 0 2px; }
.fx-crumbs .linkbtn, .fx-crumbs [aria-current] { min-height: 44px; display: inline-flex; align-items: center; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-crumbs [aria-current] { font-weight: 600; }
.fx-acts { flex-wrap: wrap; gap: 8px; }
.fx-acts svg, .fx-selbar svg, .fxed-acts svg { width: 16px; height: 16px; }
.fx-tools { margin-bottom: 10px; }
.fx-selbar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 10px; margin-bottom: 12px; border-radius: var(--r-sm); background: var(--surface2); border: 1px solid var(--line); }
.fx-selbar #fxSelN { min-width: 11ch; margin-right: 6px; font-variant-numeric: tabular-nums; }
.fx-selbar .btn.sm { min-height: 44px; height: auto; }
@media (pointer: fine) { .fx-selbar .btn.sm { min-height: 34px; } }
.fx-drop { position: relative; border-radius: var(--r-sm); outline: 2px dashed transparent; outline-offset: 4px; }
.fx-drop.over { outline-color: var(--ring); background: var(--selected); }
.fx-hint { margin: 14px 0 0; }
.fx-table { table-layout: fixed; }
.fx-table col.c-sel { width: 52px; } .fx-table col.c-size { width: 92px; } .fx-table col.c-time { width: 150px; } .fx-table col.c-mode { width: 108px; } .fx-table col.c-act { width: 64px; }
.fx-table td, .fx-table th { padding-top: 4px; padding-bottom: 4px; }
.fx-table th.c-sel, .fx-table td.c-sel { padding-right: 4px; }
.fx-table input[type="checkbox"] { width: 20px; height: 20px; margin: 12px 0; cursor: pointer; }
.fx-table tbody tr.on { background: var(--selected); }
.fx-table tbody tr:hover { background: var(--hover); }
.fx-sort { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; min-height: 36px; padding: 0; }
.fx-nc { min-width: 0; }
.fx-name { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; padding: 0; border-radius: 8px; }
.fx-name.static { cursor: default; }
.fx-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fx-ic { flex: none; width: 22px; height: 22px; color: var(--muted); display: grid; place-items: center; }
.fx-ic svg { width: 20px; height: 20px; }
.fx-sub { display: flex; gap: 6px; align-items: center; margin: -6px 0 6px 32px; min-width: 0; }
.fx-sub .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fx-empty { padding: 28px 22px; text-align: center; }
.fx-jobs { display: grid; gap: 6px; margin-top: 12px; }
.fx-job { display: grid; grid-template-columns: minmax(0, 1fr) 120px 15ch; gap: 10px; align-items: center; font-size: 13px; }
.fx-job .fx-jl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-jp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-meter { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--hover); overflow: hidden; }
.fx-meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad-primary, var(--primary)); border-radius: inherit; transition: width 200ms ease; }
.fx-sheet { display: grid; gap: 8px; margin: 12px 0 4px; }
.fx-sheet .btn { justify-content: flex-start; min-height: 44px; }
.fx-img { display: grid; place-items: center; max-height: 60dvh; overflow: auto; background: var(--surface2); border-radius: var(--r-sm); padding: 10px; margin-bottom: 10px; }
.fx-img img { max-width: 100%; max-height: 56dvh; height: auto; image-rendering: auto; }
.fx-pv { max-height: 200px; overflow: auto; margin: 6px 0 12px; padding-left: 18px; overflow-wrap: anywhere; }
.fx-pvd summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.fx-lint { white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--bad-bg); color: var(--ink); padding: 10px 12px; border-radius: var(--r-sm); max-height: 200px; overflow: auto; }

/* Editor: Dialog über die ganze Fläche, Zeilennummern links, Monospace, kein Umbruch */
dialog.zdlg.fxed { width: min(1280px, calc(100vw - 24px)); height: calc(100dvh - 24px); max-height: none; padding: 16px 18px 10px; display: none; overflow: hidden; }
dialog.zdlg.fxed[open] { display: flex; flex-direction: column; gap: 10px; }
.fxed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fxed-title { min-width: 0; flex: 1 1 220px; }
.fxed-title h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxed-title .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fxEdState { min-width: 12ch; justify-content: center; }
.fxed-acts { flex-wrap: wrap; gap: 6px; }
.fxed-acts .btn.sm { min-height: 44px; height: auto; }
@media (pointer: fine) { .fxed-acts .btn.sm { min-height: 34px; } }
.fxed .banner { margin: 0; }
.fxed-find { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2); }
.fxed-find[hidden] { display: none; }
.fxed-find .field { margin: 0; flex: 1 1 180px; min-width: 0; }
.fxed-find .check { min-height: 44px; }
.fxed-body { flex: 1; min-height: 0; display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.fxed-gut, .fxed-ta, .fxed-hl { font: 13.5px/20px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; tab-size: 4; padding: 10px 0; margin: 0; letter-spacing: 0; font-variant-ligatures: none; font-kerning: none; }
.fxed-gut { flex: none; min-width: 5ch; padding-left: 10px; padding-right: 10px; text-align: right; color: var(--muted); background: var(--surface2); border-right: 1px solid var(--line); overflow: hidden; user-select: none; -webkit-user-select: none; white-space: pre; }
.fxed-ta { flex: 1; min-width: 0; border: 0; border-radius: 0; resize: none; padding-left: 12px; padding-right: 12px; white-space: pre; overflow: auto; background: transparent; color: var(--ink); box-shadow: none; height: auto; }
.fxed-ta:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
/* 1.15.0: Hervorhebung – Textfeld (durchsichtige Schrift, sichtbare Einfügemarke und Auswahl) liegt über einem <pre> mit den Farben;
   gezeichnet wird nur der sichtbare Bereich, verschoben per transform. In „Erzwungenen Farben“ zeigt das Textfeld den Text selbst. */
.fxed-code { position: relative; flex: 1; min-width: 0; display: flex; overflow: hidden; }
.fxed-code .fxed-ta { position: relative; z-index: 1; width: 100%; height: 100%; }
.fxed-hl { position: absolute; top: 0; left: 0; min-width: 100%; padding-left: 12px; padding-right: 12px; white-space: pre; color: var(--ink); pointer-events: none; user-select: none; -webkit-user-select: none; will-change: transform; display: none; }
.fxed-code.hl-on .fxed-hl { display: block; }
.fxed-code.hl-on .fxed-ta { color: transparent; caret-color: var(--ink); -webkit-text-fill-color: transparent; }
.fxed-code.hl-on .fxed-ta::selection { background: var(--hl-sel); color: transparent; -webkit-text-fill-color: transparent; }
.hl-c { color: var(--hl-c); font-style: italic; } .hl-s { color: var(--hl-s); } .hl-k { color: var(--hl-k); } .hl-n, .hl-b { color: var(--hl-n); }
.hl-v { color: var(--hl-v); } .hl-t { color: var(--hl-t); } .hl-a { color: var(--hl-a); } .hl-p { color: var(--hl-p); }
.hl-h { color: var(--hl-k); font-weight: 700; } .hl-m { font-weight: 700; } .hl-e { font-style: italic; }
.fxed-esc:empty { display: none; }
@media (forced-colors: active) { .fxed-code.hl-on .fxed-hl { display: none; } .fxed-code.hl-on .fxed-ta { color: CanvasText; -webkit-text-fill-color: CanvasText; } }
@media (pointer: coarse) { .fxed-gut, .fxed-ta, .fxed-hl { font-size: 16px; line-height: 22px; } } /* 16 px: kein Zoom beim Tippen auf dem Telefon */
.fxed-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fxed-foot span:last-child { margin-left: auto; }

@media (max-width: 860px) {
  .fx-tools .btn.sm, .fx-selbar .btn.sm, .fxed-acts .btn.sm, .fx-trash .btn.sm, dialog .fx-sheet .btn, dialog [data-vdl], dialog [data-vres], dialog [data-fx-dl], dialog [data-fx-mine] { min-height: 44px; height: auto; }
  .fx-wrap { grid-template-columns: minmax(0, 1fr); }
  .fx-tree { position: static; max-height: 320px; }
  .fx-table col.c-time, .fx-table col.c-mode { width: 0; }
  .fx-table col.c-size { width: 76px; } .fx-table col.c-act { width: 52px; } .fx-table col.c-sel { width: 40px; }
  .fx-table th:first-child, .fx-table td:first-child { padding-left: 12px; } .fx-table th:last-child, .fx-table td:last-child { padding-right: 6px; }
  .fx-job { grid-template-columns: minmax(0, 1fr) 80px; } .fx-job .fx-jp { grid-column: 1 / -1; }
  dialog.zdlg.fxed { width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; border-radius: 0; border: 0; padding: calc(10px + var(--safe-t, 0px)) calc(10px + var(--safe-r, 0px)) calc(6px + var(--safe-b, 0px)) calc(10px + var(--safe-l, 0px)); }
  .fxed-foot span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fx-tog svg, .fx-meter i { transition: none; } }
