/* ═══════════════════════════════════════════════════════════════════════════
   vault-dashboard.css — §VAULT-DASH-2026-10-18
   Tresor als Cyber-Dashboard (vault.js). Desktop: 3 Spalten (Leiste 240 px ·
   Hauptbereich · rechte Spalte 320 px). Handy-Shell: nur Hauptbereich,
   Schnellzugriff als Snap-Reihe, grosse Tap-Ziele.

   Spezifitaet: Alt-Regeln in claude-loggedin.css / responsive-polish.css
   greifen per `html body #vault-screen > div:nth-child(n)` und
   `html body #vault-screen button` mit !important. Alles hier haengt deshalb
   an `:is(#vault-screen,#ec-mobile-shell) .ecvd` — :is() zaehlt mit der ID,
   egal welcher Zweig passt — und setzt die umkaempften Eigenschaften mit
   !important. Die Datei wird als letzte eingebunden.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Screen-Huelle (Desktop) ───────────────────────────────────────────── */
html body #vault-screen.ecvd-screen {
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(85, 85, 85, 0.22), transparent 70%),
    radial-gradient(600px 300px at 100% 0%, rgba(114, 114, 114, 0.08), transparent 70%),
    linear-gradient(180deg, #0e0e0e 0%, #07080d 60%) !important;
  overflow: hidden !important;
  flex-direction: column;
}
html body #vault-screen.ecvd-screen.active { display: flex !important; }
html body #vault-screen.ecvd-screen::before { display: none !important; }
html body #vault-screen.ecvd-screen > .ecvd-mount {
  width: 100% !important;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd {
  --vd-bg0: #07080d;
  --vd-bg1: #0e0e0e;
  --vd-card: rgba(20, 20, 20, 0.7);
  --vd-card-solid: #141414;
  --vd-line: rgba(113, 113, 113, 0.15);
  --vd-line-strong: rgba(113, 113, 113, 0.35);
  --vd-v1: #555555;
  --vd-v2: #727272;
  --vd-grad: linear-gradient(135deg, #555555 0%, #727272 100%);
  --vd-ink: #ececec;
  --vd-dim: #a4a4a4;
  --vd-mute: #707070;
  --vd-ok: #9b9b9b;
  --vd-danger: #f43f5e;
  --vd-radius: 16px;
  --vd-font: var(--font, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  --vd-mono: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);

  box-sizing: border-box;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  gap: 20px;
  height: 100%;
  min-height: 0;
  padding: max(20px, env(safe-area-inset-top, 0px)) 20px 20px;
  color: var(--vd-ink);
  font-family: var(--vd-font);
  -webkit-font-smoothing: antialiased;
  /* §UI-AUDIT-2026-11-03 (F5): die Schmal-Regeln unten haengen zusaetzlich an der Breite DIESES Panels,
     nicht nur am Viewport — im Tablet-Split (768–899 px) ist der Tresor ~380 px breit. */
  container-type: inline-size;
  container-name: ecvd;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd *,
:is(#vault-screen, #ec-mobile-shell) .ecvd *::before,
:is(#vault-screen, #ec-mobile-shell) .ecvd *::after { box-sizing: border-box; }
:is(#vault-screen, #ec-mobile-shell) .ecvd [hidden] { display: none !important; }

:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-ico { width: 20px; height: 20px; flex: 0 0 auto; }

/* Karte (Glas) */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-card {
  background: var(--vd-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--vd-line) !important;
  border-radius: var(--vd-radius) !important;
  box-shadow: 0 18px 48px -32px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* Buttons — gegen `html body #vault-screen button` (Alt-Stil) */
:is(#vault-screen, #ec-mobile-shell) .ecvd button { font: inherit; color: inherit; cursor: pointer; }
:is(#vault-screen, #ec-mobile-shell) .ecvd :is(.ecvd-btn, .ecvd-icon-btn, .ecvd-nav-pill, .ecvd-quick, .ecvd-th, .ecvd-qa-row) {
  transform: none !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease !important;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px !important;
  border: 1px solid var(--vd-line) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn .ecvd-ico { width: 18px; height: 18px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn-primary {
  color: #fff !important;
  border-color: transparent !important;
  background: var(--vd-grad) !important;
  box-shadow: 0 10px 28px -12px rgba(85, 85, 85, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn-primary:hover {
  box-shadow: 0 14px 34px -12px rgba(114, 114, 114, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px) !important;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn-ghost:hover { border-color: var(--vd-line-strong) !important; background: rgba(113, 113, 113, 0.1) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn-danger { color: #fda4af !important; border-color: rgba(244, 63, 94, 0.3) !important; background: rgba(244, 63, 94, 0.08) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn-danger:hover { background: rgba(244, 63, 94, 0.16) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vd-dim);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-icon-btn:hover { color: var(--vd-ink); background: rgba(113, 113, 113, 0.12) !important; border-color: var(--vd-line) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd :is(button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--vd-v2) !important;
  outline-offset: 2px;
}

/* ── Linke Leiste ───────────────────────────────────────────────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  padding: 18px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.78), rgba(14, 14, 14, 0.6));
  border: 1px solid var(--vd-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-brand-ico {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 10px;
  color: #fff;
  background: var(--vd-grad);
  box-shadow: 0 8px 22px -8px rgba(114, 114, 114, 0.9);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-nav { display: flex; flex-direction: column; gap: 4px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-nav-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vd-dim);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-nav-pill:hover { color: var(--vd-ink); background: rgba(113, 113, 113, 0.08) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-nav-pill.is-active {
  color: #fff;
  border-color: var(--vd-line-strong) !important;
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.32), rgba(114, 114, 114, 0.16)) !important;
  box-shadow: 0 8px 24px -14px rgba(85, 85, 85, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-nav-pill.is-active .ecvd-ico { color: #c1c1c1; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-status {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(155, 155, 155, 0.22);
  background: rgba(155, 155, 155, 0.07);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--vd-ok);
  box-shadow: 0 0 0 4px rgba(155, 155, 155, 0.16), 0 0 12px rgba(155, 155, 155, 0.8);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-status strong { display: block; font-size: 13px; color: #e7e7e7; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-status small { display: block; margin-top: 2px; font-size: 12px; color: var(--vd-dim); line-height: 1.4; }

/* ── Hauptbereich ───────────────────────────────────────────────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 16px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--vd-line);
  background:
    radial-gradient(420px 140px at 20% 0%, rgba(85, 85, 85, 0.28), transparent 75%),
    rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-back { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #dcdcdc;
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.4), rgba(114, 114, 114, 0.18));
  border: 1px solid var(--vd-line-strong);
  box-shadow: 0 0 24px -6px rgba(114, 114, 114, 0.7);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head-ico .ecvd-ico { width: 24px; height: 24px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head-copy { min-width: 0; flex: 1 1 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head p { margin: 3px 0 0; font-size: 13px; color: var(--vd-dim); text-wrap: balance; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--vd-line);
  background: rgba(7, 8, 13, 0.6);
  color: var(--vd-dim);
  font-family: var(--vd-mono);
  font-size: 12px;
  white-space: nowrap;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 113, 113, 0.35) transparent;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pane { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-bottom: 8px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd[data-ecvd-section="files"] [data-ecvd-overview] { display: none !important; }

/* Schnellzugriffskarten */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 84px;
  padding: 16px 16px;
  text-align: left;
  color: var(--vd-ink);
  container: ecvdq / inline-size;
}
/* §UI-AUDIT-2026-11-03 (F4): bei drei Karten nebeneinander (~204 px, 1280 px) lief „Passwörter“ in den Pfeil —
   unter 230 px Kartenbreite faellt der rein dekorative Pfeil weg (die ganze Karte bleibt der Knopf). */
@container ecvdq (max-width: 230px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick .ecvd-quick-chev { display: none; }
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick:hover { border-color: var(--vd-line-strong) !important; box-shadow: 0 18px 40px -24px rgba(85, 85, 85, 0.75) !important; transform: translateY(-2px) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  background: var(--vd-grad);
  box-shadow: 0 10px 24px -10px rgba(114, 114, 114, 0.9);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick:nth-child(2) .ecvd-quick-ico { background: linear-gradient(135deg, #434343, #535353); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick:nth-child(3) .ecvd-quick-ico { background: linear-gradient(135deg, #535353, #727272); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-copy { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-copy strong { font-size: 15px; font-weight: 700; }
/* §UI-AUDIT-2026-11-03 (F4): umbrechen statt kuerzen — „1 verschlüs…“ (DE) bzw. „Zaszyfrowane: …“ (PL: die Zahl
   steht am Ende und fiel der Ellipse zum Opfer) bei drei Karten nebeneinander (1280 px). */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-copy small { margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--vd-dim); white-space: normal; overflow-wrap: break-word; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-chev { color: var(--vd-mute); width: 18px; height: 18px; }

/* Speicherbalken */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage { padding: 16px 18px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top strong { font-size: 14px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top span { font-family: var(--vd-mono); font-size: 12px; color: var(--vd-dim); text-align: right; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--vd-grad);
  box-shadow: 0 0 14px rgba(114, 114, 114, 0.85), 0 0 4px rgba(189, 189, 189, 0.9);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-meter-fill.is-unknown { opacity: .25; box-shadow: none; }
/* app.css faerbt #vault-screen #vault-storage-bar cyan→magenta (ID + !important)
   und dimmt den Glow — die ID-Variante hier gewinnt per Spezifitaet. */
:is(#vault-screen, #ec-mobile-shell) .ecvd #vault-storage-bar {
  background: var(--vd-grad) !important;
  box-shadow: 0 0 14px rgba(114, 114, 114, 0.85), 0 0 4px rgba(189, 189, 189, 0.9) !important;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd #vault-storage-bar.is-unknown { box-shadow: none !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-foot { margin-top: 8px; font-size: 12px; color: var(--vd-mute); }

/* Dateitabelle */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table { padding: 6px 6px 8px; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 48px; padding: 4px 8px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-bulk { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; flex-wrap: wrap; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-bulk > span { font-size: 13px; font-weight: 600; color: #c1c1c1; margin-right: 4px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-bulk .ecvd-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-viewtoggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--vd-line);
  background: rgba(7, 8, 13, 0.5);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-viewtoggle .ecvd-icon-btn { width: 36px; height: 34px; border-radius: 9px !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-viewtoggle .ecvd-icon-btn.is-active { color: #fff; background: var(--vd-grad) !important; box-shadow: 0 6px 16px -8px rgba(114, 114, 114, 0.9) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-viewtoggle .ecvd-ico { width: 18px; height: 18px; }

:is(#vault-screen, #ec-mobile-shell) .ecvd :is(.ecvd-thead, .ecvd-row) {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) 100px 140px 44px;
  align-items: center;
  column-gap: 10px;
  padding: 0 10px;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead {
  min-height: 42px;
  border-bottom: 1px solid var(--vd-line);
  color: var(--vd-mute);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-th:first-of-type { grid-column: 2 / 4; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-th {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 4px;
  border: 0 !important;
  border-radius: 8px !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  justify-self: start;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-th:hover { color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-sort-ico { width: 14px; height: 14px; opacity: 0; transition: transform .18s ease, opacity .18s ease; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-th.is-sorted { color: #c1c1c1; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-th.is-sorted .ecvd-sort-ico { opacity: 1; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-th.is-asc .ecvd-sort-ico { transform: rotate(180deg); }

:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-rows { display: flex; flex-direction: column; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-row {
  position: relative;
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-row + .ecvd-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: rgba(113, 113, 113, 0.08);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-row:hover { background: rgba(113, 113, 113, 0.07); border-color: var(--vd-line); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-row.is-selected { background: rgba(85, 85, 85, 0.14); border-color: var(--vd-line-strong); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-row.is-new { animation: ecvd-new 2.4s ease-out 1; }
@keyframes ecvd-new {
  0% { background: rgba(155, 155, 155, 0.22); border-color: rgba(155, 155, 155, 0.5); }
  100% { background: transparent; border-color: transparent; }
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-name {
  min-width: 0;
  text-align: left; /* desktop-overrides.css zentriert .ec-vault-tile-name (alte Kacheln) */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: var(--vd-ink);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd :is(.ecvd-size, .ecvd-date) { text-align: left; font-size: 13px; color: var(--vd-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-size { font-family: var(--vd-mono); font-size: 12px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-more { justify-self: end; }

/* Datei-Icons */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-file-ico,
.ecvd-overlay .ecvd-file-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #bdbdbd;
  background: rgba(113, 113, 113, 0.14);
  border: 1px solid rgba(113, 113, 113, 0.22);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-file-ico .ecvd-ico,
.ecvd-overlay .ecvd-file-ico .ecvd-ico { width: 19px; height: 19px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-k-image, .ecvd-overlay .ecvd-k-image { color: #cecece; background: rgba(175, 175, 175, 0.1); border-color: rgba(175, 175, 175, 0.22); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-k-pdf, .ecvd-overlay .ecvd-k-pdf { color: #fda4af; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.22); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-k-text, .ecvd-overlay .ecvd-k-text { color: #e0e0e0; background: rgba(145, 145, 145, 0.1); border-color: rgba(145, 145, 145, 0.22); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-k-video, .ecvd-overlay .ecvd-k-video,
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-k-audio, .ecvd-overlay .ecvd-k-audio { color: #d2d2d2; background: rgba(166, 166, 166, 0.1); border-color: rgba(166, 166, 166, 0.22); }

/* Checkbox */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; cursor: pointer; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(164, 164, 164, 0.55);
  background: rgba(7, 8, 13, 0.6);
  transition: background .15s ease, border-color .15s ease;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check input:checked + span,
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check input:indeterminate + span {
  border-color: transparent;
  background: var(--vd-grad);
  box-shadow: 0 0 10px rgba(114, 114, 114, 0.6);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check input:checked + span {
  background: var(--vd-grad) center / 12px no-repeat, var(--vd-grad);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8'/%3E%3C/svg%3E"), var(--vd-grad);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-check input:focus-visible + span { outline: 2px solid var(--vd-v2); outline-offset: 2px; }

/* Rasteransicht */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-thead { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 12px;
  padding: 6px 8px;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "ico ico" "name name" "size date";
  justify-items: start;
  row-gap: 8px;
  min-height: 168px;
  padding: 44px 14px 14px;
  border-color: var(--vd-line);
  background: rgba(7, 8, 13, 0.35);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-row::before { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-check { position: absolute; top: 4px; left: 4px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-more { position: absolute; top: 4px; right: 4px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-file-ico { grid-area: ico; width: 52px; height: 52px; border-radius: 15px; justify-self: center; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-file-ico .ecvd-ico { width: 26px; height: 26px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-name { grid-area: name; width: 100%; text-align: center; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-size { grid-area: size; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-date { grid-area: date; justify-self: end; }

/* Leer / Laden */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px 40px;
  text-align: center;
  color: var(--vd-dim);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-empty strong { font-size: 16px; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-empty p { max-width: 420px; margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-empty-ico,
.ecvd-overlay .ecvd-empty-ico { width: 46px; height: 46px; padding: 10px; border-radius: 14px; color: #bdbdbd; background: rgba(113, 113, 113, 0.12); border: 1px solid var(--vd-line, rgba(113, 113, 113, 0.15)); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; font-size: 13px; color: var(--vd-dim); }

/* Passwoerter / Notizen */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 4px 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pane-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pane-head p { margin: 3px 0 0; font-size: 12px; color: var(--vd-dim); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entries { display: flex; flex-direction: column; gap: 10px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--vd-line);
  background: var(--vd-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-ico { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; font-size: 19px; background: rgba(113, 113, 113, 0.14); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-copy { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-copy strong { font-size: 14px; color: var(--vd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-copy small { margin-top: 2px; font-size: 12px; color: var(--vd-dim); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-actions .ecvd-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry-del:hover { color: #fda4af; background: rgba(244, 63, 94, 0.12) !important; }

/* ── Rechte Spalte ──────────────────────────────────────────────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-right { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  overflow: hidden;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-banner strong { position: relative; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-banner small { position: relative; font-size: 12.5px; line-height: 1.5; color: var(--vd-dim); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-banner-1 {
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(114, 114, 114, 0.35), transparent 70%),
    linear-gradient(160deg, rgba(85, 85, 85, 0.28), rgba(20, 20, 20, 0.75) 60%) !important;
  border-color: var(--vd-line-strong) !important;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-banner-ico {
  width: 52px;
  height: 52px;
  padding: 11px;
  margin-bottom: 8px;
  border-radius: 16px;
  color: #fff;
  background: var(--vd-grad);
  box-shadow: 0 0 0 6px rgba(114, 114, 114, 0.12), 0 12px 30px -10px rgba(114, 114, 114, 0.95);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-banner-2 { padding-top: 12px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-art { display: block; width: calc(100% + 16px); max-width: none; height: auto; margin: 0 -8px 4px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa { padding: 16px 12px 10px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa h3 { display: flex; align-items: center; gap: 8px; margin: 0 6px 10px; font-size: 14px; font-weight: 700; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa-bolt { width: 18px; height: 18px; color: #c9c9c9; fill: rgba(201, 201, 201, 0.25); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vd-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa-row > .ecvd-ico:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: #c1c1c1; background: rgba(113, 113, 113, 0.14); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa-row span { flex: 1 1 auto; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa-chev { width: 16px; height: 16px; color: var(--vd-mute); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-qa-row:hover { background: rgba(113, 113, 113, 0.1) !important; border-color: var(--vd-line) !important; }

/* Spinner */
.ecvd-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(114, 114, 114, 0.25);
  border-top-color: #727272;
  animation: ecvd-spin .8s linear infinite;
  flex: 0 0 auto;
}
@keyframes ecvd-spin { to { transform: rotate(360deg); } }

/* ── Mittlere Breiten ───────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop { grid-template-columns: 220px minmax(0, 1fr); }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-right { display: none; }
}
@media (max-width: 900px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop { grid-template-columns: minmax(0, 1fr); padding: max(12px, env(safe-area-inset-top, 0px)) 12px 12px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-side { display: none; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-back { display: inline-grid; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-segs { display: flex; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-head { flex-wrap: wrap; padding: 14px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-head-actions { width: 100%; justify-content: space-between; }
}
/* Desktop-Screen: Zurueck-Knopf immer zeigen, wenn die linke Leiste fehlt —
   und bei voller Breite als kleiner Knopf in der Kopfzeile. */
@media (min-width: 901px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-back { display: inline-grid; margin-left: -6px; }
}

/* ── Segment-Pills (Handy + schmale Fenster) ────────────────────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs {
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: 0 -2px;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs::-webkit-scrollbar { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs .ecvd-nav-pill {
  width: auto;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid var(--vd-line) !important;
  background: rgba(20, 20, 20, 0.6) !important;
  border-radius: 999px !important;
  font-size: 13px;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs .ecvd-nav-pill .ecvd-ico { width: 17px; height: 17px; }

/* ── Handy-Shell ────────────────────────────────────────────────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile {
  display: block;
  height: auto;
  padding: 4px 0 8px;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile :is(.ecvd-side, .ecvd-right, .ecvd-head) { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-main { gap: 14px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-segs { display: flex; padding: 2px 0; margin: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-scroll { overflow: visible; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-pane { padding: 0 0 8px; gap: 14px; }
@media (max-width: 640px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-row {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-row::-webkit-scrollbar { display: none; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
    min-height: 78px;
  }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-quick-row { margin: 0 -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  /* Im Handy-Panel gibt das Panel den Rand vor; Ueberstand wuerde der Rahmen abschneiden. */
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-quick-row { margin: 0; padding-inline: 0; scroll-padding-inline: 0; }
}
/* Handy-Shell und schmale Fenster: Liste mit grossen Tap-Zielen, Groesse +
   Datum als zweite Zeile unter dem Namen. */
@media (max-width: 640px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead { grid-template-columns: 40px minmax(0, 1fr) auto auto; column-gap: 6px; padding: 0 4px 0 6px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-check { width: 40px; height: 44px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-th:first-of-type { grid-column: auto; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-th-menu { display: none; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row {
    /* Groesse fest statt auto: jede Zeile ist ein eigenes Grid, sonst springt das Datum. */
    grid-template-columns: 40px 42px 64px minmax(0, 1fr) 48px;
    grid-template-areas: "chk ico name name more" "chk ico size date more";
    column-gap: 10px;
    row-gap: 2px;
    min-height: 68px;
    padding: 8px 4px 8px 6px;
  }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-check { grid-area: chk; width: 40px; height: 44px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-file-ico { grid-area: ico; width: 42px; height: 42px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-name { grid-area: name; align-self: end; font-size: 15px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-size { grid-area: size; align-self: start; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-date { grid-area: date; align-self: start; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-date::before { content: "·"; margin-right: 8px; color: var(--vd-mute); }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-more { grid-area: more; width: 48px; height: 48px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 6px 4px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table { padding: 4px 4px 6px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage { padding: 14px 16px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top span { text-align: left; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry { flex-wrap: wrap; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head h1 { font-size: 20px; }
}
/* §UI-AUDIT-2026-11-03 (F5): dieselben Schmal-Regeln, wenn das Tresor-PANEL schmal ist (Tablet-Split: Viewport
   768–899 px, Panel ~380 px). Die @media-Bloecke oben bleiben fuer Browser ohne Container-Queries. */
@container ecvd (max-width: 640px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-row {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick-row::-webkit-scrollbar { display: none; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-quick {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
    min-height: 78px;
  }
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--desktop .ecvd-quick-row { margin: 0 -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  /* Im Handy-Panel gibt das Panel den Rand vor; Ueberstand wuerde der Rahmen abschneiden. */
  :is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-quick-row { margin: 0; padding-inline: 0; scroll-padding-inline: 0; }
}
@container ecvd (max-width: 640px) {
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead { grid-template-columns: 40px minmax(0, 1fr) auto auto; column-gap: 6px; padding: 0 4px 0 6px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-check { width: 40px; height: 44px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-th:first-of-type { grid-column: auto; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-thead .ecvd-th-menu { display: none; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row {
    /* Groesse fest statt auto: jede Zeile ist ein eigenes Grid, sonst springt das Datum. */
    grid-template-columns: 40px 42px 64px minmax(0, 1fr) 48px;
    grid-template-areas: "chk ico name name more" "chk ico size date more";
    column-gap: 10px;
    row-gap: 2px;
    min-height: 68px;
    padding: 8px 4px 8px 6px;
  }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-check { grid-area: chk; width: 40px; height: 44px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-file-ico { grid-area: ico; width: 42px; height: 42px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-name { grid-area: name; align-self: end; font-size: 15px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-size { grid-area: size; align-self: start; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-date { grid-area: date; align-self: start; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-date::before { content: "·"; margin-right: 8px; color: var(--vd-mute); }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table:not(.is-grid) .ecvd-row .ecvd-more { grid-area: more; width: 48px; height: 48px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table.is-grid .ecvd-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 6px 4px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-table { padding: 4px 4px 6px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage { padding: 14px 16px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-storage-top span { text-align: left; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-entry { flex-wrap: wrap; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-head h1 { font-size: 20px; }
}
/* Die Handy-Shell ist schmal genug fuer obige Regeln; auf Tablets (Split)
   bekommt sie trotzdem die Touch-Liste. */
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-row { min-height: 64px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.ecvd--mobile .ecvd-more { width: 48px; height: 48px; }

/* Upload-Knopf im Kopf des Handy-Panels */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ecvd-m-add {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  margin-left: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #555555 0%, #727272 100%) !important;
  box-shadow: 0 10px 24px -10px rgba(114, 114, 114, 0.9) !important;
  cursor: pointer;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ecvd-m-add svg { width: 22px !important; height: 22px !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame[data-ecvd-mount] {
  display: block !important;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* Der alte Tresor-Rahmen zeichnete Kante + Glanz per Pseudo-Elementen. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame[data-ecvd-mount]::before,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame[data-ecvd-mount]::after { content: none !important; display: none !important; }
/* Die Bodenleiste liegt ausserhalb des Panels — die 100 px Reserve der
   alten Huelle schnitt die Liste nur ab. Seitenrand kommt vom Panel (18 px). */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-shell:has(> [data-ecvd-mount]) {
  padding: 4px 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* ═══ Kontextmenue ═══════════════════════════════════════════════════════ */
.ecvd-menu {
  position: fixed;
  z-index: 2147482650;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(113, 113, 113, 0.28);
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: ecvd-pop .14s ease-out;
  font-family: var(--font, "Inter", system-ui, sans-serif);
}
.ecvd-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ececec;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.ecvd-menu button:hover, .ecvd-menu button:focus-visible { background: rgba(113, 113, 113, 0.16); outline: none; }
.ecvd-menu button.is-danger { color: #fda4af; }
.ecvd-menu button.is-danger:hover { background: rgba(244, 63, 94, 0.14); }
.ecvd-menu .ecvd-ico { width: 18px; height: 18px; }
/* §VAULT-RENAME-2026-11-03: gesperrter Eintrag (Altschluessel v1) + Inline-Feld in der Zeile.
   16 px Schrift: iOS/Android-WebView zoomt sonst beim Fokus in die Seite. */
.ecvd-menu button.is-disabled { opacity: .55; cursor: not-allowed; }
.ecvd-menu button.is-disabled:hover { background: transparent; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-name.ecvd-rename {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  text-overflow: clip;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-rename-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--vd-line-strong, rgba(113, 113, 113, 0.45));
  border-radius: 9px;
  background: rgba(12, 12, 12, 0.85);
  color: var(--vd-ink, #ececec);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 113, 113, 0.18);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-rename-input:disabled { opacity: .6; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-rename-ext {
  flex: 0 0 auto;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--vd-mono, ui-monospace, monospace);
  font-size: 13px;
  color: var(--vd-dim, #a5a5a5);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@keyframes ecvd-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ═══ Overlays (Upload, Vorschau) ════════════════════════════════════════ */
html.ecvd-lock, html.ecvd-lock body { overflow: hidden !important; }
.ecvd-overlay {
  --vd-line: rgba(113, 113, 113, 0.15);
  --vd-line-strong: rgba(113, 113, 113, 0.35);
  --vd-grad: linear-gradient(135deg, #555555 0%, #727272 100%);
  --vd-ink: #ececec;
  --vd-dim: #a4a4a4;
  --vd-mute: #707070;
  position: fixed;
  inset: 0;
  /* Ueber der Handy-Shell und ihren Leisten (bis 2147482400), unter der
     PIN-Sperre (2147483000) — die muss auch eine offene Vorschau verdecken. */
  z-index: 2147482600;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(4, 5, 10, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--vd-ink);
  font-family: var(--font, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  animation: ecvd-fade .16s ease-out;
}
.ecvd-overlay[hidden] { display: none !important; }
.ecvd-overlay *, .ecvd-overlay *::before, .ecvd-overlay *::after { box-sizing: border-box; }
@keyframes ecvd-fade { from { opacity: 0; } to { opacity: 1; } }
.ecvd-overlay .ecvd-ico { width: 20px; height: 20px; flex: 0 0 auto; }
.ecvd-dialog {
  position: relative;
  width: min(460px, 100%);
  border-radius: 20px;
  border: 1px solid var(--vd-line-strong);
  background:
    radial-gradient(420px 160px at 50% -40px, rgba(85, 85, 85, 0.3), transparent 70%),
    rgba(16, 16, 16, 0.96);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 60px -30px rgba(114, 114, 114, 0.6);
  animation: ecvd-pop .18s ease-out;
}
.ecvd-overlay .ecvd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--vd-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--vd-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ecvd-overlay .ecvd-btn:disabled { opacity: .45; cursor: default; }
.ecvd-overlay .ecvd-btn-primary { color: #fff; border-color: transparent; background: var(--vd-grad); box-shadow: 0 10px 28px -12px rgba(85, 85, 85, 0.85); }
.ecvd-overlay .ecvd-btn-ghost:hover { border-color: var(--vd-line-strong); background: rgba(113, 113, 113, 0.1); }
.ecvd-overlay .ecvd-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--vd-dim);
  cursor: pointer;
}
.ecvd-overlay .ecvd-icon-btn:hover { color: var(--vd-ink); background: rgba(113, 113, 113, 0.14); }
.ecvd-overlay :is(button, [tabindex]):focus-visible { outline: 2px solid #727272; outline-offset: 2px; }

/* Upload */
.ecvd-up { padding: 22px; }
.ecvd-up-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ecvd-up-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.ecvd-up-head small { display: block; margin-top: 2px; font-size: 12px; color: var(--vd-dim); }
.ecvd-up-head small:empty { display: none; }
.ecvd-up-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--vd-grad); box-shadow: 0 10px 24px -10px rgba(114, 114, 114, 0.9); }
.ecvd-up-done {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border-radius: 50%;
  color: #fff;
  background: #9b9b9b;
  box-shadow: 0 0 0 6px rgba(155, 155, 155, 0.16), 0 0 22px rgba(155, 155, 155, 0.7);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s ease, transform .35s cubic-bezier(.2, 1.6, .4, 1);
}
.ecvd-up-done .ecvd-ico { width: 22px; height: 22px; stroke-width: 2.6; }
.ecvd-up-overlay.is-done .ecvd-up-done { opacity: 1; transform: scale(1); }
.ecvd-up-file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--vd-line); background: rgba(7, 8, 13, 0.55); }
.ecvd-up-file-copy { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ecvd-up-file-copy strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecvd-up-file-copy small { margin-top: 2px; font-size: 12px; color: var(--vd-dim); font-family: var(--font-mono, ui-monospace, Menlo, monospace); }
.ecvd-up-pct { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 15px; font-weight: 700; color: #c1c1c1; min-width: 3.4em; text-align: right; }
.ecvd-neon {
  position: relative;
  height: 12px;
  margin: 18px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.ecvd-neon-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #434343, #727272, #999999, #727272, #434343);
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(114, 114, 114, 0.95), 0 0 4px rgba(220, 220, 220, 0.95);
  transition: width .25s linear;
  animation: ecvd-flow 1.4s linear infinite;
}
@keyframes ecvd-flow { to { background-position: -200% 0; } }
.ecvd-up-overlay.is-done .ecvd-neon-fill { background: linear-gradient(90deg, #7f7f7f, #9b9b9b); box-shadow: 0 0 16px rgba(155, 155, 155, 0.9); animation: none; }
.ecvd-up-overlay.is-error .ecvd-neon-fill { background: #f43f5e; box-shadow: 0 0 12px rgba(244, 63, 94, 0.8); animation: none; }
.ecvd-up-status { min-height: 20px; font-size: 13px; color: var(--vd-dim); font-variant-numeric: tabular-nums; }
.ecvd-up-status.is-done { color: #d4d4d4; font-weight: 600; }
.ecvd-up-status.is-error { color: #fda4af; }
.ecvd-up-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(155, 155, 155, 0.06); border: 1px solid rgba(155, 155, 155, 0.18); font-size: 12px; color: #e7e7e7; }
.ecvd-up-note .ecvd-ico { width: 16px; height: 16px; color: #b8b8b8; }
.ecvd-up-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ecvd-up-actions [hidden] { display: none !important; }

/* Vorschau */
.ecvd-pv {
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(88vh, 920px);
  height: min(88dvh, 920px);
  overflow: hidden;
}
.ecvd-pv-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--vd-line); }
.ecvd-pv-title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ecvd-pv-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecvd-pv-title small { margin-top: 2px; font-size: 12px; color: var(--vd-dim); }
.ecvd-pv-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; background: rgba(5, 6, 10, 0.6); }
.ecvd-pv-foot { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--vd-line); font-size: 12px; color: #e7e7e7; }
.ecvd-pv-foot .ecvd-ico { width: 16px; height: 16px; color: #b8b8b8; }
.ecvd-pv-wait, .ecvd-pv-msg { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; text-align: center; font-size: 14px; color: var(--vd-dim); }
.ecvd-pv-msg strong { color: var(--vd-ink); font-size: 16px; }
.ecvd-pv-msg.is-error strong { color: #fda4af; }
.ecvd-pv-img { display: block; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; padding: 16px; }
.ecvd-pv-video.vault-video-player {
  display: block;
  margin: auto;
  max-width: calc(100% - 32px);
  max-height: 70vh;
  border-radius: 12px;
  outline: none;
  background: #000;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(113, 113, 113, 0.18);
}
.ecvd-code {
  flex: 1 1 auto;
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  background: #05060a;
  color: #e2e2e2;
  font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
  user-select: text;
}
.ecvd-pv-note { padding: 8px 18px; font-size: 12px; color: #d2d2d2; background: rgba(166, 166, 166, 0.08); border-bottom: 1px solid rgba(166, 166, 166, 0.18); }
.ecvd-pv-frame { flex: 1 1 auto; width: 100%; height: 100%; border: 0; background: #1d1d1d; }
.ecvd-pv-card { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(460px, 100%); padding: 32px 20px; text-align: center; }
.ecvd-pv-card > strong { max-width: 100%; font-size: 16px; overflow-wrap: anywhere; }
.ecvd-pv-card > small { font-size: 13px; color: var(--vd-dim); }
.ecvd-pv-card-ico { width: 64px !important; height: 64px !important; border-radius: 18px !important; }
.ecvd-pv-card-ico .ecvd-ico { width: 30px !important; height: 30px !important; }
.ecvd-pv-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; width: 100%; margin: 12px 0 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--vd-line); background: rgba(7, 8, 13, 0.55); text-align: left; font-size: 12.5px; }
.ecvd-pv-card dt { color: var(--vd-mute); font-weight: 600; }
.ecvd-pv-card dd { margin: 0; color: var(--vd-ink); }
.ecvd-hash { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 11.5px; line-height: 1.5; word-break: break-all; }
.ecvd-pv-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 640px) {
  .ecvd-overlay.ecvd-pv-overlay { padding: 0; }
  .ecvd-pv { width: 100%; height: 100%; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ecvd-pv-head { padding: 10px 8px 10px 14px; gap: 8px; }
  .ecvd-pv-dl span { display: none; }
  .ecvd-pv-dl { width: 44px; padding: 0; }
  .ecvd-up-overlay { align-items: end; padding: 0; }
  .ecvd-up { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .ecvd-overlay, .ecvd-dialog, .ecvd-menu, .ecvd-neon-fill, .ecvd-spinner,
  :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-row.is-new { animation: none !important; }
  :is(#vault-screen, #ec-mobile-shell) .ecvd * { transition: none !important; }
}

/* ── §VAULT-PRO-V2-2026-11-01: Tresor-Einstellungen, Sperre ─────────────── */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs { overflow-x: auto; scrollbar-width: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs::-webkit-scrollbar { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-segs .ecvd-nav-pill { flex: 0 0 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 14px 0 4px;
}
@media (max-width: 1100px) { :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-grid { grid-template-columns: minmax(0, 1fr); } }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 14.5px; font-weight: 700; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-card h3 .ecvd-ico { width: 18px; height: 18px; color: var(--vd-v2); flex: 0 0 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-lead { margin: 0; font-size: 15px; font-weight: 600; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-sub { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--vd-dim); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--vd-mute); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--vd-line); font-size: 12.5px; min-width: 0;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-row span { color: var(--vd-dim); flex: 0 0 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-row strong { color: var(--vd-ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-fp { font-family: var(--vd-mono); letter-spacing: .04em; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(113, 113, 113, 0.12); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-bar i { display: block; height: 100%; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-bar i.is-files, :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-legend .is-files::before { background: #727272; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-bar i.is-notes, :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-legend .is-notes::before { background: #a5a5a5; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--vd-dim); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-legend span { display: inline-flex; align-items: center; gap: 6px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vd-line-strong);
  background: rgba(113, 113, 113, 0.06); color: var(--vd-ink); font: 600 12.5px/1 var(--vd-font); cursor: pointer;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-chip:hover:not(:disabled) { background: rgba(113, 113, 113, 0.16); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-chip.is-on { background: var(--vd-grad); border-color: transparent; color: #fff; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-chip:disabled { opacity: .45; cursor: not-allowed; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-chip:focus-visible, :is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-input:focus-visible { outline: 2px solid #bdbdbd; outline-offset: 2px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--vd-ink); cursor: pointer; min-height: 36px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch span { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: rgba(113, 113, 113, 0.18); border: 1px solid var(--vd-line-strong); transition: background .15s; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d7d7d7; transition: transform .15s; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch input:checked + span { background: var(--vd-grad); border-color: transparent; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch input:checked + span::after { transform: translateX(16px); background: #fff; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch input:focus-visible + span { outline: 2px solid #bdbdbd; outline-offset: 2px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-switch input:disabled + span { opacity: .45; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-card > .ecvd-btn { align-self: flex-start; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-danger { border-color: rgba(244, 63, 94, 0.28) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-set-danger h3 .ecvd-ico { color: #fb7185; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-input {
  width: 100%; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--vd-line-strong);
  background: rgba(7, 8, 13, 0.6); color: var(--vd-ink); font: 500 14px/1 var(--vd-font); box-sizing: border-box;
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-input::placeholder { color: var(--vd-mute); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-wipe-form { display: flex; flex-direction: column; gap: 10px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-wipe-form[hidden] { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-wipe-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-btn:disabled { opacity: .5; cursor: not-allowed; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-msg { min-height: 16px; font-size: 12.5px; color: #fda4af; }
/* Gesperrt: nur die PIN-Karte, kein Inhalt und kein Upload-Knopf */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-locked[hidden] { display: none; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-locked { display: grid; place-items: center; flex: 1 1 auto; padding: 24px 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.is-locked .ecvd-scroll,
:is(#vault-screen, #ec-mobile-shell) .ecvd.is-locked .ecvd-segs,
:is(#vault-screen, #ec-mobile-shell) .ecvd.is-locked .ecvd-right { display: none !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd.is-locked .ecvd-head-actions { visibility: hidden; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-card { width: min(420px, 100%); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-card h2 { margin: 4px 0 0; font-size: 18px; color: var(--vd-ink); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-card p { margin: 0; font-size: 13px; color: var(--vd-dim); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-ico { width: 34px; height: 34px; color: var(--vd-v2); }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-form { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-lk-form .ecvd-input { flex: 1 1 auto; min-width: 0; letter-spacing: .2em; }

/* §VAULT-RESUME-2026-11-03: unterbrochene Uploads (Karte) + Pause im Upload-Dialog.
   flex-wrap statt fester Spalten: die Karte steht im Desktop-Hauptbereich, im 380-px-Tablet-Panel und am Handy. */
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending { padding: 14px 16px; border-color: rgba(193, 193, 193, 0.28) !important; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending-head > div { display: flex; flex-direction: column; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending-head strong { font-size: 14px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending-head small { margin-top: 2px; font-size: 12px; color: var(--vd-dim); overflow-wrap: anywhere; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending-ico { color: #c1c1c1; margin-top: 1px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pending-rows { display: flex; flex-direction: column; gap: 8px; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; min-width: 0;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--vd-line);
}
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-row .ecvd-file-ico { width: 36px; height: 36px; flex: 0 0 auto; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-copy { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-copy small { margin-top: 2px; font-size: 12px; color: var(--vd-dim); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; max-width: 100%; }
:is(#vault-screen, #ec-mobile-shell) .ecvd .ecvd-pend-acts .ecvd-btn { white-space: normal; text-align: center; min-height: 40px; }
.ecvd-up-status.is-warn { color: #d2d2d2; }
.ecvd-up-overlay.is-paused .ecvd-neon-fill { background: #a6a6a6; box-shadow: 0 0 12px rgba(166, 166, 166, 0.7); animation: none; }
.ecvd-up-actions { flex-wrap: wrap; }
.ecvd-up-actions .ecvd-btn { white-space: normal; text-align: center; }
