/* pxlftp – Weiß & Petrol */
:root {
  --petrol-950: #002A2E;
  --petrol-900: #003B40;
  --petrol-800: #004C54;
  --petrol-700: #005C64;
  --petrol-600: #006A73;
  --petrol-500: #00838C;
  --petrol-400: #2E9EA6;
  --petrol-200: #B8DEE0;
  --petrol-100: #DDF0F0;
  --petrol-50:  #F0F8F8;

  --ink: #0F2629;
  --ink-2: #3B5458;
  --muted: #6A8185;
  --line: #E2ECEC;
  --line-2: #EEF4F4;
  --bg: #F6FAFA;
  --surface: #FFFFFF;

  --series-up: #00909A;
  --series-down: #C2621A;

  --ok: #1E8E5A;
  --ok-bg: #E4F5EC;
  --warn: #A86800;
  --warn-bg: #FFF4DE;
  --err: #C23B3B;
  --err-bg: #FCE9E9;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 59, 64, .06);
  --shadow: 0 1px 3px rgba(0, 59, 64, .06), 0 8px 24px -8px rgba(0, 59, 64, .12);
  --shadow-lg: 0 24px 64px -16px rgba(0, 42, 46, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--petrol-600); text-decoration: none; }
a:hover { color: var(--petrol-800); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--petrol-500); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--petrol-900); letter-spacing: -.02em; }
.brand img { display: block; }
.brand b { font-weight: 400; color: var(--petrol-500); }
.brand-lg { font-size: 24px; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { border-color: var(--petrol-200); background: var(--petrol-50); color: var(--petrol-800); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--petrol-600); border-color: var(--petrol-600); color: #fff; box-shadow: 0 1px 2px rgba(0, 76, 84, .25); }
.btn-primary:hover { background: var(--petrol-700); border-color: var(--petrol-700); color: #fff; }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: var(--err-bg); border-color: #F3C4C4; color: var(--err); }
.btn-danger-solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger-solid:hover { background: #A83131; border-color: #A83131; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--petrol-50); border-color: transparent; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; height: 42px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input:not([type]), select, textarea {
  height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 14px var(--font); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol-400); box-shadow: 0 0 0 3px rgba(0, 131, 140, .14); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-error { color: var(--err); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13.5px; }
.check input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #B9CACC; border-radius: 5px; display: grid; place-content: center; cursor: pointer; background: #fff; transition: .15s; flex-shrink: 0; }
.check input:checked { background: var(--petrol-600); border-color: var(--petrol-600); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: #CBD8D9; margin: 0; cursor: pointer; transition: .2s; position: relative; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--petrol-500); }
.switch input:checked::after { transform: translateX(16px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; transition: .15s; background: #fff; color: var(--ink-2); }
.chip-check input:checked + span { background: var(--petrol-50); border-color: var(--petrol-400); color: var(--petrol-800); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--petrol-500); outline-offset: 2px; }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: minmax(380px, 1.05fr) 1fr; min-height: 100vh; }
.login-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at -10% 110%, #0A8A93 0%, transparent 60%), linear-gradient(150deg, var(--petrol-700), var(--petrol-950));
}
.login-art .brand { color: #fff; }
.login-art .brand b { color: var(--petrol-200); }
.login-art h2 { color: #fff; font-size: 34px; line-height: 1.15; font-weight: 650; max-width: 440px; letter-spacing: -.025em; }
.login-art p { color: var(--petrol-200); max-width: 420px; margin-top: 14px; font-size: 15px; }
.pixels { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(9, 34px); gap: 8px; opacity: .9; }
.pixels i { width: 34px; height: 34px; border-radius: 7px; background: rgba(255, 255, 255, .06); animation: px 6s var(--ease) infinite; }
.pixels i.on { background: rgba(255, 255, 255, .22); }
@keyframes px { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.login-feats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--petrol-100); }
.login-feats span { display: flex; align-items: center; gap: 8px; }
.login-feats svg { width: 16px; height: 16px; color: var(--petrol-200); }
.login-form { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.login-form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.login-form h1 { font-size: 26px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px;
}
.sidebar .brand { padding: 4px 10px 22px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #93A8AB; padding: 18px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 9px;
  color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--petrol-50); color: var(--petrol-800); }
.nav a.active { background: var(--petrol-100); color: var(--petrol-800); font-weight: 600; }
.nav a.active svg { color: var(--petrol-600); }
.nav a svg { color: #8BA2A5; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.quota { padding: 12px; border-radius: 10px; background: var(--petrol-50); font-size: 12.5px; color: var(--ink-2); }
.quota-bar { height: 6px; border-radius: 99px; background: #D3E7E8; margin-top: 8px; overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--petrol-500); border-radius: 99px; transition: width .4s var(--ease); }
.quota-bar i.full { background: var(--err); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; position: relative; border: 0; background: none; font: inherit; text-align: left; width: 100%; }
.me:hover { background: var(--petrol-50); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--petrol-400), var(--petrol-700)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.me-text { min-width: 0; flex: 1; }
.me-text b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text span { font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 18px 32px; background: rgba(246, 250, 250, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { padding: 8px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.menu-btn { display: none; }

/* ---------- Karten & Tabellen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head p { font-size: 12.5px; color: var(--muted); }
.card-body { padding: 20px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFDFD; }
.table th.num { text-align: right; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #F7FBFB; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.selected { background: var(--petrol-50) !important; }
.table .w-check { width: 44px; padding-right: 0; }
.table .w-act { width: 52px; text-align: right; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 48px 20px !important; color: var(--muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; color: var(--muted); text-align: center; }
.empty-state .big { width: 52px; height: 52px; border-radius: 14px; background: var(--petrol-50); color: var(--petrol-500); display: grid; place-items: center; }
.empty-state .big svg { width: 26px; height: 26px; }
.empty-state h3 { color: var(--ink); font-size: 15px; }

.badge { vertical-align: middle; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.petrol { background: var(--petrol-100); color: var(--petrol-800); }
.badge svg { width: 12px; height: 12px; stroke-width: 2.4; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #B9CACC; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

/* ---------- Dateimanager ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 14px; min-width: 0; }
.crumbs a { padding: 4px 8px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { background: var(--petrol-50); color: var(--petrol-800); }
.crumbs a:last-child { color: var(--ink); font-weight: 650; }
.crumbs .sep { color: #A9BABC; }
.file-name { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; cursor: pointer; max-width: 100%; }
.file-name:hover { color: var(--petrol-700); }
.file-name span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: #EEF3F4; color: #6E8689; }
.ficon svg { width: 17px; height: 17px; }
.ficon.is-dir { background: var(--petrol-100); color: var(--petrol-600); }
.ficon.is-img { background: #E9F1FB; color: #2F6DB5; }
.ficon.is-arc { background: #FFF1E3; color: #B65A12; }
.ficon.is-vid { background: #F3EBFA; color: #7A45B0; }
.ficon.is-doc { background: #FCECEC; color: #B83B3B; }
.ficon.is-code { background: #EAF6EF; color: #23804F; }
.share-body .ficon::before { content: ""; width: 12px; height: 14px; border: 1.8px solid currentColor; border-radius: 3px; }
.share-body .ficon.is-dir::before { width: 15px; height: 11px; border-radius: 2px 3px 3px 3px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.selbar { white-space: nowrap; max-width: 100%; overflow-x: auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; background: var(--petrol-900); color: #fff; border-radius: 10px; font-size: 13px; animation: rise .2s var(--ease); }
.selbar .btn { height: 30px; background: transparent; border-color: transparent; color: #fff; }
.selbar .btn:hover { background: rgba(255, 255, 255, .12); }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { padding-left: 34px; width: 240px; height: 34px; }

.dropzone {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none;
  background: rgba(0, 59, 64, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .15s;
}
.dropzone.show { opacity: 1; }
.dropzone div { border: 2px dashed rgba(255, 255, 255, .7); border-radius: 20px; padding: 48px 64px; color: #fff; text-align: center; font-size: 18px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dropzone svg { width: 40px; height: 40px; }

.uploads { position: fixed; right: 24px; bottom: 24px; width: 360px; z-index: 30; overflow: hidden; animation: rise .25s var(--ease); box-shadow: var(--shadow-lg); }
.uploads .card-head { padding: 12px 16px; background: var(--petrol-900); color: #fff; border: 0; }
.uploads .card-head h3 { color: #fff; }
.uploads .card-head .btn { color: #fff; }
.uploads .card-head .btn:hover { background: rgba(255, 255, 255, .12); }
.up-list { max-height: 280px; overflow-y: auto; }
.up-item { padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.up-item .row { display: flex; justify-content: space-between; gap: 10px; }
.up-item .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 4px; background: var(--line-2); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--petrol-500); border-radius: 99px; transition: width .2s; }
.up-item.done .progress i { background: var(--ok); }
.up-item.error .progress i { background: var(--err); }
.up-item.error .row span:last-child { color: var(--err); }

/* ---------- Kontextmenü ---------- */
.menu { position: fixed; z-index: 60; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); animation: pop .14s var(--ease); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; background: none; border-radius: 7px; font: 13.5px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: var(--petrol-50); color: var(--petrol-800); outline: none; }
.menu button svg { width: 16px; height: 16px; color: var(--muted); }
.menu button.danger { color: var(--err); }
.menu button.danger svg { color: var(--err); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 4px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 42, 46, .45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); }
.modal.wide { max-width: 680px; }
.modal.preview { max-width: min(1100px, 95vw); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.modal-head h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 18px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--petrol-700); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.preview-box { display: grid; place-items: center; background: #0B1C1E; border-radius: 10px; overflow: hidden; min-height: 200px; }
.preview-box img, .preview-box video { max-width: 100%; max-height: 72vh; display: block; }
.preview-box iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.preview-box pre { margin: 0; width: 100%; max-height: 72vh; overflow: auto; padding: 16px; background: #fff; color: var(--ink); font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.preview-box audio { width: 90%; margin: 40px 0; }
.link-box { display: flex; gap: 8px; }
.link-box input { font-family: var(--mono); font-size: 12.5px; background: var(--petrol-50); }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--petrol-50); color: var(--petrol-600); display: grid; place-items: center; }
.kpi-ic svg { width: 17px; height: 17px; }
.kpi-val { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; }
.chart { position: relative; padding: 8px 20px 16px; }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; stroke: none; font-family: var(--font); }
.chart path { stroke: none; }
.chart .bar-up { fill: var(--series-up); }
.chart .bar-down { fill: var(--series-down); }
.chart .hit { fill: transparent; stroke: none; cursor: default; }
.chart .hit:hover { fill: rgba(0, 106, 115, .06); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; z-index: 3; background: var(--petrol-950); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.6; box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.tip b { font-weight: 600; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.services { display: flex; flex-direction: column; }
.service { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.service:last-child { border-bottom: 0; }
.service b { font-weight: 600; }
.service .mono { margin-left: auto; color: var(--muted); }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ev { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.feed-item .ev svg { width: 15px; height: 15px; }
.ev.up { background: #E1F3F4; color: var(--series-up); }
.ev.down { background: #FBEDE2; color: var(--series-down); }
.ev.ex { background: var(--ok-bg); color: var(--ok); }
.ev.bad { background: var(--err-bg); color: var(--err); }
.ev.wait { background: var(--warn-bg); color: var(--warn); }
.feed-item .txt { min-width: 0; flex: 1; }
.feed-item .txt b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .txt span { color: var(--muted); font-size: 12px; }
.proto { display: inline-flex; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; align-items: center; background: var(--line-2); color: var(--ink-2); }
.proto.ftp { background: #E7EEFB; color: #2D5BA8; }
.proto.sftp { background: var(--petrol-100); color: var(--petrol-800); }
.proto.web { background: #F1EAFB; color: #6C3FB0; }
.proto.link { background: #FFF1E3; color: #A4520E; }
.proto.automation { background: var(--ok-bg); color: var(--ok); }

/* ---------- Regeln ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rule { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.rule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rule-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.rule-meta div { display: flex; gap: 8px; align-items: center; }
.rule-meta svg { width: 15px; height: 15px; color: var(--muted); }
.rule.off { opacity: .6; }
.flow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--petrol-50); border-radius: 9px; font-size: 12.5px; color: var(--petrol-800); font-weight: 550; flex-wrap: wrap; }
.flow svg { width: 14px; height: 14px; color: var(--petrol-400); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--petrol-50); border: 1px solid var(--petrol-100); color: var(--ink-2); font-size: 13px; }
.callout svg { color: var(--petrol-500); margin-top: 1px; }
.callout.warn { background: var(--warn-bg); border-color: #F5DFB3; }
.callout.warn svg { color: var(--warn); }

/* ---------- Filterleiste ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 160px; height: 34px; }
.filters input { width: 220px; height: 34px; }
.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 9px; gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--petrol-800); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: 20px; right: 20px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 10px; background: var(--petrol-950); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slide .25s var(--ease); }
.toast svg { color: #7FD0D5; }
.toast.err svg { color: #FF9C9C; }
.toast.out { opacity: 0; transform: translateX(12px); transition: .2s; }

/* ---------- Freigabeseite ---------- */
.share-body { min-height: 100vh; background: radial-gradient(900px 500px at 50% -10%, var(--petrol-100), transparent 70%), var(--bg); }
.share-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px; display: flex; flex-direction: column; gap: 24px; }
.share-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.share-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 380px; margin: 12px auto; width: 100%; }
.share-state .field { width: 100%; text-align: left; }
.share-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--petrol-100); color: var(--petrol-600); display: grid; place-items: center; }
.share-icon svg { width: 28px; height: 28px; }
.share-icon.is-muted { background: var(--line-2); color: var(--muted); }
.share-name { word-break: break-all; }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-foot { text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Animationen ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(4px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } }
.page-enter { animation: rise .25s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 45; width: 260px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .topbar { flex-wrap: wrap; }
  .topbar .actions { flex-basis: 100%; }
  .topbar .search { flex: 1; }
  .topbar .search input { width: 100%; }
  .hide-sm { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .search input { width: 160px; }
  .uploads { left: 12px; right: 12px; width: auto; }
}

/* Ordner-Auswahl */
.picker { display: flex; flex-direction: column; gap: 10px; }
.picker-bar { display: flex; align-items: center; gap: 8px; }
.picker-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 10px; border-radius: 8px; background: var(--petrol-50); }
.picker-list { height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.picker-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.picker-row:hover, .picker-row:focus-visible { background: var(--petrol-50); outline: none; }
.picker-row svg { width: 18px; height: 18px; flex: none; color: var(--petrol-500); }
.picker-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-head { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.picker-note { padding: 14px; }

/* Zusätzliche Ordner im Benutzerdialog */
.mounts { display: flex; flex-direction: column; gap: 8px; }
.mount-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) auto auto; gap: 10px; align-items: center; }
.mount-row .switch { white-space: nowrap; }

/* Speicherpools */
.pool { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pool-head { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: start; width: 100%; }
.pool-head [data-pool-del] { margin-top: 28px; }
.pool-dirs { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.pool-dir { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 10px; border-radius: 8px; background: var(--petrol-50); }
.pool-dir svg { width: 16px; height: 16px; color: var(--petrol-500); flex: none; }
.pool-dir .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.pool-dir:has(.mono) [data-dir-del] svg { color: var(--muted); }

@media (max-width: 720px) {
  .mount-row { grid-template-columns: 1fr auto auto; }
  .mount-row .link-box { grid-column: 1 / -1; grid-row: 2; }
  .pool-head { grid-template-columns: 1fr; }
  .pool-head [data-pool-del] { margin-top: 0; }
}

/* E-Mail-Benachrichtigungen */
.notify { display: flex; flex-direction: column; gap: 14px; }
.notify-body { display: flex; flex-direction: column; gap: 14px; padding-left: 14px; border-left: 2px solid var(--petrol-100); }
.notify-body.off { opacity: .55; }
.notify-folders { display: flex; flex-direction: column; gap: 8px; }
.notify-folders:empty { display: none; }
.notify-folder { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.notify .field > div:has([data-n-add]) { margin-top: 2px; }
