/* Homeco NAS – Oberfläche im Stil eines NAS-Desktops
   Layout: transparente Leiste oben, Hintergrundbild, große App-Symbole links, Widget „Systemzustand“ rechts,
   Fenster mit hellem Rahmen und Navigation links. Hintergründe sind reine CSS-Verläufe (läuft offline). */
:root {
  --bar-bg: rgba(18, 30, 46, .42);
  --bar-fg: #ffffff;
  --bar-hover: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .86);
  --glass-line: rgba(255, 255, 255, .6);
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e8ecf1;
  --chrome: #f7f8fa;
  --side: #f1f4f8;
  --page-bg: #f3f5f8;
  --line: #dde2e8;
  --fg: #1d2733;
  --muted: #5c6875;
  --accent: #1a7fd6;
  --accent-soft: #e2effb;
  --accent-fg: #ffffff;
  --amber: #c27400;
  --ok: #19914f;
  --ok-soft: #e0f4e8;
  --warn: #ad6a00;
  --warn-soft: #fcf1dc;
  --crit: #cc3537;
  --crit-soft: #fce4e4;
  --shadow: 0 2px 6px rgba(10, 25, 45, .10), 0 18px 48px rgba(10, 25, 45, .28);
  --scrim: rgba(15, 25, 38, .36);
  --label: #ffffff;
  --label-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 10px rgba(0, 0, 0, .4);
  --wall-dim: rgba(0, 0, 0, 0);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r: 8px;
  --bar-h: 40px;
  --t-fast: 120ms;
  --t-mid: 180ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Schriftarten (lokal mitgeliefert, SIL Open Font License) ---------- */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Variable"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/roboto-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/open-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/nunito-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3 Variable"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); }
:root[data-font="inter"] { --font: "Inter Variable", system-ui, sans-serif; --font-display: "Inter Variable", system-ui, sans-serif; }
:root[data-font="roboto"] { --font: "Roboto Variable", system-ui, sans-serif; --font-display: "Roboto Variable", system-ui, sans-serif; }
:root[data-font="open-sans"] { --font: "Open Sans Variable", system-ui, sans-serif; --font-display: "Open Sans Variable", system-ui, sans-serif; }
:root[data-font="nunito"] { --font: "Nunito Variable", system-ui, sans-serif; --font-display: "Nunito Variable", system-ui, sans-serif; }
:root[data-font="ibm-plex"] { --font: "IBM Plex Sans Variable", system-ui, sans-serif; --font-display: "IBM Plex Sans Variable", system-ui, sans-serif; }
:root[data-font="source-sans"] { --font: "Source Sans 3 Variable", system-ui, sans-serif; --font-display: "Source Sans 3 Variable", system-ui, sans-serif; }

.font-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.font-opt { position: relative; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.font-opt:hover { border-color: var(--accent); }
.font-opt .font-sample { font-size: 30px; line-height: 1.05; font-weight: 600; }
.font-opt .font-title { font-size: 15px; font-weight: 600; margin-top: 4px; }
.font-opt .font-name { font-size: 12.5px; color: var(--muted); font-family: var(--font); }
.font-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.font-opt[aria-checked="true"]::after { content: "✓"; position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; }
.font-preview { margin-top: 2px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.font-preview strong { display: block; color: var(--fg); font: 600 16px var(--font-display); margin-bottom: 2px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bar-bg: rgba(8, 12, 18, .6); --bar-hover: rgba(255, 255, 255, .12);
    --glass: rgba(28, 34, 42, .86); --glass-line: rgba(255, 255, 255, .08);
    --surface: #1d232a; --surface-2: #232a32; --surface-3: #2c343d; --chrome: #20262d; --side: #192026; --page-bg: #161b21; --line: #343d47;
    --fg: #e5e9ee; --muted: #9ba6b2;
    --accent: #4da3f5; --accent-soft: #1b2e44; --accent-fg: #071422;
    --amber: #f0a84a; --ok: #46c07f; --ok-soft: #163526; --warn: #e6aa48; --warn-soft: #3a2c14;
    --crit: #f27474; --crit-soft: #3e1f21;
    --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .55);
    --scrim: rgba(0, 0, 0, .5);
    --wall-dim: rgba(0, 0, 0, .38);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bar-bg: rgba(8, 12, 18, .6); --bar-hover: rgba(255, 255, 255, .12);
  --glass: rgba(28, 34, 42, .86); --glass-line: rgba(255, 255, 255, .08);
  --surface: #1d232a; --surface-2: #232a32; --surface-3: #2c343d; --chrome: #20262d; --side: #192026; --page-bg: #161b21; --line: #343d47;
  --fg: #e5e9ee; --muted: #9ba6b2;
  --accent: #4da3f5; --accent-soft: #1b2e44; --accent-fg: #071422;
  --amber: #f0a84a; --ok: #46c07f; --ok-soft: #163526; --warn: #e6aa48; --warn-soft: #3a2c14;
  --crit: #f27474; --crit-soft: #3e1f21;
  --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .55);
  --scrim: rgba(0, 0, 0, .5);
  --wall-dim: rgba(0, 0, 0, .38);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; font: 14px/1.45 var(--font); color: var(--fg); background: #3d7fc4;
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hintergrundbilder (Verläufe) ---------- */
.desk { position: fixed; inset: 0; background: #3d7fc4; }
.desk::after { content: ""; position: absolute; inset: 0; background: var(--wall-dim); pointer-events: none; }
/* Scharfe Vektorbilder (SVG, gestochen scharf in jeder Auflösung) */
.desk[data-wall="himmel"], .desk:not([data-wall]), .wall-thumb[data-wall="himmel"] { background: #3d4479 url("wall-bergsee.svg") center / cover no-repeat; }
.desk[data-wall="abend"], .wall-thumb[data-wall="abend"] { background: #5f2b52 url("wall-duenen.svg") center / cover no-repeat; }
.desk[data-wall="wellen"], .wall-thumb[data-wall="wellen"] { background: #0b2a5a url("wall-wellen.svg") center / cover no-repeat; }
.desk[data-wall="polarlicht"], .wall-thumb[data-wall="polarlicht"] { background: #0b2340 url("wall-polarlicht.svg") center / cover no-repeat; }
.desk[data-wall="wald"], .wall-thumb[data-wall="wald"] { background: #2f6a5d url("wall-wald.svg") center / cover no-repeat; }
.desk[data-wall="prisma"], .wall-thumb[data-wall="prisma"] { background: #5a3f9a url("wall-prisma.svg") center / cover no-repeat; }
/* Schlicht */
.desk[data-wall="meer"] { background: #2f5566 url("wall-meer.webp") center / cover no-repeat; }
.wall-thumb[data-wall="meer"] { background: #2f5566 url("wall-meer-klein.webp") center / cover no-repeat; }
.desk[data-wall="schlicht"], .wall-thumb[data-wall="schlicht"] {
  background: radial-gradient(120% 90% at 50% 0%, #4f8fcf 0%, #2d5f98 55%, #1f416d 100%);
}
/* Lochblech wie die Frontklappe des MicroServers */
.desk[data-wall="lochblech"], .wall-thumb[data-wall="lochblech"] {
  background-color: #b9c0c7;
  background-image:
    radial-gradient(ellipse at 50% 40%, transparent 30%, #9aa3ac 100%),
    radial-gradient(circle, rgba(28, 36, 46, .24) 0 2.1px, transparent 2.6px),
    radial-gradient(circle, rgba(28, 36, 46, .24) 0 2.1px, transparent 2.6px);
  background-size: 100% 100%, 14px 12px, 14px 12px;
  background-position: 0 0, 0 0, 7px 6px;
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.led.amber { background: var(--amber); box-shadow: 0 0 0 3px var(--warn-soft); }

/* ---------- Leiste oben ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 9000; height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(6px, env(safe-area-inset-right, 0px)) 0 max(6px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 4px; color: var(--bar-fg);
  background: var(--bar-bg); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.bar-btn {
  height: 32px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer;
  transition: background var(--t-fast);
}
.bar-btn:hover { background: var(--bar-hover); }
.bar-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .24); }
.bar-btn svg.i { width: 19px; height: 19px; }
.bar .label { display: none; }
.tasks { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-left: 4px; }
.tasks::-webkit-scrollbar { display: none; }
.task { position: relative; flex: none; padding: 0 6px; min-width: 40px; }
.task > span:last-child { display: none; }
.task .appicon.sm { width: 26px; height: 26px; border-radius: 7px; }
.task .appicon.sm svg.i { width: 16px; height: 16px; }
.task.min { opacity: .65; }
.task.on { background: rgba(255, 255, 255, .2); }
.task::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.task.on::after { width: 14px; margin-left: -7px; border-radius: 2px; background: #fff; }
.bar-right { display: flex; align-items: center; gap: 2px; flex: none; }
.clock { font-variant-numeric: tabular-nums; font-size: 13px; padding: 0 8px; white-space: nowrap; opacity: .95; }
.bar .host { color: rgba(255, 255, 255, .8) !important; }
.demo-chip { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: #ffd58a; color: #4a3200; white-space: nowrap; }
.bar-status { position: relative; }
.bar-status .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px rgba(18, 30, 46, .6); }

/* Menüs */
.pop {
  position: fixed; z-index: 9500; background: var(--surface); color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 8px;
  animation: pop-in var(--t-mid) var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
/* Hauptmenü: Übersicht über den ganzen Bildschirm */
.pop.launcher {
  inset: calc(var(--bar-h) + env(safe-area-inset-top, 0px)) 0 0 0; border: 0; border-radius: 0; box-shadow: none; color: #fff;
  padding: 36px max(24px, env(safe-area-inset-right, 0px)) 36px max(24px, env(safe-area-inset-left, 0px));
  background: rgba(14, 24, 38, .5); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  display: flex; flex-direction: column; align-items: center; gap: 30px; overflow: auto;
  animation: fade var(--t-mid) var(--ease);
}
.launcher-search { width: min(420px, 100%); height: 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .16); color: #fff; padding: 0 18px; font-size: 14.5px; }
.launcher-search::placeholder { color: rgba(255, 255, 255, .75); }
.launcher-search:focus { outline: none; background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .6); }
.launcher-grid { display: grid; grid-template-columns: repeat(auto-fill, 120px); gap: 18px 20px; justify-content: center; width: min(760px, 100%); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 10px; border: 0; border-radius: 12px;
  background: transparent; color: #fff; cursor: pointer; text-align: center; font-size: 13.5px; text-shadow: var(--label-shadow); }
.tile:hover, .tile:focus-visible { background: rgba(255, 255, 255, .14); }
.tile .appicon { width: 64px; height: 64px; border-radius: 16px; }
.tile .appicon svg.i { width: 34px; height: 34px; }
.usermenu { top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 6px); right: max(8px, env(safe-area-inset-right, 0px)); min-width: 240px; }
.usermenu .who { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #5aa7f0, #2a6fc0); color: #fff; font-weight: 700; flex: none; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger { color: var(--crit); }

/* App-Symbole: abgerundete Kacheln mit Verlauf und Lichtkante */
.appicon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .18); }
.appicon svg.i { width: 24px; height: 24px; stroke-width: 1.8; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.appicon.sm { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.appicon.sm svg.i { width: 14px; height: 14px; stroke-width: 2; filter: none; }
.c-monitor  { background: linear-gradient(160deg, #3ec79a 0%, #12896a 100%); }
.c-files    { background: linear-gradient(160deg, #ffc44d 0%, #e88a0c 100%); }
.c-shares   { background: linear-gradient(160deg, #4fa8ff 0%, #1d63d6 100%); }
.c-docker   { background: linear-gradient(160deg, #8b7bf2 0%, #5140c4 100%); }
.c-backup  { background: linear-gradient(160deg, #46c3d8 0%, #127a95 100%); }
.c-storage { background: linear-gradient(160deg, #6f8fb3 0%, #36506f 100%); }
.c-logs    { background: linear-gradient(160deg, #f2a65a 0%, #c0601f 100%); }
.c-settings { background: linear-gradient(160deg, #8996a6 0%, #4f5c6c 100%); }

/* Abgemeldet: nur Hintergrund und Anmeldung zeigen */
body.locked .desktop, body.locked .tasks, body.locked .bar-right, body.locked .bar > .bar-btn, body.locked .dock { visibility: hidden; }
.widget:empty { display: none; }

/* ---------- Desktop ---------- */
.desktop {
  position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  padding: 22px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
  display: flex; justify-content: space-between; gap: 16px; pointer-events: none;
}
.icons { display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 112px); gap: 6px 10px; align-content: start; pointer-events: auto; }
/* Freie Anordnung: Symbole liegen in einem Raster und lassen sich ziehen */
.icons.free { display: block; position: absolute; top: 22px; bottom: 18px; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.icons.free .dicon { position: absolute; pointer-events: auto; transition: left 160ms var(--ease), top 160ms var(--ease); touch-action: none; }
.icons.free .dicon.dragging { transition: none; z-index: 5; cursor: grabbing; }
.icons.free .dicon.dragging .appicon { transform: scale(1.06); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.dicon-target { position: absolute; width: 100px; height: 108px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .14); pointer-events: none; }
.widget { margin-left: auto; position: relative; z-index: 1; }
.ctxmenu { min-width: 230px; z-index: 9600; }
/* Symbole installierter Web-Apps: Buchstabe auf Farbverlauf */
.appicon.webicon { background: linear-gradient(160deg, color-mix(in srgb, var(--app-c) 72%, #fff) 0%, var(--app-c) 100%); }
.appicon.webicon b { font: 700 1.1em/1 var(--font-display); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.dicon .appicon.webicon b, .tile .appicon.webicon b { font-size: 28px; }
.drag-ghost .appicon.webicon b { font-size: 28px; }
.appicon.webicon img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; opacity: 0; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.dicon, .tile { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.appicon.webicon.has-img img { opacity: 1; }
.appicon.webicon.has-img b { visibility: hidden; }
.dicon.stopped .appicon { filter: grayscale(.7); opacity: .7; }
/* Hauptmenü: Markierung „liegt auf dem Desktop“, Ziehen auf den Desktop */
.tile { position: relative; }
.tile-pin { position: absolute; top: 10px; right: 26px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(26, 127, 214, .9); }
.launcher-hint { color: rgba(255, 255, 255, .78); font-size: 12.5px; text-shadow: var(--label-shadow); }
.pop.launcher.peek { opacity: 0; pointer-events: none; transition: opacity 160ms; }
.drag-ghost { position: fixed; z-index: 9700; width: 100px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
  color: #fff; font-size: 13px; text-shadow: var(--label-shadow); }
.drag-ghost .appicon { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.drag-ghost .appicon svg.i { width: 31px; height: 31px; }
.dicon { width: 100px; height: 108px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.dicon .appicon { width: 58px; height: 58px; border-radius: 15px; }
.dicon .appicon svg.i { width: 31px; height: 31px; }
/* Beschriftung unter dem Symbol: weiß mit Schatten, wie auf einem Desktop */
.dicon > span:last-child { font-size: 13px; line-height: 1.25; color: var(--label); text-shadow: var(--label-shadow); max-width: 96px; text-align: center; }
.dicon:hover, .dicon:focus-visible { background: rgba(255, 255, 255, .16); }
.dicon:active .appicon { transform: scale(.96); }

/* Widget „Systemzustand“ */
.widget {
  width: 300px; align-self: start; pointer-events: auto; color: var(--fg);
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-line); border-radius: 12px; box-shadow: 0 8px 28px rgba(10, 25, 45, .22); overflow: hidden;
}
.widget-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.widget header { display: flex; align-items: center; gap: 14px; padding: 12px 16px 14px; border-bottom: 1px solid var(--line); }
.widget header strong { display: block; font: 600 17px/1.2 var(--font-display); }
.status-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(160deg, #39c47a, #179052); box-shadow: 0 0 0 5px var(--ok-soft); }
.status-badge svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
.status-badge.warn { background: linear-gradient(160deg, #f5b748, #d27f05); box-shadow: 0 0 0 5px var(--warn-soft); }
.widget .rows { padding: 12px 16px 16px; display: grid; gap: 12px; }
.meter { display: grid; gap: 5px; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.meter-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3a9bf0, var(--accent)); transition: width var(--t-mid) var(--ease); }
.track i.warn { background: var(--warn); }
.track i.crit { background: var(--crit); }

/* ---------- Fenster ---------- */
.win {
  position: fixed; z-index: 100; display: flex; flex-direction: column; min-width: 340px; min-height: 240px;
  background: var(--surface); border: 1px solid rgba(0, 0, 0, .08); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
  animation: win-in var(--t-mid) var(--ease);
}
.win:not(.active) { box-shadow: 0 2px 6px rgba(10, 25, 45, .08), 0 10px 26px rgba(10, 25, 45, .16); }
@keyframes win-in { from { opacity: 0; transform: scale(.98) translateY(6px); } }
.win.max { border-radius: 0; border-width: 0; }
.win-bar {
  height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px;
  background: var(--chrome); border-bottom: 1px solid var(--line); cursor: default; user-select: none; touch-action: none;
}
.win-bar .appicon.sm { width: 24px; height: 24px; border-radius: 7px; }
.win:not(.active) .win-bar { color: var(--muted); }
.win:not(.active) .win-bar .appicon { filter: saturate(.4); opacity: .8; }
.win-title { flex: 1; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-ctl { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.win-ctl:hover { background: var(--surface-3); color: var(--fg); }
.win-ctl.close:hover { background: var(--crit); color: #fff; }
.win-ctl svg.i { width: 15px; height: 15px; }
.win-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.win-resize { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--line) 50% 58%, transparent 58% 70%, var(--line) 70% 78%, transparent 78%); }
.win.max .win-resize { display: none; }

/* ---------- Bausteine in Fenstern ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.toolbar .grow { flex: 1; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.btn {
  height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--fg); cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); background: var(--accent); }
.btn.danger { color: var(--crit); }
.btn.danger.solid { background: var(--crit); border-color: var(--crit); color: #fff; font-weight: 600; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.icon { width: 32px; padding: 0; justify-content: center; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 13px; }
.pane { flex: 1; min-height: 0; overflow: auto; }
.pad { padding: 16px; }
.stack { display: grid; gap: 16px; align-content: start; }
.section-title { margin: 0 0 8px; font: 600 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Reiter als Navigation links */
.win-body:has(> .tabs) { flex-direction: row; }
.tabs { display: flex; flex-direction: column; gap: 2px; width: 196px; flex: none; padding: 12px 10px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.tab { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--fg); text-align: left; white-space: nowrap; }
.tab svg.i { color: var(--muted); }
.tab:hover { background: var(--surface-3); }
.tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tab[aria-selected="true"] svg.i { color: var(--accent); }
.win-body:has(> .tabs) > .pane { flex: 1; min-width: 0; }

table.grid { width: 100%; border-collapse: collapse; }
table.grid th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid td.r, table.grid th.r { text-align: right; }
table.grid tr.sel td { background: var(--accent-soft); }
.rowbtns { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--muted); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.crit { background: var(--crit-soft); color: var(--crit); }
.chip.info { background: var(--accent-soft); color: var(--accent); }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.note.warn { background: var(--warn-soft); border-color: transparent; }
.note svg.i { margin-top: 1px; }

.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.empty strong { color: var(--fg); font-size: 15px; }

/* Formulare */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label, .field .label { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.input { height: 36px; width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.check span small { display: block; color: var(--muted); font-size: 12px; }
.form-err { color: var(--crit); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Dialog innerhalb eines Fensters */
.dlg-scrim { position: absolute; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: center; padding: 16px; animation: fade var(--t-mid) var(--ease); }
@keyframes fade { from { opacity: 0; } }
.dlg { width: min(460px, 100%); max-height: 100%; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.dlg.wide { width: min(760px, 100%); }
.dlg h3 { margin: 0; padding: 16px 18px 0; font: 600 16px var(--font-display); text-wrap: balance; }
.dlg .dlg-body { padding: 14px 18px; overflow: auto; min-height: 0; flex: 1 1 auto; }
.dlg h3, .dlg .dlg-actions { flex: none; }
.dlg .dlg-actions { border-top: 1px solid var(--line); }
.dlg .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; flex-wrap: wrap; }
.dlg ul { margin: 8px 0 0; padding-left: 18px; max-height: 160px; overflow: auto; }

pre.log { margin: 0; padding: 12px; max-height: 50vh; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }

/* Hinweise unten */
.toasts { position: fixed; z-index: 9800; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 8px; background: var(--fg); color: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; animation: pop-in var(--t-mid) var(--ease); }
.toast.err { background: var(--crit); color: #fff; }

/* ---------- Systemmonitor ---------- */
.mon-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mon-head h2 { margin: 0; font: 600 20px var(--font-display); }
.mon-head .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); flex: 1; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 10px; display: grid; gap: 2px; min-width: 0; }
.card .k { font-size: 12px; color: var(--muted); }
.card .v { font: 600 24px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.card .v small { font: 400 13px var(--font); color: var(--muted); margin-left: 4px; }
.card svg.spark { width: 100%; height: 44px; display: block; margin-top: 6px; overflow: visible; }
.spark .area { fill: var(--accent-soft); stroke: none; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark .line.tx { stroke: var(--amber); }
.spark .gridl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark .dot { fill: var(--accent); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 5px; background: var(--accent); }
.legend i.tx { background: var(--amber); }
.vol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vol:last-child { border-bottom: 0; }
.vol .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; }
.disk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.disk:last-child { border-bottom: 0; }
.disk-bay { width: 34px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: end center; padding-bottom: 6px; }
.smart { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; padding: 10px 12px; background: var(--surface-2); border-radius: 6px; font-size: 13px; }
.smart div { display: flex; justify-content: space-between; gap: 8px; }
.smart div span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Dateimanager ---------- */
.fm { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.fm-side { border-right: 1px solid var(--line); background: var(--surface-2); overflow: auto; padding: 10px 8px; }
.fm-side button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; overflow: hidden; }
.fm-side button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-side button:hover { background: var(--surface-3); }
.fm-side button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.fm-main { min-width: 0; display: flex; flex-direction: column; position: relative; }
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: thin; }
.crumbs button { border: 0; background: transparent; padding: 5px 7px; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.crumbs button:hover { background: var(--surface-2); }
.crumbs button:last-child { font-weight: 600; }
.crumbs .slash { color: var(--muted); }
.fm-list tr { cursor: default; }
.fm-list tbody tr:hover td { background: var(--surface-2); }
.fm-list tbody tr.sel td { background: var(--accent-soft); }
.fm-list td.name { white-space: nowrap; max-width: 0; width: 100%; }
.fm-list td.name .ficon { vertical-align: middle; margin-right: 10px; }
.fm-list td.name span { display: inline-block; vertical-align: middle; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-list td.size, .fm-list td.date { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.fm-list td.cb, .fm-list th.cb { width: 36px; padding-right: 0; }
.fm-list input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.ficon { width: 20px; height: 20px; flex: none; }
.ficon.dir { color: var(--amber); }
.ficon.file { color: var(--muted); }
.status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface); flex-wrap: wrap; }
.drop-hint { position: absolute; inset: 8px; z-index: 20; border: 2px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 85%, transparent); display: grid; place-items: center; color: var(--accent); font-weight: 600; pointer-events: none; }
.uploads { border-top: 1px solid var(--line); background: var(--surface-2); padding: 8px 12px; display: grid; gap: 6px; max-height: 140px; overflow: auto; }
.up { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 12.5px; }
.up span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .track { grid-column: 1 / -1; height: 4px; }

/* ---------- Docker / App-Center ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.app { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-top { display: flex; gap: 12px; align-items: center; }
.app-top strong { display: block; font-size: 14.5px; }
.app-mark { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font: 700 17px var(--font-display); color: #fff; flex: none; }
.app p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.app-foot a.btn { text-decoration: none; }

/* ---------- Einstellungsseiten: Seite → Karten → Zeilen (Systemsteuerung) ---------- */
.win-body:has(> .tabs) > .pane:has(> .page) { background: var(--page-bg); }
.page { padding: 22px 28px 32px; display: grid; gap: 18px; max-width: 780px; }
.page-head h2 { margin: 0; font: 600 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.card-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 30, 50, .04); overflow: hidden; }
.card-sec > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.card-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.card-ic svg.i { width: 17px; height: 17px; }
.card-body { padding: 0 18px; }
.card-pad { padding: 16px 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.card-body > .set-row:last-child, .card-body form > .set-row:last-of-type { border-bottom: 0; }
.set-row.stack-row { flex-direction: column; align-items: stretch; gap: 12px; }
.set-row.info { min-height: 0; padding: 11px 0; }
.set-key { color: var(--muted); font-size: 13.5px; }
.set-val { font-size: 13.5px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.set-lbl { display: grid; gap: 2px; min-width: 0; }
.set-lbl strong { font-weight: 600; font-size: 14px; }
.set-lbl small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.set-ctl { display: flex; align-items: center; gap: 8px; flex: none; justify-content: flex-end; }
.set-ctl .input { width: 260px; height: 38px; border-radius: 9px; background: var(--surface-2); }
.set-ctl .input:focus { background: var(--surface); }
.set-val { font-size: 13.5px; color: var(--fg); text-align: right; word-break: break-word; max-width: 420px; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 4px 0 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.card-sec .btn { border-radius: 9px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface-2); font-weight: 600; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
/* Umschalter mit Segmenten (Farbschema) */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); }
.segmented button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 30, 50, .14); }
/* Hintergrund als Vorschaubilder */
.wall-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.wall-opt { display: grid; gap: 7px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 13px; color: var(--muted); }
.wall-thumb { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.wall-opt[aria-checked="true"] { color: var(--fg); font-weight: 600; }
.wall-opt[aria-checked="true"] .wall-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.wall-opt[aria-checked="true"] .wall-thumb::after { content: "✓"; position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }

/* Fortschritt beim Software-Update */
.upd-progress { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.upd-progress-top { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; }
.upd-progress-top strong { font: 600 18px var(--font-display); color: var(--accent); }
.track.upd-track { height: 10px; border-radius: 5px; }
.track.upd-track i { position: relative; overflow: hidden; transition: width 120ms linear; }
.track.upd-track i::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .45) 50%, transparent 65% 100%);
  background-size: 200% 100%; animation: upd-shine 1.4s linear infinite; }
.track.upd-track i.done { background: var(--ok); }
.track.upd-track i.done::after { display: none; }
@keyframes upd-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- Anmeldung ---------- */
.login-wrap { position: fixed; inset: 0; z-index: 9900; display: grid; place-items: center; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.login { width: min(380px, 100%); background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: var(--shadow); padding: 30px 28px 24px; display: grid; gap: 16px; }
.login-avatar { width: 76px; height: 76px; margin: -2px auto 2px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #5aa7f0, #2a6fc0); box-shadow: 0 0 0 5px rgba(255, 255, 255, .55); }
.login-avatar svg.i { width: 40px; height: 40px; stroke-width: 1.6; }
.login-brand { text-align: center; }

.login-brand h1 { margin: 0; font: 600 21px/1.2 var(--font-display); letter-spacing: -.01em; }
.login-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.login .btn.primary { height: 42px; justify-content: center; border-radius: 21px; font-size: 15px; }
.login .input { height: 40px; border-radius: 8px; }
.demo-hint { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 960px) { .widget { display: none; } }
@media (max-width: 700px) {
  .win { border-radius: 0; border: 0; min-width: 0; }
  .win-resize { display: none; }
  .win-ctl.max-btn { display: none; }
  .clock, .bar .host { display: none; }
  .btn .label { display: none; }
  .btn:has(.label) { width: 32px; padding: 0; justify-content: center; }
  .fm { grid-template-columns: minmax(0, 1fr); }
  .fm-side { display: none; }
  .fm-list .date, .fm-list th.date { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  .set-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .set-ctl { justify-content: flex-start; flex-wrap: wrap; }
  .set-ctl .input { width: 100%; }
  .set-val { text-align: left; }
  .set-row.info { flex-direction: row; align-items: baseline; }
  .set-row.info .set-val { text-align: right; }
  table.grid td, table.grid th { padding: 8px; }
  .hide-sm { display: none; }
  .icons { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, 100px); grid-template-rows: none; justify-content: center; width: 100%; }
  .win-body:has(> .tabs) { flex-direction: column; }
  .tabs { flex-direction: row; width: auto; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tab { height: 34px; flex: none; }
  .launcher-grid { grid-template-columns: repeat(auto-fill, 96px); gap: 10px; }
  .tile .appicon { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Freigaben: Status ---------- */
.unshared { padding: 0 12px 12px; }
.share-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-alert { display: flex; gap: 12px; align-items: flex-start; margin: 4px 12px 14px; padding: 12px 14px; border-radius: 10px; background: var(--crit-soft); color: var(--fg); border: 1px solid color-mix(in srgb, var(--crit) 35%, transparent); }
.share-alert > svg { color: var(--crit); flex: none; margin-top: 2px; }
.share-alert strong { display: block; margin-bottom: 4px; }
.share-alert ul { margin: 0 0 10px; padding-left: 18px; font-size: 13px; }
.unshared-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--surface); }
.unshared-row > svg { color: var(--accent); width: 20px; height: 20px; flex: none; }
.unshared-row .grow { flex: 1; min-width: 0; }

/* ---------- Rechteverwaltung ---------- */
.dlg-tabbed { display: grid; gap: 14px; }
.dlg-tabs { justify-self: start; }
.dlg-pane[hidden] { display: none; }
.ptable-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 360px; }
.ptable { margin: 0; }
.ptable th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; font-size: 12px; }
.ptable th.c, .ptable td.c { text-align: center; width: 104px; }
.ptable td { padding: 8px 10px; vertical-align: middle; }
.prow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prow > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.prow small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.pcell { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong, #9aa7b6); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; padding: 0; transition: background var(--t-fast), border-color var(--t-fast); }
.pcell:hover { border-color: var(--accent); }
.pcell[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.pcell[aria-checked="true"]::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
td.c:nth-child(2) .pcell[aria-checked="true"] { background: var(--crit); border-color: var(--crit); }
.pcell:disabled { opacity: .5; cursor: default; }
.chip.perm-rw { background: var(--ok-soft); color: var(--ok); }
.chip.perm-ro { background: var(--accent-soft); color: var(--accent); }
.chip.perm-none { background: var(--surface-3); color: var(--muted); }
.check-list { display: grid; gap: 10px; max-height: 340px; overflow: auto; padding: 2px; }
tr.row-off td:not(:last-child) { opacity: .55; }
.avatar.sm { flex: none; }
@media (max-width: 700px) {
  .ptable th.c, .ptable td.c { width: 64px; }
  .ptable th.c { font-size: 10.5px; white-space: normal; line-height: 1.2; }
}

/* ================= Oberflächenstil „Modern“ (schwebendes Dock, Glas, runde Fensterknöpfe) ================= */
.dock { display: contents; }
.dock-sep, .bar-stats { display: none; }
:root[data-ui="modern"] {
  --bar-h: 62px;
  --dock-bg: rgba(28, 36, 48, .42);
  --dock-line: rgba(255, 255, 255, .16);
}
:root[data-ui="modern"] .bar {
  background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding-top: calc(env(safe-area-inset-top, 0px) + 6px); gap: 10px; pointer-events: none;
}
:root[data-ui="modern"] .bar > * { pointer-events: auto; }
:root[data-ui="modern"] .dock {
  display: flex; align-items: center; gap: 5px; height: 52px; padding: 0 8px; margin-left: 4px; max-width: min(70vw, 900px);
  background: var(--dock-bg); border: 1px solid var(--dock-line); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
:root[data-ui="modern"] .dock-sep { display: block; width: 1px; height: 24px; background: rgba(255, 255, 255, .28); margin: 0 4px; }
:root[data-ui="modern"] .dock .bar-btn { height: 40px; min-width: 40px; border-radius: 11px; }
:root[data-ui="modern"] .dock .bar-btn svg.i { width: 21px; height: 21px; }
:root[data-ui="modern"] .tasks { flex: 0 1 auto; padding-left: 0; gap: 4px; }
:root[data-ui="modern"] .task { min-width: 36px; padding: 0 4px; }
:root[data-ui="modern"] .task .appicon.sm { width: 32px; height: 32px; border-radius: 9px; }
:root[data-ui="modern"] .task .appicon.sm svg.i { width: 19px; height: 19px; }
:root[data-ui="modern"] .task.on { background: rgba(255, 255, 255, .22); }
:root[data-ui="modern"] .task::after { bottom: -3px; }
:root[data-ui="modern"] .bar-right {
  margin-left: auto; height: 52px; padding: 0 8px 0 12px; gap: 8px;
  background: var(--dock-bg); border: 1px solid var(--dock-line); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}
:root[data-ui="modern"] .bar .host { display: none; }
:root[data-ui="modern"] .bar-stats { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #fff; cursor: pointer; }
:root[data-ui="modern"] .bar-stats:hover { background: rgba(255, 255, 255, .14); }
.bar-stats .mini { display: grid; gap: 5px; justify-items: start; }
.bar-stats .mini b { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; opacity: .9; line-height: 1; }
.bar-stats .mini-track { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.bar-stats .mini-track i { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width var(--t-mid) var(--ease); }
.bar-stats .mini-net { display: grid; gap: 1px; font-size: 12px; line-height: 1.2; opacity: .92; text-align: left; min-width: 78px; }
:root[data-ui="modern"] .bar-right .clock { font-size: 14.5px; padding: 0 10px; }
:root[data-ui="modern"] .bar-right .bar-btn { height: 40px; min-width: 40px; border-radius: 11px; }
:root[data-ui="modern"] .bar-right .bar-btn svg.i { width: 21px; height: 21px; }
:root[data-ui="modern"] .bar-right .demo-chip { font-size: 11.5px; padding: 4px 10px; }
:root[data-ui="modern"] .desktop { padding-top: 14px; }

/* Desktop-Symbole größer und weicher */
:root[data-ui="modern"] .dicon .appicon { width: 62px; height: 62px; border-radius: 17px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
:root[data-ui="modern"] .dicon .appicon svg.i { width: 32px; height: 32px; }
:root[data-ui="modern"] .dicon > span:last-child { font-weight: 500; }
:root[data-ui="modern"] .dicon:hover, :root[data-ui="modern"] .dicon:focus-visible { background: rgba(255, 255, 255, .12); }

/* Widget als Glas-Panel („Aufgabencenter“) */
:root[data-ui="modern"] .widget {
  width: 320px; background: rgba(30, 38, 50, .38); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 6px 10px 10px;
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}
:root[data-ui="modern"] .widget .widget-title { justify-content: center; position: relative; color: rgba(255, 255, 255, .92); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; padding: 8px 6px 10px; }
:root[data-ui="modern"] .widget .widget-title .btn { position: absolute; right: 0; top: 2px; color: #fff; }
:root[data-ui="modern"] .task-card { background: var(--surface); border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
:root[data-ui="modern"] .state-box > header { border-bottom-color: var(--line); }
:root[data-ui="modern"] .state-box > header, :root[data-ui="modern"] .state-box > .rows { background: var(--surface); }
:root[data-ui="modern"] .state-box > header { border-radius: 12px 12px 0 0; }
:root[data-ui="modern"] .state-box > .rows { border-radius: 0 0 12px 12px; }
.task-center { padding-bottom: 8px; }
.task-center .widget-title { padding-bottom: 8px; }
.task-card { margin: 0 12px 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 7px; }
:root[data-ui="modern"] .task-card { margin: 0 0 8px; border: 0; }
.task-head { display: flex; align-items: center; gap: 8px; }
.task-head strong { font-size: 13.5px; }
.task-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.task-card.ok .track i { background: var(--ok); }

/* Fenster: runde Knöpfe links, Titel mittig, weichere Ecken */
:root[data-ui="modern"] .win { border-radius: 14px; }
:root[data-ui="modern"] .win.max { border-radius: 0; }

/* Hauptmenü unter dem Dock */
:root[data-ui="modern"] .pop.launcher { inset: 0; padding-top: calc(var(--bar-h) + 30px); }

/* Auswahl in den Einstellungen */
.ui-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ui-opt { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; color: var(--fg); }
.ui-opt:hover { border-color: var(--accent); }
.ui-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ui-name strong { display: block; font-size: 14px; }
.ui-name small { display: block; font-size: 12px; color: var(--muted); }
.ui-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #5d84b8, #9cc3dd 70%, #4f8a74); }
.ui-thumb[data-ui="modern"] { background: #2f5566 url("wall-meer-klein.webp") center / cover no-repeat; }
.ui-thumb i { position: absolute; display: block; }
.ui-thumb .t-bar { left: 0; right: 0; top: 0; height: 9%; background: rgba(20, 40, 70, .7); }
.ui-thumb[data-ui="modern"] .t-bar { left: 6%; right: auto; width: 34%; top: 5%; height: 10%; border-radius: 4px; background: rgba(30, 38, 50, .55); border: 1px solid rgba(255, 255, 255, .25); }
.ui-thumb .t-win { left: 16%; top: 22%; width: 52%; height: 62%; border-radius: 3px; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.ui-thumb[data-ui="modern"] .t-win { border-radius: 6px; }
.ui-thumb .t-dots { display: none; }
.ui-thumb[data-ui="modern"] .t-dots { display: block; left: 5%; top: 6%; width: 3px; height: 3px; border-radius: 50%; background: #ff5f57; box-shadow: 5px 0 0 #febc2e, 10px 0 0 #28c840; }
.ui-thumb .t-wid { right: 5%; top: 18%; width: 20%; height: 40%; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.ui-thumb[data-ui="modern"] .t-wid { border-radius: 6px; background: rgba(30, 38, 50, .45); border: 1px solid rgba(255, 255, 255, .3); }

@media (max-width: 700px) {
  :root[data-ui="modern"] .dock { max-width: 60vw; }
  :root[data-ui="modern"] .bar-stats { display: none; }
}

/* ---------- Datensicherung ---------- */
.bk-list { display: grid; gap: 14px; padding: 14px 16px 22px; }
.bk-card > header small { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-card .card-body { padding: 0 18px 14px; }
.bk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; padding: 8px 0 12px; }
.bk-facts small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.bk-facts span { font-size: 13.5px; }
.bk-prog { display: grid; gap: 6px; padding: 4px 0 12px; }
.bk-prog .track { height: 8px; border-radius: 4px; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.bk-actions .grow, .bk-keyrow .grow, .bk-disk-head .grow, .bk-item .grow { flex: 1; }
.bk-disks { display: grid; gap: 10px; }
.bk-disk { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.bk-disk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-disk-head svg.i { color: var(--muted); }
.bk-part { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.bk-part:hover { background: var(--surface-2); }
.bk-part.on, .bk-part:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bk-part input { margin-top: 3px; accent-color: var(--accent); }
.bk-part small { display: block; color: var(--muted); font-size: 12px; }
.bk-part small.warn-text { color: var(--warn); }
.bk-keyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bk-keyrow .input { flex: 1; min-width: 200px; }
.bk-key { flex: 1; min-width: 0; display: block; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; word-break: break-all; max-height: 64px; overflow: auto; }
.bk-ssh-msg { font-size: 13px; color: var(--muted); }
.bk-ssh-msg.ok { color: var(--ok); font-weight: 600; }
.bk-ssh-msg.err { color: var(--crit); }
.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.day-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick label { cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span { display: grid; place-items: center; width: 40px; height: 34px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.day-pick input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.bk-browse { border: 1px solid var(--line); border-radius: 10px; max-height: 300px; min-height: 140px; overflow: auto; }
.bk-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.bk-item:last-child { border-bottom: 0; }
.bk-item svg.i { color: #e0a43a; }
.bk-item input { accent-color: var(--accent); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-align: left; }
.linkish:hover { text-decoration: underline; }
.bk-log { margin: 0; max-height: 420px; overflow: auto; padding: 12px; border-radius: 8px; background: #0f1720; color: #d7e2ee; font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.bk-note { width: 100%; text-align: left; cursor: pointer; color: var(--fg); }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } .bk-list { padding: 10px; } }

/* ---------- Sicherheit / 2FA ---------- */
.twofa-setup { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.qr-box { width: 220px; height: 220px; display: grid; place-items: center; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #333; font-size: 12.5px; text-align: center; }
.qr-box svg { width: 100%; height: 100%; }
.twofa-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; font-size: 14px; }
.rec-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line); font-size: 15px; letter-spacing: .04em; }
.login-2fa-hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--fg); font-size: 13.5px; margin-bottom: 4px; }
.login-2fa-hint svg.i { color: var(--accent); flex: none; margin-top: 1px; }
.login-step { display: grid; gap: 14px; }
.code-input { font-size: 22px !important; letter-spacing: .25em; text-align: center; }
@media (max-width: 700px) { .twofa-setup { grid-template-columns: 1fr; justify-items: center; } }

/* Schalter (Checkbox als Kippschalter) */
input.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background var(--t-fast); vertical-align: middle; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform var(--t-fast); }
input.switch:checked { background: var(--accent); border-color: var(--accent); }
input.switch:checked::after { transform: translateX(16px); }
input.switch:disabled { opacity: .5; }
table.grid th.c, table.grid td.c { text-align: center; }

/* Leistung: beim Verschieben/Größe ändern von Fenstern teure Unschärfe-Effekte kurz abschalten */
body.moving .bar, body.moving .dock, body.moving .bar-right, body.moving .widget, body.moving .win {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body.moving .win { transition: none !important; }
body.moving iframe { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- App-Center: Kategorien, Suche, Original-Symbole ---------- */
.store-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.store-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.store-cat { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 99px; padding: 6px 13px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.store-cat:hover { border-color: var(--accent); }
.store-cat[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.store-cat .n { font-size: 11px; padding: 0 6px; border-radius: 99px; background: rgba(127, 127, 127, .2); }
.store-search { max-width: 240px; }
.app-mark { position: relative; overflow: hidden; }
.app-mark b { font: inherit; }
.app-mark img, .appicon.webicon.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7px; opacity: 0; pointer-events: none; -webkit-user-drag: none; }
.app-mark.has-img, .appicon.webicon.logo.has-img { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.app-mark.has-img img, .appicon.webicon.has-img img { opacity: 1; }
.app-mark.has-img b { visibility: hidden; }
.app-mark { width: 46px; height: 46px; border-radius: 12px; }
.dicon .appicon.webicon.logo.has-img img { padding: 9px; }
.task .appicon.webicon.logo.has-img img { padding: 3px; }

/* ---------- Speicher-Manager ---------- */
.page.wide { max-width: none; }
.st-status { display: flex; gap: 18px; align-items: center; padding: 20px 22px; }
.status-badge.big { width: 56px; height: 56px; }
.status-badge.big svg.i { width: 30px; height: 30px; }
.st-status h2 { margin: 0; font: 600 21px var(--font-display); }
.st-status p { margin: 3px 0; color: var(--fg); font-size: 14px; }
.st-vols { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 14px 18px 18px; }
.st-vol { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.st-vol-ic { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.st-vol-ic.off { color: var(--muted); }
.st-vol-name strong { display: block; font-size: 14px; }
.st-vol-name small, .st-vol-bar small { color: var(--muted); font-size: 12px; }
.st-vol-bar { display: grid; gap: 4px; }
.st-vol-bar b { color: var(--accent); font-weight: 600; }
.st-chassis-wrap { display: flex; gap: 28px; padding: 18px; flex-wrap: wrap; align-items: flex-start; }
.st-chassis { width: 230px; padding: 14px 14px 12px; border-radius: 12px; background: linear-gradient(180deg, #2b2f35, #17191c); box-shadow: 0 8px 22px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08); display: grid; gap: 8px; color: #dfe5ec; }
.st-chassis-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; text-align: center; }
.st-odd { height: 30px; border-radius: 5px; border: 1px solid #3c4148; background: #22262b; color: #9aa4af; font-size: 11.5px; cursor: default; }
.st-odd.on { background: #2b3d32; color: #d7f0de; cursor: pointer; border-color: #3e6b4c; }
.st-bays { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: #0f1113; }
.st-bay { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 5px; border: 1px solid #2f343a; background: repeating-linear-gradient(90deg, #1d2024 0 6px, #191c1f 6px 12px); color: #aeb7c1; text-align: left; cursor: default; }
.st-bay.on { cursor: pointer; background: linear-gradient(180deg, #2a6b55, #1e5040); border-color: #3c8a6e; color: #e9fff6; }
.st-bay.on.warn { background: linear-gradient(180deg, #8a6a1e, #6b5013); border-color: #b38a2a; }
.st-bay.on.crit { background: linear-gradient(180deg, #8a2a2a, #6b1b1b); border-color: #c24444; }
.st-bay.on.unknown { background: linear-gradient(180deg, #3d5266, #2c3d4e); border-color: #557391; }
.st-bay:hover.on { filter: brightness(1.12); }
.st-bay-no { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .3); font-size: 11.5px; font-weight: 700; flex: none; }
.st-bay-txt { display: grid; line-height: 1.15; font-size: 13px; }
.st-bay-txt small { font-size: 10.5px; opacity: .8; }
.st-led { position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #5cf09a; box-shadow: 0 0 6px #5cf09a; }
.st-bay.warn .st-led { background: #ffc94a; box-shadow: 0 0 6px #ffc94a; }
.st-bay.crit .st-led { background: #ff6161; box-shadow: 0 0 6px #ff6161; }
.st-legend { display: flex; gap: 10px; justify-content: center; font-size: 10.5px; opacity: .8; flex-wrap: wrap; }
.st-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.st-legend .ok::before { background: #2a6b55; } .st-legend .warn::before { background: #8a6a1e; } .st-legend .crit::before { background: #8a2a2a; } .st-legend .empty::before { background: #2a2d31; border: 1px solid #444; }
.st-others { flex: 1; min-width: 260px; display: grid; gap: 8px; align-content: start; }
.st-other, .st-member { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: left; }
.st-other { cursor: pointer; }
.st-other:hover { border-color: var(--accent); }
.st-other > span:nth-child(2), .st-member > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.st-other small, .st-member small { color: var(--muted); font-size: 12px; }
.st-other svg.i, .st-member svg.i { color: var(--muted); }
.st-member.missing { border-style: dashed; border-color: var(--crit); }
.st-member.missing svg.i { color: var(--crit); }
.st-members { display: grid; gap: 8px; padding: 8px 0 12px; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.st-dot.ok { background: var(--ok); } .st-dot.warn { background: var(--warn); } .st-dot.crit { background: var(--crit); }
.st-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-level { display: grid; gap: 4px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; }
.st-level small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.st-level small.warn-text { color: var(--warn); }
.st-level[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.st-level:disabled { opacity: .55; cursor: default; }
.chip.unknown { background: var(--surface-3); color: var(--muted); }
@media (max-width: 700px) { .st-levels { grid-template-columns: 1fr; } .st-chassis { width: 100%; } }

/* Ergebnis-Spalte: Herkunft des Rechts */
.eff-box { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.eff-via { font-size: 11px; color: var(--muted); white-space: nowrap; }
.eff-via.warn { color: var(--warn); font-weight: 600; }

/* =========================================================== Feinere Linien (1.17.6)
   Trennlinien als halbtransparente Haarlinien statt fester Grautöne; Bedienelemente behalten
   einen gut sichtbaren Rand. Karten ohne Kopf-Trennlinie und ohne farbige Symbol-Kachel. */
:root { --line: rgba(16, 28, 45, .09); --line-ctl: #d3d9e0; --line-strong: #a9b4c1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --line: rgba(255, 255, 255, .07); --line-ctl: #39424d; --line-strong: #5a6573; }
}
:root[data-theme="dark"] { --line: rgba(255, 255, 255, .07); --line-ctl: #39424d; --line-strong: #5a6573; }

.input, .btn, input.switch, .store-cat, .day-pick span, .set-ctl .input { border-color: var(--line-ctl); }
.btn.primary, .btn.danger.solid { border-color: transparent; }
.input:focus { border-color: var(--accent); }

.win { border: 1px solid var(--line); }
.win-bar { border-bottom-color: var(--line); }

.card-sec { border-radius: 12px; border-color: var(--line); box-shadow: none; }
.card-sec > header { border-bottom: 0; padding: 16px 20px 4px; gap: 9px; font-size: 13px; font-weight: 600;
  letter-spacing: .01em; color: var(--muted); }
.card-ic { width: auto; height: auto; border-radius: 0; background: none; color: var(--muted); }
.card-ic svg.i { width: 16px; height: 16px; }
.card-body { padding: 0 20px 2px; }
.set-row { min-height: 56px; }
.set-row.info { padding: 12px 0; }
.set-val { font-weight: 500; }
.page { gap: 16px; }
.page-head h2 { font-weight: 650; letter-spacing: -.015em; }
@media (prefers-color-scheme: light) { .card-sec { box-shadow: 0 1px 0 rgba(16, 28, 45, .03); } }
.card-body > div > .set-row:last-child { border-bottom: 0; }

/* =========================================================== Fenster-Transparenz (Einstellungen → Darstellung)
   Die Grundfarben werden auf :root festgehalten; in Fenstern werden die Flächenfarben daraus
   halbtransparent gemischt. Übereinanderliegende Flächen (Fenster → Seite → Karte) werden dadurch
   automatisch dichter, Text und Bedienelemente bleiben klar. */
:root {
  --surface-base: var(--surface); --surface-2-base: var(--surface-2); --surface-3-base: var(--surface-3);
  --chrome-base: var(--chrome); --side-base: var(--side); --page-bg-base: var(--page-bg);
}
:root[data-glass] .win {
  --surface: color-mix(in srgb, var(--surface-base) calc(var(--win-alpha, 1) * 100%), transparent);
  --surface-2: color-mix(in srgb, var(--surface-2-base) calc(var(--win-alpha, 1) * 100%), transparent);
  --surface-3: color-mix(in srgb, var(--surface-3-base) calc(var(--win-alpha, 1) * 100%), transparent);
  --chrome: color-mix(in srgb, var(--chrome-base) calc(var(--win-alpha, 1) * 100%), transparent);
  --side: color-mix(in srgb, var(--side-base) calc(var(--win-alpha, 1) * 100%), transparent);
  --page-bg: color-mix(in srgb, var(--page-bg-base) calc(var(--win-alpha, 1) * 100%), transparent);
  -webkit-backdrop-filter: blur(32px) saturate(1.05); backdrop-filter: blur(32px) saturate(1.05);
}
/* Innere Flächen sollen nicht doppelt durchscheinen: nur Fenster, Leiste, Seitenleiste und Seite */
:root[data-glass] .win .card-sec, :root[data-glass] .win .dlg, :root[data-glass] .win .pop, :root[data-glass] .win .input,
:root[data-glass] .win table.grid th { --surface: color-mix(in srgb, var(--surface-base) calc((var(--win-alpha, 1) * .5 + .5) * 100%), transparent); }
:root[data-glass] .win .dlg { --surface: var(--surface-base); --surface-2: var(--surface-2-base); --surface-3: var(--surface-3-base); }
body.moving .win { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

.range-wrap { display: flex; align-items: center; gap: 12px; width: 260px; }
.range-val { min-width: 38px; text-align: right; font-size: 13px; font-weight: 600; color: var(--fg); }
input.range { -webkit-appearance: none; appearance: none; flex: 1; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
input.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--surface-3-base) var(--p)); }
input.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3-base); }
input.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .3); }
input.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .3); }
input.range:focus-visible { outline: none; }
input.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 720px) { .range-wrap { width: 100%; } }

/* ---------- Netzwerk */
.net-if { align-items: flex-start; }
.net-if-main { display: grid; gap: 8px; min-width: 0; flex: 1; }
.net-if-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.net-if-head svg.i { width: 17px; height: 17px; color: var(--muted); }
.net-if-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; font-size: 13px; }
.net-if-grid > span:nth-child(odd) { color: var(--muted); }
.net-if-grid > span:nth-child(even) { overflow-wrap: anywhere; }
.dns-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .dns-fields { grid-template-columns: 1fr; } }
.net-test { display: grid; gap: 8px; padding: 0 0 16px; }
.net-test:empty { display: none; }
.net-test-row { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.net-test-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.net-test-row .dot.ok { background: var(--ok); }
.net-test-row .dot.crit { background: var(--crit); }
.net-pending { align-items: center; }

/* ---------- Benachrichtigungen */
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.nt-grid .field { margin: 0; }
.nt-pair { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.nt-events { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.nt-limits { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; }
.nt-limits label { display: inline-flex; align-items: center; gap: 8px; }
.nt-save { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nt-log { display: grid; padding-bottom: 6px; }
.nt-log-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nt-log-row:last-child { border-bottom: 0; }
.nt-log-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.crit { background: var(--crit); }
.nt-log-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.nt-log-main strong { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-log-res { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .nt-grid, .nt-events { grid-template-columns: 1fr; } }

/* ---------- Energie */
.pw-disk { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pw-disk > svg.i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pw-disk-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pw-disk-main strong { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-sched { display: grid; gap: 10px; }
.pw-sched-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pw-sched-row select.input { width: 150px; }
.pw-sched-row input[type=time] { width: 130px; }
.pw-sched-row .day-pick span { width: 34px; height: 32px; }
.pw-inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pw-inline-row select.input { width: 260px; }
.pw-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.pw-ups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; }

/* ---------- Glocke / Posteingang */
.bell-btn { position: relative; }
.bell-badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--crit); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }
.pop.inbox { top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 6px); right: max(8px, env(safe-area-inset-right, 0px));
  width: min(380px, calc(100vw - 16px)); max-height: min(600px, calc(100vh - var(--bar-h) - 24px)); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); }
.inbox-head strong { font-size: 14px; }
.inbox-list { flex: 1; overflow-y: auto; padding: 6px; display: grid; gap: 4px; align-content: start; }
.inbox-item { display: flex; gap: 11px; padding: 10px 10px; border-radius: 10px; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.new { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.inbox-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.inbox-ic svg.i { width: 15px; height: 15px; }
.lvl-crit .inbox-ic { background: var(--crit-soft); color: var(--crit); }
.lvl-warn .inbox-ic { background: var(--warn-soft); color: var(--warn); }
.lvl-ok .inbox-ic { background: var(--ok-soft); color: var(--ok); }
.inbox-main { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.inbox-top strong { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; }
.inbox-title { font-weight: 600; font-size: 13.5px; }
.inbox-text { color: var(--muted); line-height: 1.4; }
.inbox-main .linkish { font-size: 12.5px; justify-self: start; margin-top: 2px; }
.inbox-empty { display: grid; place-items: center; gap: 8px; padding: 48px 16px; color: var(--muted); }
.inbox-empty svg.i { width: 28px; height: 28px; opacity: .6; }
.inbox-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }

/* ---------- Installations-Stick */
.usb-list { display: grid; gap: 6px; margin: 12px 0; }
.usb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.usb-item:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.usb-item.off { opacity: .6; cursor: default; }
.usb-item > svg.i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.usb-item input { accent-color: var(--accent); }
.usb-item-main { display: grid; gap: 1px; min-width: 0; }
.usb-item-main strong { font-weight: 500; font-size: 13.5px; }
.usb-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 4px 0 12px; }
.usb-progress { display: grid; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.usb-progress.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.usb-progress.err { border-color: color-mix(in srgb, var(--crit) 45%, transparent); }
.usb-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.usb-steps span::before { content: '○ '; }
.usb-steps span.done { color: var(--ok); } .usb-steps span.done::before { content: '✓ '; }
.usb-steps span.cur { color: var(--fg); font-weight: 600; } .usb-steps span.cur::before { content: '● '; color: var(--accent); }
.usb-progress .bar-track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.usb-progress .bar-track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s ease; }
.usb-progress .bar-track i.indet { width: 35% !important; animation: usb-indet 1.3s ease-in-out infinite; }
@keyframes usb-indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .usb-progress .bar-track i.indet { animation: none; width: 100% !important; opacity: .5; } }
.usb-msg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.usb-msg > span { flex: 1; }
.usb-msg svg.i { width: 16px; height: 16px; color: var(--muted); }
.usb-progress.ok .usb-msg svg.i { color: var(--ok); } .usb-progress.err .usb-msg svg.i { color: var(--crit); }
a.btn, a.btn:hover { text-decoration: none; }
/* Speicher-Manager: neutrale Ansicht für andere Hardware */
.st-chassis.generic { width: 260px; }
.st-chassis.generic .st-bay-no { min-width: 22px; }

/* ---------- Ersteinrichtung */
.login.setup { width: min(560px, 100%); gap: 18px; padding: 24px 28px 22px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.setup-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.setup-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.setup-steps li { flex: 1; display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 11.5px; color: var(--muted); min-width: 0; }
.setup-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  background: var(--surface-3); color: var(--muted); }
.setup-steps li em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.setup-steps li.cur span { background: var(--accent); color: #fff; }
.setup-steps li.cur em { color: var(--fg); font-weight: 600; }
.setup-steps li.done span { background: var(--ok-soft); color: var(--ok); }
.setup-body { min-height: 250px; }
.setup-welcome { display: grid; gap: 12px; justify-items: center; text-align: center; }
.setup-welcome h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.setup-welcome p { margin: 0; color: var(--muted); line-height: 1.5; max-width: 440px; }
.setup-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #5aa7f0, #2a6fc0); }
.setup-logo svg.i { width: 32px; height: 32px; }
.setup-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 13.5px; text-align: left; width: 100%;
  padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.setup-facts dt { color: var(--muted); } .setup-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.setup-lead { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.setup-sum { display: grid; gap: 14px; }
.setup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-row > div { display: grid; gap: 2px; }
.setup-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.setup-folder { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.setup-folder:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.setup-folder svg.i { width: 17px; height: 17px; color: #e0a83a; }
.setup-folder input { accent-color: var(--accent); }
.setup-nav { display: flex; align-items: center; gap: 10px; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-top: -6px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .25s ease, background .25s ease; }
.pw-meter[data-s="1"] i { width: 25%; background: var(--crit); } .pw-meter[data-s="2"] i { width: 50%; background: var(--warn); }
.pw-meter[data-s="3"] i { width: 75%; background: var(--ok); } .pw-meter[data-s="4"] i { width: 100%; background: var(--ok); }
@media (max-width: 520px) { .setup-steps li em { display: none; } }
.setup-nav .grow { flex: 1; } .setup-nav .btn { min-width: 110px; justify-content: center; }

/* ---------- Konfiguration sichern */
.cfg-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.cfg-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.cfg-files { display: grid; gap: 4px; padding: 6px 0 14px; }
.cfg-fileline { display: flex; align-items: center; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.cfg-fileline > span { flex: 1; }
.cfg-fileline svg.i { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 720px) { .cfg-secs { grid-template-columns: 1fr; } }

/* ---------- HTTPS */
.https-status { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 10px;
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.https-status.on { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.https-status > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.https-status small { overflow-wrap: anywhere; }
.https-lock { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--warn); flex: none; }
.https-status.on .https-lock { color: var(--ok); }
.https-steps { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
textarea.input.mono { font-size: 12px; line-height: 1.45; resize: vertical; min-height: 96px; }

/* ---------- Protokoll-Center */
.log-tb { flex-wrap: wrap; gap: 8px; }
.log-tb select.input { width: auto; min-width: 150px; }
.log-tb input[type=search] { width: 220px; }
.log-out { display: grid; gap: 6px; min-height: 0; }
.log-count { font-size: 12.5px; padding: 0 2px; }
.log-table td { vertical-align: top; }
.log-table .nowrap { white-space: nowrap; }
.log-path { overflow-wrap: anywhere; min-width: 240px; }
.log-act { display: inline-flex; align-items: center; gap: 6px; }
.log-act svg.i { width: 15px; height: 15px; color: var(--muted); }
.act-delete .log-act, .act-delete .log-act svg.i { color: var(--crit); }
.act-rename .log-act svg.i { color: var(--warn); }
.act-write .log-act svg.i, .act-mkdir .log-act svg.i { color: var(--ok); }
.log-levels { display: grid; gap: 6px; }
.chip.log-fail { background: var(--crit-soft); color: var(--crit); }
.chip.log-warn { background: var(--warn-soft); color: var(--warn); }
.log-table { font-size: 13px; }
.log-table td.num { font-size: 12.5px; }

/* ---------- Speicherkontingente ---------- */
.qt-vol { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.qt-vol-head { display: flex; align-items: center; gap: 10px; }
.qt-vol-head > .qt-vol-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.qt-ctl { display: flex; align-items: center; gap: 6px; }
.qt-ctl .input { text-align: right; }
@media (max-width: 520px) { .qt-vol-head { flex-wrap: wrap; } }
.qt-cell { display: grid; gap: 4px; min-width: 120px; max-width: 190px; }
.qt-cell small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Firewall ---------- */
.fw-tb { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 4px -6px; }
.fw-table { overflow-x: auto; }
.fw-ord { white-space: nowrap; }
.fw-ord .btn.icon.sm { width: 26px; height: 26px; padding: 0; }
.fw-down svg.i { transform: rotate(180deg); }
.fw-svc { display: grid; gap: 1px; }
.fw-default td { color: var(--muted); border-top: 1px solid var(--line); }
.fw-actions .form-err { flex: 1; }
input.switch.sm { width: 32px; height: 18px; }
input.switch.sm::after { width: 12px; height: 12px; }
input.switch.sm:checked::after { transform: translateX(14px); }
.page.page-wide { max-width: 1060px; }
.fw-table td:nth-child(3) { min-width: 200px; }
.fw-table .rowbtns .btn.icon { width: 30px; height: 30px; padding: 0; }
.fw-shadow { display: flex; align-items: center; gap: 5px; color: var(--warn); font-size: 12px; }
.fw-shadow svg.i { width: 13px; height: 13px; }
.fw-table .rowbtns { flex-wrap: nowrap; }

/* =========================================================== Ruhigeres Erscheinungsbild (1.31.0)
   Wie Systemeinstellungen bei macOS / DSM 7.2: Gruppen mit kleinem Titel darüber statt Karten mit
   Symbol-Kopf, Status als Punkt statt getönter Kästen, weniger Rundung, Symbole nur wo sie helfen. */
:root { --r-ctl: 6px; --r-grp: 8px; }

/* Seitenkopf */
.page { gap: 22px; padding: 24px 32px 36px; }
.page-head h2 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { font-size: 13px; max-width: 640px; }
.page-state { display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--font); color: var(--muted); letter-spacing: 0; }
.page-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.page-state.ok::before { background: var(--ok); }
.page-state.warn::before { background: var(--warn); }
.page-state.crit::before { background: var(--crit); }

/* Gruppen: Titel über der Liste, Liste mit Haarlinie */
.page .card-sec:has(> .card-body) { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.page .card-sec:has(> .card-body) > header { padding: 0 2px 7px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.page .card-sec:has(> .card-body) > header .card-ic { display: none; }
.page .card-sec > .card-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-grp); padding: 0 16px; }
:root[data-glass] .win .page .card-sec > .card-body { --surface: color-mix(in srgb, var(--surface-base) calc((var(--win-alpha, 1) * .5 + .5) * 100%), transparent); }
.set-row { min-height: 50px; padding: 11px 0; gap: 24px; }
.set-lbl strong { font-weight: 500; font-size: 13.5px; }
.set-lbl small { font-size: 12px; max-width: 560px; }
.card-actions { border-top: 0; padding: 0; }
.page > .card-actions { margin-top: -6px; }

/* Status-Zeile statt getöntem Kasten */
.https-status { margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; gap: 10px; }
.https-status strong { font-weight: 500; font-size: 13.5px; }
.https-lock { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); align-self: flex-start; margin: 6px 4px 0 2px; }
.https-status.on .https-lock { background: var(--ok); }
.https-lock svg.i { display: none; }

/* Bedienelemente */
.btn { border-radius: var(--r-ctl); height: 30px; padding: 0 12px; font-size: 13.5px; }
.card-sec .btn { border-radius: var(--r-ctl); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12.5px; }
.btn.primary { font-weight: 500; }
.page .btn:not(.icon):not(:has(.label)) > svg.i { display: none; }
.btn.link { border-color: transparent; background: none; color: var(--accent); padding: 0 6px; }
.btn.link:hover:not(:disabled) { background: var(--accent-soft); }
.set-ctl .input, .input { border-radius: var(--r-ctl); }
.set-ctl .input { height: 32px; background: var(--surface); }
.segmented { padding: 2px; border-radius: 7px; }
.segmented button { padding: 5px 12px; border-radius: 5px; font-size: 13px; }
.segmented button[aria-checked="true"] { font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
input.switch { width: 34px; height: 20px; border-radius: 10px; }
input.switch::after { width: 14px; height: 14px; }
input.switch:checked::after { transform: translateX(14px); }

/* Status: Punkt + Text statt farbiger Pille; Schlagwörter als feiner Rahmen */
.chip { background: none !important; padding: 0; height: auto; font-weight: 500; font-size: 12.5px; color: var(--fg); gap: 7px; }
.chip::before { width: 7px; height: 7px; background: var(--muted); }
.chip.ok::before, .chip.perm-rw::before { background: var(--ok); }
.chip.warn::before, .chip.log-warn::before { background: var(--warn); }
.chip.crit::before, .chip.log-fail::before { background: var(--crit); }
.chip.info::before, .chip.perm-ro::before { background: var(--accent); }
.row-off .chip, .chip.plain:not(.info) { color: var(--muted); }
.chip.plain { border: 1px solid var(--line-ctl); border-radius: 4px; padding: 1px 7px; font-size: 12px; }
.chip.plain.info { color: var(--fg); }

/* Hinweise: Randlinie statt Kasten */
.page .note, .dlg .note { background: none; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; padding: 2px 0 2px 12px; color: var(--muted); }
.page .note.warn, .dlg .note.warn { border-left-color: var(--warn); color: var(--fg); }
.page .note > svg.i, .dlg .note > svg.i { display: none; }

/* Leere Listen: eine Zeile statt Symbol und Überschrift */
.page .empty { padding: 18px 0; gap: 4px; place-items: start; text-align: left; }
.page .empty > svg.i { display: none; }
.page .empty strong { font-size: 13.5px; font-weight: 500; }
.page .empty span { font-size: 12.5px; }

/* Tabellen */
table.grid th { background: transparent; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; }
table.grid td { padding: 9px 12px; }
.page table.grid th:first-child, .page table.grid td:first-child { padding-left: 0; }
.page table.grid th:last-child, .page table.grid td:last-child { padding-right: 0; }
.page table.grid tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) {
  .page table.grid td:last-child > .rowbtns, .fw-ord .btn { opacity: 0; transition: opacity var(--t-fast); }
  .page table.grid tr:hover td:last-child > .rowbtns, .page table.grid tr:focus-within td:last-child > .rowbtns,
  .fw-table tr:hover .fw-ord .btn, .fw-table tr:focus-within .fw-ord .btn { opacity: 1; }
}

/* Seitenleiste der Einstellungen */
.tabs { width: 200px; padding: 10px 8px; gap: 1px; }
.tab { height: 32px; padding: 0 10px; border-radius: var(--r-ctl); font-size: 13.5px; gap: 9px; }
.tab svg.i { width: 16px; height: 16px; }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--fg); font-weight: 500; }
.tab[aria-selected="true"] svg.i { color: var(--fg); }

/* Dialoge */
.dlg { border-radius: 10px; }
.dlg .dlg-actions .btn { min-width: 84px; justify-content: center; }
.dlg-tabs { margin-bottom: 4px; }
.fw-foot { margin: 0; padding: 10px 0 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.fw-default td { border-top: 1px solid var(--line); border-bottom: 0; }
.chip.ok, .chip.warn, .chip.crit, .chip.info, .chip.perm-rw, .chip.perm-ro, .chip.perm-none, .chip.log-fail, .chip.log-warn, .chip.unknown { color: var(--fg); }
.row-off .chip { color: var(--muted); }
.note { background: none; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; padding: 2px 0 2px 12px; color: var(--muted); }
.note.warn { border-left-color: var(--warn); background: none; color: var(--fg); }
.note > svg.i { display: none; }
@media (hover: hover) {
  .win table.grid td:last-child > .rowbtns { opacity: 0; transition: opacity var(--t-fast); }
  .win table.grid tr:hover td:last-child > .rowbtns, .win table.grid tr:focus-within td:last-child > .rowbtns { opacity: 1; }
}
.page .setup-lead { font-size: 13px; }
.stack-row > .segmented { align-self: flex-start; }
.day-pick span { width: 36px; height: 30px; border-radius: var(--r-ctl); font-weight: 500; }
.day-pick input:checked + span { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }

/* ---------- Snapshots ---------- */
.snap-err { display: block; margin-top: 3px; font-size: 12px; color: var(--crit); max-width: 280px; }
.snap-keep { display: grid; gap: 8px; }
.snap-keep label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.snap-keep .input { width: 84px; }
.snap-list { display: grid; max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-grp); }
.snap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.snap-row:last-child { border-bottom: 0; }
.snap-when { display: grid; gap: 1px; }
.snap-when strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.snap-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.snap-files { display: grid; max-height: 46vh; min-height: 120px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-grp); align-content: start; }
.snap-file { display: grid; grid-template-columns: 18px minmax(0, 1fr) 80px 130px; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.snap-file:last-child { border-bottom: 0; }
.snap-file small { text-align: right; }
.snap-name { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; padding: 0; color: var(--fg); text-align: left; cursor: pointer; text-decoration: none; font: inherit; }
.snap-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snap-name:hover span { text-decoration: underline; }
.snap-name svg.i { width: 16px; height: 16px; color: var(--muted); }
.snap-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 640px) { .snap-file { grid-template-columns: 18px minmax(0, 1fr) 70px; } }
.snap-keep label { font-weight: 400; font-size: 13.5px; }
.net-test-row.sub { padding-left: 18px; font-size: 13px; }
.net-test-row.sub .dot { width: 6px; height: 6px; }
.net-test .note { margin-top: 6px; }

/* ---------- Updates ---------- */
.osu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.osu-state { display: grid; gap: 3px; }
.osu-state .chip { font-size: 14px; }
.osu-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.osu-job { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.osu-list { padding: 10px 0; border-top: 1px solid var(--line); }
.osu-list summary, .osu-hrow summary { cursor: pointer; font-size: 13.5px; }
.osu-pkgs { display: grid; margin-top: 8px; max-height: 260px; overflow: auto; }
.osu-pkg { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.osu-pkg small { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osu-when { display: flex; gap: 8px; }
.osu-hist { display: grid; }
.osu-hrow { border-bottom: 1px solid var(--line); padding: 9px 0; }
.osu-hrow:last-child { border-bottom: 0; }
.osu-hrow summary { display: grid; grid-template-columns: 150px 100px 1fr; gap: 10px; list-style: none; }
.osu-hrow summary::-webkit-details-marker { display: none; }
.osu-hpk { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.osu-app { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .osu-hrow summary { grid-template-columns: 1fr; gap: 2px; } .osu-pkg { grid-template-columns: 1fr auto; } .osu-pkg small { grid-column: 1 / -1; text-align: left; } }
.osu-prog { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.osu-prog-top { display: flex; align-items: center; gap: 14px; }
.osu-pct { font-size: 26px; font-weight: 600; letter-spacing: -.02em; min-width: 72px; }
.osu-prog-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.osu-prog-txt strong { font-weight: 500; font-size: 13.5px; }
.osu-prog-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osu-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.osu-prog .bar-track i { transition: width .6s ease; }
.osu-prog.ok .bar-track i { background: var(--ok); }
.osu-prog.err .bar-track i { background: var(--crit); }
.osu-prog.ok .osu-pct { color: var(--ok); }
@media (max-width: 560px) { .osu-prog-top { flex-wrap: wrap; } .osu-count { width: 100%; } }
.osu-prog .bar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.osu-prog .bar-track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* ---------- Kontomenü: Neu starten / Herunterfahren ---------- */
body > .dlg-scrim { position: fixed; z-index: 2000; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.power-ov { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg, #000) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade var(--t-mid) var(--ease); }
.power-box { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 380px; padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.power-box strong { font-size: 17px; font-weight: 600; }
.power-box p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.power-spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin 1s linear infinite; margin-bottom: 4px; }
.power-spin.off { border-top-color: var(--warn); }
.power-spin.done { animation: none; border-color: var(--line-strong); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .power-spin { animation-duration: 3s; } }

/* ---------- Fotos ---------- */
.c-photos { background: linear-gradient(160deg, #ff8fa3 0%, #d6336c 55%, #7b3fe4 100%); }
.ph { display: grid; grid-template-columns: 208px minmax(0, 1fr); height: 100%; min-height: 0; position: relative; }
.ph.drop::after { content: "Zum Hochladen loslassen"; position: absolute; inset: 8px; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; pointer-events: none; z-index: 5; }
/* Navigation links (wie Synology Photos) */
.ph-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--surface-2); overflow-y: auto; }
.ph-nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: 500 13.5px var(--font); text-align: left; cursor: pointer; white-space: nowrap; }
.ph-nav-item svg.i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ph-nav-item:hover { background: var(--surface-3); }
.ph-nav-item[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.ph-nav-item[aria-current="true"] svg.i { color: var(--accent); }
.ph-nav-sp { flex: 1; min-height: 10px; }
.ph-mainc { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; min-height: 0; }
/* Werkzeugleiste */
.ph-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 56px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ph-bar.selecting { background: var(--accent-soft); }
.ph-title { margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.ph-sub { font-size: 12.5px; white-space: nowrap; }
.ph-selcount { font-weight: 600; font-size: 14px; margin-right: 4px; }
.ph-search { width: 220px; min-width: 120px; height: 32px; }
.ph-sizewrap { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ph-sizewrap svg.i { width: 15px; height: 15px; }
.ph-size { width: 90px; accent-color: var(--accent); }
.ph-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ph-status .bar-track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.ph-status .bar-track i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.ph-status .bar-track i.indet { animation: usb-indet 1.3s ease-in-out infinite; }
/* Inhalt + Zeitleiste */
.ph-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; }
.ph-scroll { position: relative; overflow-y: auto; overflow-x: hidden; min-height: 0; padding: 0 14px 24px 18px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.ph-scroll:focus { outline: none; }
.ph-canvas { position: relative; contain: layout; }
.ph-loading { padding: 40px 0; text-align: center; font-size: 13px; }
.ph-day { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.ph-day strong { font-size: 14px; font-weight: 600; }
.ph-day small { font-size: 12px; }
.ph-daychk { display: none; place-items: center; width: 22px; height: 22px; padding: 0; border: 2px solid var(--muted); border-radius: 50%; background: none; color: transparent; cursor: pointer; }
.ph-daychk svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.ph-day:hover .ph-daychk, .ph.selecting .ph-daychk { display: grid; }
.ph-day.all .ph-daychk { background: var(--accent); border-color: var(--accent); color: #fff; }
.ph-tile { position: absolute; left: 0; top: 0; padding: 0; overflow: hidden; background: var(--surface-3); cursor: pointer; border-radius: 2px; outline: none; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s ease, transform .2s var(--ease); }
.ph-tile img.in { opacity: 1; }
.ph-tile:focus-visible { box-shadow: 0 0 0 3px var(--accent) inset; }
.ph-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 34%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.ph-tile:hover::after, .ph.selecting .ph-tile::after { opacity: 1; }
.ph-chk { position: absolute; left: 7px; top: 7px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(0,0,0,.15); color: transparent; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ph-chk svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.ph-tile:hover .ph-chk, .ph.selecting .ph-chk { opacity: 1; }
.ph-tile.sel .ph-chk { background: var(--accent); border-color: #fff; color: #fff; }
.ph-tile.sel img { transform: scale(.88); border-radius: 4px; }
.ph-tile.sel { background: var(--accent-soft); }
.ph-favmark { position: absolute; left: 7px; bottom: 4px; color: #fff; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.6); display: none; }
.ph-tile.fav .ph-favmark { display: block; }
.ph-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.ph-badge { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.ph-badge svg.i { width: 13px; height: 13px; }
.ph-badge.sm { width: 16px; height: 16px; right: 3px; bottom: 3px; } .ph-badge.sm svg.i { width: 9px; height: 9px; }
.ph-scrub { position: relative; width: 52px; border-left: 1px solid var(--line); cursor: ns-resize; touch-action: none; user-select: none; }
.ph-scrub[hidden] { display: block; visibility: hidden; }
.ph-scrub-y { position: absolute; right: 8px; font: 500 11.5px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.ph-scrub:hover .ph-scrub-y { color: var(--fg); }
.ph-scrub-tip { position: absolute; right: 58px; z-index: 4; padding: 4px 10px; border-radius: 6px; background: var(--fg); color: var(--surface); font: 600 12px var(--font); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
.ph-empty { max-width: 460px; margin: 40px auto; }
.ph-crumb { display: flex; align-items: center; gap: 6px; padding: 12px 0 4px; margin-left: -6px; flex-wrap: wrap; }
.ph-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 10px 0 18px; }
.ph-folder, .ph-album { display: grid; gap: 3px; padding: 0; border: 0; background: none; text-align: left; color: var(--fg); cursor: pointer; font: inherit; min-width: 0; }
.ph-folder strong, .ph-album strong { font-weight: 500; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-folder small, .ph-album small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-cover { display: grid; gap: 2px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-3); place-items: center; color: var(--muted); }
.ph-cover.c2, .ph-cover.c3, .ph-cover.c4 { grid-template-columns: 1fr 1fr; place-items: stretch; }
.ph-cover.c3 img:first-child { grid-row: span 2; }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.ph-folder:hover .ph-cover, .ph-album:hover .ph-album-cover { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; padding: 16px 0; }
.ph-album-cover { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); color: var(--muted); }
.ph-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.ph-album-cover svg.i { width: 34px; height: 34px; }
.ph-album.add .ph-album-cover { border: 2px dashed var(--line); background: none; color: var(--accent); }
.ph-albhead { display: flex; align-items: center; gap: 8px; padding: 12px 0 2px; margin-left: -6px; flex-wrap: wrap; }
.ph-albpick { display: grid; gap: 6px; max-height: 360px; overflow-y: auto; }
.ph-albopt { display: grid; grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400; }
.ph-albopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ph-albopt img, .ph-albnew { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.ph-albopt div { display: grid; gap: 4px; min-width: 0; }
.ph-albopt small { font-size: 12px; }
.ph-dirs { display: grid; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-grp, 8px); margin-top: 8px; }
.ph-dir { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 400; cursor: pointer; }
.ph-dir:last-child { border-bottom: 0; }
.ph-dir svg.i { width: 15px; height: 15px; color: var(--muted); }
.ph-dir small { margin-left: auto; font-size: 11.5px; }
/* schmal: Navigation oben als Leiste */
.ph.narrow { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.ph.narrow .ph-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; }
.ph.narrow .ph-nav-item { width: auto; padding: 7px 10px; }
.ph.narrow .ph-nav-item span { font-size: 12.5px; }
.ph.narrow .ph-nav-sp { flex: 0 0 4px; min-height: 0; }
.ph.narrow .ph-search { width: 100%; order: 10; }
.ph.narrow .ph-sizewrap, .ph.narrow .ph-bar .btn .label { display: none; }
.ph.narrow .ph-scroll { padding: 0 8px 20px 10px; }
.ph.narrow .ph-scrub { width: 40px; }

/* ---------- Foto-Ansicht */
.phv { position: fixed; inset: 0; z-index: 9000; background: #000; color: #e8eaed; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade var(--t-mid) var(--ease); outline: none; }
.phv .dlg-scrim { z-index: 5; }
.phv-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(#000, rgba(0,0,0,.6)); transition: opacity .3s; }
.phv-title { display: grid; gap: 1px; min-width: 0; flex: 1; }
.phv-title strong { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phv-title small { color: #9aa3ad; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phv-acts { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.phv-zoom { font: 500 12px var(--font); color: #9aa3ad; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.phv-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: #e8eaed; cursor: pointer; text-decoration: none; }
.phv-btn:hover, .phv-btn.on { background: rgba(255, 255, 255, .14); }
.phv-heart { font-size: 20px; line-height: 1; }
.phv-heart.on { color: #ff5a7a; }
.phv-mid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; }
.phv-area { position: relative; display: grid; min-height: 0; min-width: 0; overflow: hidden; }
.phv-stage { display: grid; place-items: center; min-height: 0; padding: 4px 64px 8px; overflow: hidden; touch-action: none; }
.phv-stage.zoomed { cursor: grab; }
.phv-stage.zoomed:active { cursor: grabbing; }
.phv-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: filter .25s; transform-origin: center; user-select: none; }
.phv-img.dim { filter: blur(6px); }
.phv-novid { display: grid; gap: 10px; justify-items: center; max-height: 100%; }
.phv-novid p { margin: 0; color: #9aa3ad; font-size: 13px; }
.phv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 70px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 36px; line-height: 1; cursor: pointer; transition: opacity .3s; }
.phv-nav:hover { background: rgba(255, 255, 255, .18); }
.phv-nav.l { left: 10px; } .phv-nav.r { right: 10px; }
.phv-info { width: 300px; padding: 6px 18px 18px; border-left: 1px solid rgba(255, 255, 255, .1); background: #111316; overflow-y: auto; font-size: 13px; }
.phv-info h4 { margin: 8px 0 12px; font-size: 15px; font-weight: 600; }
.phv-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.phv-row svg.i { width: 18px; height: 18px; color: #9aa3ad; margin-top: 1px; }
.phv-row > div { display: grid; gap: 2px; min-width: 0; word-break: break-word; }
.phv-row small { color: #9aa3ad; font-size: 12px; }
.phv-row a, .phv-row .btn.link { color: #6cb4ff; justify-self: start; padding: 2px 0; font-size: 12.5px; }
.phv-strip { display: flex; gap: 4px; justify-content: safe center; padding: 8px 12px 10px; overflow-x: auto; background: linear-gradient(rgba(0,0,0,.6), #000); transition: opacity .3s; scrollbar-width: none; }
.phv-thumb { position: relative; flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; }
.phv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phv-thumb:hover { opacity: .9; }
.phv-thumb.on { border-color: #fff; opacity: 1; }
.phv.slideshow .phv-strip, .phv.slideshow .phv-info { display: none; }
.phv.idle .phv-top, .phv.idle .phv-nav { opacity: 0; }
.phv.idle { cursor: none; }
@media (max-width: 700px) {
  .phv-stage { padding: 0 0 6px; } .phv-nav { display: none; } .phv-zoom, .phv-acts .phv-btn:nth-child(2), .phv-acts .phv-btn:nth-child(3) { display: none; }
  .phv-info { position: absolute; inset: auto 0 0 0; width: auto; max-height: 55%; border: 0; border-top: 1px solid rgba(255,255,255,.1); z-index: 3; }
}

/* ---------- Farbige App-Symbole ---------- */
.appicon.art { background: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .22); padding: 0; overflow: hidden; }
.appicon.art svg { display: block; width: 100%; height: 100%; }
.appicon.art.sm { box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.dicon .appicon.art { width: 62px; height: 62px; border-radius: 15px; }
.tile .appicon.art { width: 64px; height: 64px; border-radius: 15px; }
.dicon:hover .appicon.art { filter: brightness(1.06) saturate(1.05); }

/* Freigaben: So verbinden */
.share-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 12px 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: var(--surface-2); }
.share-conn-lbl { font-weight: 600; margin-right: 4px; }
.share-conn .btn.mono { font-size: 12.5px; }
.share-conn-hint { flex-basis: 100%; font-size: 12.5px; }

/* Hauptmenü wie bei UGREEN: dunkel verschwommen, kompaktes Suchfeld mit Lupe, 7 Spalten */
.pop.launcher { background: rgba(8, 12, 28, .62); -webkit-backdrop-filter: blur(48px) saturate(1.3); backdrop-filter: blur(48px) saturate(1.3); padding-top: 48px; gap: 40px; }
.launcher-sbox { position: relative; display: block; width: min(248px, 100%); flex: none; }
.launcher-sbox svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: rgba(255, 255, 255, .8); pointer-events: none; }
.launcher-search { width: 100%; height: 32px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08);
  padding: 0 12px 0 36px; font-size: 14px; color: #fff; caret-color: #fff; }
.launcher-search:focus { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); outline: none; }
.launcher-search::placeholder { color: rgba(255, 255, 255, .55); }
.launcher-search::-webkit-search-cancel-button { filter: invert(1); opacity: .7; }
.launcher-grid { grid-template-columns: repeat(auto-fill, 108px); gap: 22px 0; width: min(756px, 100%); align-content: start; }
.launcher-grid .tile { gap: 12px; padding: 10px 4px 8px; font-size: 13px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.launcher-grid .tile .appicon { width: 50px; height: 50px; border-radius: 12px; transition: transform .15s var(--ease); }
.launcher-grid .tile:hover { background: none; }
.launcher-grid .tile:hover .appicon { transform: scale(1.08); }
.launcher-grid .tile.hit { background: rgba(255, 255, 255, .14); }
.launcher-grid .tile span { line-height: 1.25; }
.launcher-grid .tile-pin { top: auto; bottom: auto; left: calc(50% + 15px); right: auto; top: 44px; width: 13px; height: 13px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), inset 0 0 0 3px #c9d3e0; }
.launcher-none { color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: -10px; }
.launcher-hint { display: none; }
@media (max-width: 700px) { .launcher-grid { grid-template-columns: repeat(auto-fill, 88px); gap: 14px 0; } .pop.launcher { padding-top: 24px; gap: 24px; } }
.share-names { display: inline-flex; gap: 4px; margin-left: 6px; }

/* Systemprüfung */
.diag-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.diag-sum > svg.i { width: 26px; height: 26px; }
.diag-sum.ok > svg.i { color: var(--ok); } .diag-sum.warn > svg.i { color: var(--amber); } .diag-sum.err > svg.i { color: var(--crit); }
.diag-sum strong { display: block; font-size: 15px; }
.diag-sum span { font-size: 12.5px; color: var(--muted); }
.diag-list { display: grid; padding: 4px 16px 10px; }
.diag-row { display: grid; grid-template-columns: 92px minmax(140px, 240px) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.diag-row:last-child { border-bottom: 0; }
.diag-row .chip { justify-self: start; }
@media (max-width: 700px) { .diag-row { grid-template-columns: auto 1fr; } .diag-row > .muted { grid-column: 1 / -1; } }

/* Foto-Ansicht: Bild füllt die Bühne (auch die kleine Vorschau), Ladekreis */
.phv-stage { position: relative; }
.phv-stage > .phv-img { position: absolute; left: 64px; top: 4px; width: calc(100% - 128px); height: calc(100% - 12px); max-width: none; max-height: none; object-fit: contain; }
.phv-img.dim { filter: blur(14px) brightness(.85); }
.phv-stage > video.phv-img { background: #000; }
.phv-spin { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: phv-rot .8s linear infinite; z-index: 2; }
.phv-spin[hidden] { display: none; }
@keyframes phv-rot { to { transform: rotate(360deg); } }
.phv-stage .phv-novid { position: absolute; inset: 4px 64px 8px; display: grid; place-items: center; }
.phv-stage .phv-novid .phv-img { position: static; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 40px); }
@media (max-width: 700px) { .phv-stage > .phv-img { left: 0; width: 100%; } }
.ph-album.dropon .ph-album-cover { outline: 3px solid var(--accent); outline-offset: 3px; background: var(--accent-soft); }
.ph.drop:has(.ph-album.dropon)::after { content: none; }

/* Fotos: keine Systemscrollleiste – rechts navigiert die Zeitleiste (wie Synology Photos) */
.ph-scroll { scrollbar-width: none; scrollbar-gutter: auto; }
.ph-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ph-scrub { width: 56px; border-left: 0; background: transparent; }
.ph-scrub::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 10px; width: 2px; border-radius: 1px; background: var(--line); }
.ph-scrub-thumb { position: absolute; top: 0; right: 7px; width: 8px; height: 40px; border-radius: 4px; background: var(--muted); opacity: .55; transition: opacity .15s, background .15s; pointer-events: none; }
.ph-scrub:hover .ph-scrub-thumb { opacity: .9; background: var(--accent); }
.ph-scrub-y { right: 22px; }
.ph.narrow .ph-scrub { width: 46px; }
/* Dialoge über der Foto-Ansicht: eigene (dunkle) Schrift statt der hellen Schrift der Ansicht erben */
.phv .dlg-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); color: var(--fg); }
.phv .dlg { color: var(--fg); background: var(--surface); }
.phv .dlg h3, .phv .dlg p, .phv .dlg label, .phv .dlg strong { color: var(--fg); }
.phv .dlg .muted, .phv .dlg small { color: var(--muted); }

/* ---------- Einstellungen: moderne Seitenleiste (Gruppen, farbige Symbole, Suche) ---------- */
.tabs.snav { width: 236px; padding: 12px 10px 16px; gap: 1px; }
.snav-dev { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; }
.snav-dev:hover { border-color: var(--accent); }
.snav-dev-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(160deg, #475569, #1e293b); color: #fff; flex: none; }
.snav-dev-ic svg.i { width: 22px; height: 22px; }
.snav-dev-t { display: grid; gap: 1px; min-width: 0; }
.snav-dev-t strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav-dev-t small { font-size: 11.5px; color: var(--muted); }
.snav-sbox { position: relative; display: block; margin-bottom: 8px; }
.snav-sbox svg.i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.snav-search { width: 100%; height: 32px; padding: 0 10px 0 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.snav-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.snav-group { margin: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.snav-group[hidden] { display: none; }
.snav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: 450 13.5px var(--font); text-align: left; cursor: pointer; }
.snav-item:hover { background: var(--surface-3); }
.snav-item[aria-selected="true"] { background: var(--accent); color: #fff; }
.snav-item[hidden] { display: none; }
.snav-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--c); color: #fff; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.snav-ic svg.i { width: 14px; height: 14px; stroke-width: 2; }
.snav-item[aria-selected="true"] .snav-ic { box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.snav-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--crit); color: #fff; font: 600 11px/18px var(--font); text-align: center; }
.snav-item[aria-selected="true"] .snav-badge { background: #fff; color: var(--accent); }
.snav-none { padding: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .tabs.snav { width: auto; }
  .snav-dev, .snav-sbox, .snav-group, .snav-none { display: none; }
  .snav-item { width: auto; flex: none; }
}

/* ---------- Konto ---------- */
.page.acc { max-width: 760px; }
.acc-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); }
.acc-avatar { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; flex: none; color: #fff; font: 600 28px var(--font-display);
  background: linear-gradient(145deg, #60a5fa, #2563eb); box-shadow: 0 6px 18px color-mix(in srgb, #2563eb 35%, transparent); }
.acc-who { flex: 1; min-width: 0; display: grid; gap: 3px; }
.acc-who h2 { margin: 0; font: 600 22px/1.2 var(--font-display); }
.acc-who > span { color: var(--muted); font-size: 13.5px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.acc-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; }
.acc-link:hover { border-color: var(--accent); }
.acc-link .snav-ic { width: 32px; height: 32px; border-radius: 9px; }
.acc-link .snav-ic svg.i { width: 17px; height: 17px; }
.acc-link > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.acc-link strong { font-size: 13.5px; font-weight: 600; }
.acc-link small { font-size: 12px; color: var(--muted); }
.acc-link > svg.i:last-child { width: 16px; height: 16px; color: var(--muted); }
.acc-fields { display: grid; gap: 14px; padding: 8px 0 4px; max-width: 420px; }
.acc-field { display: grid; gap: 6px; font-weight: 400; }
.acc-lbl { font-size: 13px; font-weight: 500; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { width: 100%; padding-right: 40px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--fg); background: var(--surface-3); }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 4px; align-items: center; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--surface-3); }
.pw-meter small { font-size: 11.5px; color: var(--muted); min-width: 48px; text-align: right; }
.pw-meter[data-lv="1"] i:nth-child(1) { background: var(--crit); }
.pw-meter[data-lv="2"] i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-lv="3"] i:nth-child(-n+3) { background: var(--ok); }
.acc-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin: 0; }
.acc-note svg.i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
@media (max-width: 700px) { .acc-hero { flex-wrap: wrap; } }
.pw-meter { min-height: 16px; } .pw-meter small { display: block; line-height: 16px; height: 16px; }

/* Einstellungen: weiche, farbige Symbole ohne Kachel; Auswahl hellblau statt kräftig */
.snav-art, .acc-art { display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.snav-art svg, .acc-art svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .14)); }
.acc-art { width: 36px; height: 36px; } .acc-art svg { width: 32px; height: 32px; }
.snav-item { min-height: 38px; padding: 5px 10px; gap: 12px; border-radius: 10px; }
.snav-item[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--fg); font-weight: 600; }
.snav-item[aria-selected="true"] .snav-badge { background: var(--crit); color: #fff; }
.snav-group { display: flex; align-items: center; gap: 6px; margin: 14px 10px 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.snav-sbox + .snav-group { border-top: 0; padding-top: 0; margin-top: 6px; }
.pw-meter[data-lv="0"] { visibility: hidden; } .pw-meter i { align-self: center; height: 4px !important; display: block; }
.acc-field .pw-meter { display: grid !important; grid-template-columns: 1fr 1fr 1fr 52px; gap: 4px; } .acc-field .pw-meter i { width: 100%; }

/* =====================================================================
   Feine Rahmen überall (wie die Karten im Konto): weiche Linie, leichter Schatten,
   einheitliche Rundung, bei anklickbaren Karten sanftes Anheben beim Darüberfahren
   ===================================================================== */
:root {
  --frame: rgba(15, 23, 42, .075);
  --frame-hover: color-mix(in srgb, var(--accent) 38%, transparent);
  --elev-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 10px rgba(15, 23, 42, .035);
  --elev-2: 0 2px 6px rgba(15, 23, 42, .06), 0 12px 28px rgba(15, 23, 42, .08);
  --r-card: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --frame: rgba(255, 255, 255, .08); --elev-1: 0 1px 2px rgba(0, 0, 0, .3); --elev-2: 0 6px 20px rgba(0, 0, 0, .4); }
}
:root[data-theme="dark"] { --frame: rgba(255, 255, 255, .08); --elev-1: 0 1px 2px rgba(0, 0, 0, .3); --elev-2: 0 6px 20px rgba(0, 0, 0, .4); }

/* Karten und Flächen */
.card-sec, .page .card-sec > .card-body, .cards > .card, .app, .acc-link, .acc-hero, .diag-sum, .share-conn, .snav-dev, .ui-opt, .dlg, .ph-albopt {
  border: 1px solid var(--frame) !important;
  border-radius: var(--r-card);
  box-shadow: var(--elev-1);
}
.card-sec, .page .card-sec > .card-body, .app, .acc-link, .diag-sum, .share-conn, .snav-dev { background: var(--surface); }
/* In Seiten ist nur die Liste umrahmt – der Titel steht frei darüber (kein doppelter Rahmen) */
.page .card-sec:has(> .card-body) { border: 0 !important; box-shadow: none; border-radius: 0; background: none; }
.dlg { border-radius: 16px; box-shadow: var(--elev-2); }
.acc-hero { border-radius: 18px; }
.note { border: 1px solid var(--frame); border-radius: 12px; }
.note.warn { border-color: color-mix(in srgb, var(--amber) 30%, transparent); }

/* anklickbare Karten: sanft anheben */
.acc-link, .app, .snav-dev, .ui-opt, .ph-album, .ph-folder { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.acc-link:hover, .app:hover, .snav-dev:hover, .ui-opt:hover { transform: translateY(-1px); box-shadow: var(--elev-2); border-color: var(--frame-hover) !important; }
.ph-album:hover, .ph-folder:hover { transform: translateY(-2px); }
.ph-folder:hover .ph-cover, .ph-album:hover .ph-album-cover { outline: 0; box-shadow: 0 0 0 2px var(--accent), var(--elev-2); }
.ph-cover, .ph-album-cover { border-radius: 14px; box-shadow: var(--elev-1); }

/* Trennlinien innerhalb der Karten weicher */
.set-row, .diag-row, .phv-row, .card-sec > header, table.grid td, table.grid th { border-color: var(--frame); }

/* Eingabefelder */
.input, .snav-search, .store-search, .ph-search { border-color: var(--frame); border-radius: 9px; box-shadow: inset 0 1px 1px rgba(15, 23, 42, .03); transition: border-color .15s, box-shadow .15s; }
.input:hover, .snav-search:hover { border-color: color-mix(in srgb, var(--fg) 18%, transparent); }
.input:focus, .snav-search:focus, .store-search:focus, .ph-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Konto: Schnellzugriffe in drei gleich breiten Spalten (schmal untereinander) */
.page.acc { container-type: inline-size; }
.acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 640px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-link { padding: 14px 16px; border-radius: 14px; }

/* Schlanke, unaufdringliche Scrollleisten überall (statt der breiten dunklen Windows-Leiste) */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 22%, transparent) transparent; }
*:hover { scrollbar-color: color-mix(in srgb, var(--fg) 34%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--fg) 22%, transparent); border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--fg) 40%, transparent); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.ph-scroll { scrollbar-width: none; }
.phv, .phv * { scrollbar-color: rgba(255, 255, 255, .25) transparent; }

/* Einstellungen: Menü wie DSM 7 – gleiche Schrift und Größe, Gruppen zum Zuklappen */
.tabs.snav { width: 252px; padding: 12px 10px 16px; }
.snav-item { min-height: 42px; padding: 6px 12px; gap: 13px; font: 400 14.5px/1.3 var(--font); color: var(--fg); border-radius: 10px; }
.snav-item[aria-selected="true"] { font-weight: 400; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--fg); }
.snav-item.folded { display: none; }
.snav-item:not(.folded)[hidden] { display: none; }
.snav-art { width: 26px; height: 26px; } .snav-art svg { width: 24px; height: 24px; }
.snav-group { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 2px; padding: 12px 12px 6px; border: 0; border-top: 1px solid var(--frame); border-radius: 0;
  background: none; color: var(--muted); font: 600 13.5px/1.2 var(--font); text-transform: none; letter-spacing: 0; cursor: pointer; text-align: left; }
.snav-group svg.i { width: 15px; height: 15px; transform: rotate(-90deg); transition: transform .18s var(--ease); color: var(--muted); }
.snav-group.closed svg.i { transform: rotate(90deg); }
.snav-group:hover { color: var(--fg); }
.snav-sbox + .snav-group { border-top: 0; padding-top: 6px; }
.snav-dev-t strong { font-size: 14.5px; }
.snav-search { font-size: 14px; height: 34px; }
.snav.searching .snav-item.folded:not([hidden]) { display: flex; }

/* ---------- Speicher-Manager: Laufwerksschächte hell und modern ---------- */
.st-chassis { width: 340px; padding: 16px; gap: 10px; border-radius: 18px; color: var(--fg);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 70%, var(--surface)));
  border: 1px solid var(--frame); box-shadow: var(--elev-1); }
.st-chassis.generic { width: 340px; }
.st-chassis-head { display: flex; align-items: center; gap: 12px; padding: 2px 2px 6px; }
.st-chassis-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #e8edf5, #cfd8e6); color: #4b5a72; flex: none; }
.st-chassis-ic svg.i { width: 22px; height: 22px; }
.st-chassis-head div { display: grid; gap: 1px; }
.st-chassis-head strong { font-size: 14px; font-weight: 600; }
.st-chassis-head small { font-size: 12px; color: var(--muted); }
.st-odd { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--fg) 18%, transparent); background: transparent; color: var(--muted); font-size: 12.5px; }
.st-odd b { font-weight: 500; }
.st-odd.on { border-style: solid; border-color: var(--frame); background: var(--surface); color: var(--fg); box-shadow: var(--elev-1); cursor: pointer; }
.st-bays { gap: 8px; padding: 0; background: none; }
.st-bay { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: auto; min-height: 58px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid var(--frame); background: var(--surface); color: var(--fg); text-align: left; box-shadow: var(--elev-1);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.st-bay.on { background: var(--surface); border-color: var(--frame); color: var(--fg); cursor: pointer; }
.st-bay.on.warn, .st-bay.on.crit, .st-bay.on.unknown { background: var(--surface); }
.st-bay.on:hover { filter: none; transform: translateY(-1px); box-shadow: var(--elev-2); border-color: var(--frame-hover); }
.st-bay.on.warn { border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.st-bay.on.crit { border-color: color-mix(in srgb, var(--crit) 50%, transparent); background: color-mix(in srgb, var(--crit) 5%, var(--surface)); }
.st-bay.empty { grid-template-columns: 26px 1fr; min-height: 46px; background: transparent; box-shadow: none; border: 1px dashed color-mix(in srgb, var(--fg) 16%, transparent); }
.st-bay-no { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.st-bay.on .st-bay-no { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.st-bay-free { font-size: 13px; color: var(--muted); }
/* gezeichnete Festplatte / SSD */
.st-drive { width: 34px; height: 26px; border-radius: 5px; position: relative; flex: none;
  background: linear-gradient(180deg, #e9edf3, #c9d2de); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
.st-drive.hdd::before { content: ""; position: absolute; left: 5px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, #8a96a8 0 2px, #dfe5ee 2.5px 6px, #b7c2d1 6.5px 100%); }
.st-drive.hdd::after { content: ""; position: absolute; right: 4px; top: 5px; width: 3px; height: 16px; border-radius: 2px; background: #9aa7b8; }
.st-drive.ssd { background: linear-gradient(160deg, #3b4558, #232a37); }
.st-drive.ssd::before { content: ""; position: absolute; inset: 7px 6px; border-radius: 3px; background: linear-gradient(90deg, #5b9cff, #8b6cff); opacity: .9; }
.st-bay-txt { display: grid; gap: 2px; line-height: 1.2; font-size: 14px; min-width: 0; }
.st-bay-txt b { font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.st-bay-txt em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.st-bay-txt small { font-size: 11.5px; color: var(--muted); opacity: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bay-st { display: grid; justify-items: end; gap: 3px; }
.st-bay-st small { font-size: 11px; color: var(--muted); }
.st-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.st-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pill.ok { background: var(--ok-soft); color: var(--ok); }
.st-pill.warn { background: var(--warn-soft); color: color-mix(in srgb, var(--amber) 80%, #000); }
.st-pill.crit { background: var(--crit-soft); color: var(--crit); }
.st-bay .st-led { display: none; }
.st-legend { justify-content: flex-start; gap: 14px; font-size: 12px; color: var(--muted); opacity: 1; padding: 4px 2px 0; }
.st-legend span::before { width: 8px; height: 8px; border-radius: 50%; }
.st-legend .ok::before { background: var(--ok); } .st-legend .warn::before { background: var(--amber); } .st-legend .crit::before { background: var(--crit); }
.st-legend .empty::before { background: transparent; border: 1px dashed var(--muted); }
@media (max-width: 700px) { .st-chassis, .st-chassis.generic { width: 100%; } }
.st-chassis, .st-chassis.generic { width: 370px; }
.st-bay.empty { display: grid; align-items: center; height: 48px; min-height: 48px; padding: 0 12px; }
.st-bay.empty .st-bay-no { display: grid; place-items: center; }
.st-legend { flex-wrap: nowrap; }
.st-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st-legend span::before { margin: 0; flex: none; }

.fm-sysrow td { padding: 10px 14px !important; border-bottom: 0 !important; }
.fm-sysrow .btn.link { color: var(--muted); font-size: 12.5px; }
/* Ankreuzfelder überall gleich: weißes Kästchen mit feinem Rand, ausgewählt blau mit Haken */
input[type=checkbox]:not(.switch) { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border-radius: 5px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--fg) 28%, transparent); background: var(--surface); vertical-align: middle; transition: background .12s, border-color .12s; position: relative; }
input[type=checkbox]:not(.switch):hover { border-color: var(--accent); }
input[type=checkbox]:not(.switch):checked, input[type=checkbox]:not(.switch):indeterminate { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:not(.switch):checked::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type=checkbox]:not(.switch):indeterminate::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 2px; background: #fff; border-radius: 1px; }
input[type=checkbox]:not(.switch):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fm-list input[type=checkbox] { width: 18px; height: 18px; }

/* =========================================================== Transparenz wie macOS/DSM 7.2
   Durchscheinend sind nur Titelleiste und Seitenleisten. Der Inhaltsbereich bleibt fast deckend,
   Karten sind deckend – so färbt das Hintergrundbild Zahlen, Diagramme und Texte nicht mehr ein. */
:root[data-glass] .win .win-body:not(:has(> .tabs)),
:root[data-glass] .win .win-body:has(> .tabs) > .pane {
  background: color-mix(in srgb, var(--surface-base) calc((var(--win-alpha, 1) * .15 + .85) * 100%), transparent);
}
:root[data-glass] .win .win-body:has(> .tabs) > .pane:has(> .page) {
  background: color-mix(in srgb, var(--page-bg-base) calc((var(--win-alpha, 1) * .15 + .85) * 100%), transparent);
}
:root[data-glass] .win .card, :root[data-glass] .win .page .card-sec > .card-body, :root[data-glass] .win .st-bay,
:root[data-glass] .win table.grid {
  background: color-mix(in srgb, var(--surface-base) 88%, transparent);
}
:root[data-glass] .win .mon-head { background: color-mix(in srgb, var(--surface-base) 55%, transparent); }
:root[data-glass] .win .track { background: color-mix(in srgb, var(--surface-3-base) 90%, transparent); }
/* Abschnitte (Überschrift + Karte) selbst ohne Fläche – sonst entsteht hinter der Überschrift ein Kasten */
:root[data-glass] .win .page .card-sec:has(> .card-body) { background: transparent; }
:root[data-glass] .win .card-sec { background: color-mix(in srgb, var(--surface-base) 92%, transparent); }
:root[data-glass] .win .page .card-sec:has(> .card-body) { background: transparent; box-shadow: none; }
.https-status.on { border-color: var(--line); }
.ph-albdir { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; } .ph-albdir svg.i { width: 15px; height: 15px; color: #d99a1e; } .ph-albdir:hover { color: var(--accent); }

/* =========================================================== Dateimanager wie File Station */
.fm-fwd svg.i, .fmv-nav.next svg.i { transform: scaleX(-1); }
.fm-searchwrap { position: relative; display: flex; align-items: center; width: 210px; flex: none; }
.fm-searchwrap > svg.i { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.fm-search { padding-left: 32px !important; height: 34px; width: 100%; }
.fm-list th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.fm-list th.sortable:hover { color: var(--fg); }
.fm-list th.on { color: var(--accent); }
.sort-ar { font-size: 9px; margin-left: 5px; vertical-align: 1px; }
.fm-list td.type, .fm-list th.type { white-space: nowrap; color: var(--muted); width: 1%; }
.fm-list td.loc { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.fm-list td.loc a { color: var(--muted); text-decoration: none; }
.fm-list td.loc a:hover { color: var(--accent); text-decoration: underline; }
.fm-dirlink { display: inline-block; vertical-align: middle; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; cursor: pointer; }
.fm-dirlink:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fm-list tbody tr { cursor: default; }
.fm-list tbody tr.dragging td, .fm-tile.dragging { opacity: .45; }
.fm-list tbody tr.droptarget td { background: var(--accent-soft) !important; box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
.fm-side button.droptarget, .crumbs button.droptarget { background: var(--accent-soft); outline: 1px dashed var(--accent); }
.ficon.k-image { color: #2f9e6e; } .ficon.k-video { color: #d1495b; } .ficon.k-audio { color: #8b5cf6; }
.ficon.k-pdf { color: #e03e2d; } .ficon.k-doc { color: #2b6cd4; } .ficon.k-sheet { color: #1f9254; } .ficon.k-slide { color: #e0702d; }
.ficon.k-archive { color: #a67c2e; } .ficon.k-text { color: #64748b; } .ficon.k-disk, .ficon.k-app { color: #475569; }
.fm-searchbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; background: var(--accent-soft); color: var(--fg); border-bottom: 1px solid var(--line); }
.fm-searchbar svg.i { width: 15px; height: 15px; color: var(--accent); }
.fm-searchbar span { flex: 1; min-width: 0; }
.fm-sysrow { padding: 10px 14px; }
/* Kachelansicht */
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 6px; padding: 12px; align-content: start; }
.fm-tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 8px 8px; border-radius: 10px; border: 1px solid transparent; cursor: default; user-select: none; min-width: 0; }
.fm-tile:hover { background: var(--surface-2); }
.fm-tile.sel { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.fm-tile.droptarget { background: var(--accent-soft); border-color: var(--accent); border-style: dashed; }
.fm-tile > input[type=checkbox] { position: absolute; top: 8px; left: 8px; z-index: 1; opacity: 0; transition: opacity var(--t-fast, .12s); }
.fm-tile:hover > input, .fm-tile.sel > input { opacity: 1; }
.fm-thumb { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; overflow: hidden; }
.fm-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.fm-thumb .ficon { width: 56px; height: 56px; stroke-width: 1.3; }
.fm-tile.k-dir .fm-thumb .ficon { width: 70px; height: 70px; }
.fm-play { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; color: #fff; }
.fm-play svg.i { width: 14px; height: 14px; fill: currentColor; }
.fm-tname { width: 100%; text-align: center; font-size: 12.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
/* Ziel wählen */
.fm-pick-path { font-weight: 600; font-size: 13px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.fm-pick { max-height: 300px; min-height: 160px; overflow: auto; display: grid; align-content: start; gap: 1px; }
.fm-pick button { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.fm-pick button:hover { background: var(--surface-2); }
/* Eigenschaften */
.fm-props-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fm-props-head .ficon { width: 38px; height: 38px; }
.fm-props-head strong { display: block; word-break: break-all; }
.fm-props { display: grid; gap: 2px; min-width: min(460px, 70vw); }
.fm-prow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 6px 0; font-size: 13.5px; align-items: center; }
.fm-prow > span:last-child { display: flex; align-items: center; gap: 4px; word-break: break-all; }
.fm-prow .mono { font-size: 12.5px; }
/* Vorschau */
.fmv { position: absolute; inset: 0; z-index: 50; background: rgba(12, 14, 18, .94); display: grid; grid-template-rows: auto minmax(0, 1fr); color: #fff; outline: none; animation: fade var(--t-mid) var(--ease); }
.fmv-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; }
.fmv-bar .btn { color: #fff; }
.fmv-bar .btn:hover { background: rgba(255, 255, 255, .12); }
.fmv-title { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.fmv-stage { min-height: 0; display: grid; place-items: center; padding: 0 56px 18px; }
.fmv-stage img, .fmv-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.fmv-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 4px; }
.fmv-text { width: 100%; height: 100%; margin: 0; overflow: auto; background: #fff; color: #1d2430; padding: 16px 18px; border-radius: 6px; font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.fmv-audio { display: grid; justify-items: center; gap: 14px; }
.fmv-audio > svg.i { width: 72px; height: 72px; opacity: .8; }
.fmv-msg { display: grid; justify-items: center; gap: 12px; opacity: .85; }
.fmv-msg .ficon { width: 64px; height: 64px; }
.fmv-nav { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fmv-nav:hover { background: rgba(255, 255, 255, .24); }
.fmv-nav.prev { left: 8px; } .fmv-nav.next { right: 8px; }
@media (max-width: 760px) {
  .fm-searchwrap { width: 130px; }
  .fm-list td.type, .fm-list th.type, .fm-list td.loc, .fm-list th.loc { display: none; }
}
.fm-pval { min-width: 0; flex: 1; } .fm-prow .btn.icon { flex: none; }

/* ---------- Dateimanager: farbige Symbole und kompakte Werkzeugleiste */
.ficon.fx { width: 24px; height: 24px; flex: none; color: initial; }
.fm-list td.name .ficon.fx { margin-right: 10px; vertical-align: middle; }
.fm-side .ficon.fx { width: 20px; height: 20px; }
.fm-pick .ficon.fx { width: 22px; height: 22px; }
.fm-thumb .ficon.fx.big { width: 76px; height: 76px; filter: drop-shadow(0 3px 6px rgba(120, 80, 0, .12)); }
.fm-thumb .ficon.fx.big:not(.dir) { width: 62px; height: 62px; filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .1)); }
.fm-props-head .ficon.fx { width: 44px; height: 44px; }
.fm-list td.name { padding-top: 7px; padding-bottom: 7px; }
.fm-actions { flex-wrap: nowrap; gap: 8px; }
.fm-group { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fm-ib { width: 34px; height: 32px; border: 0 !important; background: transparent; border-radius: 8px; color: var(--fg); }
.fm-ib:hover:not(:disabled) { background: var(--surface-3); }
.fm-ib:disabled { opacity: .35; }
.fm-ib.danger { width: 38px; height: 36px; border: 1px solid color-mix(in srgb, var(--crit) 30%, transparent) !important; color: var(--crit); background: transparent; }
.fm-ib.danger:hover:not(:disabled) { background: var(--crit-soft); }
.fm-actions .btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.fm-actions .btn.soft:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ficon.fx:not(.dir) path:first-child { fill: #e8edf3; } }
:root[data-theme="dark"] .ficon.fx:not(.dir) path:first-child { fill: #e8edf3; }

/* =========================================================== Einheitliches Design aller Fenster (wie Dateimanager)
   Seitenleiste mit farbigen Symbolen, weiche Sekundär-Knöpfe, luftige Tabellen mit Symbolen in der ersten Spalte */
.tabs:not(.snav) { width: 212px; padding: 12px 10px; gap: 2px; }
.tabs:not(.snav) .tab { height: 40px; padding: 0 10px; gap: 11px; font-size: 14px; border-radius: 9px; color: var(--fg); font-weight: 450; }
.tabs:not(.snav) .tab:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.tabs:not(.snav) .tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tabs:not(.snav) .tab svg.i { width: 18px; height: 18px; }
.tab-art { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.tab-art svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .14)); }
.tab-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-side button { height: 40px; font-size: 14px; border-radius: 9px; gap: 11px; padding: 0 10px; }
.fm-side button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Werkzeugleisten: Hauptaktion blau, weitere Aktionen weich hellblau (wie „Neuer Ordner“) */
.win .toolbar > .btn:not(.primary):not(.danger):not(.ghost):not(.icon):not(.link),
.win .toolbar > .rowbtns > .btn:not(.primary):not(.danger):not(.ghost):not(.icon):not(.link) {
  background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 500;
}
.win .toolbar > .btn:not(.primary):not(.danger):not(.ghost):not(.icon):not(.link):hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.win .toolbar > .btn:not(.primary):not(.danger):not(.ghost):not(.icon):not(.link) svg.i { color: currentColor; }
.win .toolbar > .btn.danger:not(.solid) { background: var(--crit-soft); border-color: transparent; }
.win .toolbar { padding: 10px 12px; gap: 8px; }
.win .toolbar select, .win .toolbar .input { height: 36px; border-radius: 9px; }

/* Tabellen: mehr Luft, ruhige Kopfzeile, weiche Hervorhebung */
.win table.grid th { font-size: 11.5px; letter-spacing: .06em; padding-top: 12px; padding-bottom: 10px; }
.win table.grid tbody td { padding-top: 11px; padding-bottom: 11px; }
.win table.grid tbody tr { transition: background var(--t-fast, .12s); }
.win table.grid tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.share-name .ficon.fx { width: 26px; height: 26px; margin-right: 2px; }
.unshared-row .ficon.fx { width: 26px; height: 26px; }
.ctr-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 3px rgba(15, 23, 42, .18); background-image: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 60%) !important; }
.avatar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 3px rgba(15, 23, 42, .15); }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
/* Karten in Apps (Datensicherung usw.): Aktionen weich statt umrandet */
.bk-actions .btn:not(.primary):not(.danger) { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.bk-actions .btn:not(.primary):not(.danger):hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.bk-actions .btn.danger:not(.solid) { background: var(--crit-soft); border-color: transparent; }

/* =========================================================== Fensterknöpfe wie DSM 7: ? | – ☐ ✕ (fein, grau, eckig weich) */
.win-bar { padding-right: 8px; }
.win-ctl { width: 30px; height: 28px; border-radius: 6px; color: #8a94a3; transition: background var(--t-fast, .12s), color var(--t-fast, .12s); }
.win-ctl svg.i { width: 16px; height: 16px; stroke-width: 1.5; }
.win-ctl:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.win-ctl.close:hover { background: #e5484d; color: #fff; }
.win-ctl.help svg.i { width: 15px; height: 15px; }
.win-sep { width: 1px; height: 16px; background: var(--line-strong, rgba(0, 0, 0, .14)); margin: 0 5px; flex: none; }
.win:not(.active) .win-ctl { color: #b0b7c2; }
.win-help h4 { margin: 14px 0 6px; font-size: 13px; }
.win-help p { margin: 0 0 8px; line-height: 1.55; }
.win-help ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.win-help kbd { font: 600 11.5px var(--font); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }

/* Systemprüfung: Ladekarte */
.diag-load { background: var(--surface); border: 1px solid var(--frame, var(--line)); border-radius: 16px; padding: 18px 20px 16px; box-shadow: var(--elev-1, 0 1px 2px rgba(15, 23, 42, .05)); display: grid; gap: 14px; }
.diag-load-head { display: flex; align-items: center; gap: 14px; }
.diag-load-head strong { display: block; font-size: 15px; }
.diag-load-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.diag-load .spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.diag-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; position: relative; }
.diag-bar i { position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 2px; background: var(--accent); animation: diag-bar 1.4s ease-in-out infinite; }
@keyframes diag-bar { 0% { left: -35%; } 100% { left: 100%; } }
.diag-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; font-size: 13px; color: var(--muted); }
.diag-steps li { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.diag-steps .dg-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong, #c9d1dc); flex: none; display: grid; place-items: center; transition: all .2s; }
.diag-steps li.on { color: var(--fg); font-weight: 500; }
.diag-steps li.on .dg-dot { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.diag-steps li.done { color: var(--fg); }
.diag-steps li.done .dg-dot { background: var(--ok); border-color: var(--ok); animation: none; }
.diag-steps li.done .dg-dot::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .diag-load .spin, .diag-bar i, .diag-steps li.on .dg-dot { animation-duration: 3s; } }

/* Lumio: Original-Logo, hell/dunkel je nach Design */
.lumio-logo { position: absolute; inset: 0; background: url("lumio-logo-light.webp") center / 94% no-repeat; }
.app-mark.lumio-mark, .appicon.lumio-mark, .ctr-mark.lumio-mark { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); color: transparent; }
.lumio-mark > b, .ctr-mark.lumio-mark { font-size: 0; }
.ctr-mark.lumio-mark { position: relative; }
.appicon.lumio-mark { position: relative; overflow: hidden; }
.appicon.lumio-mark > svg, .appicon.lumio-mark > b { visibility: hidden; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lumio-logo { background-image: url("lumio-logo-dark.webp"); }
  :root:not([data-theme="light"]) .lumio-mark { background: #0f1b33 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
}
:root[data-theme="dark"] .lumio-logo { background-image: url("lumio-logo-dark.webp"); }
:root[data-theme="dark"] .lumio-mark { background: #0f1b33 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* Kennwort-Formulare: Generieren-Knopf neben dem Feld, Aktion unter den Feldern */
.pw-line { display: flex; align-items: center; gap: 8px; }
.pw-line > .pw-wrap, .pw-line > .input { flex: 1; min-width: 0; }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 500; }
.btn.soft:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.pw-gen { height: 38px; flex: none; white-space: nowrap; }
.acc-fields { max-width: 520px; padding: 12px 0 18px; }
.acc-field .pw-meter { margin-top: 2px; }
.acc-field .pw-meter[data-lv="0"] { visibility: hidden; height: 0; min-height: 0; margin: 0; }
.acc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.acc-actions .form-err:empty { display: none; }
.acc-field .pw-meter { background: none !important; height: auto; overflow: visible; }

/* =========================================================== Fernzugriff (nexaConnect) */
.seg-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 4px; }
.seg-tabs button { border: 0; background: none; padding: 10px 2px 11px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; position: relative; }
.seg-tabs button:hover { color: var(--fg); }
.seg-tabs button.on { color: var(--accent); }
.seg-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.seg-tabs.sm { gap: 18px; } .seg-tabs.sm button { font-size: 13.5px; padding: 6px 2px 8px; }
.cx-intro { margin: 6px 0 2px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cx-box { margin: 4px 0 14px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); display: grid; gap: 8px; font-size: 13.5px; }
.cx-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-title { font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.cx-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cx-k { font-weight: 600; }
.cx-v { word-break: break-all; }
.cx-v.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cx-v.accent { color: var(--accent); font-size: 15px; }
.cx-idmsg { margin-top: -6px; font-size: 12.5px; color: var(--muted); min-height: 16px; }
.cx-idmsg.ok { color: var(--ok); font-weight: 600; } .cx-idmsg.bad { color: var(--crit); }
.cx-preview { font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); word-break: break-all; }
.cx-preview strong { color: var(--accent); }
.cx-hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; }
.cx-steps { display: flex; gap: 16px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 640px) { .cx-row { grid-template-columns: minmax(0, 1fr) auto; } .cx-k { grid-column: 1 / -1; } }
