/* =====================================================================
   WePreview – Design angelehnt an bundes.at
   Dunkel, feines Raster, warmes oranges Glühen, Mono-Labels.
   ===================================================================== */

/* ---------- Schriften (lokal, keine externen Anfragen) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("/static/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root { --wp-css: 1; }   /* Kennzeichen „Design geladen“ – arrive.js wartet darauf */
:root {
  --bg: #0e0f11;
  --bg-2: #131417;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #eceae4;
  --text-2: #b4b3ae;
  --muted: #85868b;
  --accent: #ff8a3d;
  --accent-soft: rgba(255, 138, 61, 0.14);
  --ok: #7ed49a;
  --sel: #7ed49a;          /* Auswahl-Ordner (grün, wie der Haken bei abgeschickter Auswahl) */
  --del: #6aa9ff;          /* Abgabe-Ordner (blau) */
  --warn: #ff7a6b;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --topbar: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
html:has(body.no-scroll), body.no-scroll { overflow: hidden; overscroll-behavior: none; }
.lightbox { overscroll-behavior: contain; }

/* Hintergrund: Raster + oranges Glühen oben rechts, bleibt beim Scrollen stehen */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  transform: translateZ(0); will-change: transform;   /* eigene Ebene → beim Scrollen nicht neu malen */
  background:
    radial-gradient(60vmax 50vmax at 88% -8%, rgba(255, 138, 61, .20), rgba(255, 138, 61, .06) 40%, transparent 70%),
    radial-gradient(40vmax 30vmax at -10% 110%, rgba(255, 138, 61, .05), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--ink), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink), 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 85%);
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-hi); padding: 1px 6px; border-radius: 5px; }
h1, h2 { margin: 0; }

main { padding: 8px var(--gutter) 140px; max-width: 1680px; margin: 0 auto; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.warn { color: var(--warn); }
.liked-text { color: var(--accent); }
.comment-text { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.comment-text svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Auswahl-Limit: orange = läuft, grün = genau erreicht, rot = überschritten */
.limit-text { color: var(--accent); }
.limit-text.full { color: var(--ok); }
.limit-text.over { color: var(--warn); }
.card-limit { --bar: var(--accent); margin-top: 10px; }
.card-limit.full { --bar: var(--ok); }
.card-limit.over { --bar: var(--warn); }
.card-limit-row { display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-limit .sent-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.card-limit .sent-label svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-limit-row b { color: var(--bar); font-weight: 500; }
.card-limit progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 4px;
  margin-top: 6px; border: 0; border-radius: 99px; overflow: hidden; background: rgba(var(--ink), 0.08); color: var(--bar); }
.card-limit progress::-webkit-progress-bar { background: rgba(var(--ink), 0.08); border-radius: 99px; }
.card-limit progress::-webkit-progress-value { background: var(--bar); border-radius: 99px; transition: width .3s; }
.card-limit progress::-moz-progress-bar { background: var(--bar); border-radius: 99px; }
.status-ok { color: var(--ok); margin: 14px 0 0; font-size: .95rem; }

.ico { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; flex: none; }
.ico-inline { color: var(--accent); width: 13px; height: 13px; }
/* Linien-Symbole in Buttons (z. B. Download) */
.btn .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Der orange Punkt hinter Überschriften – wie bei „Bundes.“ */
.brand i, .display i { font-style: normal; color: var(--accent); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgba(var(--dkr-14-15-17), 0.96);   /* ohne Weichzeichner: der kostet beim Scrollen viel Leistung */
  border-bottom: 1px solid var(--line);
}
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; align-self: center; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.powered { font: 400 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .2s; }
.powered b { font-weight: 500; color: var(--text-2); transition: color .2s; }
a.powered:hover, a.powered:hover b { color: var(--accent); }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.topbar-actions form { margin: 0; }
.actions-inline { display: flex; gap: 6px; }
.actions-inline form { margin: 0; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 210px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--dk-1a1b1f); border: 1px solid var(--line-hi); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.menu-panel form { margin: 0; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: 500 .95rem var(--sans); text-align: left; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-hi); }

/* ---------- Kopfbereich einer Seite ---------- */
.hero { position: relative; padding: clamp(36px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); max-width: 980px; }
.hero-compact { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); max-width: none; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.hero-row .inline-form { flex: 0 1 440px; }

.display {
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 18px 0 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-compact .display { font-size: clamp(2rem, 5vw, 3.6rem); }
.display + .pill, .title-row + .pill, .rename-form + .pill, .hero-row + .pill { margin-top: 18px; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }

/* Ordner-Aktionen: Umbenennen · Verschieben ······ Löschen (rot, abgesetzt) */
.folder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.folder-actions form { margin: 0; }
.folder-delete { margin-left: 14px !important; padding-left: 14px; border-left: 1px solid var(--line); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .85rem; gap: 7px; }
.ico-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 15px; height: 15px; }

/* Dialog (z. B. Verschieben) */
.dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: var(--dk-17181b); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.dialog::backdrop { background: rgba(var(--dkr-5-5-7), 0.7); backdrop-filter: blur(4px); }
.dialog form { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.dialog-title { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog p { margin: 0; }
select {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.25); color: var(--text); border: 1px solid var(--line); font: 400 16px var(--sans);
  color-scheme: inherit;
}
select:focus { outline: none; border-color: rgba(255,138,61,.6); box-shadow: 0 0 0 3px var(--accent-soft); }
.link-danger:hover { color: var(--warn); text-decoration-color: var(--warn); }
.trash-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.trash-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.trash-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.trash-info code { overflow-wrap: anywhere; }
.trash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.trash-actions form { margin: 0; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-hi); font: 500 11px var(--mono); }
.rename-form { margin-top: 18px; max-width: 640px; }
.rename-form input { font-size: 1.25rem; font-weight: 600; min-height: 50px; }
.notice-ok { background: rgba(126, 212, 154, .1); border: 1px solid rgba(126, 212, 154, .3); color: var(--ok); padding: 10px 14px; border-radius: var(--radius-sm); margin: 0; font-size: .92rem; }
.display-sm { font-size: clamp(1.8rem, 6vw, 2.4rem) !important; margin: 0; }

.lead {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  white-space: pre-line;        /* Zeilenumbrüche aus deinem Text übernehmen */
}
.lead-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.lead-link:hover { text-decoration-thickness: 2px; }
/* Links, die allein in einer Zeile stehen, werden Knöpfe – nebeneinander */
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; white-space: normal; }
.lead .lead-btn {
  gap: 8px; min-height: 40px; padding: 0 16px; font-size: .92rem; font-weight: 600; text-decoration: none;
  background: rgba(var(--ink), 0.07); border: 1px solid rgba(var(--ink), 0.2); color: var(--text);
}
.lead .lead-btn .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead .lead-btn:hover { background: rgba(var(--ink), 0.14); border-color: rgba(var(--ink), 0.34); }
.lead .lead-btn-main { background: var(--accent); border-color: var(--accent); color: #1a0e05; }
.lead .lead-btn-main:hover { background: var(--accent); filter: brightness(1.08); border-color: var(--accent); }
.lead .lead-btn .star { font-size: 1.05em; line-height: 1; }
.hint { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.hint .ico { vertical-align: -1px; margin: 0 2px; }


/* Pille mit Mono-Labels: „● GALERIE · 24 BILDER · 3 ORDNER“ */
.pill {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 0; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 99px;
  background: rgba(var(--ink), 0.025);
  color: var(--text-2); font-size: 11px;
}
.pill > span:not([hidden]) ~ span:not([hidden])::before { content: "·"; color: var(--accent); margin: 0 10px; }
.pill .rec { color: var(--ok); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.pill .rec[hidden] { display: none; }
.pill .rec svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(126, 212, 154, .55)); animation: globe-spin 9s linear infinite; }
@keyframes globe-spin { 0%, 88% { transform: none; } 94% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.pill .rec:not([hidden]) + span { border-left: 1px solid var(--line); padding-left: 12px; margin-left: 12px; }
.pill .rec:not([hidden]) + span::before { display: none; }
.badge-online { color: var(--ok) !important; }
.badge-online svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .pill .rec svg { animation: none; } }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 18px; font-size: 11px; }
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--accent); }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  background: var(--surface-hi); color: var(--text);
  border: 1px solid var(--line); border-radius: 99px;
  font: 500 .9rem var(--sans); letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.btn:hover { border-color: var(--line-hi); background: rgba(var(--ink), 0.09); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* deaktivierter Hauptknopf: neutral grau statt braun-orange */
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: 1; background: rgba(var(--ink), 0.06); border-color: var(--line); color: var(--muted); box-shadow: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a0e05; font-weight: 600; }
.btn-primary:hover { background: #ff9b57; border-color: #ff9b57; box-shadow: 0 6px 24px rgba(255, 138, 61, .3); }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255, 122, 107, .12); border-color: rgba(255, 122, 107, .35); color: var(--warn); }
.btn-danger:hover { background: rgba(255, 122, 107, .2); border-color: var(--warn); }
.btn-block { width: 100%; min-height: 46px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-hi); align-self: flex-start; }
.link-btn:hover { color: var(--text); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--ink), 0.06); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; padding: 0; transition: background .2s, transform .15s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(var(--ink), 0.12); }
.icon-btn:active { transform: scale(.94); }

label { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input:not([type]), textarea {
  width: 100%; min-width: 0;
  background: rgba(0, 0, 0, .25); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; min-height: 42px;
  font: 400 16px/1.4 var(--sans);   /* 16px: verhindert Auto-Zoom auf dem iPhone */
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: rgba(255, 138, 61, .6); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn:focus-visible, .chip:focus-visible, .heart:focus-visible, .icon-btn:focus-visible, a:focus-visible, .link-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; }

/* ---------- Panels ---------- */
.panel {
  background: linear-gradient(180deg, rgba(var(--ink), 0.045), rgba(var(--ink), 0.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.panel.narrow { max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.label { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel .label { margin-bottom: 4px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Sucher-Ecken um ein Panel (Login, Passwort) */
.framed {
  --c: rgba(236, 234, 228, .55);
  background:
    linear-gradient(var(--c), var(--c)) top left / 20px 1.5px,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 20px,
    linear-gradient(var(--c), var(--c)) top right / 20px 1.5px,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 20px,
    linear-gradient(var(--c), var(--c)) bottom left / 20px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 20px,
    linear-gradient(var(--c), var(--c)) bottom right / 20px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 20px,
    rgba(var(--dkr-18-19-22), 0.72);
  background-repeat: no-repeat;
  border: 0; border-radius: 0; padding: 32px 28px;
  backdrop-filter: blur(6px);
}
.framed .pill { align-self: flex-start; }

.alert { background: rgba(255, 122, 107, .1); border: 1px solid rgba(255, 122, 107, .3); padding: 10px 14px; border-radius: var(--radius-sm); margin: 16px 0; font-size: .92rem; }
.panel .alert { margin: 0; }

.center-page main { display: flex; justify-content: center; align-items: flex-start; padding-top: clamp(40px, 12vh, 140px); }

/* ---------- Ordner-Kacheln ---------- */
.cards { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 61, .45); box-shadow: 0 14px 40px -12px rgba(255, 138, 61, .25); }
.card-cover { aspect-ratio: 4 / 3; background: var(--bg-2); position: relative; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .card-cover img { transform: scale(1.04); }
/* Kachel "+ Neuer Ordner" */
.card-new { border-style: dashed; border-color: var(--line-hi); background: transparent; display: flex; flex-direction: column; min-height: 100%; }
.card-new:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.card-new summary {
  list-style: none; cursor: pointer; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 180px; padding: 20px; color: var(--text-2); font-weight: 500;
}
.card-new summary::-webkit-details-marker { display: none; }
.card-new summary:hover { color: var(--text); }
.card-new .plus {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-hi); color: var(--accent);
  transition: border-color .2s, transform .25s var(--ease), background .2s;
}
/* Plus als Vektorgrafik → liegt exakt in der Mitte, dreht sich ohne zu "eiern" */
.card-new .plus svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: block; }
.card-new summary:hover .plus { border-color: var(--accent); background: var(--accent-soft); transform: rotate(90deg); }
.card-new[open] summary { min-height: 0; flex: none; flex-direction: row; padding: 16px 16px 4px; justify-content: flex-start; }
.card-new[open] .plus { width: 30px; height: 30px; transform: rotate(45deg); }
.card-new[open] .plus svg { width: 15px; height: 15px; }
.card-new form { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; }
.section-label { margin-bottom: 14px; }
.crumb-home { display: inline-flex; align-items: center; gap: 6px; }
.crumb-home .ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; vertical-align: 0; }

.card-folder { width: 52px; height: 52px; fill: rgba(var(--ink), 0.08); position: absolute; inset: 0; margin: auto; }
.card-body { padding: 14px 16px 16px; }
.card-title { font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 6px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta > span + span::before { content: "·"; margin: 0 8px; color: var(--line-hi); }
.card-badges { position: absolute; top: 10px; left: 10px; right: 50px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(var(--dkr-10-10-12), 0.78);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px;
  font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge-comment svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge-comment.is-open { color: var(--accent); border-color: rgba(255,138,61,.55); }
.badge-ok { color: var(--ok); }
.badge-ok .dot { background: var(--ok); }

/* ---------- Admin: Panels ---------- */
.admin-panels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: 36px; align-items: start; }
#share .fold-body, #description .fold-body, #upload .fold-body, #activity .fold-body { display: flex; flex-direction: column; gap: 14px; }
.switch { flex-direction: row; align-items: center; gap: 12px; color: var(--text); cursor: pointer; font-size: .95rem; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; margin: 0; border-radius: 99px; background: rgba(var(--ink), 0.12); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: #1a0e05; }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-link { display: flex; gap: 8px; }
.share-link input { font: 400 13px var(--mono); color: var(--text-2); }
.share-password { display: flex; flex-direction: column; gap: 8px; }

.dropzone {
  border: 1.5px dashed var(--line-hi); border-radius: var(--radius-sm);
  min-height: 150px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; color: var(--text-2); padding: 20px;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.dropzone input { display: none; }
.dz-icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.progress { height: 4px; background: rgba(var(--ink), 0.08); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width .2s; }

.subfolders { margin-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head .inline-form { flex: 0 1 440px; }

/* ---------- Werkzeugleiste über den Fotos ---------- */
.gallery-toolbar {
  position: sticky; top: calc(var(--topbar) + env(safe-area-inset-top)); z-index: 30;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); margin: 0 calc(-1 * var(--gutter)) 14px;
  background: rgba(var(--dkr-14-15-17), 0.95);
}
.filters, .toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* Ansicht-Menü */
.view-menu { position: relative; flex: none; }
.view-menu summary { list-style: none; }
.view-menu summary::-webkit-details-marker { display: none; }
.view-menu[open] summary { border-color: var(--line-hi); color: var(--text); }
.ico-grid { fill: currentColor; width: 13px; height: 13px; }
.chip .view-label { font: inherit; color: inherit; }
.view-panel { left: 0; right: auto; gap: 8px; padding: 14px; min-width: 250px; }
.view-panel .label { margin-top: 4px; }
.seg { display: flex; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; min-height: 38px; border: 0; border-radius: 7px; background: none; color: var(--text-2);
  font: 500 .9rem var(--sans); cursor: pointer; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.only-mobile { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 14px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 99px;
  font: 500 .85rem var(--sans); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--line-hi); color: var(--text); }
.chip span { font: 500 11px var(--mono); color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] span { color: rgba(14,15,17,.6); }
.chip[data-filter-btn="liked"] .ico { color: var(--accent); }

/* =====================================================================
   Foto-Raster („justified layout“)
   Jede Kachel bekommt ihr Seitenverhältnis als --r (per JavaScript).
   Daraus entstehen Reihen gleicher Höhe: Querformate breit, Hochformate
   schmal – alles bündig, ohne Beschnitt, wie bei Google Fotos / Flickr.
   ===================================================================== */
.grid {
  --row: clamp(200px, 22vw, 300px);
  --gap: 8px;
  display: flex; flex-wrap: wrap; gap: var(--gap);
}
/* Unsichtbares Element am Ende: verhindert, dass die letzte Reihe riesig gezogen wird */
.grid::after { content: ""; flex-grow: 1000000; }

.tile {
  --r: 1.5;
  position: relative; margin: 0;
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--row));
  max-width: 100%;
  border-radius: 6px; overflow: hidden;
  background: var(--bg-2);
  cursor: default;                     /* normaler Mauszeiger – Klick öffnet trotzdem groß */
  animation: tile-in .5s var(--ease) backwards;   /* nicht „both“: sonst übersteuert die fertige Animation das Gleiten (transform) */
}
.tile img, .tile .placeholder {
  display: block; width: 100%; height: 100%;
  aspect-ratio: var(--r);
  object-fit: cover;
  transition: transform .6s var(--ease), filter .3s;
}
.tile:hover img { transform: scale(1.025); }
.tile.pending, .tile.error { cursor: default; }
.placeholder { display: flex !important; align-items: center; justify-content: center; color: var(--muted); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; }

@keyframes tile-in { from { opacity: 0; transform: translateY(6px); } }

/* Markierte Bilder: oranger Rahmen nach innen */
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .2s;
}
.tile.liked::after { box-shadow: inset 0 0 0 3px var(--accent); }

/* Admin: Herzen, die der Kunde gesetzt hat, sind mit "Kunde" gekennzeichnet */
.grid[data-protect-client] .tile.liked[data-by="client"]::before {
  content: "Kunde"; position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 99px;
  background: var(--accent); color: #1a0e05;
  font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
}

/* Dateiname: beim Darüberfahren unten eingeblendet */
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  font: 400 11px var(--mono); letter-spacing: .04em; color: rgba(var(--ink), 0.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.tile:hover figcaption, .tile.pending figcaption, .tile.error figcaption { opacity: 1; transform: none; }

/* Ansicht "Raster": exakt --cols Spalten, quadratische Kacheln */
.grid[data-layout="grid"] { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.grid[data-layout="grid"]::after { display: none; }
.grid[data-layout="grid"] .tile { flex: none; }
.grid[data-layout="grid"] .tile img, .grid[data-layout="grid"] .tile .placeholder { aspect-ratio: 1; }

/* Ansicht "Spalten": Bilder ungeschnitten untereinander (Masonry) */
.grid[data-layout="columns"] { display: block; column-count: var(--cols, 4); column-gap: var(--gap); }
.grid[data-layout="columns"]::after { display: none; }
.grid[data-layout="columns"] .tile { display: block; width: 100%; margin: 0 0 var(--gap); break-inside: avoid; }
.grid[data-layout="columns"] .tile img, .grid[data-layout="columns"] .tile .placeholder { height: auto; aspect-ratio: var(--r); }

/* Ansicht-Menü: Symbole und Regler */
.view-panel { min-width: 280px; }
.seg-icons button svg { width: 20px; height: 20px; display: block; margin: 0 auto; fill: currentColor; opacity: .85; }
.seg-icons button[aria-pressed="true"] svg { opacity: 1; }
.view-range { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; background: none; }

/* Videos: Play-Symbol + Dauer */
.video-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 7px; border-radius: 99px;
  background: rgba(var(--dkr-10-10-12), 0.72);
  font: 500 11px var(--mono); color: var(--lt-ffffff); pointer-events: none;
}
.video-badge svg { width: 12px; height: 12px; fill: currentColor; }
.lb-stage video { max-width: calc(100% - var(--lb-side, 72px) - var(--lb-right, var(--lb-side, 72px))); max-height: 100%; border-radius: 4px; background: var(--dk-000000); will-change: transform, opacity; }
.tile:hover .video-badge { opacity: 0; }
.tile .video-badge { transition: opacity .2s; }

/* Ordner auswählen (Home / Unterordner) */
.card { position: relative; }
.card .check {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.9); background: rgba(var(--dkr-10-10-12), 0.4); box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.card .check svg { width: 15px; height: 15px; fill: none; stroke: #1a0e05; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
body.folder-selecting .cards.selectable .card[data-id] .check { display: flex; }
body.folder-selecting .cards.selectable .card[data-id] .card-badges { display: none; }
body.folder-selecting .cards.selectable .card[data-id]:hover { transform: none; }
body.folder-selecting .cards.selectable .card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
body.folder-selecting .cards.selectable .card.selected .check { background: var(--accent); border-color: var(--accent); }
body.folder-selecting .cards.selectable .card.selected .check svg { opacity: 1; }
body.folder-selecting .card-new { opacity: .35; pointer-events: none; }
#folder-select-toggle[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Verschieben: Ordnerbaum */
.picker { width: min(520px, calc(100vw - 24px)); }
.picker-inner { display: flex; flex-direction: column; max-height: min(78vh, 720px); }
.picker-head { padding: 22px 22px 6px; display: flex; flex-direction: column; gap: 4px; }
.picker-head p { margin: 0; }
.picker-search {
  margin: 10px 22px 10px; flex-direction: row; align-items: center; gap: 10px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.25);
}
.picker-search:focus-within { border-color: rgba(255,138,61,.6); box-shadow: 0 0 0 3px var(--accent-soft); }
.picker-search .ico { width: 16px; height: 16px; color: var(--muted); }
.picker-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; min-height: 42px; box-shadow: none !important;
  color: var(--text); font: 400 16px var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.picker-search input::placeholder { color: var(--muted); }
/* Beim Suchen: flache Trefferliste ohne Einrückung */
.picker-list.searching .picker-row { padding-left: 12px; }
.picker-list.searching .picker-row::before { display: none; }
.picker-search input::-webkit-search-cancel-button { filter: invert(.6); }
.picker-list { overflow-y: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 120px; }
.picker-row {
  --depth: 0;
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  min-height: 44px; padding: 0 12px 0 calc(12px + var(--depth) * 18px);
  border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text);
  font: 500 .95rem var(--sans); cursor: pointer; transition: background .12s, border-color .12s;
  position: relative;
}
/* feine Linie zeigt die Verschachtelung */
.picker-row:not(.picker-home)::before {
  content: ""; position: absolute; left: calc(12px + (var(--depth) - 1) * 18px + 8px); top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.picker-row:hover:not(:disabled) { background: var(--surface-hi); }
.picker-row[aria-selected="true"] { background: var(--accent-soft); border-color: rgba(255,138,61,.55); }
.picker-row[aria-selected="true"] .picker-folder { fill: var(--accent); }
.picker-row:disabled { cursor: not-allowed; color: var(--muted); }
.picker-row:disabled .picker-folder { opacity: .4; }
.picker-row.is-current { color: var(--text-2); }
.picker-home { font-weight: 650; padding-left: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.picker-folder { flex: none; width: 18px; height: 18px; fill: rgba(var(--ink), 0.28); transition: fill .12s; }
.picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-note { flex: none; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.picker-row.is-current .picker-note { color: var(--accent); }
.picker-empty { padding: 12px; margin: 0; }
.picker-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px 18px; border-top: 1px solid var(--line);
}
.picker-target { color: var(--muted); font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-target strong { color: var(--text); font-weight: 600; }

/* Passwortschutz */
.lock-badge {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--dkr-10-10-12), 0.78);
  border: 1px solid rgba(126, 212, 154, .45); color: var(--ok);
}
.lock-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-lock { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.pill-lock .ico { width: 12px; height: 12px; }
.pw-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pw-status div { display: flex; flex-direction: column; gap: 2px; }
.pw-status strong { font-weight: 600; font-size: .95rem; }
.pw-status .small { color: var(--muted); }
.pw-icon { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-status.on { background: rgba(126, 212, 154, .08); border-color: rgba(126, 212, 154, .4); }
.pw-status.on .pw-icon, .pw-status.on strong { color: var(--ok); }
.pw-status.off .pw-icon { color: var(--muted); }

/* Titelbild */
.cover-preview { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-preview .badge { position: absolute; top: auto; bottom: 10px; left: 10px; }
.cover-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cover-actions label.btn { color: var(--text); font-size: .9rem; flex-direction: row; }
.cover-hint { margin: 0; }
.lb-cover .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 17px; height: 17px; }
.lb-cover { min-height: 44px; }

/* Auswahlmodus */
.tile .check {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.9); background: rgba(var(--dkr-10-10-12), 0.35);
  box-shadow: 0 1px 6px rgba(0,0,0,.4); pointer-events: none;
}
.tile .check svg { width: 15px; height: 15px; fill: none; stroke: #1a0e05; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.grid.selecting .tile { cursor: pointer; }
.grid.selecting .tile .check { display: flex; }
.grid.selecting .heart, .grid.selecting .tile::before { display: none; }
.grid.selecting .tile.selected .check { background: var(--accent); border-color: var(--accent); }
.grid.selecting .tile.selected .check svg { opacity: 1; }
.grid.selecting .tile.selected img { transform: scale(.92); border-radius: 6px; }
.grid.selecting .tile.selected { background: var(--accent-soft); }
.grid.selecting .tile:hover img { transform: none; }
.grid.selecting .tile.selected:hover img { transform: scale(.92); }

.select-bar {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 35;
  display: flex; align-items: center; gap: 18px;
  background: rgba(var(--dkr-22-23-26), 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-hi); border-radius: 99px; padding: 7px 7px 7px 22px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5); white-space: nowrap;
}
.select-actions { display: flex; gap: 6px; }
.select-count strong { font-variant-numeric: tabular-nums; }
body.selecting .toast { top: auto; bottom: calc(90px + env(safe-area-inset-bottom)); }
#select-toggle[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.trash-section { margin-top: 36px; }

/* Kommentar-Symbol an der Kachel */
/* Kommentar und Markierung getrennt: Sprechblase = Text, Stift = auf dem Bild markiert */
.ind-badges { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: flex; gap: 5px; pointer-events: none; }
.comment-badge, .mark-badge {
  width: 28px; height: 28px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.comment-badge svg { width: 15px; height: 15px; fill: currentColor; }
.mark-badge { background: var(--accent); color: #1a0e05; }
.mark-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile.has-comment .comment-badge, .tile.has-marks .mark-badge { display: flex; }
.grid[data-filter="comment"] .tile:not(.has-comment) { display: none; }
.grid[data-filter="marks"] .tile:not(.has-marks) { display: none; }
.grid.selecting .ind-badges { display: none; }
.ico-mark { fill: none; stroke: currentColor; stroke-width: 2; }

/* Filter */
.grid[data-filter="liked"] .tile:not(.liked),
.grid[data-filter="unliked"] .tile.liked { display: none; }

/* Herz-Knopf */
.heart {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--dkr-10-10-12), 0.58); border: 0; cursor: pointer; padding: 0;
  transition: transform .15s var(--ease), background .2s, opacity .2s;
}
.heart svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; transition: fill .2s, stroke .2s; }
.heart:hover { background: rgba(var(--dkr-10-10-12), 0.7); }
.heart:active { transform: scale(.85); }
.tile.liked .heart svg, .heart.on svg { fill: var(--accent); stroke: var(--accent); }
.tile.liked .heart { background: rgba(var(--dkr-10-10-12), 0.6); }
.heart.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }

/* Mit Maus: leere Herzen erst beim Darüberfahren zeigen → ruhigeres Raster */
@media (hover: hover) {
  .tile:not(.liked) .heart { opacity: 0; }
  .tile:hover .heart, .heart:focus-visible { opacity: 1; }
}

/* ---------- Großansicht ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(var(--dkr-8-8-10), 0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } }
.lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}
/* Zähler + Dateiname: nimmt den Platz links, der Schließen-Knopf behält immer seinen */
.lb-caption { flex: 1; min-width: 0; display: flex; gap: 12px; color: var(--text-2); font-size: 11px; white-space: nowrap; }
.lb-caption #lb-count { flex: none; color: var(--text); }
.lb-name { overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.lb-top .lb-close { flex: none; }
.lb-stage {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 0 72px;
  touch-action: pan-y pinch-zoom;   /* seitliches Wischen übernimmt WePreview */
}
/* Bild absolut in der Bühne: so gelten die Höchstmaße in jedem Browser (Firefox auf Android hat
   "max-height: 100%" im Raster ignoriert – das Bild war größer als der Bildschirm und rutschte nach unten) */
.lb-stage img, .lb-stage video { position: absolute; inset: 0 var(--lb-right, var(--lb-side, 72px)) 0 var(--lb-side, 72px); margin: auto; }
.lb-stage img {
  max-width: calc(100% - var(--lb-side, 72px) - var(--lb-right, var(--lb-side, 72px))); max-height: 100%; object-fit: contain; border-radius: 4px;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
  will-change: transform, opacity;
}
.lb-stage.loading::after {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-hi); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.94); }
.lb-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}
/* Kommentar in der Großansicht */
.lightbox { grid-template-rows: auto 1fr auto auto; }
/* Kommentare unter dem Bild: Sprechblasen, eigene rechts und antippbar */
.lb-comments {
  justify-self: center; width: min(560px, calc(100vw - 32px)); max-height: 30vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; padding: 2px 0 6px;
}
.lb-c {
  display: flex; flex-direction: column; gap: 3px; max-width: 88%; align-self: flex-start; text-align: left;
  padding: 9px 13px 10px; border-radius: 14px 14px 14px 4px;
  background: rgba(var(--ink), 0.07); border: 1px solid var(--line); color: var(--text);
  font: 400 .93rem/1.45 var(--sans);
}
.lb-c.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); border-color: rgba(255,138,61,.3); cursor: text; }
.lb-c.mine:hover { border-color: rgba(255,138,61,.6); }
.lb-c-who { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lb-c.mine .lb-c-who { color: var(--accent); }
.lb-c-text { white-space: pre-line; overflow-wrap: anywhere; }

/* Eingabe: schwebendes Fenster, am Handy unten über der Tastatur */
.lb-sheet {
  position: fixed; z-index: 5; left: 50%; bottom: calc(24px + var(--kb, 0px)); transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: var(--dk-17181b); border: 1px solid var(--line-hi); border-radius: 16px;
  box-shadow: 0 -10px 60px rgba(0,0,0,.6); animation: sheet-in .22s var(--ease);
}
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.lb-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.lb-sheet-title { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.icon-btn-sm { width: 34px; height: 34px; }
.icon-btn-sm svg { width: 16px; height: 16px; }
.lb-sheet textarea { min-height: 88px; max-height: 32vh; background: rgba(0,0,0,.45); font-size: 16px; resize: none; }
.lb-comment-actions { display: flex; justify-content: flex-end; gap: 6px; }
/* Beim Schreiben: Knöpfe unten ausblenden, Bild bleibt ruhig stehen */
.lightbox.editing .lb-bar, .lightbox.editing .lb-comments { visibility: hidden; }
.lightbox.editing .lb-prev, .lightbox.editing .lb-next { display: none; }
@media (max-width: 720px) {
  .lb-sheet {
    left: 0; right: 0; width: auto; transform: none; bottom: var(--kb, 0px);
    border-radius: 18px 18px 0 0; border-bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
}
.lb-comment-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lb-comment-btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.lb-comment-btn.on svg { fill: currentColor; }

.heart-lg { position: static; width: 56px; height: 56px; background: rgba(var(--ink), 0.08); border: 1px solid var(--line); }
.heart-lg svg { width: 26px; height: 26px; }
.heart-lg.on { background: var(--accent-soft); border-color: rgba(255, 138, 61, .5); }

/* ---------- Kunde: Auswahl abschicken ---------- */
.submit-bar {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 35;
  display: flex; align-items: center; gap: 18px;
  background: rgba(var(--dkr-22-23-26), 0.82);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-hi);
  border-radius: 99px; padding: 7px 7px 7px 22px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  white-space: nowrap;
}
.submit-count { display: inline-flex; align-items: center; gap: 6px; }
.submit-count .ico { color: var(--accent); width: 16px; height: 16px; }
.submit-count strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.limit-of { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.submit-bar.limit-full .submit-count strong, .submit-bar.limit-full .limit-of { color: var(--ok); }
.submit-bar.limit-over { border-color: rgba(255, 138, 61, .6); }
.submit-bar.limit-over .submit-count strong { color: var(--accent); }
.limit-note { margin: 14px 0 0; color: var(--text-2); }
.limit-note strong { color: var(--text); }
.share-limit { display: flex; flex-direction: column; gap: 10px; }
.limit-field .inline-form { max-width: 220px; }
.limit-field input { max-width: 120px; }
input[type="number"] {
  width: 100%; min-height: 42px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.25); color: var(--text); border: 1px solid var(--line); font: 400 16px var(--sans); color-scheme: inherit;
}
body.no-scroll .submit-bar { display: none; }
.submitted-note { margin: 40px auto 0; max-width: 520px; color: var(--ok); text-align: center; }

/* ---------- Hinweis-Einblendung ---------- */
.toast {
  display: flex; align-items: center; gap: 14px;
  position: fixed; left: 50%; top: calc(var(--topbar) + 14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 200;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 99px; font-size: .9rem; font-weight: 500;
  box-shadow: 0 10px 34px rgba(0,0,0,.45); max-width: calc(100vw - 32px); text-align: center;
  animation: toast-in .25s var(--ease) both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.toast-action {
  flex: none; background: var(--bg); color: var(--text); border: 0; border-radius: 99px;
  padding: 6px 12px; font: 600 .82rem var(--sans); cursor: pointer;
}
.toast-action:hover { background: var(--dk-000000); }
/* Über der Großansicht, damit "Rückgängig" auch dort erreichbar ist */
body.no-scroll .toast { top: calc(70px + env(safe-area-inset-top)); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-hi); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   Handy
   ===================================================================== */
@media (max-width: 720px) {
  :root { --topbar: 60px; }
  main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

  .topbar-actions .btn { min-height: 36px; padding: 0 12px; font-size: .85rem; }
  .actions-inline { display: none; }
  .menu { display: block; }
  .brand-wrap { flex-direction: column; gap: 0; line-height: 1.15; }
  .rename-form { flex-wrap: wrap; }
  .picker { width: calc(100vw - 16px); max-width: none; }
  .picker-inner { max-height: 86vh; }
  .picker-foot { flex-direction: column; align-items: stretch; }
  .picker-foot .dialog-actions .btn { flex: 1; }
  .card .check { left: 7px; top: 7px; width: 24px; height: 24px; }
  .lock-badge { top: 6px; right: 6px; width: 26px; height: 26px; }
  .hero-row #folder-select-toggle { align-self: flex-start; }
  .folder-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .folder-actions .btn, .folder-delete .btn { width: 100%; padding: 0 6px; font-size: .82rem; gap: 5px; }
  .folder-delete { margin: 0 !important; padding: 0; border: 0; }
  .lb-cover { padding: 0 12px; font-size: .85rem; }
  .select-bar { left: 10px; right: 10px; transform: none; bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: space-between; padding: 7px 7px 7px 16px; gap: 8px; }
  .select-actions .btn { min-height: 42px; padding: 0 12px; }
  .tile .check { left: 5px; top: 5px; width: 22px; height: 22px; }
  .trash-actions { width: 100%; }
  .trash-actions form, .trash-actions .btn { flex: 1; width: 100%; }
  .rename-form input { flex-basis: 100%; }
  .rename-form .btn { flex: 1; }
  .powered { font-size: 9px; }

  .hero { padding-top: 32px; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-row .inline-form, .section-head .inline-form { flex: 1 1 100%; }
  .section-head { flex-direction: column; align-items: stretch; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: .95rem; }
  .meta { font-size: 10px; }
  .card-badges { top: 6px; left: 6px; right: 40px; gap: 4px; }
  .badge { padding: 3px 7px; font-size: 9px; }

  /* Fotos: niedrigere Reihen, kleinere Abstände → 2–3 Bilder pro Reihe */
  .grid { --row: 128px; --gap: 4px; }
  .tile { border-radius: 4px; }
  .tile figcaption { display: none; }
  .heart { width: 34px; height: 34px; right: 4px; top: 4px; }
  .heart svg { width: 17px; height: 17px; }
  .heart-lg { width: 60px; height: 60px; }
  .heart-lg svg { width: 28px; height: 28px; }
  .tile.liked::after { box-shadow: inset 0 0 0 2px var(--accent); }

  .gallery-toolbar { padding-top: 10px; padding-bottom: 10px; }
  .toolbar-left { width: 100%; }
  .filters { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .view-label { display: none; }
  .view-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); min-width: 0; z-index: 80; box-shadow: 0 -10px 60px rgba(0,0,0,.6); }
  .only-mobile { display: block; }
  .only-desktop { display: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 34px; padding: 0 12px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1; min-height: 38px; padding: 0 10px; font-size: .85rem; }

  /* Großansicht: Pfeile ausblenden, es wird gewischt */
  .lb-stage { padding: 0; --lb-side: 0px; }
  .lb-name { display: none; }
  .lb-top { padding-left: 20px; padding-right: 12px; }
  .grid[data-protect-client] .tile.liked[data-by="client"]::before { left: 4px; top: 4px; padding: 2px 6px; font-size: 9px; }
  .lb-stage img { border-radius: 0; }
  .lb-prev, .lb-next { display: none; }

  /* Auswahl-Leiste über die ganze Breite unten */
  .submit-bar {
    left: 10px; right: 10px; transform: none; bottom: calc(10px + env(safe-area-inset-bottom));
    justify-content: space-between; padding: 7px 7px 7px 18px;
  }
  .submit-bar .btn { min-height: 44px; }

  .framed { padding: 28px 22px; }
}

@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
  .grid { --row: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Kundenlink: Auswahl oder Abgabe ---------- */
.share-mode { display: flex; flex-direction: column; gap: 6px; }
.seg-wide button { flex: 1; }
#share.mode-deliver #share-limit-box { display: none; }
.deliver-text { color: var(--ok); }
.card-limit.deliver .sent-label { color: var(--text); }
.card-limit.deliver .sent-label svg { stroke-width: 2; }

/* =====================================================================
   Abgabe-Galerie (Kunde sieht und lädt fertige Bilder, ohne Auswahl)
   ===================================================================== */
.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dh-media { display: none; }
.dh-scroll { display: none; }

/* Handy: Titelbild groß über die ganze Breite, Titel unten im Bild, Text darunter */
@media (max-width: 899px) {
  .deliver-hero.has-cover { display: grid; grid-template-areas: "media" "body"; padding-top: 0; }
  .deliver-hero.has-cover .dh-text { display: contents; }
  .deliver-hero.has-cover .dh-media {
    grid-area: media; display: block; position: relative; overflow: hidden;
    height: min(72svh, 640px); margin: -8px calc(-1 * var(--gutter)) 0;
  }
  .deliver-hero.has-cover .dh-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dh-zoom 2.4s var(--ease) both; }
  .deliver-hero.has-cover .dh-media::after {
    content: ""; position: absolute; inset: 0 0 -2px; pointer-events: none;
    background: linear-gradient(to top, var(--bg) 0%, var(--bg) 3%, rgba(var(--dkr-8-8-10), 0.72) 24%, rgba(var(--dkr-8-8-10), 0) 55%);
  }
  .deliver-hero.has-cover .dh-head { grid-area: media; align-self: end; position: relative; z-index: 1; padding: 0 2px 10px; }
  .deliver-hero.has-cover .display { text-shadow: 0 2px 24px rgba(0,0,0,.5); margin-bottom: 0; }
  .deliver-hero.has-cover .pill { background: rgba(var(--dkr-10-10-12), 0.5); }
  .deliver-hero.has-cover .breadcrumb a { color: rgba(var(--ink), 0.8); }
  .deliver-hero.has-cover .dh-body { grid-area: body; }
  .deliver-hero.has-cover .lead { margin-top: 14px; }
}

/* PC: Titelbild groß, Text darüber */
@media (min-width: 900px) {
  .deliver-hero.has-cover {
    max-width: none; min-height: min(78vh, 880px); margin: 8px 0 clamp(40px, 5vw, 72px);
    padding: 0; display: flex; align-items: flex-end;
    border-radius: 22px; overflow: hidden; isolation: isolate;
    border: 1px solid var(--line);
    box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
  }
  .deliver-hero.has-cover .dh-media { display: block; position: absolute; inset: 0; z-index: -2; }
  .deliver-hero.has-cover .dh-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    animation: dh-zoom 2.4s var(--ease) both;
  }
  /* Abdunkeln unten/links, damit der Titel immer lesbar ist */
  .deliver-hero.has-cover::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(to top, rgba(var(--dkr-8-8-10), 0.88) 0%, rgba(var(--dkr-8-8-10), 0.45) 38%, rgba(var(--dkr-8-8-10), 0) 68%),
      linear-gradient(to right, rgba(var(--dkr-8-8-10), 0.55), rgba(var(--dkr-8-8-10), 0) 55%);
  }
  .deliver-hero.has-cover .dh-text { padding: clamp(32px, 4.5vw, 72px); max-width: 980px; animation: dh-text .9s .15s var(--ease) both; }
  .deliver-hero.has-cover .display { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
  .deliver-hero.has-cover .lead { color: rgba(var(--ink), 0.86); }
  .deliver-hero.has-cover .pill { background: rgba(var(--dkr-10-10-12), 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .deliver-hero.has-cover .breadcrumb a { color: rgba(var(--ink), 0.75); }
  .deliver-hero.has-cover .dh-scroll {
    display: inline-flex; background: rgba(var(--ink), 0.08); border-color: rgba(var(--ink), 0.22);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  body.deliver .subfolders { margin-bottom: 56px; }
}
@keyframes dh-zoom { from { transform: scale(1.06); opacity: .4; } }
@keyframes dh-text { from { opacity: 0; transform: translateY(14px); } }
html:has(body.deliver) { scroll-behavior: smooth; }
#gallery { scroll-margin-top: 80px; }

/* Collage: Reihen mit wechselnder Höhe (gebaut von gallery.js) */
.grid[data-layout="collage"] { --cgap: 14px; display: block; }
.grid[data-layout="collage"]::after { display: none; }
.c-row { display: flex; gap: var(--cgap); margin: 0 auto var(--cgap); }
.c-row .tile { flex-basis: 0; min-width: 0; height: 100%; border-radius: 4px; animation: none; }
.c-row .tile img { height: 100%; aspect-ratio: auto; }
.c-solo { margin-bottom: calc(var(--cgap) * 3); margin-top: calc(var(--cgap) * 2); }

/* Einblenden beim Scrollen */
.grid.reveal .tile { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.grid.reveal .tile:not(.in) { opacity: 0; transform: translateY(22px); }

/* Abgabe: ruhige Kacheln – kein Dateiname, nur ein Download-Knopf beim Darüberfahren */
.grid.deliver .tile figcaption { display: none; }
.grid.deliver .tile img { transition: transform 1.1s var(--ease), filter .4s; }
.grid.deliver .tile:hover img { transform: scale(1.035); filter: brightness(1.06); }
.tile-dl {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(var(--dkr-10-10-12), 0.66); border: 1px solid rgba(var(--ink), 0.18); color: var(--lt-ffffff);
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, background .2s;
}
.tile-dl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile-dl, .tile-dl:focus-visible { opacity: 1; transform: none; }
.tile-dl:hover { background: var(--accent); border-color: var(--accent); color: #1a0e05; }
@media (hover: none) { .tile-dl { display: none; } }

/* Ansicht-Menü: bei Collage keine Spaltenzahl */
.view-panel.is-collage .size-label, .view-panel.is-collage [data-size] { display: none; }

/* Großansicht der Abgabe: Download-Knopf + Filmstreifen */
.lightbox.lb-deliver { grid-template-rows: auto 1fr auto auto; }
.lb-dl-btn { background: rgba(var(--ink), 0.08); border-color: rgba(var(--ink), 0.18); }
.lb-dl-btn .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-dl-btn:hover { background: var(--accent); border-color: var(--accent); color: #1a0e05; }
.lb-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px calc(14px + env(safe-area-inset-bottom));
  scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex: none; height: 62px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--bg-2);
  cursor: pointer; opacity: .4; transition: opacity .2s, transform .2s, box-shadow .2s;
}
.lb-thumb img { display: block; height: 100%; width: auto; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.lb-deliver .lb-bar { padding-bottom: 12px; }
@media (max-width: 720px) {
  .lb-strip { display: none; }
  .lb-deliver .lb-bar { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .deliver-hero .dh-media img, .deliver-hero .dh-text { animation: none; }
  .grid.reveal .tile:not(.in) { opacity: 1; transform: none; }
}

/* Passwortfeld mit Auge */
.pw-field { position: relative; flex: 1; min-width: 0; display: flex; }
.pw-field input { flex: 1; min-width: 0; padding-right: 46px; font-family: var(--mono); letter-spacing: .04em; }
.pw-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--text); background: var(--surface-hi); }
.pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-legacy { margin: 0; }

/* ---------- Aufklappbare Einstellungs-Bereiche ---------- */
.admin-panels { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.panel.fold { padding: 0; transition: border-color .2s, background .2s; }
.panel.fold[open] { border-color: var(--line-hi); }
.fold-head {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px 12px 14px;
  cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none; border-radius: inherit;
}
.fold-head::-webkit-details-marker { display: none; }
.fold-head:hover { background: rgba(var(--ink), 0.025); }
.fold-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fold-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink), 0.05); border: 1px solid var(--line); color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.fold-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Symbol leuchtet, wenn hier etwas aktiv ist (Link an, Aufrufe vorhanden, Text gesetzt) */
.fold.is-on .fold-icon {
  background: var(--accent-soft); border-color: rgba(255,138,61,.45); color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,138,61,.08), 0 0 18px rgba(255,138,61,.35);
}
.fold-title { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; }
.fold-sum {
  margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap; overflow: hidden;
}
.fold-sum .on { color: var(--ok); }
.fold-sum .sum-text { overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font: 400 13px var(--sans); color: var(--muted); }
.sum-lock { display: inline-flex; color: var(--ok); }
.sum-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fold-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.fold[open] .fold-chev { transform: rotate(180deg); }
.fold-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); padding-top: 18px; animation: fold-in .25s var(--ease); }
@keyframes fold-in { from { opacity: 0; transform: translateY(-4px); } }

/* Aktivität */
.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.activity-list li { display: flex; gap: 12px; align-items: flex-start; }
.activity-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-ico { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act-row { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }
.act-note { margin: 0; }

.card-limit-row b.act-done { color: var(--ok); }
.card-limit-row b.act-seen { color: var(--text); }
.card-limit-row b.act-none { color: var(--muted); }

/* Kompakt in einer Reihe: 4 nebeneinander am PC, 2 am Tablet, untereinander am Handy */
.admin-panels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 32px; }
@media (max-width: 1180px) { .admin-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .admin-panels { grid-template-columns: 1fr; gap: 10px; } }
.fold-head { min-height: 54px; padding: 8px 12px 8px 10px; gap: 10px; }
.fold-icon { width: 34px; height: 34px; border-radius: 9px; }
.fold-icon svg { width: 17px; height: 17px; }
.fold-title { font-size: .94rem; }
.fold-sum { font-size: 10.5px; }
.fold-sum .sum-text { font-size: 12.5px; }
.fold-body { padding: 16px 16px 18px; }

/* Knopf "Titelbild" mit Mini-Vorschau + Fenster */
.cover-btn { padding-left: 6px; }
.cover-thumb { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-hi); flex: none; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-dialog { width: min(900px, calc(100vw - 32px)); }
.dh-media picture { display: block; width: 100%; height: 100%; }

/* Titelbild-Fenster: Vorschau PC + Handy, so wie der Kunde die Abgabe sieht */
.cover-views { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cover-view { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cover-view-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cover-view .badge { font-size: 9px; padding: 3px 8px; }
.mock { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); container-type: inline-size; }
.mock img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: crosshair; }
.mock-dot {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none; z-index: 2;
  border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,138,61,.9);
}
.mock-text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; z-index: 1; }
.mock-pill { display: inline-flex; align-items: center; gap: .6em; padding: .45em .9em; border-radius: 99px; background: rgba(var(--dkr-10-10-12), 0.5); border: 1px solid rgba(var(--ink), 0.12); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.mock-pill i { width: .6em; height: .6em; border-radius: 50%; background: var(--accent); }
.mock-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; line-height: .95; color: var(--lt-ffffff); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.mock-title i { color: var(--accent); font-style: normal; }
.mock-lead { color: rgba(var(--ink), 0.82); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mock-btn { display: block; border-radius: 99px; background: var(--accent); }
/* PC */
.mock-web { aspect-ratio: 16 / 10; border-radius: 12px; }
.mock-web::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--dkr-8-8-10), 0.88) 0%, rgba(var(--dkr-8-8-10), 0.45) 38%, rgba(var(--dkr-8-8-10), 0) 68%),
              linear-gradient(to right, rgba(var(--dkr-8-8-10), 0.55), rgba(var(--dkr-8-8-10), 0) 55%);
}
.mock-web .mock-text { padding: 6cqw; gap: 1.6cqw; max-width: 75%; }
.mock-web .mock-pill { font-size: 1.5cqw; }
.mock-web .mock-title { font-size: 6.5cqw; }
.mock-web .mock-lead { font-size: 1.9cqw; max-width: 90%; }
.mock-web .mock-btn { width: 15cqw; height: 3.4cqw; margin-top: 1cqw; }
/* Handy */
.mock-phone { aspect-ratio: 9 / 19; border-radius: 26px; border: 5px solid var(--dk-222327); background: var(--bg); display: flex; flex-direction: column; max-width: 260px; width: 100%; justify-self: center; }
.mock-phone-media { position: relative; height: 66%; flex: none; overflow: hidden; }
.mock-phone-media::after { content: ""; position: absolute; inset: 0 0 -2px; pointer-events: none; background: linear-gradient(to top, var(--bg) 0%, var(--bg) 3%, rgba(var(--dkr-8-8-10), 0.72) 24%, rgba(var(--dkr-8-8-10), 0) 55%); }
.mock-phone .mock-text { padding: 0 7cqw 4cqw; gap: 3cqw; }
.mock-phone .mock-pill { font-size: 3.3cqw; }
.mock-phone .mock-title { font-size: 12cqw; }
.mock-phone .mock-lead { font-size: 4.6cqw; padding: 3cqw 7cqw 0; color: var(--text-2); }
.mock-phone .mock-btn { width: 45%; height: 8cqw; margin: 5cqw 7cqw 0; }
.cover-view[data-target="mobile"] { align-items: stretch; }
.cover-view[data-target="mobile"] .mock-phone { align-self: center; }
@media (max-width: 680px) {
  .cover-views { grid-template-columns: 1fr; }
}
/* "Als Titelbild" in der Großansicht: PC / Handy / beides */
.lb-cover-wrap { position: relative; display: inline-flex; }
.lb-cover-menu {
  position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 5; min-width: 170px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: var(--dk-1a1b1e); border: 1px solid var(--line-hi); box-shadow: 0 18px 50px -12px rgba(0,0,0,.7);
}
.lb-cover-menu[hidden] { display: none; }
.lb-cover-menu button { text-align: left; padding: 9px 12px; border-radius: 9px; font-size: .9rem; color: var(--text); background: none; border: 0; cursor: pointer; }
.lb-cover-menu button:hover { background: rgba(var(--ink), 0.07); }
.cover-inner { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.cover-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 0; }
/* Schmale Spalte: Passwortfeld volle Breite, Knöpfe darunter */
#share .share-password .inline-form { flex-wrap: wrap; }
#share .pw-field { flex: 1 1 100%; }
#share .share-password .inline-form .btn { flex: 1; }
.pill .hq-pending { color: var(--accent); }

/* Zoom in der Großansicht (nur mit Maus) */
@media (hover: hover) and (pointer: fine) {
  .lb-stage img { cursor: zoom-in; transition: scale .28s cubic-bezier(.2,.7,.2,1); }
  .lightbox.zoomed .lb-stage img { cursor: zoom-out; border-radius: 0; }
  .lightbox.zoomed .lb-prev, .lightbox.zoomed .lb-next { opacity: .35; }
  .lightbox.zoomed .lb-prev:hover, .lightbox.zoomed .lb-next:hover { opacity: 1; }
}

/* Einstellungen: E-Mail */
.mail-panel { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.mail-status { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .93rem; }
.mail-status svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mail-form { display: flex; flex-direction: column; gap: 14px; }
.mail-events { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mail-events .switch span { font-size: .92rem; }
.mail-foot { margin: 0; }
.mail-panel code { font-family: var(--mono); font-size: .85em; }

/* =====================================================================
   Home: Übersicht
   ===================================================================== */
.pill .warn { color: var(--warn); }
.ov-fold { margin-top: 36px; }
.ov-fold .fold-sum { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ov-fold .fold-sum .on { color: var(--accent); }
.ov-fold.is-on .fold-icon { color: var(--accent); }
.overview { display: flex; flex-direction: column; gap: 12px; }
.overview .stat-tiles { gap: 10px; }
.overview .stat { padding: 12px 14px 11px; gap: 2px; border-radius: var(--radius-sm); background: var(--bg-2); }
.overview .stat-num { font-size: 1.45rem; }
.overview .stat-num small { font-size: .85rem; }
.overview .stat-sub { font-size: .78rem; }
.overview .ov-card { padding: 12px 8px 8px; border-radius: var(--radius-sm); background: var(--bg-2); }
.overview .ov-row, .overview .ov-comment { padding: 7px 8px; }
.overview .ov-title, .overview .ov-text { font-size: .88rem; }
.overview .ov-meta { font-size: .74rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat.is-new { border-color: rgba(255,138,61,.45); box-shadow: 0 0 0 3px rgba(255,138,61,.06), 0 10px 40px -18px rgba(255,138,61,.45); }
.stat-label { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-num { font: 650 2.1rem/1.1 var(--sans); letter-spacing: -.03em; color: var(--text); }
.stat-num small { font-size: 1.05rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.stat-sub { font-size: .82rem; color: var(--text-2); }
.stat-sub b { color: var(--accent); font-weight: 600; }

.ov-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; align-items: start; }
.ov-card {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
}
.ov-card > .label { padding: 0 8px 8px; margin: 0; }
.ov-sub { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 6px; }
.ov-row, .ov-comment {
  display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; color: inherit; text-decoration: none; min-width: 0;
  transition: background .15s;
}
.ov-row:hover, .ov-comment:hover { background: rgba(var(--ink), 0.04); }
.ov-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ov-title, .ov-text { font-size: .93rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.ov-meta { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-side { flex: none; font: 500 12px var(--mono); color: var(--text-2); }
.ok { color: var(--ok); }
.ov-side.ok { color: var(--ok); }
.ov-comment { align-items: flex-start; }
.ov-comment img { flex: none; width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.ov-ico { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ov-ico.ok { stroke: var(--ok); }
.ov-empty { margin: 0; padding: 6px 8px 10px; font-size: .88rem; color: var(--muted); }
.new-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); vertical-align: middle; }

@media (max-width: 720px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 13px 14px 12px; }
  .stat-num { font-size: 1.7rem; }
}
.ov-comment .ov-meta { white-space: normal; }

/* =====================================================================
   Personen (Gesichtserkennung)
   ===================================================================== */
.people-btn.is-on { border-color: rgba(255,138,61,.45); color: var(--text); }
.people-btn.is-on .ico { color: var(--accent); }
.people { margin: 8px 0 30px; scroll-margin-top: 80px; }
.people-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.people-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.people-status { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.spinner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.people-off { color: var(--muted); font-size: .8rem; }

.people-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent;
}
.person {
  flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px; border: 1px solid transparent; border-radius: 16px; background: none; color: var(--text);
  cursor: pointer; scroll-snap-align: start; position: relative; transition: background .15s, border-color .15s;
}
.person:hover { background: rgba(var(--ink), 0.04); }
.person img {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: var(--bg-2);
  border: 2px solid var(--line-hi); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.person:hover img { transform: scale(1.04); }
.person.on { background: var(--accent-soft); border-color: rgba(255,138,61,.35); }
.person.on img { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.18), 0 0 22px rgba(255,138,61,.35); }
.person-name { max-width: 100%; font-size: .82rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person.unnamed .person-name { color: var(--text-2); font-weight: 450; }
.person-count {
  position: absolute; top: 8px; right: 12px; min-width: 22px; padding: 1px 6px; border-radius: 99px;
  font: 600 10.5px var(--mono); background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text-2);
}
.person.is-hidden { opacity: .45; }
.people-empty { margin: 4px 0; font-size: .9rem; color: var(--muted); }

/* Fotos auf Personen ziehen */
.tile[draggable="true"] { cursor: grab; }
.tile.is-dragged { opacity: .35; }
.person.drop-over { background: var(--accent-soft); border-color: var(--accent); }
.person.drop-over img { border-color: var(--accent); transform: scale(1.08); }
.drag-ghost { position: fixed; top: -200px; left: -200px; width: 80px; height: 80px; border-radius: 14px; overflow: hidden; }
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drag-ghost span {
  position: absolute; top: 6px; right: 6px; min-width: 22px; padding: 2px 6px; border-radius: 99px; text-align: center;
  font: 700 12px var(--mono); background: var(--accent); color: #111;
}
.people-dock {
  position: fixed; top: 14px; left: 50%; z-index: 60; max-width: calc(100vw - 32px);
  display: flex; gap: 6px; padding: 8px; overflow-x: auto;
  background: var(--dk-16171a); border: 1px solid var(--line-hi); border-radius: 20px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.7);
  transform: translate(-50%, -12px); opacity: 0; transition: opacity .18s, transform .18s var(--ease);
}
.people-dock.show { transform: translate(-50%, 0); opacity: 1; }
.dock-item {
  flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 4px 7px; border: 1px solid transparent; border-radius: 14px; font-size: .76rem; color: var(--text);
  transition: background .12s, border-color .12s;
}
.dock-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item img, .dock-sym {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-hi);
  transition: border-color .12s, transform .12s;
}
.dock-sym { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-2); border-style: dashed; }
.dock-item.is-source { opacity: .35; }
.dock-item.drop-over { background: var(--accent-soft); border-color: var(--accent); }
.dock-item.drop-over img, .dock-item.drop-over .dock-sym { border-color: var(--accent); transform: scale(1.08); color: var(--accent); }
.dock-none.drop-over { background: rgba(255,90,90,.1); border-color: var(--warn); }
.dock-none.drop-over .dock-sym { border-color: var(--warn); color: var(--warn); }

.person-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px;
  background: var(--surface); border: 1px solid rgba(255,138,61,.3); border-radius: var(--radius);
  animation: fold-in .2s var(--ease);
}
.pb-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.pb-text { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.pb-text strong { font-size: 1rem; }
.pb-text .muted { font-size: .8rem; }
.pb-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Filter: nur Fotos der gewählten Person */
.grid[data-person] .tile:not(.p-match) { display: none !important; }

/* Fenster */
.people-dialog { width: min(460px, calc(100vw - 24px)); }
.people-dialog input[type="text"] { width: 100%; }
.merge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 4px; max-height: 50vh; overflow-y: auto; }
.merge-grid .person { width: auto; }
.split-dialog { width: min(520px, calc(100vw - 24px)); }
.split-list { display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; }
.split-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.split-row:hover { background: rgba(var(--ink), 0.04); }
.split-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.split-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.split-name { flex: 1; font-size: .93rem; }
.split-count { font: 500 11px var(--mono); color: var(--muted); }
.split-mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio:has(input:checked) { border-color: rgba(255,138,61,.5); background: var(--accent-soft); }
.radio input { margin-top: 3px; accent-color: var(--accent); }
.radio span { display: flex; flex-direction: column; gap: 3px; }
.radio b { font-weight: 600; font-size: .93rem; }
.radio small { color: var(--text-2); font-size: .82rem; line-height: 1.45; }

@media (max-width: 720px) {
  .person { width: 82px; }
  .person img { width: 58px; height: 58px; }
  .pb-actions { width: 100%; }
}
/* Beschriftungen sind sonst untereinander (Formular-Stil) – hier nebeneinander */
.split-row, .radio { flex-direction: row; font-size: inherit; color: var(--text); }
.split-row { align-items: center; }
.radio { align-items: flex-start; }
@media (max-width: 720px) {
  .people-head { align-items: flex-start; }
  .people-tools { width: 100%; justify-content: space-between; gap: 10px; }
  .people-off { order: 5; }
}

/* Kommentare oben im Ordner */
.folder-comments { margin: 0 0 30px; }
.fc-open { color: var(--accent); }
.fc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fc-list.is-collapsed .fc-item:nth-child(n + 5) { display: none; }
.fc-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; min-width: 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.fc-item:hover { border-color: var(--line-hi); background: rgba(var(--ink), 0.05); }
.fc-item img { flex: none; width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.fc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.fc-text { font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-mine { color: var(--text-2); }
.fc-who { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.fc-mine .fc-who { color: var(--accent); }
.fc-meta { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-badge { color: var(--accent); font-weight: 600; }
.fc-go { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-more { margin-top: 10px; }
@media (max-width: 860px) { .fc-list { grid-template-columns: 1fr; } }

/* =====================================================================
   Einstellungen: Speicher
   ===================================================================== */
.disk-panel { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.disk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disk-free { font: 650 1.9rem/1 var(--sans); letter-spacing: -.03em; }
.disk-free small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.disk-free.low { color: var(--warn); }
.disk-of { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.disk-bar { width: 100%; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(var(--ink), 0.07); display: block; }
.seg-originals { fill: var(--accent); background: var(--accent); }
.seg-previews { fill: #f6c79c; background: #f6c79c; }
.seg-trash { fill: var(--warn); background: var(--warn); }
.seg-other { fill: #5b5f68; background: #5b5f68; }
.seg-free { background: rgba(var(--ink), 0.12); }
.seg-cloud { fill: #7aa7e8; background: #7aa7e8; }
.disk-cloud { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.disk-cloud .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.disk-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: .86rem; }
.disk-legend li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.disk-legend .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.disk-legend span { color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disk-legend b { font: 500 12px var(--mono); color: var(--text); }
.disk-dev { margin: -4px 0 0; }
.disk-dev code, .disk-move code { font-family: var(--mono); font-size: .85em; color: var(--text); }
.disk-block { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.disk-block .ov-sub { margin: 0 0 6px; }
.disk-folder { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; color: inherit; text-decoration: none; }
.disk-folder:hover { background: rgba(var(--ink), 0.04); }
.df-title { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-size { font: 500 12px var(--mono); color: var(--text-2); }
.df-bar { grid-column: 1 / -1; width: 100%; height: 4px; border-radius: 99px; background: rgba(var(--ink), 0.06); display: block; }
.disk-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.disk-action > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.disk-action strong { font-size: .93rem; font-weight: 600; }
.disk-limit .inline-form { align-items: center; }
.disk-limit input { width: 110px; flex: none; }
.disk-move summary { cursor: pointer; font-size: .9rem; color: var(--text-2); }
.disk-move summary:hover { color: var(--text); }
.disk-move ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); line-height: 1.5; }

/* Einstellungen: Breite nutzen statt einer schmalen Spalte */
.disk-panel { max-width: none; }
.disk-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 34px; align-items: start; }
.disk-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.disk-cols > .disk-block { border-top: 0; padding-top: 0; }
.disk-cols > .disk-col:last-child > .disk-block:first-child { border-top: 0; padding-top: 0; }
.disk-cols > .disk-col + .disk-col { border-left: 1px solid var(--line); padding-left: 34px; }
.settings-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-row > .panel { max-width: none; width: auto; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.settings-row .mail-panel { margin-top: 0; }
.settings-row.settings-full { grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
@media (max-width: 1100px) {
  .disk-cols { grid-template-columns: 1fr 1fr; }
  .disk-cols > .disk-col:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .disk-cols, .settings-row { grid-template-columns: 1fr; }
  .disk-cols > .disk-col + .disk-col { border-left: 0; padding-left: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
}
a.fc-item { color: inherit; text-decoration: none; }
.fc-folder { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.fc-folder svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Einstellungen: Vorschau-Qualität */
.pv-panel { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; max-width: none; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.pv-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pv-field legend { padding: 0; margin-bottom: 8px; }
.pv-field p { margin: 0; }
.pv-seg label { flex: 1; display: flex; }
.pv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pv-seg span {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 8px;
  border-radius: 7px; color: var(--text-2); font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.pv-seg input:checked + span { background: var(--text); color: var(--bg); font-weight: 600; }
.pv-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .pv-grid { grid-template-columns: 1fr; } }

/* ===================== Markierungen auf dem Bild ===================== */
.lb-marks { position: absolute; z-index: 2; pointer-events: none; }
.lb-marks svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lb-marks .mk { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lb-marks .mk-shadow { stroke: rgba(0,0,0,.45); stroke-width: 5.5; }
.lb-marks .mk-client:not(.mk-shadow) { stroke: var(--accent); }
.lb-marks .mk-admin:not(.mk-shadow) { stroke: #6fc3ff; }
.lb-marks .mk-active:not(.mk-shadow) { stroke-width: 4.5; }
.lb-marks .mk-draft { stroke-dasharray: 6 5; }
.lb-marks .mk-hit { fill: none; stroke: transparent; stroke-width: 22; pointer-events: stroke; cursor: pointer; }
.mk-num {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; border: 2px solid var(--dk-0e0f11);
  display: flex; align-items: center; justify-content: center;
  font: 700 12px var(--mono); color: #1a0e05; background: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.mk-num.mk-admin { background: #6fc3ff; color: #06202f; }
.mk-num.mk-active { transform: translate(-50%, -50%) scale(1.15); }
.lightbox.drawing .lb-marks { pointer-events: auto; cursor: crosshair; touch-action: none; }
.lightbox.drawing .lb-marks .mk-hit { pointer-events: none; }
.lightbox.drawing .lb-prev, .lightbox.drawing .lb-next { display: none; }
.lb-marks { will-change: transform; transition: scale .28s cubic-bezier(.2,.7,.2,1); }
/* gezoomt: Linien, Nummern und Notiz bleiben gleich groß */
.lightbox.zoomed .lb-marks .mk { stroke-width: calc(3px / var(--z, 1)); }
.lightbox.zoomed .lb-marks .mk-shadow { stroke-width: calc(5.5px / var(--z, 1)); }
.lightbox.zoomed .lb-marks .mk-active:not(.mk-shadow) { stroke-width: calc(4.5px / var(--z, 1)); }
.lightbox.zoomed .lb-marks .mk-num, .lightbox.zoomed .lb-marks .mk-tip { scale: calc(1 / var(--z, 1)); }

.lb-mark-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-mark-btn.on { border-color: var(--accent); color: var(--accent); }
.lb-mark-btn.active { background: var(--accent); border-color: var(--accent); color: #1a0e05; }

/* Notizen zu Markierungen in der Liste unter dem Bild */
.lb-c-mark { cursor: pointer; }
.lb-c-mark.active { border-color: var(--accent); }
.lb-c-num { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; font: 700 10px var(--mono); color: #1a0e05; background: var(--accent); letter-spacing: 0; }
.lb-c-num.mk-admin { background: #6fc3ff; color: #06202f; }
.lb-c-text.muted { color: var(--muted); font-style: italic; }
.fc-mark { display: inline-flex; align-items: center; gap: 3px; }
.fc-mark svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Leiste unten in der Großansicht: wie die Auswahl-Leiste ---------- */
.lb-dock {
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(var(--dkr-22-23-26), 0.92); border: 1px solid var(--line-hi); border-radius: 99px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.dock-tools { display: flex; gap: 4px; }
.dock-tools[hidden], .dock-sep[hidden] { display: none; }
.dock-sep { width: 1px; height: 26px; background: var(--line-hi); margin: 0 6px; }
.dock-btn {
  width: 46px; height: 46px; border-radius: 99px; border: 0; background: none; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.dock-btn:hover { background: rgba(var(--ink), 0.08); color: var(--text); }
.dock-btn:active { transform: scale(.92); }
.dock-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn.lb-tool[aria-pressed="true"] { background: var(--accent); color: #1a0e05; }
.dock-heart { width: 52px; height: 52px; }
.dock-heart svg { width: 25px; height: 25px; }
.dock-heart.on { background: var(--accent-soft); color: var(--accent); }
.dock-heart.on svg { fill: var(--accent); stroke: var(--accent); }
.dock-heart.pop { animation: pop .35s var(--ease); }
.dock-btn.lb-comment-btn.on { background: var(--text); color: var(--bg); }
.dock-btn.lb-comment-btn.on svg { fill: currentColor; }
.lb-dock .lb-cover-wrap { display: inline-flex; }
@media (max-width: 720px) {
  .lb-dock { gap: 2px; padding: 5px; }
  .dock-btn { width: 44px; height: 44px; }
  .dock-heart { width: 48px; height: 48px; }
  .dock-sep { margin: 0 3px; }
}

/* ---------- PC: Markierungen rechts neben dem Bild, aufklappbar ---------- */
.lb-side {
  position: absolute; z-index: 3; top: 72px; left: calc(100% - 400px); width: 380px; max-height: calc(100% - 200px);
  display: flex; flex-direction: column;
  background: rgba(var(--dkr-22-23-26), 0.94); border: 1px solid var(--line-hi); border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5); overflow: hidden;
}
.lb-side[hidden] { display: none; }
.lb-side-head {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0; background: none;
  color: var(--text); font: 600 .92rem var(--sans); cursor: pointer; text-align: left;
}
.lb-side-head b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 700 11px var(--mono); display: inline-flex; align-items: center; justify-content: center; }
.lb-side-ico, .lb-side-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-side-chev { transition: transform .2s; }
.lb-side-head[aria-expanded="true"] .lb-side-chev { transform: rotate(180deg); }
.lb-side-head[aria-expanded="false"] + * { display: none; }
.lb-side-list { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.lb-side-list .lb-c { max-width: none; align-self: stretch; border-radius: 12px; }
.lb-side-list .lb-c:hover { border-color: rgba(var(--ink), 0.25); }
.lightbox.has-side.side-edge .lb-next { right: 408px; }
.lightbox.has-chat.chat-edge .lb-prev { left: 408px; }
.mk-num.mk-hover { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 4px rgba(255,138,61,.35); }
@media (max-width: 900px) { .lb-side { display: none !important; } }

/* Werkzeugleiste der Galerie (Admin): Download-Menü + Auswählen als Symbole */
.chip-icon { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.chip-icon .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#select-toggle[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.dl-menu { position: relative; }
.dl-menu > summary { list-style: none; }
.dl-menu > summary::-webkit-details-marker { display: none; }
/* Fenster wächst als Kreis aus dem Knopf und wird zum Menü */
.dl-pop {
  position: absolute; top: -8px; right: -8px; z-index: 60; width: 300px; padding: 8px;
  background: var(--dk-1c1d21); border: 1px solid var(--line-hi); border-radius: 22px;
  box-shadow: 0 24px 70px -10px rgba(0,0,0,.75);
  transform-origin: calc(100% - 28px) 28px;
  animation: dl-morph .38s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes dl-morph {
  from { clip-path: circle(20px at calc(100% - 28px) 28px); }
  to   { clip-path: circle(160% at calc(100% - 28px) 28px); }
}
.dl-pop > *:not(.dl-pop-head) { animation: dl-fade .3s .12s both; }
@keyframes dl-fade { from { opacity: 0; transform: translateY(-4px); } }
.dl-pop-head { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 0 0 12px; margin-bottom: 4px; }
.dl-pop-head span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dl-pop-close { width: 40px; height: 40px; border-radius: 99px; border: 0; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dl-pop-close .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dl-opt { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background .15s; }
.dl-opt:hover { background: rgba(var(--ink), 0.06); }
.dl-opt-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--ink), 0.07); display: flex; align-items: center; justify-content: center; }
.dl-opt-fav { background: var(--accent-soft); color: var(--accent); }
.dl-opt-ico .ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-opt-text { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.dl-opt-text b { font-weight: 600; font-size: .98rem; }
.dl-opt-text small { font-size: .8rem; color: var(--muted); }
.lb-c-acts .lb-c-del { margin: 0; width: 32px; height: 32px; }
.grid.selecting { -webkit-user-select: none; user-select: none; }

/* Markierungen: Notiz beim Darüberfahren, Hervorheben der gewählten */
.mk-tip {
  position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 18px)); pointer-events: none;
  max-width: 260px; padding: 9px 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(var(--dkr-20-21-24), 0.96); border: 1px solid var(--line-hi); box-shadow: 0 12px 40px rgba(0,0,0,.55);
  font: 400 .9rem/1.4 var(--sans); color: var(--text); white-space: pre-line;
}
.mk-tip[hidden] { display: none; }
.mk-tip.below { transform: translate(-50%, 22px); }
.mk-tip b { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mk-tip .muted { font-style: italic; }
.lb-marks.has-focus .mk:not(.mk-active):not(.mk-hover) { opacity: .3; }
.lb-marks.has-focus .mk-num:not(.mk-active):not(.mk-hover) { opacity: .45; }
.lb-marks .mk.mk-hover:not(.mk-shadow) { stroke-width: 4.5; }
/* Einträge in der Liste: Text antippen = im Bild zeigen, Papierkorb = löschen */
.lb-c-mark { flex-direction: row; align-items: flex-start; gap: 6px; padding: 0; }
.lb-c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 9px 4px 10px 13px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lb-c-del { flex: none; width: 34px; height: 34px; margin: 5px 5px 0 0; border: 0; border-radius: 9px; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-c-del:hover { background: rgba(255,90,90,.14); color: var(--warn); }
.lb-c-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lb-side-list .lb-c-mark.active { border-color: var(--accent); background: rgba(255,138,61,.12); }

/* Markierungen: eigene verschieben, Notiz rechts direkt bearbeiten */
.lb-marks .mk-hit.mk-editing { fill: transparent; pointer-events: all; cursor: move; }
.lb-marks .mk-num.mk-client, .lb-marks .mk-num.mk-admin { touch-action: none; }
.lb-marks.grabbing { pointer-events: auto; }
.lb-marks.moving, .lb-marks.moving * { cursor: grabbing !important; }
.lb-marks.moving .mk-tip { display: none; }
.lb-c-acts { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 5px 5px 5px 0; }
.lb-c-act { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-c-act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lb-c-edit:hover { background: rgba(var(--ink), 0.08); color: var(--text); }
.lb-c-input { width: 100%; margin-top: 6px; min-height: 72px; resize: vertical; padding: 9px 11px; border-radius: 10px; background: var(--dk-26272b); border: 1px solid rgba(var(--ink), 0.12); color: var(--text); font: 400 .93rem/1.45 var(--sans); }
.lb-c-input:focus { outline: none; border-color: rgba(var(--ink), 0.3); background: var(--dk-2a2b30); }
.lb-side-list .lb-c-mark.writing { background: rgba(var(--ink), 0.04); }
.lb-c-inline-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.lb-side-list .lb-c-mark .lb-c-main { cursor: pointer; }
.lb-side-list .lb-c-mark div.lb-c-main { cursor: default; padding-right: 13px; }

/* ===================== Bild bleibt stehen, Leisten links und rechts ===================== */
/* Großer Bildschirm: links und rechts ist immer Platz für die Leisten reserviert – so verschiebt
   sich das Bild nie, egal ob Kommentare oder Markierungen auf- oder zugeklappt werden.
   Kleinere PCs: die Leisten liegen über dem Bildrand. */
@media (min-width: 1700px) and (hover: hover) {
  .lightbox:not(.lb-deliver) .lb-stage { --lb-side: 460px; }
}
.lightbox.zoomed .lb-side { visibility: hidden; }

/* ---------- Bearbeiten-Modus einer Markierung: Rahmen + Griffe ---------- */
.lb-marks .mk-frame { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.mk-handle {
  position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); pointer-events: auto; touch-action: none;
  background: #fff; border: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 1px 6px rgba(0,0,0,.5); z-index: 2;
}
.mk-handle::after { content: ""; position: absolute; inset: -12px; }      /* größere Trefferfläche */
.mk-h-nw, .mk-h-se { cursor: nwse-resize; }
.mk-h-ne, .mk-h-sw { cursor: nesw-resize; }
.mk-h-n, .mk-h-s { cursor: ns-resize; }
.mk-h-w, .mk-h-e { cursor: ew-resize; }
.mk-num.mk-editing { display: none; }      /* beim Bearbeiten sitzen dort die Griffe */
.lb-marks.is-editing .mk-num:not(.mk-editing) { pointer-events: none; }
.lb-marks.resizing, .lb-marks.resizing * { cursor: crosshair !important; }
@media (pointer: coarse) { .mk-handle { width: 20px; height: 20px; border-radius: 6px; } }

/* ---------- Werkzeuge im Dock: eigene, ruhige Gruppe ---------- */
.dock-tools { padding: 3px; gap: 2px; border-radius: 99px; background: rgba(var(--ink), 0.05); }
.dock-tools .dock-btn { width: 40px; height: 40px; }
.dock-tools .dock-btn svg { width: 20px; height: 20px; stroke-width: 1.9; }
@media (max-width: 720px) { .dock-tools .dock-btn { width: 40px; height: 40px; } }

/* ===================== Kommentare als Unterhaltung ===================== */
.lb-chat { width: 380px; }
.lb-chat-body { display: flex; flex-direction: column; min-height: 0; flex: 1; border-top: 1px solid var(--line); }
.lb-thread { display: flex; flex-direction: column; gap: 3px; }
.lb-chat .lb-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 6px; }
.lb-chat .lb-thread:empty { display: none; }
.lb-msg-meta { margin: 8px 6px 2px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb-msg-meta:first-child { margin-top: 0; }
.lb-msg-meta.mine { text-align: right; }
.lb-msg { display: flex; align-items: center; gap: 4px; justify-content: flex-start; }
.lb-msg.mine { justify-content: flex-end; }
.lb-msg-bubble {
  max-width: 82%; padding: 8px 13px; border-radius: 20px; white-space: pre-line; overflow-wrap: anywhere;
  font: 400 .93rem/1.4 var(--sans); color: var(--text); background: var(--dk-2b2c31);
}
.lb-msg.mine .lb-msg-bubble { background: linear-gradient(135deg, #ff9a4d, #f2702a); color: #1d0f04; }
.lb-msg.mine.by-admin .lb-msg-bubble { background: linear-gradient(135deg, #7cc8ff, #4aa6f0); color: #04192a; }
/* aufeinanderfolgende Nachrichten zusammenrücken wie im Chat */
.lb-msg + .lb-msg:not(.mine) .lb-msg-bubble { border-top-left-radius: 6px; }
.lb-msg:not(.mine):has(+ .lb-msg:not(.mine)) .lb-msg-bubble { border-bottom-left-radius: 6px; }
.lb-msg.mine + .lb-msg.mine .lb-msg-bubble { border-top-right-radius: 6px; }
.lb-msg.mine:has(+ .lb-msg.mine) .lb-msg-bubble { border-bottom-right-radius: 6px; }
.lb-msg-del {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 99px; background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s;
}
.lb-msg:hover .lb-msg-del, .lb-msg-del:focus-visible { opacity: 1; }
.lb-msg-del:hover { background: rgba(255,90,90,.14); color: var(--warn); }
.lb-msg-del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .lb-msg-del { opacity: .7; } }
.lb-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; }
.lb-chat-form textarea {
  flex: 1; min-height: 40px; max-height: 140px; resize: none; padding: 9px 14px; border-radius: 20px;
  background: var(--dk-26272b); border: 1px solid rgba(var(--ink), 0.12); color: var(--text); font: 400 .93rem/1.4 var(--sans);
}
.lb-chat-form textarea:focus { outline: none; border-color: rgba(var(--ink), 0.3); }
.lb-chat-send {
  flex: none; width: 40px; height: 40px; border-radius: 99px; border: 0; background: var(--accent); color: #1a0e05;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, opacity .15s;
}
.lb-chat-send:disabled { opacity: .5; }
.lb-chat-send:active { transform: scale(.92); }
.lb-chat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-comments .lb-thread:empty { display: none; }
.lb-comments .lb-thread + .lb-c-mark { margin-top: 6px; }

/* Abstand 0: spitze Ecken – alle Bilder bilden eine geschlossene Fläche */
.grid.flush .tile, .grid.flush .c-row .tile, .grid.flush .tile img { border-radius: 0; }
.grid.flush .c-row { border-radius: 0; }

/* ===================== Kundenlink: Tabs "Auswahl" / "Abgabe" ===================== */
.g-tabs {
  position: absolute; left: 50%; top: calc(50% + env(safe-area-inset-top) / 2); transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px;
  background: rgba(var(--ink), 0.06); border: 1px solid var(--line-hi);
}
.g-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 128px; height: 38px; padding: 0 18px; border-radius: 99px;
  font: 600 .92rem var(--sans); color: var(--text-2); text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.g-tab:hover { color: var(--text); }
.g-tab.on { color: var(--bg); }
.g-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-tab.on svg { fill: none; }
.g-tabs[data-tab="auswahl"] .g-tab.on svg { fill: currentColor; }
/* weißer Hintergrund des aktiven Tabs gleitet beim Umschalten hinüber */
.g-tab-ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 99px; background: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.g-tabs[data-tab="abgabe"] .g-tab-ink { transform: translateX(100%); }
@media (max-width: 720px) {
  .g-tabs { position: relative; left: auto; top: auto; transform: none; margin-left: auto; padding: 3px; }
  .g-tab { min-width: 0; height: 34px; padding: 0 13px; gap: 6px; font-size: .86rem; }
  .g-tab svg { width: 14px; height: 14px; }
  .g-tab-ink { top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); }
  body:has(.g-tabs) .powered { display: none; }
}
@media (max-width: 380px) {
  .g-tab svg { display: none; }
  .g-tab { padding: 0 12px; }
  body:has(.g-tabs) .brand > span { font-size: 1rem; }
}

/* Kundenlink "Beides": Zeile zum Abgabe-Ordner */
.both-folders { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.both-folders[hidden] { display: none; }
.deliver-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; background: rgba(var(--ink), 0.04); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: background .15s, border-color .15s;
}
.deliver-link[hidden] { display: none; }
.deliver-link:hover { background: rgba(var(--ink), 0.07); border-color: var(--line-hi); }
.deliver-link > svg:first-child {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round;
}
div.deliver-link { cursor: default; }
div.deliver-link:hover { background: rgba(var(--ink), 0.04); border-color: var(--line); }
.folder-row-select > svg:first-child { background: rgba(var(--ink), 0.07); color: var(--text); }
.deliver-link span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.deliver-link b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deliver-link small { font-size: .78rem; color: var(--muted); }
.deliver-link .deliver-go { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tab-Ordner („Auswahl“/„Abgabe“): statt eigenem Link Hinweis auf den Link des Shootings */
.tab-panel .fold-head { text-decoration: none; color: inherit; }
.tab-panel .fold-head:hover .fold-title { color: var(--accent); }
.tab-panel-body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.tab-panel-body p { margin: 0; }
.tab-panel-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.badge-tab { background: rgba(var(--dkr-14-15-17), 0.82); color: var(--text); }

/* ===================== Drag & Drop: Auswahl in Ordner ziehen ===================== */
body.dragging-items, body.dragging-items * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.mv-ghost {
  position: fixed; left: 0; top: 0; z-index: 650; pointer-events: none; width: 1px; height: 1px;   /* immer über dem Pfad oben */
  transform-origin: 0 0;
}
.drag-card {
  position: absolute; left: 22px; top: 20px; width: 80px; height: 100px; border-radius: 12px; overflow: hidden;
  background: var(--dk-222327); border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4);
  transform: rotate(var(--r)) translate(calc(var(--d) * 5px), calc(var(--d) * 4px)) scale(.4);
  opacity: 0; transition: transform .38s cubic-bezier(.2,1.4,.3,1), opacity .2s;
  transition-delay: calc(var(--d) * 40ms);
}
.mv-ghost.on .drag-card { transform: rotate(var(--r)) translate(calc(var(--d) * 5px), calc(var(--d) * 4px)); opacity: 1; }
.mv-ghost.over .drag-card { transform: rotate(0deg) translate(0, 0); }
.drag-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drag-card-folder { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.drag-card-folder svg { width: 40px; height: 40px; fill: currentColor; }
.drag-card-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px; font: 600 11px var(--sans); color: var(--lt-ffffff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.drag-count {
  position: absolute; left: 88px; top: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono);
  background: var(--accent); color: #1a0e05; box-shadow: 0 6px 18px rgba(255,138,61,.45);
  transform: scale(0); transition: transform .35s .12s cubic-bezier(.2,1.6,.3,1);
}
.mv-ghost.on .drag-count { transform: scale(1); }
.drag-label {
  position: absolute; left: -18px; top: 128px; width: 160px; text-align: center; font: 600 12px var(--sans); color: var(--text);
  text-shadow: 0 1px 6px rgba(0,0,0,.8); opacity: 0; transition: opacity .15s;
}
.mv-ghost.over .drag-label { opacity: 1; }
/* beim Loslassen: in den Ordner hinein / zurück an den Platz */
.mv-ghost.drop, .mv-ghost.back { transition: transform .42s cubic-bezier(.5,0,.2,1), opacity .42s; opacity: 0; }
.mv-ghost.back { transition-duration: .3s; }
/* Herkunft bleibt blass stehen, Ziel leuchtet */
.drag-source { opacity: .35 !important; animation: none !important; transition: opacity .2s; }
.card.drop-hover, [data-drop].drop-hover {
  outline: 2px solid var(--accent); outline-offset: 3px; transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(255,138,61,.15), 0 20px 50px rgba(0,0,0,.5); transition: transform .2s cubic-bezier(.2,1.4,.3,1);
}
[data-drop].drop-hover { color: var(--accent); border-radius: 6px; outline-offset: 4px; }
.card.drop-done { animation: drop-pulse .5s cubic-bezier(.2,1.4,.3,1); }
@keyframes drop-pulse { 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.drag-vanish { animation: drag-vanish .3s ease forwards; }
@keyframes drag-vanish { to { opacity: 0; transform: scale(.6); } }
.card-appear { animation: card-appear .5s cubic-bezier(.2,1.4,.3,1) both; }
@keyframes card-appear { from { opacity: 0; transform: scale(.85) translateY(8px); } }

/* Zwei Texte (Auswahl / Abgabe) */
.text-switch { margin-bottom: 10px; }
.text-switch button { position: relative; }
.text-dot { display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.text-dot[hidden] { display: none; }
#description-text.text-swap { animation: text-swap .25s ease; }
@keyframes text-swap { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Übergang zwischen den Tabs: Logo setzt sich zusammen ---------- */
.tab-veil {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(var(--dkr-14-15-17), 0); pointer-events: none; transition: background .3s ease;
}
.tab-veil.in { background: rgba(var(--dkr-14-15-17), 0.96); pointer-events: auto; }
.tab-logo { width: 84px; height: 84px; overflow: visible; }
.tab-logo .q { transform-box: fill-box; transform-origin: center; fill: var(--dk-3a3b40); }
.tab-logo .q2 rect { fill: var(--accent); }
.tab-logo .q2 path { fill: #1a0e05; }
.tab-logo .q2 { transform-box: view-box; transform-origin: 23px 9px; }
/* hinein: Kacheln fliegen von außen zusammen, die Herz-Kachel dreht sich ein */
.tab-veil .q { opacity: 0; transition: transform .5s cubic-bezier(.2,1.3,.3,1), opacity .25s; }
.tab-veil .q1 { transform: translate(-14px, -14px) scale(.4); }
.tab-veil .q2 { transform: translate(14px, -14px) rotate(-90deg) scale(.4); }
.tab-veil .q3 { transform: translate(-14px, 14px) scale(.4); }
.tab-veil .q4 { transform: translate(14px, 14px) scale(.4); }
.tab-veil.in .q { opacity: 1; transform: none; }
.tab-veil.in .q1 { transition-delay: .02s; } .tab-veil.in .q2 { transition-delay: .12s; }
.tab-veil.in .q3 { transition-delay: .07s; } .tab-veil.in .q4 { transition-delay: .17s; }
.tab-veil.in .q2 path { animation: veil-beat .6s .45s ease-in-out; transform-box: fill-box; transform-origin: center; }
@keyframes veil-beat { 30% { transform: scale(1.35); } 60% { transform: scale(.95); } }
.tab-veil-label { font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .3s .2s, transform .3s .2s; }
.tab-veil.in .tab-veil-label { opacity: 1; transform: none; }
/* auf der neuen Seite: Logo löst sich auf, Schleier verschwindet */
.tab-veil.out { background: rgba(var(--dkr-14-15-17), 0.96); animation: veil-out .45s .25s ease forwards; }
.tab-veil.out .q { opacity: 1; transform: none; animation: veil-q-out .45s cubic-bezier(.5,0,.8,.4) forwards; }
.tab-veil.out .q1 { --tx: -16px; --ty: -16px; animation-delay: .05s; }
.tab-veil.out .q2 { --tx: 16px; --ty: -16px; animation-delay: 0s; }
.tab-veil.out .q3 { --tx: -16px; --ty: 16px; animation-delay: .1s; }
.tab-veil.out .q4 { --tx: 16px; --ty: 16px; animation-delay: .15s; }
.tab-veil.out .tab-veil-label { opacity: 1; transform: none; animation: veil-out .25s forwards; }
@keyframes veil-q-out { to { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.3); } }
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .tab-veil.out { display: none; } }

/* ===================== Bereiche als Tabs ===================== */
.admin-panels.tabbed { display: block; margin-bottom: 32px; --notch: 50%; }
.ptabs {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 6px;
  background: rgba(var(--ink), 0.025); border: 1px solid var(--line); border-radius: 20px;
}
.ptab {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 12px; min-height: 58px;
  border: 0; border-radius: 15px; background: none; color: var(--text-2); text-align: left; cursor: pointer;
  transition: color .2s, background .2s;
}
.ptab:hover { background: rgba(var(--ink), 0.035); color: var(--text); }
.ptab[aria-selected="true"] { color: var(--text); background: none; }
.ptab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ptab .fold-icon { flex: none; }
.ptab.is-on .fold-icon { color: var(--accent); border-color: rgba(255,138,61,.45); background: var(--accent-soft); box-shadow: 0 0 18px rgba(255,138,61,.18); }
.ptab-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ptab .fold-title { font-size: .95rem; }
.ptab .fold-sum { margin: 0; justify-content: flex-start; max-width: 100%; }
.ptab .fold-sum .sum-text { font-size: 12px; }
/* gleitender Hintergrund des offenen Tabs */
.ptab-ink {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 15px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, var(--dk-24252a), var(--dk-1c1d21)); border: 1px solid var(--line-hi);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(var(--ink), 0.05);
  transition: transform .38s cubic-bezier(.2,.9,.25,1), width .38s cubic-bezier(.2,.9,.25,1), opacity .2s;
}
.ptab-ink::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.ptabs.has-open .ptab-ink { opacity: 1; }
.ptab-ink.no-anim { transition: none; }
/* Inhalt: nur der offene Bereich, volle Breite, mit Spitze zum Tab */
.admin-panels.tabbed > details.fold { display: none; margin-top: 12px; position: relative; overflow: visible; }
.admin-panels.tabbed > details.fold[open] { display: block; border-color: var(--line-hi); }
.admin-panels.tabbed > details.fold > summary { display: none; }
/* oranger Schieber an der Oberkante des offenen Bereichs – gleitet mit der Kachel oben mit */
.admin-panels.tabbed { position: relative; }
.pslide { position: absolute; left: 0; top: 0; z-index: 3; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: var(--accent); box-shadow: 0 0 14px rgba(255,138,61,.75), 0 0 3px rgba(255,138,61,.9);
  transition: transform .38s cubic-bezier(.2,.9,.25,1), width .38s cubic-bezier(.2,.9,.25,1), opacity .2s; }
.pslide.on { opacity: 1; }
.pslide.no-anim { transition: none; }
.admin-panels.tabbed .fold-body { border-top: 0; padding: 22px 24px 24px; animation: none; }
.admin-panels.tabbed > details.pane-in .fold-body { animation: pane-in .32s cubic-bezier(.2,.9,.25,1); }
@keyframes pane-in { from { opacity: 0; transform: translateY(-6px); } }
/* breiter Inhalt: Felder nicht über die ganze Breite ziehen */
.admin-panels.tabbed .fold-body > * { max-width: 760px; }
@media (max-width: 760px) {
  .ptabs { grid-auto-flow: row; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; }
  .ptab { flex-direction: column; justify-content: center; gap: 5px; padding: 8px 4px; min-height: 64px; text-align: center; }
  .ptab .fold-sum { display: none; }
  .ptab .fold-title { font-size: .74rem; }
  .ptab .fold-icon { width: 30px; height: 30px; }
  .admin-panels.tabbed .fold-body { padding: 18px 16px 20px; }
}

/* ===================== Pfad als Chips ===================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 16px; }
.crumb {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px;
  font: 500 .84rem var(--sans); color: var(--text-2); text-decoration: none; white-space: nowrap; max-width: 260px;
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line);
  transition: color .15s, background .15s, border-color .15s, transform .2s cubic-bezier(.2,1.4,.3,1);
}
.crumb span { overflow: hidden; text-overflow: ellipsis; }
.crumb svg { flex: none; width: 14px; height: 14px; fill: currentColor; opacity: .7; }
a.crumb:hover { color: var(--text); background: rgba(var(--ink), 0.08); border-color: var(--line-hi); }
.crumb-here { color: var(--text); background: none; border-color: transparent; padding-left: 4px; }
.crumb-here svg { color: var(--accent); opacity: 1; }
.crumb-sep { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
@media (max-width: 640px) {
  .crumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
  .crumbs::-webkit-scrollbar { display: none; }
  .crumb { height: 30px; font-size: .8rem; }
}
/* beim Ziehen: Pfad schwebt oben, Chips werden zu großen Ablagezielen */
.drag-path {
  position: fixed; z-index: 150; left: 50%; top: calc(var(--topbar, 60px) + 12px); transform: translate(-50%, -20px); opacity: 0;
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; max-width: calc(100vw - 32px); overflow: hidden;
  background: rgba(var(--dkr-22-23-26), 0.96); border: 1px solid var(--line-hi); border-radius: 99px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: transform .35s cubic-bezier(.2,1.3,.3,1), opacity .2s;
}
.drag-path.on { transform: translate(-50%, 0); opacity: 1; }
.drag-path .crumbs { margin: 0; flex-wrap: nowrap; }
.drag-path .crumb { height: 40px; padding: 0 16px; font-size: .9rem; }
.drag-path-hint { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 6px 0 8px; white-space: nowrap; }
.crumb.drop-hover { color: var(--accent) !important; background: rgba(255,138,61,.14) !important; border-color: rgba(255,138,61,.75) !important;
  transform: translateY(-1px); outline: none !important; box-shadow: 0 6px 18px rgba(255,138,61,.18) !important; }
.crumb.drop-hover svg { opacity: 1; color: var(--accent); animation: crumb-open .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes crumb-open { 40% { transform: translateY(-2px) scale(1.25); } }
.drag-path { overflow: visible; }
.drag-path .crumbs { overflow: visible; }
/* freie Fläche als Ziel: Rahmen um die Seite + Hinweis unten */
body.drop-page::before { content: ""; position: fixed; inset: 8px; z-index: 140; pointer-events: none; border-radius: 22px;
  border: 2px dashed rgba(255,138,61,.55); background: rgba(255,138,61,.035); animation: page-drop-in .2s ease; }
body.drop-page::after { content: attr(data-drop-label); position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 141;
  pointer-events: none; padding: 9px 16px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 600 .85rem var(--sans);
  box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: page-drop-in .2s ease; white-space: nowrap; }
@keyframes page-drop-in { from { opacity: 0; } }
.crumb.drop-no { opacity: .45; }
/* Ring um die Maus: voll = in diesen Ordner wechseln */
.spring-ring { position: fixed; left: 0; top: 0; z-index: 210; width: 60px; height: 60px; margin: -30px 0 0 -30px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.spring-ring.run { opacity: 1; }
.spring-ring circle { fill: none; stroke-width: 4; }
.spring-ring .bg { stroke: rgba(0,0,0,.35); }
.spring-ring .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transform: rotate(-90deg); transform-origin: 30px 30px; filter: drop-shadow(0 0 4px rgba(0,0,0,.6)); }
.spring-ring.run .fg { animation: spring-fill var(--spring, .9s) linear forwards; }
@keyframes spring-fill { to { stroke-dashoffset: 0; } }
.spring-ring.done { animation: spring-pop .3s ease forwards; }
@keyframes spring-pop { to { transform: scale(1.6); opacity: 0; } }

/* Auswahl abgeschickt: Leiste zeigt den Status und "Zurückziehen" */
.submit-bar .sent-badge, .submit-bar #unsubmit-btn { display: none; }
.submit-bar.is-sent .sent-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: .9rem; }
.submit-bar.is-sent .sent-badge svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(110,220,150,.16); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.submit-bar.is-sent #unsubmit-btn { display: inline-flex; }
.submit-bar.is-sent #submit-btn { display: none; }

/* ---------- Ordnerkachel: Status als Symbole ---------- */
.card-status { --bar: var(--accent); display: flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 28px; }
.card-status.full, .card-progress.full { --bar: var(--ok); }
.card-status.over, .card-progress.over { --bar: var(--warn); }
.st {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; min-width: 28px; padding: 0 7px;
  border-radius: 99px; font: 600 11px var(--mono); cursor: default;
  background: rgba(var(--ink), 0.05); color: var(--muted); border: 1px solid var(--line);
  transition: transform .15s, background .15s;
}
.st:hover { transform: translateY(-1px); background: rgba(var(--ink), 0.09); }
.st svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-ok { width: 28px; padding: 0; color: var(--ok); background: rgba(126,212,154,.15); border-color: rgba(126,212,154,.35); }
.st-ok svg { stroke-width: 3; }
.st-back { width: 28px; padding: 0; color: var(--accent); background: var(--accent-soft); border-color: rgba(255,138,61,.35); }
.st-dl { width: 28px; padding: 0; color: #8fc6ff; background: rgba(111,195,255,.13); border-color: rgba(111,195,255,.32); }
.st-warn { width: 28px; padding: 0; color: var(--warn); background: rgba(255,90,90,.1); border-color: rgba(255,90,90,.3); }
.st-view { color: var(--text-2); }
.st-none { width: 28px; padding: 0; opacity: .45; }
.st-hearts { margin-left: auto; font: 500 12px var(--mono); color: var(--bar); white-space: nowrap; }
.st-mode { margin-left: auto; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 3px; margin-top: 10px; border: 0; border-radius: 99px; background: rgba(var(--ink), 0.08); --bar: var(--accent); }
.card-progress::-webkit-progress-bar { background: rgba(var(--ink), 0.08); border-radius: 99px; }
.card-progress::-webkit-progress-value { background: var(--bar); border-radius: 99px; }
.card-progress::-moz-progress-bar { background: var(--bar); border-radius: 99px; }
/* Infofenster beim Darüberfahren (eigenes Element, damit es nicht von der Kachel abgeschnitten wird) */
.tip {
  position: fixed; z-index: 400; max-width: 300px; padding: 9px 12px; border-radius: 12px; pointer-events: none;
  background: rgba(var(--dkr-24-25-29), 0.98); border: 1px solid var(--line-hi); box-shadow: 0 14px 40px rgba(0,0,0,.6);
  font: 400 12.5px/1.5 var(--sans); color: var(--text-2); white-space: pre-line;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.on { opacity: 1; transform: none; }
.tip::first-line { font-weight: 600; color: var(--text); }

/* Tabs-Inhalt: Platz nutzen */
.admin-panels.tabbed .fold-body > * { max-width: none; }
.share-cols { display: contents; }
.share-col { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 980px) {
  .admin-panels.tabbed #share .fold-body { display: block; }
  .admin-panels.tabbed .share-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
  .admin-panels.tabbed .share-col { gap: 16px; }
  .admin-panels.tabbed .share-col:first-child { padding-right: 40px; }
  .admin-panels.tabbed .share-col + .share-col { padding-left: 40px; border-left: 1px solid var(--line); }
  .admin-panels.tabbed #activity .activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .admin-panels.tabbed #activity .activity-list li { padding: 16px; border-radius: 14px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); }
  .admin-panels.tabbed #description textarea { min-height: 170px; }
}
.share-col > .link-btn { align-self: flex-start; }

/* Auf "Neuer Ordner" ziehen: Kachel lädt ein, neue Kachel erscheint mit Namensfeld */
.card-new.drop-hover { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.card-new.drop-hover .plus { background: var(--accent); color: #1a0e05; transform: scale(1.15) rotate(90deg); }
.card-new .plus { transition: transform .3s cubic-bezier(.2,1.4,.3,1), background .2s; }
.card.card-born { animation: card-born .6s cubic-bezier(.2,1.4,.3,1) both; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.25); }
@keyframes card-born { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
.card-name { display: flex; gap: 6px; margin: -2px 0 4px; }
.card-name input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 10px; font: 600 1rem var(--sans); color: var(--text);
  background: var(--dk-26272b); border: 1px solid var(--accent); outline: none;
}
.card-name .btn { height: 36px; min-height: 36px; padding: 0 14px; }

/* ===================== Links & Textvorlagen ===================== */
/* Einstellungen */
.snip-panel { display: flex; flex-direction: column; gap: 12px; }
.snip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.snip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 6px; }
@media (max-width: 860px) { .snip-grid { grid-template-columns: 1fr; } }
.snip-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.snip-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 .95rem var(--sans); }
.snip-title svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snip-list { display: flex; flex-direction: column; gap: 8px; }
.snip-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 14px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); animation: pane-in .25s ease; transition: opacity .2s, transform .2s; }
.snip-row.snip-out { opacity: 0; transform: scale(.97); }
.snip-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.snip-fields-col { grid-template-columns: 1fr; }
.snip-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.snip-field span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.snip-field input, .snip-field textarea { width: 100%; min-width: 0; padding: 8px 11px; border-radius: 10px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 400 .9rem/1.45 var(--sans); }
.snip-field textarea { resize: vertical; }
.snip-field input:focus, .snip-field textarea:focus { outline: none; border-color: rgba(var(--ink), 0.3); }
.snip-del { flex: none; margin-top: 18px; }
.snip-del svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.snip-add { align-self: flex-start; gap: 6px; }
.snip-add .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.snip-foot { display: flex; justify-content: flex-end; }
.snip-ok { color: var(--ok); } .snip-err { color: var(--warn); } .snip-dirty { color: var(--accent); }

/* Im Text-Bereich: Links als Chips, Vorlagen als Menü */
.snip-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.snip-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.snip-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; max-width: 260px;
  background: rgba(var(--ink), 0.05); border: 1px solid var(--line-hi); color: var(--text-2); font: 500 .84rem var(--sans);
  cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s, color .15s, transform .15s;
}
.snip-chip:hover { background: var(--accent-soft); color: var(--text); border-color: rgba(255,138,61,.45); transform: translateY(-1px); }
.snip-chip:active { cursor: grabbing; }
.snip-chip svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.snip-empty { font-size: .84rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.snip-menu { position: relative; }
.snip-menu > summary { list-style: none; gap: 6px; }
.snip-menu > summary::-webkit-details-marker { display: none; }
.snip-menu .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.snip-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 320px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--dk-1c1d21); border: 1px solid var(--line-hi); border-radius: 16px; box-shadow: 0 24px 70px -10px rgba(0,0,0,.75);
  animation: pane-in .2s ease;
}
.snip-pop-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.snip-preset { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 0; border-radius: 11px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.snip-preset:hover { background: rgba(var(--ink), 0.06); }
.snip-preset b { font-weight: 600; font-size: .9rem; }
.snip-preset small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snip-pop-empty { padding: 8px 11px; margin: 0; }
.snip-pop-save { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; background: none; color: var(--accent); font: 500 .86rem var(--sans); cursor: pointer; text-align: left; }
.snip-pop-save:hover { background: var(--accent-soft); }
.snip-pop-save svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.snip-pop-link { padding: 6px 11px 8px; font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* Namens-Fenster */
.name-dlg form { display: flex; flex-direction: column; gap: 12px; width: min(400px, calc(100vw - 64px)); }
.name-dlg input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 1rem var(--sans); }
.name-dlg input:focus { outline: none; border-color: var(--accent); }
.name-dlg p { margin: 0; }
/* beim Ziehen: Hinweis oben nicht über dem schwebenden Pfad */
body.dragging-items .toast { opacity: 0 !important; pointer-events: none !important; }

/* Pfad: Vorschau der Unterordner beim Darüberfahren */
.peek {
  position: fixed; z-index: 140; width: 300px; max-height: min(460px, 70vh); display: flex; flex-direction: column; padding: 6px;
  background: rgba(var(--dkr-26-27-31), 0.98); border: 1px solid var(--line-hi); border-radius: 16px; box-shadow: 0 24px 70px -10px rgba(0,0,0,.75);
  opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.peek.on { opacity: 1; transform: none; }
.peek-head { padding: 8px 10px 6px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.peek-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 11px; color: var(--text); text-decoration: none; }
.peek-row:hover { background: rgba(var(--ink), 0.07); }
.peek-row.is-path { background: var(--accent-soft); }
.peek-row.is-path b { color: var(--accent); }
.peek-thumb { flex: none; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: var(--dk-24252a); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.peek-thumb img { width: 100%; height: 100%; object-fit: cover; }
.peek-thumb svg { width: 18px; height: 18px; fill: currentColor; }
.peek-text { display: flex; flex-direction: column; min-width: 0; }
.peek-text b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-text small { font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.peek-empty { margin: 0; padding: 6px 10px 10px; color: var(--muted); font-size: .84rem; }

/* Tab-Ordner: Kundenlink ausgegraut, Hinweis auf den Hauptordner */
.ptab.is-managed { opacity: .55; }
.ptab.is-managed .fold-icon { filter: grayscale(1); }
.ptab.is-managed[aria-selected="true"] { opacity: .85; }
.managed-note { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(var(--ink), 0.035); border: 1px dashed var(--line-hi); }
.managed-note > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.managed-note > div { flex: 1; min-width: 0; }
.managed-note b { font-weight: 600; }
.managed-note p { margin: 3px 0 0; }
@media (max-width: 640px) { .managed-note { flex-wrap: wrap; } }

/* Tab "Kommentare": Eintrag = Bild + Text (anklicken springt hin) + Antworten */
#comments-tab .fc-list { max-height: 520px; overflow-y: auto; padding-right: 4px; }
#comments-tab .fc-item { flex-wrap: wrap; cursor: default; padding: 10px 12px 10px 10px; }
#comments-tab .fc-item.is-open { border-color: rgba(255,138,61,.35); }
.fc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.fc-main:hover .fc-text:first-child { color: var(--accent); }
.fc-actions { flex: none; display: flex; gap: 6px; }
.fc-reply-btn { gap: 6px; }
.fc-reply-btn .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fc-item.replying .fc-reply-btn { background: var(--accent-soft); border-color: rgba(255,138,61,.4); color: var(--accent); }
.fc-reply { flex-basis: 100%; display: flex; align-items: flex-end; gap: 8px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); animation: pane-in .2s ease; }
.fc-reply[hidden] { display: none; }
.fc-reply textarea { flex: 1; min-height: 40px; resize: vertical; padding: 9px 14px; border-radius: 18px; background: var(--dk-26272b); border: 1px solid rgba(var(--ink), 0.12); color: var(--text); font: 400 .92rem/1.4 var(--sans); }
.fc-reply textarea:focus { outline: none; border-color: rgba(var(--ink), 0.3); }
.warn-text { color: var(--accent); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* Einstellungen: angeschlossene Laufwerke */
.drives { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drive { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); }
.drive.is-used { border-color: rgba(126,212,154,.3); }
.drive-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(var(--ink), 0.05); color: var(--text-2); }
.drive.is-used .drive-ico { color: var(--ok); background: rgba(126,212,154,.12); }
.drive-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drive-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drive-text b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-text small { color: var(--muted); font-size: .76rem; }
.drive-tag { flex: none; padding: 4px 10px; border-radius: 99px; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(var(--ink), 0.06); color: var(--text-2); }
.drive-tag.ok { background: rgba(126,212,154,.14); color: var(--ok); }
.drive-tag.new { background: var(--accent-soft); color: var(--accent); cursor: pointer; list-style: none; }
.drive-tag.new::-webkit-details-marker { display: none; }
.drive-use { display: contents; }
.drive-use[open] .drive-howto { flex-basis: 100%; }
.drive-howto { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; color: var(--text-2); }
.drive-howto p { margin: 0; }
.drive-howto code { display: block; padding: 8px 10px; border-radius: 8px; background: var(--dk-111215); font-size: .78rem; overflow-x: auto; white-space: nowrap; user-select: all; }
.drive-refresh { margin-left: 8px; font: 500 .74rem var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }

/* Herz-Animation beim Favorisieren */
.heart-pop { position: absolute; left: 50%; top: 50%; z-index: 5; width: 0; height: 0; pointer-events: none; }
.heart-pop svg {
  position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; fill: var(--accent); stroke: none;
  filter: drop-shadow(0 6px 22px rgba(255,120,40,.55)); animation: heart-pop .85s cubic-bezier(.2,1.4,.3,1) forwards;
}
.heart-pop.in-lb svg { left: -64px; top: -64px; width: 128px; height: 128px; }
.heart-pop i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; animation: heart-spark .7s .08s ease-out forwards; }
.heart-pop i:nth-of-type(1) { --a: 0deg; } .heart-pop i:nth-of-type(2) { --a: 60deg; } .heart-pop i:nth-of-type(3) { --a: 120deg; }
.heart-pop i:nth-of-type(4) { --a: 180deg; } .heart-pop i:nth-of-type(5) { --a: 240deg; } .heart-pop i:nth-of-type(6) { --a: 300deg; }
@keyframes heart-pop { 0% { transform: scale(0); opacity: 0; } 25% { transform: scale(1.25); opacity: 1; } 45% { transform: scale(.95); } 65% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1) translateY(-14px); opacity: 0; } }
@keyframes heart-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scale(.3); } }
.heart-pop.in-lb i { width: 10px; height: 10px; left: -5px; top: -5px; }

/* ---------- Handy: links Kommentare, rechts Markierungen – je als Sprechblase ---------- */
.lb-fab, .lb-pop { display: none; }
.lb-pop-body { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) {
  .lightbox .lb-comments { position: relative; z-index: 6; overflow: visible; max-height: none; height: 0; padding: 0; width: 100%; justify-self: stretch; display: block; }
  .lb-fab { position: absolute; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 13px;
    border-radius: 99px; border: 1px solid var(--line-hi); background: rgba(var(--dkr-24-25-29), 0.9); color: var(--text);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.45);
    font: 700 12px var(--mono); -webkit-tap-highlight-color: transparent; transition: transform .2s, background .2s, border-color .2s; }
  .lb-fab[hidden] { display: none; }
  .lb-fab:active { transform: scale(.94); }
  .lb-fab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .lb-fab-c { left: 14px; }
  .lb-fab-m { right: 14px; }
  .lb-fab-c svg { stroke: var(--accent); }
  .lb-fab-m svg { stroke: #fff; }
  .lb-fab.on { border-color: rgba(255,138,61,.7); background: rgba(255,138,61,.18); }
  .lb-fab.fab-in { animation: fab-in .45s cubic-bezier(.2,1.6,.3,1); }
  @keyframes fab-in { from { transform: scale(.4); opacity: 0; } }
  /* leuchtet, solange die Kommentare nicht angesehen wurden */
  .lb-fab-c.glow { border-color: rgba(255,138,61,.65); animation: fab-glow 2.2s ease-in-out infinite; }
  @keyframes fab-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,61,.0), 0 10px 30px rgba(0,0,0,.45); }
    50% { box-shadow: 0 0 0 7px rgba(255,138,61,.18), 0 0 26px rgba(255,138,61,.55); } }
  .lb-pop { position: absolute; left: 12px; right: 12px; bottom: 70px; display: flex; flex-direction: column; max-height: 54vh;
    border-radius: 22px; background: rgba(var(--dkr-20-21-24), 0.96); border: 1px solid var(--line-hi);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -10px 50px rgba(0,0,0,.55); }
  .lb-pop[hidden] { display: none; }
  .lb-pop-c { transform-origin: 30px calc(100% + 30px); }
  .lb-pop-m { transform-origin: calc(100% - 30px) calc(100% + 30px); }
  .lb-pop.pop-in { animation: bubble-in .32s cubic-bezier(.2,1.35,.3,1); }
  @keyframes bubble-in { from { transform: scale(.3); opacity: 0; } }
  /* Spitze der Sprechblase zeigt auf den Knopf */
  .lb-pop::after { content: ""; position: absolute; bottom: -8px; width: 16px; height: 16px; background: rgb(20,21,24); border: 1px solid var(--line-hi);
    border-top: 0; border-left: 0; transform: rotate(45deg); }
  .lb-pop-c::after { left: 24px; }
  .lb-pop-m::after { right: 24px; }
  .lb-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px 16px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .lb-pop-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(var(--ink), 0.06); color: var(--text-2); }
  .lb-pop-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .lb-pop-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 14px; }
  .lightbox.editing .lb-fab, .lightbox.drawing .lb-fab, .lightbox.mark-edit .lb-fab { visibility: hidden; }
}

/* Sprechblase an der Markierungsnummer (Handy) */
.mk-bubble { display: none; }
@media (max-width: 900px) {
  .mk-bubble { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 6px; width: min(260px, 70vw); padding: 10px 12px 12px;
    border-radius: 16px; background: rgba(var(--dkr-20-21-24), 0.96); border: 1px solid rgba(255,138,61,.55); color: var(--text); box-shadow: 0 14px 40px rgba(0,0,0,.6);
    --bt: -50%, calc(-100% - 18px); transform-origin: 0 0; transform: scale(calc(1 / var(--z, 1))) translate(var(--bt)); pointer-events: auto; }
  .mk-bubble[hidden] { display: none; }
  .mk-bubble.in { animation: mkb-in .38s cubic-bezier(.2,1.4,.3,1); }
  @keyframes mkb-in { from { opacity: 0; translate: 0 10px; } }
  .mk-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: rgb(20,21,24);
    border: 1px solid rgba(255,138,61,.55); border-top: 0; border-left: 0; transform: rotate(45deg); }
  .mk-bubble.below { --bt: -50%, 22px; }
  .mk-bubble.below::after { bottom: auto; top: -7px; transform: rotate(-135deg); }
  .mk-bubble.right { --bt: -22px, calc(-100% - 18px); }
  .mk-bubble.right.below { --bt: -22px, 22px; }
  .mk-bubble.right::after { left: 22px; }
  .mk-bubble.left { --bt: calc(-100% + 22px), calc(-100% - 18px); }
  .mk-bubble.left.below { --bt: calc(-100% + 22px), 22px; }
  .mk-bubble.left::after { left: auto; right: 16px; }
  .mk-bubble-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .mk-bubble-head b { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .mk-bubble-nav { display: flex; gap: 4px; }
  .mk-bubble-nav button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(var(--ink), 0.08); color: var(--text); }
  .mk-bubble-nav.single button[data-k="-1"], .mk-bubble-nav.single button[data-k="1"] { display: none; }
  .mk-bubble-nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .mk-bubble p { margin: 0; font-size: .95rem; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
  .mk-bubble p.muted { font-style: italic; }
  .mk-bubble-acts { display: flex; justify-content: flex-end; }
  .mk-bubble-acts[hidden] { display: none; }
  .lightbox.zoom-glide .lb-stage img, .lightbox.zoom-glide .lb-marks { transition: scale .42s cubic-bezier(.3,.8,.3,1), transform-origin .42s cubic-bezier(.3,.8,.3,1); }
}

/* Kundenseite am Handy: Leisten nicht als Text markierbar, Ansicht-Menü über der Auswahl-Leiste */
.gallery-toolbar, .filter-bar, .chip, .view-menu summary, .submit-bar, .g-tabs, .lb-dock {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
@media (max-width: 720px) {
  /* liegt direkt über "Auswahl abschicken" statt dahinter */
  body:has(#submit-bar) .view-panel { bottom: calc(86px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 180px); overflow-y: auto; z-index: 90; }
  .submit-bar { gap: 10px; }
  .submit-bar.is-sent .submit-count .muted { display: none; }
  .submit-bar.is-sent .sent-badge { font-size: .86rem; }
  .submit-bar #unsubmit-btn { padding: 0 18px; flex: none; }
}
@media (max-width: 380px) {
  .submit-bar.is-sent .sent-badge span, .submit-bar .submit-count .muted { display: none; }
}
/* Handy: in der Großansicht zoomt die Seite nicht mit, sondern das Bild (eigener Zoom) */
@media (hover: none), (pointer: coarse) { .lightbox .lb-stage { touch-action: none; } }

/* ---------- Knopf-Designer (Links im Kundentext) ---------- */
.lead .lead-btn .ico-star, .lbd .ico-star, .snip-look .ico-star { fill: currentColor; stroke: none; }
.lead-link-ico { display: inline-flex; align-items: center; gap: 6px; }
.lead-link-ico .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbd form { width: min(460px, calc(100vw - 48px)); gap: 14px; }
.lbd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lbd-url { font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbd-stage { margin: 0; max-width: none; display: grid; place-items: center; min-height: 96px; border-radius: 16px; white-space: normal;
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--ink), 0.07), rgba(0,0,0,.25)); border: 1px solid var(--line); }
.lbd-stage .lead-btn, .snip-look .lead-btn { pointer-events: none; }
.lbd-bump { animation: lbd-bump .28s cubic-bezier(.3,1.6,.5,1); }
@keyframes lbd-bump { from { transform: scale(.9); opacity: .5; } to { transform: none; opacity: 1; } }
.lbd-field { display: flex; flex-direction: column; gap: 6px; }
.lbd-field > span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lbd-field input { width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .95rem var(--sans); }
.lbd-styles button { font-size: .82rem; }
.lbd-icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.lbd-icon { aspect-ratio: 1; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--ink), 0.03); color: var(--text-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.lbd-icon:hover { background: rgba(var(--ink), 0.08); color: var(--text); transform: translateY(-1px); }
.lbd-icon[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(255,138,61,.6); color: var(--accent); }
.lbd-icon .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lbd-icon .ico-star { fill: currentColor; stroke: none; }
.lbd-auto { font: 700 12px var(--mono); }
.lbd-none { width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid currentColor; position: relative; }
.lbd-none::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.6px; background: currentColor; transform: rotate(45deg); }
@media (max-width: 480px) { .lbd-icons { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.snip-fields-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: end; }
@media (max-width: 700px) { .snip-fields-link { grid-template-columns: 1fr; } }
.snip-look { position: relative; margin: 0; max-width: none; font-size: 1rem; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 0; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.snip-look .lead-btn { min-height: 36px; }
.snip-look-edit { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .15s, background .15s; }
.snip-look-edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snip-look:hover .snip-look-edit { color: var(--accent); background: var(--accent-soft); }
.snip-chip svg use[href="#i-star"] { fill: var(--accent); }

/* ---------- Auswahl abschicken / zurückziehen ---------- */
.sx-dlg { width: min(420px, calc(100vw - 28px)); border-radius: 26px; overflow: visible;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,138,61,.13), transparent 60%), var(--dk-16171a); }
.sx-dlg.sx-danger { background: radial-gradient(120% 70% at 50% 0%, rgba(255,92,92,.13), transparent 60%), var(--dk-16171a); }
.sx-dlg[open] { animation: sx-in .38s cubic-bezier(.2,1.3,.3,1); }
@keyframes sx-in { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.sx-dlg form { align-items: center; text-align: center; gap: 12px; padding: 26px 24px 22px; }
.sx-stack { position: relative; width: 100%; height: 132px; margin: -58px 0 4px; }
.sx-card { position: absolute; left: 50%; top: 10px; width: 92px; height: 112px; margin-left: -46px; border-radius: 12px;
  background: var(--dk-222222) center / cover; border: 3px solid #f4f1ec; box-shadow: 0 14px 30px rgba(0,0,0,.55);
  transform: translate(var(--x), var(--y)) rotate(var(--r)); animation: sx-deal .5s calc(var(--i) * 60ms) cubic-bezier(.2,1.4,.3,1) both; }
@keyframes sx-deal { from { transform: translate(0, 40px) rotate(0) scale(.6); opacity: 0; } }
.sx-icon { position: absolute; left: 50%; top: 30px; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 0 0 10px rgba(255,138,61,.15), 0 18px 40px rgba(0,0,0,.5); }
.sx-icon svg { width: 34px; height: 34px; fill: #1a0e05; }
.sx-title { margin: 0; font: 650 1.35rem/1.25 var(--sans); letter-spacing: -.01em; }
.sx-text { color: var(--text-2); font-size: .95rem; line-height: 1.5; max-width: 32ch; }
.sx-meter { width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sx-meter-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(var(--ink), 0.08); overflow: hidden; }
.sx-meter-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); border-radius: inherit; animation: sx-fill .7s .15s cubic-bezier(.3,1,.4,1) both; }
@keyframes sx-fill { from { width: 0; } }
.sx-meter.full .sx-meter-bar i { background: var(--ok); }
.sx-meter.over .sx-meter-bar i { background: linear-gradient(90deg, var(--accent), #ff5c5c); }
.sx-meter-label { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.sx-actions { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.sx-actions .btn { flex: 1; min-height: 48px; justify-content: center; gap: 8px; }
.sx-ok .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sx-fly { position: fixed; z-index: 400; pointer-events: none; border-radius: 10px; background: var(--dk-222222) center / cover;
  border: 3px solid #f4f1ec; box-shadow: 0 16px 36px rgba(0,0,0,.55); transform-origin: center; will-change: transform; }
.sx-pile { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; will-change: transform; }
.sx-pile .sx-fly { position: absolute; }
.sx-trail { position: absolute; left: -30px; top: 20px; width: 60px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,138,61,.55), transparent); filter: blur(10px); opacity: 0; animation: sx-trail .9s ease-in forwards; }
@keyframes sx-trail { 30% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: .2; transform: scaleY(1.8); } }
.submit-bar.sx-landed { animation: sx-landed .8s cubic-bezier(.2,1.5,.3,1); }
@keyframes sx-landed { 0% { scale: .92; } 50% { scale: 1.04; box-shadow: 0 0 0 10px rgba(126,212,154,.18), 0 20px 50px rgba(0,0,0,.5); } }
.submit-bar.sx-landed .sent-badge svg { animation: sx-check .6s .15s cubic-bezier(.2,1.6,.3,1) both; }
@keyframes sx-check { from { transform: scale(0) rotate(-40deg); } }
#unsubmit-btn.sx-halt { animation: sx-halt .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes sx-halt { 0% { transform: none; } 20% { transform: scale(1.15) rotate(-6deg); } 40% { transform: scale(1.1) rotate(5deg); } 60% { transform: scale(1.05) rotate(-3deg); } 100% { transform: none; } }
.submit-bar.sx-back { animation: sx-back .6s ease; }
@keyframes sx-back { 30% { translate: 0 6px; } }
@media (max-width: 600px) { .sx-card { width: 74px; height: 92px; margin-left: -37px; } .sx-stack { height: 110px; margin-top: -50px; } }

/* ---------- Titelbild-Fenster (neu): Ausschnitt ziehen, Bild aus den Ordnern wählen ---------- */
.cv2 { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.cv2 .cover-inner { max-height: calc(100dvh - 26px); overflow-y: auto; }
.cv-sub { margin: 4px 0 0; }
.cv2 .mock [data-img] { cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; transition: object-position .25s ease; }
.cv2 .cv-dragging [data-img] { cursor: grabbing; transition: none; }
.cv2 .cv-dragging .mock { outline: 2px solid var(--accent); outline-offset: 2px; }
.cv-drag-hint { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px;
  background: rgba(var(--dkr-10-10-12), 0.62); color: var(--lt-ffffff); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.cv-drag-hint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv2 .mock:hover .cv-drag-hint { opacity: 1; transform: none; }
.cv2 .cv-dragging .cv-drag-hint, .cv2 .cv-empty .cv-drag-hint { opacity: 0; }
.mock.cv-pop { animation: cv-pop .45s cubic-bezier(.2,1.4,.3,1); }
@keyframes cv-pop { 0% { transform: scale(.97); filter: brightness(1.4); } 100% { transform: none; filter: none; } }
.cv-pick { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.cv-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cv-target button { font-size: .8rem; padding: 6px 12px; white-space: nowrap; }
.cv-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-height: 28px; }
.cv-crumb { border: 0; background: none; color: var(--muted); font: 500 .85rem var(--sans); padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.cv-crumb:hover { color: var(--text); background: rgba(var(--ink), 0.06); }
.cv-crumb.on { color: var(--text); cursor: default; background: none; }
.cv-sep { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; transition: opacity .2s; }
.cv-grid.cv-loading { opacity: .4; }
.cv-photo, .cv-folder { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: rgba(var(--ink), 0.04);
  animation: cv-tile .35s calc(min(var(--i, 0), 20) * 18ms) ease both; transition: transform .15s, box-shadow .15s; }
@keyframes cv-tile { from { opacity: 0; transform: translateY(6px); } }
.cv-photo img, .cv-folder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-photo:hover, .cv-folder:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.cv-photo.is-web, .cv-photo.is-mobile { box-shadow: 0 0 0 2px var(--accent); }
.cv-tags { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; }
.cv-tags i { display: none; font: 600 9px var(--mono); font-style: normal; letter-spacing: .06em; padding: 2px 6px; border-radius: 99px; background: var(--accent); color: #1a0e05; }
.cv-photo.is-web .cv-t-web, .cv-photo.is-mobile .cv-t-mobile { display: inline-block; }
.cv-folder { display: flex; flex-direction: column; justify-content: flex-end; }
.cv-folder img { position: absolute; inset: 0; opacity: .45; filter: saturate(.7); }
.cv-folder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); }
.cv-folder-tab { position: absolute; top: 8px; left: 8px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--dkr-10-10-12), 0.6); }
.cv-folder-tab svg { width: 15px; height: 15px; fill: var(--accent); }
.cv-folder-name { position: relative; z-index: 1; padding: 8px; color: var(--lt-ffffff); font: 600 .78rem/1.25 var(--sans); text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-none { grid-column: 1 / -1; margin: 10px 0; }
.cv-upload { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-hi); cursor: pointer; transition: border-color .15s, background .15s; }
.cv-upload:hover { border-color: rgba(255,138,61,.6); background: var(--accent-soft); }
.cv-upload svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-upload span { display: flex; flex-direction: column; gap: 2px; }
.cv-upload b { font-weight: 600; font-size: .9rem; }
.cv-upload small { color: var(--muted); font-size: .78rem; }
@media (max-width: 700px) { .cv-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 240px; } }

/* ---------- Kommentare-Tab: Kommentar vs. Markierung, Daumen = erledigt ---------- */
#comments-tab .fc-item { align-items: flex-start; gap: 12px; }
#comments-tab .fc-item:not(.is-open) { opacity: .82; }
#comments-tab .fc-item:not(.is-open):hover { opacity: 1; }
.fc-thumb { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.fc-thumb img { width: 64px !important; height: 64px !important; border-radius: 10px; object-fit: cover; display: block; transition: transform .2s; }
.fc-thumb:hover img { transform: scale(1.05); }
.fc-thumb-n { position: absolute; right: -4px; bottom: -4px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 99px;
  background: var(--dk-0e0f11); border: 1px solid var(--line-hi); font: 700 9px var(--mono); color: var(--accent); }
.fc-thumb-n svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.4; }
#comments-tab .fc-body { gap: 3px; }
#comments-tab .fc-meta { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; margin-bottom: 2px; }
.fc-state { margin-left: auto; flex: none; }
.fc-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fc-badge-done { color: var(--ok); background: rgba(126,212,154,.1); }
.fc-badge-done svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fc-row { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 5px 8px 5px 5px; border: 0; border-radius: 9px; background: none; color: var(--text);
  text-align: left; cursor: pointer; font: inherit; transition: background .15s; }
.fc-row:hover { background: rgba(var(--ink), 0.05); }
.fc-kind { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(var(--ink), 0.07); margin-top: 1px; }
.fc-kind svg { width: 12px; height: 12px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; }
.fc-mine .fc-kind { background: var(--accent-soft); }
.fc-mine .fc-kind svg { stroke: var(--accent); }
.fc-num { flex: none; min-width: 20px; height: 20px; padding: 0 5px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px;
  font: 700 10px var(--mono); color: #1a0e05; background: var(--accent); }
.fc-num.mk-admin { background: #6fc3ff; color: #06202f; }
.fc-txt { min-width: 0; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-row-mark .fc-who { color: var(--accent); }
.fc-row-mark .fc-txt i { font-style: italic; }
#comments-tab .fc-actions { flex-direction: column; gap: 4px; }
.fc-act { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink), 0.03); color: var(--text-2); cursor: pointer; transition: all .15s; }
.fc-act:hover { color: var(--text); border-color: var(--line-hi); background: rgba(var(--ink), 0.08); }
.fc-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.fc-act.fc-go { width: 32px; height: 32px; stroke: none; fill: none; }
.fc-done:hover { color: var(--ok); border-color: rgba(126,212,154,.5); }
.fc-done.on { color: #0d2416; background: var(--ok); border-color: var(--ok); }
.fc-done.on svg { fill: rgba(var(--dkr-13-36-22), 0.15); }
.fc-done.pop { animation: thumb-pop .55s cubic-bezier(.2,1.6,.3,1); }
@keyframes thumb-pop { 0% { transform: scale(.7) rotate(-20deg); } 50% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
.fc-item.replying .fc-reply-btn { background: var(--accent-soft); border-color: rgba(255,138,61,.4); color: var(--accent); }

/* Fenster: Foto + Markierungen + Unterhaltung */
.fcv { width: min(1720px, calc(100vw - 32px)); height: min(1080px, calc(100dvh - 32px)); max-width: none; max-height: none; display: none; padding: 0; overflow: hidden; }
.fcv[open] { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 460px); animation: sx-in .3s cubic-bezier(.2,1.2,.3,1); }
.fcv-stage { position: relative; display: grid; place-items: center; background: var(--dk-0a0a0c); min-height: 0; padding: 18px; }
.fcv-box { position: relative; max-width: 100%; max-height: 100%; line-height: 0; }
.fcv-box img { max-width: 100%; max-height: calc(min(1080px, 100dvh - 32px) - 36px); display: block; border-radius: 6px; transition: opacity .2s; }
.fcv-box.loading img { opacity: .3; }
.fcv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fcv-svg .mk { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, stroke-width .2s; }
.fcv-svg .mk-shadow { stroke: rgba(0,0,0,.45); stroke-width: 5.5; }
.fcv-svg .mk-client:not(.mk-shadow) { stroke: var(--accent); }
.fcv-svg .mk-admin:not(.mk-shadow) { stroke: #6fc3ff; }
.fcv-svg .mk-active:not(.mk-shadow) { stroke-width: 5; animation: mk-glow 1.2s ease-in-out 2; }
@keyframes mk-glow { 50% { filter: drop-shadow(0 0 8px var(--accent)) brightness(1.4); stroke-width: 7; } }
.fcv-box.has-focus .mk:not(.mk-active) { opacity: .25; }
.fcv-box.has-focus .fcv-num:not(.mk-active) { opacity: .4; }
.fcv-num.fcv-flash { animation: num-flash .9s ease 2; }
@keyframes num-flash { 50% { box-shadow: 0 0 0 8px rgba(255,138,61,.35), 0 0 24px var(--accent); transform: translate(-50%, -50%) scale(1.3); } }
.fcv-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-hi); background: rgba(var(--dkr-10-10-12), 0.6); color: var(--lt-ffffff); display: grid; place-items: center; cursor: pointer; }
.fcv-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fcv-prev { left: 12px; } .fcv-next { right: 12px; }
.fcv-nav[hidden] { display: none; }
.fcv-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.fcv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.fcv-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcv-file { font: 600 .95rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcv-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 16px; }
.fcv-sec { display: flex; flex-direction: column; gap: 8px; }
.fcv-sec[hidden] { display: none; }
.fcv-label { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fcv-marks { display: flex; flex-direction: column; gap: 4px; }
.fcv-mark { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--ink), 0.02); color: var(--text); text-align: left; cursor: pointer; transition: all .15s; font: inherit; }
.fcv-mark:hover { background: rgba(var(--ink), 0.06); }
.fcv-mark.on { border-color: var(--accent); background: var(--accent-soft); }
.fcv-mark-txt { display: flex; flex-direction: column; gap: 1px; font-size: .9rem; line-height: 1.4; }
.fcv-mark-txt b { font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fcv-thread { display: flex; flex-direction: column; gap: 8px; }
.fcv-msg { max-width: 86%; padding: 8px 12px; border-radius: 16px; display: flex; flex-direction: column; gap: 3px; }
.fcv-msg p { margin: 0; font-size: .92rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.fcv-msg small { font-size: .7rem; color: var(--muted); }
.fcv-msg.theirs { align-self: flex-start; background: var(--dk-26272b); border-bottom-left-radius: 5px; }
.fcv-msg.mine { align-self: flex-end; background: rgba(255,138,61,.16); border-bottom-right-radius: 5px; }
.fcv-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.fcv-form textarea { flex: 1; min-height: 42px; max-height: 140px; resize: vertical; padding: 10px 14px; border-radius: 18px; background: var(--dk-26272b); border: 1px solid rgba(var(--ink), 0.12); color: var(--text); font: 400 .92rem/1.4 var(--sans); }
.fcv-form textarea:focus { outline: none; border-color: rgba(var(--ink), 0.3); }
.fcv-foot { display: flex; gap: 8px; padding: 0 16px 16px; }
.fcv-foot .btn { flex: 1; justify-content: center; gap: 7px; }
.fcv-foot .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fcv-done.on { background: var(--ok); border-color: var(--ok); color: #0d2416; }
.fcv-done:not(.on):hover { color: var(--ok); border-color: rgba(126,212,154,.5); }
@media (max-width: 860px) {
  .fcv { height: calc(100dvh - 16px); width: calc(100vw - 16px); }
  .fcv[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 45%) minmax(0, 1fr); }
  .fcv-side { border-left: 0; border-top: 1px solid var(--line); }
  .fcv-box img { max-height: calc((100dvh - 16px) * .45 - 24px); }
  .fcv-stage { padding: 12px; }
}

/* Handy: Kopfzeile weicht beim Runterscrollen aus */
@media (max-width: 720px) {
  .topbar, .gallery-toolbar { transition: transform .3s cubic-bezier(.3,.7,.3,1); }
  body.head-hidden .topbar { transform: translateY(calc(-100% - 1px)); }
  body.head-hidden .gallery-toolbar.tb-stuck { transform: translateY(calc(-1 * (var(--topbar) + env(safe-area-inset-top)))); }
}
/* Symbole in der Sprechblase nicht wie die Markierungs-Ebene über das ganze Bild legen */
.lb-marks .mk-bubble svg { position: static; inset: auto; width: 14px; height: 14px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Handy, Ordnerkopf (Admin): Kennzahlen als Chips, Aktionen als Kacheln ---------- */
@media (max-width: 720px) {
  #progress.pill { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; }
  #progress.pill > span { display: inline-flex; align-items: center; gap: 5px; margin: 0 !important; padding: 7px 11px !important; border: 1px solid var(--line) !important;
    border-radius: 99px; background: rgba(var(--ink), 0.035); font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; }
  #progress.pill > span[hidden] { display: none; }
  #progress.pill > span::before { display: none !important; }
  #progress.pill .rec { border-color: rgba(126,212,154,.4) !important; background: rgba(126,212,154,.08); }
  #progress.pill .pill-lock { border-color: rgba(126,212,154,.3) !important; }
  #progress.pill .limit-text { border-color: rgba(255,138,61,.35) !important; color: var(--accent); }
  .folder-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .folder-actions .btn, .folder-delete .btn { flex-direction: column; height: 62px; min-height: 0; border-radius: 16px; gap: 5px;
    font-size: .74rem; font-weight: 500; letter-spacing: .01em; }
  .folder-actions .btn .ico { width: 18px; height: 18px; }
}
.profile-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-text { flex: 1 1 260px; }
.profile-text p { margin: 4px 0 0; }
.profile-form input { flex: 0 1 280px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .95rem var(--sans); }
.profile-form .ok-text { color: var(--ok); }
@media (max-width: 600px) { .profile-form input { flex: 1 1 100%; } .profile-form .btn { width: 100%; } }
.auth-link { display: block; text-align: center; margin-top: 4px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.auth-link:hover { color: var(--accent); }
.brand-logo { height: 30px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }

/* ---------- Team, Konten, Mein Zugang, Branding ---------- */
.settings-row { margin-bottom: 18px; }
@media (max-width: 860px) { .settings-row { grid-template-columns: minmax(0, 1fr); } }
.me-role { margin: -6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-2); font-size: .9rem; }
.role-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(var(--ink), 0.06); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.role-owner { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,138,61,.4); }
.role-admin { background: rgba(111,195,255,.1); color: #6fc3ff; border-color: rgba(111,195,255,.35); }
.quota-panel, .team-panel { max-width: none; width: auto; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.quota-head, .team-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.team-head p { margin: 4px 0 0; }
.quota-bar { height: 8px; border-radius: 99px; background: rgba(var(--ink), 0.07); overflow: hidden; }
.quota-bar.small { height: 5px; }
.quota-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); transition: width .6s cubic-bezier(.3,1,.4,1); }
.quota-bar.warn i { background: var(--accent); }
.quota-bar.full i { background: #ff5c5c; }
.team-list { display: flex; flex-direction: column; gap: 6px; }
.tm, .ta { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), 0.02); }
.tm.is-off, .ta.is-off { opacity: .55; }
.tm-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--sans);
  background: linear-gradient(135deg, rgba(255,138,61,.35), rgba(255,138,61,.08)); color: var(--text); }
.acc-av { border-radius: 11px; background: linear-gradient(135deg, rgba(111,195,255,.35), rgba(111,195,255,.06)); }
.tm-who, .ta-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-who b, .ta-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-state { font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.tm-state.off { background: rgba(255,92,92,.12); color: #ff7a7a; }
.tm-state.soft { background: rgba(var(--ink), 0.06); color: var(--muted); }
.tm-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.tm-ctl select { height: 34px; padding: 0 28px 0 10px; border-radius: 10px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .82rem var(--sans); }
.tm-ctl select:disabled { opacity: .5; }
.tm-more { position: relative; }
.tm-more > summary { list-style: none; cursor: pointer; }
.tm-more > summary::-webkit-details-marker { display: none; }
.tm-more svg { width: 16px; height: 16px; fill: currentColor; }
.tm-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--dk-1b1c20); border: 1px solid var(--line-hi);
  box-shadow: 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.tm-menu button { text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 .88rem var(--sans); cursor: pointer; }
.tm-menu button:hover { background: rgba(var(--ink), 0.06); }
.tm-menu button.danger { color: #ff7a7a; }
.acc-use { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.acc-use .quota-bar { flex: 1; max-width: 220px; }
.acc-quota { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 500 .8rem var(--mono); }
.acc-quota input { width: 74px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .85rem var(--mono); text-align: right; }
.team-foot { margin: 4px 0 0; line-height: 1.5; }
.team-dlg form { width: min(440px, calc(100vw - 48px)); gap: 14px; }
.team-dlg label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--text-2); }
.team-dlg input { height: 42px; padding: 0 13px; border-radius: 11px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .95rem var(--sans); }
.team-dlg .seg button { font-size: .82rem; }
.team-dlg .seg.is-disabled { opacity: .4; pointer-events: none; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; font: 500 .8rem var(--mono); }
.brand-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(var(--ink), 0.04); border: 1px solid var(--line); }
/* Branding: gleichmäßige Abstände zwischen Hinweis, Vorschau, Formular und Logo-Knöpfen */
.brand-panel { display: flex; flex-direction: column; gap: 16px; }
.brand-panel > :is(h2, p, .notice-ok, .alert) { margin: 0; }
.brand-panel > .small.muted { margin-top: -8px; }
.brand-logo-actions { display: grid; gap: 10px; }
/* allgemein: Knöpfe über die ganze Breite nie aneinanderkleben lassen */
.btn-block + .btn-block, form + .btn-block, .btn-block + form { margin-top: 10px; }
.brand-logo-box { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--ink), 0.04); overflow: hidden; flex: none; }
.brand-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-logo-box .brand-mark { width: 30px; height: 30px; }
.brand-prev-text { display: flex; flex-direction: column; gap: 2px; }
.brand-prev-text b { font: 700 1.15rem var(--sans); letter-spacing: -.02em; }
.brand-prev-text small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-logo-actions { display: flex; flex-direction: column; gap: 8px; }
.brand-upload { cursor: pointer; }
.smtp-box { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.smtp-box[open] { padding-bottom: 14px; }
.smtp-box summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: .9rem; }
.smtp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.smtp-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-2); }
.smtp-grid input, .smtp-grid select { height: 40px; padding: 0 11px; border-radius: 10px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .9rem var(--sans); }
.ta-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ta-seg button { font-size: .78rem; padding: 6px 10px; white-space: nowrap; }
.viewonly-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(111,195,255,.08); border: 1px solid rgba(111,195,255,.25); color: #9fd6ff; font-size: .9rem; }
.viewonly-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 700px) {
  .tm, .ta { flex-wrap: wrap; }
  .tm-ctl { width: 100%; justify-content: flex-end; }
  .ta-seg { width: 100%; }
  .ta-seg button { flex: 1; }
  .smtp-grid { grid-template-columns: 1fr; }
  .team-head { flex-direction: column; }
}
.acc-quota { flex-direction: row !important; align-items: center !important; }
.acc-quota span { order: 2; }
.pw-rules { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; color: var(--muted);
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line); transition: color .2s, background .2s, border-color .2s; }
.pw-rules li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.pw-rules li.ok { color: var(--ok); background: rgba(126,212,154,.08); border-color: rgba(126,212,154,.35); }
.pw-rules li.ok::before { opacity: 1; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-right .topbar-actions { margin-left: 0; }
.me-chip { width: 40px; height: 40px; cursor: pointer; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,138,61,.4), rgba(255,138,61,.1)); color: var(--text); font: 700 .9rem var(--sans);
  text-decoration: none; box-shadow: 0 0 0 1px var(--line-hi); transition: box-shadow .15s, transform .15s; }
.me-chip:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }
.me-chip img, .tm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-av { overflow: hidden; }
.me-top { display: flex; align-items: center; gap: 16px; }
.me-top-text { display: flex; flex-direction: column; gap: 6px; }
.me-top-text .me-role { margin: 0; }
.me-avatar { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,138,61,.45), rgba(255,138,61,.1)); font: 700 1.6rem var(--sans); box-shadow: 0 0 0 1px var(--line-hi); }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.me-avatar-edit { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #1a0e05; box-shadow: 0 0 0 3px #16171a; transition: transform .15s; }
.me-avatar:hover .me-avatar-edit { transform: scale(1.12); }
.me-avatar-edit svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lb-msg-av { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: -5px; margin-right: 6px; }
/* Hinweis „nur ansehen“: Abstand zu den Ordnern */
.viewonly-note { margin: 18px 0 30px; }
.me-hint { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255,138,61,.3); color: #ffc49b; font-size: .86rem; line-height: 1.5; }
label > span small.muted { font-size: .8em; }

/* ---------- Herzen aufgebraucht: Herz zerbricht ---------- */
.heart-break { position: absolute; left: 50%; top: 50%; z-index: 6; width: 0; height: 0; pointer-events: none; }
.heart-break svg { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; overflow: visible;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(255,138,61,.35)); }
.heart-break.in-lb svg { left: -75px; top: -75px; width: 150px; height: 150px; }
.heart-break path { fill: var(--accent); stroke: none; }
.heart-break g { transform-box: fill-box; transform-origin: 50% 100%; }
/* 1) Herz erscheint, 2) bricht im Zickzack (Hälften kippen auseinander – wie im Fenster), 3) fällt herunter */
.heart-break svg { animation: hb-in .22s cubic-bezier(.3,1.5,.5,1) both; }
.heart-break.hard svg { animation: hb-in .22s cubic-bezier(.3,1.5,.5,1) both, hb-shake .36s .2s ease-in-out; }
.heart-break .hb-l { animation: hx-l .45s cubic-bezier(.3,1.4,.4,1) .5s both, hb-fall-l .8s .95s cubic-bezier(.5,0,.75,.4) forwards; }
.heart-break .hb-r { animation: hx-r .45s cubic-bezier(.3,1.4,.4,1) .5s both, hb-fall-r .8s .95s cubic-bezier(.5,0,.75,.4) forwards; }
.heart-break.soft .hb-l { animation: hx-l .35s cubic-bezier(.3,1.4,.4,1) .18s both, hb-fall-l .7s .55s cubic-bezier(.5,0,.75,.4) forwards; }
.heart-break.soft .hb-r { animation: hx-r .35s cubic-bezier(.3,1.4,.4,1) .18s both, hb-fall-r .7s .55s cubic-bezier(.5,0,.75,.4) forwards; }
.heart-break.soft svg { width: 80px; height: 80px; left: -40px; top: -40px; }
.heart-break.soft.in-lb svg { width: 120px; height: 120px; left: -60px; top: -60px; }
.heart-break i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); opacity: 0;
  animation: hb-shard .8s .95s ease-out forwards; }
.heart-break.soft i { animation-delay: .55s; }
.heart-break i:nth-of-type(1) { --x: -26px; --y: 34px; --r: 120deg; }
.heart-break i:nth-of-type(2) { --x: 18px; --y: 44px; --r: -80deg; }
.heart-break i:nth-of-type(3) { --x: 4px; --y: 58px; --r: 200deg; }
@keyframes hb-in { from { transform: scale(.3); opacity: 0; } }
@keyframes hb-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px) rotate(-6deg); } 40% { transform: translateX(5px) rotate(6deg); }
  60% { transform: translateX(-4px) rotate(-4deg); } 80% { transform: translateX(3px) rotate(3deg); } }
@keyframes hb-fall-l { from { transform: translate(-1.6px, .8px) rotate(-13deg); opacity: 1; }
  to { transform: translate(-7px, 24px) rotate(-50deg); opacity: 0; filter: saturate(0) brightness(.6); } }
@keyframes hb-fall-r { from { transform: translate(1.6px, .8px) rotate(13deg); opacity: 1; }
  to { transform: translate(7px, 26px) rotate(52deg); opacity: 0; filter: saturate(0) brightness(.6); } }
@keyframes hb-shard { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.heart.nope { animation: hb-shake .4s ease-in-out; }
.submit-bar.hb-shake { animation: hb-bar .45s ease-in-out; }
@keyframes hb-bar { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.brand-upload { flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; }
.brand-prev-text b i { color: var(--accent); font-style: normal; }
.brand-prev-text small em { font-style: normal; color: var(--text-2); font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.me-panel .me-form, .me-panel .me-email { display: flex; flex-direction: column; gap: 14px; }
.me-panel .me-email { padding-top: 16px; border-top: 1px solid var(--line); gap: 8px; }
.me-email-label { font-size: .9rem; color: var(--text-2); }
.me-email-row { display: flex; align-items: center; gap: 8px; }
.me-email-row input { flex: 1; min-width: 0; }
.me-email-now { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line);
  font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Profilbild zuschneiden ---------- */
.av-dlg form { width: min(360px, calc(100vw - 40px)); align-items: center; gap: 14px; }
.av-dlg .dialog-title { align-self: flex-start; }
.av-stage { position: relative; width: 280px; height: 280px; flex: none; overflow: hidden; border-radius: 18px; background: var(--dk-0a0a0c);
  cursor: grab; touch-action: none; user-select: none; }
.av-stage.dragging { cursor: grabbing; }
.av-stage img { position: absolute; left: 50%; top: 50%; max-width: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.av-stage.ready img { opacity: 1; }
.av-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 999px rgba(10,10,12,.62), inset 0 0 0 2px rgba(255,255,255,.85); }
.av-zoom { display: flex; align-items: center; gap: 12px; width: 100%; }
.av-zoom input { flex: 1; accent-color: var(--accent); }
.av-zoom svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; }
.av-zoom svg.big { width: 20px; height: 20px; }
.av-hint { margin: -4px 0 0; text-align: center; }
.av-dlg .dialog-actions { width: 100%; }

/* ---------- Hilfe-Knopf, erster Login, Rundgang ---------- */
.help-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-hi); background: rgba(var(--ink), 0.03);
  color: var(--text-2); font: 700 .95rem var(--sans); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.help-btn:hover { color: var(--accent); border-color: rgba(255,138,61,.6); background: var(--accent-soft); }
.onboard form { width: min(440px, calc(100vw - 40px)); gap: 16px; }
.onboard label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .9rem; }
.onboard input { height: 46px; padding: 0 14px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 1rem var(--sans); }
.onboard .display-sm, .tour-ask .display-sm { margin: 0; }
.ob-hello { display: flex; align-items: center; gap: 18px; }
.ob-hello p { margin: 6px 0 0; }
.ob-avatar { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,138,61,.45), rgba(255,138,61,.1)); color: var(--text); font: 700 1.8rem var(--sans); box-shadow: 0 0 0 1px var(--line-hi);
  animation: ob-pulse 2.4s ease-in-out infinite; }
.ob-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ob-avatar i { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1a0e05; box-shadow: 0 0 0 3px #16171a; }
.ob-avatar i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@keyframes ob-pulse { 50% { box-shadow: 0 0 0 1px var(--line-hi), 0 0 0 8px rgba(255,138,61,.12); } }
.tour-ask form { width: min(420px, calc(100vw - 40px)); gap: 12px; }
.tour form { position: relative; width: min(760px, calc(100vw - 24px)); gap: 18px; padding: 26px; overflow: hidden; }
.tour-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.tour-stage { min-height: 300px; position: relative; touch-action: pan-y; }
.tour-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.tour-step.from-right { animation: tour-in-r .38s cubic-bezier(.2,1,.3,1); }
.tour-step.from-left { animation: tour-in-l .38s cubic-bezier(.2,1,.3,1); }
@keyframes tour-in-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes tour-in-l { from { opacity: 0; transform: translateX(-40px); } }
.tour-mock { aspect-ratio: 4 / 3.2; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: radial-gradient(120% 90% at 30% 0%, rgba(255,138,61,.14), transparent 60%), var(--dk-0e0f11); border: 1px solid var(--line); }
.tour-num { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--accent); }
.tour-text h2 { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; font: 750 1.6rem/1.15 var(--sans); letter-spacing: -.02em; }
.tour-text h2 i { color: var(--accent); font-style: normal; margin-left: -8px; }
.tour-text h2 svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tour-text ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tour-text li { position: relative; padding-left: 20px; color: var(--text-2); line-height: 1.5; font-size: .95rem; }
.tour-text li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tour-text li b { color: var(--text); font-weight: 600; }
.tour-dots { display: flex; justify-content: center; gap: 8px; }
.tour-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(var(--ink), 0.18); cursor: pointer; transition: width .25s, background .25s; }
.tour-dots button.on { width: 26px; background: var(--accent); }
.tour-nav { display: flex; justify-content: space-between; gap: 10px; }
.tour-nav .btn { min-width: 120px; justify-content: center; }
/* kleine Szenen */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-card { aspect-ratio: .85; border-radius: 10px; background: var(--dk-1b1c20); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; gap: 4px; }
.tm-card i { flex: 1; border-radius: 6px; background: linear-gradient(135deg, var(--dk-3a3029), var(--dk-23252a)); }
.tm-card b { font-size: .62rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-new { border-style: dashed; border-color: rgba(255,138,61,.6); align-items: center; justify-content: center; animation: tm-glow 1.8s ease-in-out infinite; }
.tm-new span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,138,61,.6); display: grid; place-items: center; color: var(--accent); font-size: 1.1rem; }
@keyframes tm-glow { 50% { box-shadow: 0 0 0 5px rgba(255,138,61,.12); } }
.tm-drop { flex: 1; border: 2px dashed rgba(255,138,61,.45); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font: 500 .75rem var(--mono); }
.tm-drop svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; animation: tm-bob 1.6s ease-in-out infinite; }
@keyframes tm-bob { 50% { transform: translateY(-6px); } }
.tm-bar { width: 70%; height: 6px; border-radius: 99px; background: rgba(var(--ink), 0.08); overflow: hidden; }
.tm-bar i { display: block; height: 100%; width: 0; background: var(--accent); animation: tm-fill 2.6s ease-in-out infinite; }
@keyframes tm-fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.tm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tm-tiles i { position: relative; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--dk-3a3029), var(--dk-23252a)); }
.tm-tiles i.on::after { content: "♥"; position: absolute; right: 5px; bottom: 3px; color: var(--accent); font-size: .9rem; animation: tm-heart 2s ease-in-out infinite; }
@keyframes tm-heart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } }
.tm-limit { align-self: center; padding: 6px 14px; border-radius: 99px; background: rgba(var(--ink), 0.05); font: 500 .75rem var(--mono); color: var(--muted); }
.tm-limit b { color: var(--accent); }
.tm-tabs { align-self: center; display: flex; padding: 4px; border-radius: 99px; background: rgba(var(--ink), 0.06); }
.tm-tabs span { padding: 6px 16px; border-radius: 99px; font-size: .8rem; color: var(--muted); }
.tm-tabs span.on { background: var(--accent); color: #1a0e05; font-weight: 600; }
.tm-dl { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-hi); font-size: .85rem; }
.tm-dl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; animation: tm-bob 1.6s ease-in-out infinite; }
.tm-share { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tm-share > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tm-share svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.tm-online { color: var(--ok); border: 1px solid rgba(126,212,154,.4); background: rgba(126,212,154,.08); }
.tm-lock { color: var(--text-2); border: 1px solid var(--line-hi); }
.tm-url { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--dk-1b1c20); border: 1px solid var(--line); font: 500 .72rem var(--mono); color: var(--muted); }
.tm-url b { padding: 5px 10px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 600 .72rem var(--sans); }
.tm-chat { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tm-chat p { margin: 0; max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: .82rem; }
.tm-chat .them { align-self: flex-start; background: var(--dk-26272b); border-bottom-left-radius: 4px; }
.tm-chat .me { align-self: flex-end; background: rgba(255,138,61,.18); border-bottom-right-radius: 4px; }
.tm-thumb { position: absolute; right: 0; top: -6px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ok); color: #0d2416; animation: thumb-pop 2.2s ease-in-out infinite; }
.tm-thumb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 680px) {
  .tour form { padding: 20px 16px; }
  .tour-step { grid-template-columns: 1fr; gap: 16px; }
  .tour-mock { aspect-ratio: auto; min-height: 150px; padding: 14px; }
  .tour-stage { min-height: 0; }
  .tour-text h2 { font-size: 1.3rem; }
}
/* Rundgang: Fenster so breit wie der Inhalt (Standard-Fenster sind 460 px) */
.dialog.tour { width: min(760px, calc(100vw - 24px)); max-width: none; }
.tour form { width: auto; }
@media (max-width: 680px) {
  .tour-stage { padding-top: 34px; }
  .tour-x { top: 10px; right: 10px; }
  .tour-nav .btn { min-width: 0; flex: 1; }
}
.dialog.onboard { width: min(460px, calc(100vw - 24px)); }
.onboard form { width: auto; }
.dialog.av-dlg { width: min(360px, calc(100vw - 24px)); }
.av-dlg form { width: auto; }

/* ---------- Bilder fliegen in den Ordner ---------- */
.mv-ghost.drop { transition: transform .38s cubic-bezier(.55,-0.25,.7,.9), opacity .3s .14s; opacity: 0; }
.card.drop-done { animation: drop-gulp .55s cubic-bezier(.2,1.5,.3,1); }
@keyframes drop-gulp {
  0% { transform: scale(1.04); }
  30% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(255,138,61,.5); }
  65% { transform: scale(1.035); box-shadow: 0 0 0 10px rgba(255,138,61,0); }
  100% { transform: scale(1); }
}
.card { position: relative; }
.drop-plus { position: absolute; left: 50%; top: 34%; z-index: 4; transform: translate(-50%, -50%); pointer-events: none;
  padding: 6px 14px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 700 1rem var(--sans);
  box-shadow: 0 10px 30px rgba(255,138,61,.45); animation: drop-plus 1.05s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes drop-plus { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  45% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140%) scale(.9); } }
.drag-vanish { animation: drag-vanish .24s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes drag-vanish { to { opacity: 0; transform: scale(.55); filter: blur(2px); } }

/* ---------- Hochladen: Ordner, schwebender Fortschritt, Ablage-Schleier ---------- */
.dz-dir { margin-top: 6px; position: relative; z-index: 2; }
.up-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 300; width: min(340px, calc(100vw - 36px));
  padding: 14px 16px; border-radius: 16px; background: rgba(var(--dkr-24-25-29), 0.96); border: 1px solid var(--line-hi); box-shadow: 0 20px 50px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 8px; }
.up-float[hidden] { display: none; }
.up-float.in { animation: up-in .4s cubic-bezier(.2,1.3,.3,1); }
@keyframes up-in { from { transform: translateY(20px); opacity: 0; } }
.up-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.up-head svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
.up-bar { height: 6px; border-radius: 99px; background: rgba(var(--ink), 0.08); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .25s; }
.up-float.done .up-bar i { background: var(--ok); }
.up-float small { color: var(--muted); font: 500 .75rem var(--mono); }
.up-veil { position: fixed; inset: 0; z-index: 350; pointer-events: none; background: rgba(var(--dkr-10-10-12), 0.38);
  animation: page-drop-in .15s ease; }
.up-veil::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,138,61,.65); border-radius: 22px;
  box-shadow: inset 0 0 80px rgba(255,138,61,.08); transition: opacity .2s; }
.up-veil[hidden] { display: none; }
.up-veil-pill { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 16px; border-radius: 99px; background: rgba(var(--dkr-22-23-26), 0.94); border: 1px solid rgba(255,138,61,.45);
  box-shadow: 0 18px 50px -14px rgba(0,0,0,.7); max-width: calc(100vw - 40px); animation: up-pill-in .25s cubic-bezier(.2,1.3,.4,1); }
@keyframes up-pill-in { from { opacity: 0; transform: translate(-50%, -12px); } }
.up-veil-pill span { display: flex; flex-direction: column; min-width: 0; }
.up-veil svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; animation: tm-bob 1.4s ease-in-out infinite; }
.up-veil b { font: 650 1rem var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-veil small { color: var(--text-2); font-size: .8rem; }
.up-veil.on-card::before { opacity: .25; }
/* über einer Ordner-Kachel: Rest der Seite leicht abgedunkelt, kein wandernder Rahmen */
.up-spot { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(8,9,11,.35); }
.up-spot[hidden] { display: none; }
/* fliegende Abzüge beim Hochladen */
.up-print { position: fixed; left: 0; top: 0; width: 92px; height: 74px; z-index: 400; pointer-events: none; padding: 5px 5px 9px;
  background: #f4f1ea; border-radius: 3px; box-shadow: 0 14px 28px -8px rgba(0,0,0,.65), 0 2px 4px rgba(0,0,0,.35); will-change: transform; }
.up-print i { display: grid; place-items: center; width: 100%; height: 100%; background: var(--dk-2a2b30) center / cover no-repeat; border-radius: 1px; }
.up-print-raw i b { font: 700 11px var(--mono); letter-spacing: .12em; color: var(--lt-d9d5cc); }
.drop-plus.settled { animation: drop-plus-out .8s ease forwards; }
@keyframes drop-plus-out { 0% { opacity: 1; transform: translate(-50%, -50%); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140%) scale(.9); } }

/* ---------- Kopfzeile: Papierkorb, Glocke, Profil-Menü ---------- */
.topbar-right { gap: 8px; }
.btn.trash-btn { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; position: relative; color: #ff6b5e;
  border-color: rgba(255,107,94,.35); background: rgba(255,107,94,.06); }
.btn.trash-btn:hover { color: var(--lt-ffffff); background: #e5483b; border-color: #e5483b; }
.btn.trash-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.trash-btn .count-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  background: #e5483b; color: var(--lt-ffffff); font-size: 10px; box-shadow: 0 0 0 2px var(--bg); }
.menu-item.trash-btn { color: #ff6b5e; display: flex; align-items: center; gap: 10px; }
.menu-item.trash-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-item.trash-btn::after { content: "Papierkorb"; color: var(--text); }
.menu-item.trash-btn .count-badge { order: 2; margin-left: auto; }

.icon-round { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-hi); background: rgba(var(--ink), 0.03);
  color: var(--text-2); display: grid; place-items: center; cursor: pointer; position: relative;
  transition: color .15s, border-color .15s, background .15s; }
.icon-round:hover, details[open] > .icon-round { color: var(--accent); border-color: rgba(255,138,61,.6); background: var(--accent-soft); }
.icon-round svg { width: 19px; height: 19px; }
.inbox summary.has-new svg { color: var(--accent); animation: bell-ring 2.4s ease-in-out 1s 2; transform-origin: 50% 15%; }
@keyframes bell-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } 50% { transform: rotate(5deg); } }
.inbox-count { position: absolute; top: -4px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: #1a1208; font: 700 10px/18px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

.me-menu summary.me-chip { list-style: none; }
.me-menu[open] summary.me-chip { box-shadow: 0 0 0 2px var(--accent); }
.me-menu-panel, .inbox-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; background: var(--dk-1a1b1f); border: 1px solid var(--line-hi);
  border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.7); padding: 8px; transform-origin: top right;
  animation: menu-pop .18s cubic-bezier(.2,.9,.3,1.2); }
@keyframes menu-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.me-menu-panel { width: 260px; }
.me-menu-who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.me-menu-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.me-menu-who b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-menu-who small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-menu-av { width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,138,61,.4), rgba(255,138,61,.1)); font-weight: 700; }
.me-menu-av img { width: 100%; height: 100%; object-fit: cover; }
.me-menu-panel form { margin: 0; }
.me-menu-item { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: center; width: 100%; padding: 10px 10px;
  border-radius: 10px; color: var(--text); text-decoration: none; font: 500 .92rem var(--sans); background: none; border: 0; cursor: pointer; text-align: left; }
.me-menu-item small { grid-column: 2; color: var(--muted); font-size: .76rem; font-weight: 400; }
.me-menu-item svg { width: 18px; height: 18px; color: var(--text-2); grid-row: span 2; align-self: center; }
.me-menu-item:hover { background: rgba(var(--ink), 0.06); }
.me-menu-item:hover svg { color: var(--accent); }
.me-menu-item.danger { color: #ff8a80; }
.me-menu-item.danger svg { color: currentColor; }
.me-menu-item.danger:hover { background: rgba(255,107,94,.12); }
.me-menu-panel hr { border: 0; border-top: 1px solid var(--line-hi); margin: 6px 4px; }

.inbox-panel { width: min(380px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.inbox-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.inbox-list { max-height: min(60vh, 460px); overflow: auto; padding: 6px; }
.inbox-empty { padding: 18px 12px; margin: 0; }
.inbox-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px; border-radius: 12px; position: relative;
  transition: opacity .2s, transform .2s; }
.inbox-item + .inbox-item { margin-top: 2px; }
.inbox-item.new { background: rgba(255,138,61,.07); }
.inbox-item.new::before { content: ""; position: absolute; left: 3px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.inbox-item.gone { opacity: 0; transform: translateX(20px); }
.inbox-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-hi); font-weight: 700; font-size: .85rem; }
.inbox-av img { width: 100%; height: 100%; object-fit: cover; }
.inbox-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .82rem; }
.inbox-meta span { color: var(--muted); }
.inbox-meta time { color: var(--muted); font: 400 10px var(--mono); margin-left: auto; }
.inbox-meta em { font-style: normal; font: 600 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.k-idee { color: #ffc46b; background: rgba(255,196,107,.12); }
.k-fehler { color: #ff8a80; background: rgba(255,107,94,.13); }
.k-lob { color: var(--ok); background: rgba(126,212,154,.12); }
.inbox-body p { margin: 4px 0 0; font-size: .88rem; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-del { opacity: 0; transition: opacity .15s; align-self: start; }
.inbox-item:hover .inbox-del, .inbox-del:focus-visible { opacity: 1; }
@media (hover: none) { .inbox-del { opacity: .6; } }
@media (max-width: 720px) {
  .icon-round, .me-chip, .help-btn, .btn.trash-btn { width: 36px; height: 36px; min-height: 36px; }
  .help-btn { display: none; }
  .inbox-panel { position: fixed; left: 12px; right: 12px; width: auto; top: calc(var(--topbar) + env(safe-area-inset-top) + 6px); }
}
@media (prefers-reduced-motion: reduce) { .me-menu-panel, .inbox-panel, .inbox summary.has-new svg { animation: none; } }

/* ---------- 2FA ---------- */
.tfa-login .pill svg, .tfa-state svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tfa-code { font: 600 1.5rem var(--mono) !important; letter-spacing: .35em; text-align: center; height: 56px !important; }
.tfa-help summary { cursor: pointer; color: var(--text-2); font-size: .88rem; }
.tfa-help p { margin: 8px 0 0; }
.tfa-dlg form { width: min(480px, calc(100vw - 40px)); gap: 14px; }
.tfa-qr { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: center; }
.tfa-qr .qr { background: #fff; border-radius: 14px; padding: 10px; line-height: 0; }
.tfa-qr .qr svg { width: 100%; height: auto; }
.tfa-secret { font: 500 .85rem var(--mono); letter-spacing: .04em; background: rgba(var(--ink), 0.05); border: 1px dashed var(--line-hi);
  border-radius: 10px; padding: 8px 10px; word-break: break-all; user-select: all; }
.tfa-steps { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .88rem; display: grid; gap: 4px; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 14px; list-style: none;
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line-hi); border-radius: 12px; font: 600 1rem var(--mono); letter-spacing: .08em; text-align: center; }
.tfa-dlg label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .9rem; }
.tfa-dlg input { height: 46px; padding: 0 14px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 1rem var(--sans); }
.tfa-dlg .tfa-err { color: var(--warn); font-size: .88rem; margin: 0; min-height: 1.2em; }
.tfa-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tfa-state.on { color: var(--ok); background: rgba(126,212,154,.1); border: 1px solid rgba(126,212,154,.35); }
.tfa-state.off { color: var(--muted); background: rgba(var(--ink), 0.04); border: 1px solid var(--line-hi); }
@media (max-width: 520px) { .tfa-qr { grid-template-columns: 1fr; justify-items: center; } .tfa-qr .qr { width: 190px; } }
.tfa-panel { display: flex; flex-direction: column; gap: 14px; }
.tfa-head { display: flex; gap: 14px; align-items: flex-start; }
.tfa-head p { margin: 4px 0 0; }
.tfa-shield { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--muted);
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line-hi); transition: color .3s, background .3s, border-color .3s; }
.tfa-shield svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tfa-panel.is-on .tfa-shield { color: var(--ok); background: rgba(126,212,154,.1); border-color: rgba(126,212,154,.4); }
.tfa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ok-text { color: var(--ok); }
.feedback-panel { display: flex; flex-direction: column; gap: 12px; }
.feedback-panel .seg { align-self: flex-start; }
.feedback-panel textarea { width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi);
  color: var(--text); font: 400 .95rem/1.5 var(--sans); resize: vertical; }
.feedback-panel textarea:focus { outline: none; border-color: var(--accent); }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-sent { animation: fb-sent .5s var(--ease); }
@keyframes fb-sent { 30% { transform: scale(.98); } 60% { transform: scale(1.01); } }
/* Erster Login für Unternehmen: zweiter Schritt (Branding) */
.ob-steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 2px; }
.ob-steps i { width: 28px; height: 4px; border-radius: 99px; background: var(--line-hi); transition: background .3s; }
.ob-steps i.on { background: var(--accent); }
.ob-page { display: flex; flex-direction: column; gap: 16px; }
.ob-page.ob-in { animation: ob-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes ob-in { from { opacity: 0; transform: translateX(18px); } }
.ob-two form { width: min(500px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow: auto; }
.ob-logo { width: 84px; height: 84px; flex: none; border-radius: 18px; border: 1px dashed var(--line-hi); background: rgba(var(--ink), 0.04);
  color: var(--text-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px;
  font: 500 .72rem var(--sans); transition: border-color .15s, color .15s; }
.ob-logo:hover { border-color: var(--accent); color: var(--accent); }
.ob-logo img { max-width: 100%; max-height: 48px; object-fit: contain; }
.ob-logo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ob-logo.busy { opacity: .5; pointer-events: none; }
.ob-links { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ob-links legend { color: var(--text-2); font-size: .9rem; margin-bottom: 6px; padding: 0; }
.onboard label.ob-link { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; font-size: .86rem; }
.onboard .ob-link input { height: 40px; font-size: .9rem; }
.ob-err { color: var(--warn); font-size: .88rem; margin: 0; min-height: 1.1em; }
.ob-err:empty { display: none; }
@media (max-width: 520px) { .onboard label.ob-link { grid-template-columns: 1fr; gap: 4px; } }
/* Zerbrochenes Herz: freigestellt – Schatten am (nicht beschnittenen) Container, keine Filter an den Hälften */
.heart-break { filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
.heart-break b { background: none; overflow: visible; }
.heart-break svg { filter: none; fill: var(--accent); overflow: visible; animation: hb-fade 1.3s ease-in forwards; }
.heart-break .hb-l { animation: hb-wobble .38s ease-in-out, hb-left .9s .38s cubic-bezier(.5,0,.75,.4) forwards; }
.heart-break .hb-r { animation: hb-wobble .38s ease-in-out, hb-right .9s .38s cubic-bezier(.5,0,.75,.4) forwards; }
@keyframes hb-wobble { 20% { transform: translateX(-5px) rotate(-6deg); } 40% { transform: translateX(5px) rotate(6deg); }
  60% { transform: translateX(-4px) rotate(-4deg); } 80% { transform: translateX(3px) rotate(3deg); } }
@keyframes hb-left { 30% { transform: translate(-10px, -4px) rotate(-14deg); opacity: 1; } 100% { transform: translate(-34px, 90px) rotate(-48deg); opacity: 0; } }
@keyframes hb-right { 30% { transform: translate(10px, -4px) rotate(14deg); opacity: 1; } 100% { transform: translate(34px, 96px) rotate(52deg); opacity: 0; } }
@keyframes hb-fade { 0%, 25% { fill: var(--accent); } 60%, 100% { fill: #8a4a26; } }
/* Bilder fliegen nacheinander in den Ordner */
.mv-ghost.drop.drop-fade { transition: opacity .14s ease-out; opacity: 0; }
.fly-thumb { position: fixed; left: 0; top: 0; width: 64px; height: 64px; z-index: 300; pointer-events: none; will-change: transform, opacity;
  background: var(--surface-hi) center / cover no-repeat; border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 0 1.5px rgba(255,255,255,.9); }
.fly-sent { transition: opacity .18s ease, transform .18s ease; opacity: .22; transform: scale(.94); }
.drop-count { position: absolute; left: 50%; top: 34%; z-index: 4; transform: translate(-50%, -50%); pointer-events: none;
  min-width: 46px; padding: 6px 12px; border-radius: 99px; text-align: center; background: var(--accent); color: #1a0e05;
  font: 700 15px var(--mono); box-shadow: 0 10px 30px rgba(255,138,61,.45); animation: dc-in .2s cubic-bezier(.2,1.4,.4,1); }
.drop-count.out { transition: opacity .4s ease, translate .4s ease; opacity: 0; translate: 0 -24px; }
@keyframes dc-in { from { opacity: 0; scale: .5; } }
/* ---------- Hochladen: Ordner-Kachel baut sich auf ---------- */
.card-building-new { animation: card-appear .5s cubic-bezier(.2,1.4,.3,1) both; pointer-events: none; }
.card-building { box-shadow: 0 0 0 1.5px rgba(255,138,61,.55), 0 14px 40px -18px rgba(255,138,61,.5); }
.bc-layer { position: absolute; inset: 0; z-index: 3; background: rgba(var(--dkr-14-15-17), 0.55); display: grid; place-items: center; }
.bc-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.bc-mosaic i { background: var(--dk-1d1e22) center / cover no-repeat; display: grid; place-items: center; color: var(--muted);
  font: 600 10px var(--mono); letter-spacing: .12em; animation: bc-cell .38s cubic-bezier(.2,1.3,.3,1); }
.bc-mosaic i:first-child { animation-name: bc-cell-first; }
@keyframes bc-cell { from { opacity: .4; transform: scale(.92); } }
@keyframes bc-cell-first { 0% { opacity: 0; transform: translateY(-40%) scale(.6) rotate(-6deg); } 70% { transform: scale(1.04); } }
.bc-layer::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(var(--dkr-14-15-17), 0.72), rgba(var(--dkr-14-15-17), 0.2) 70%); pointer-events: none; }
.bc-progress { position: relative; z-index: 2; width: 74px; height: 74px; display: grid; place-items: center; align-content: center; color: var(--lt-ffffff);
  transition: transform .35s cubic-bezier(.2,1.4,.3,1), opacity .4s; }
.bc-progress b { font: 700 1.15rem/1 var(--mono); }
.bc-progress small { font: 500 10px var(--mono); color: rgba(var(--ink), 0.7); margin-top: 2px; }
.bc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bc-ring circle { fill: rgba(var(--dkr-14-15-17), 0.6); stroke: rgba(var(--ink), 0.18); stroke-width: 3; }
.bc-ring .bc-ring-fg { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.card-building.bc-bump .card-cover { animation: bc-bump .26s ease-out; }
@keyframes bc-bump { 40% { transform: scale(.985); } }
.bc-done .bc-ring .bc-ring-fg { stroke: var(--ok); }
.bc-done .bc-progress.done { transform: scale(1.12); }
.bc-done .bc-layer { transition: background .5s .3s; background: rgba(var(--dkr-14-15-17), 0.15); }
.bc-failed .bc-ring .bc-ring-fg { stroke: var(--warn); }
.card-building .bc-meta { color: var(--accent); font-family: var(--mono); }
.up-strip { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin: 0 0 14px; border-radius: 14px; overflow: hidden;
  background: rgba(255,138,61,.06); border: 1px solid rgba(255,138,61,.35); animation: card-appear .45s cubic-bezier(.2,1.3,.3,1) both; }
.up-strip .bc-progress { width: 56px; height: 56px; flex: none; }
.up-strip .bc-progress b { font-size: .9rem; }
.up-strip .bc-mosaic { position: static; display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.up-strip .bc-mosaic i { width: 52px; height: 52px; flex: none; border-radius: 8px; }
.up-strip-label { flex: none; color: var(--text-2); font-size: .85rem; }
.up-strip.bc-done { border-color: rgba(126,212,154,.45); background: rgba(126,212,154,.06); }
@media (max-width: 720px) { .up-strip-label { display: none; } .up-strip .bc-mosaic i { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .bc-mosaic i, .card-building.bc-bump .card-cover { animation: none; } }
/* ---------- Live: wird verbessert ---------- */
.hq-live { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 99px; flex: none;
  background: rgba(255,138,61,.08); border: 1px solid rgba(255,138,61,.3); color: var(--text-2); font-size: .8rem; white-space: nowrap;
  animation: hq-in .35s cubic-bezier(.2,1.3,.3,1); transition: opacity .35s, transform .35s, background .3s, border-color .3s; }
.hq-live[hidden] { display: none; }
.hq-live b { color: var(--text); font: 700 .82rem var(--mono); }
.hq-ring { width: 24px; height: 24px; transform: rotate(-90deg); flex: none; }
.hq-ring circle { fill: none; stroke: rgba(var(--ink), 0.14); stroke-width: 3; }
.hq-ring .hq-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.3,.8,.3,1), stroke .3s; }
.hq-live:not(.all-done) .hq-ring { animation: hq-breathe 2.4s ease-in-out infinite; }
.hq-live.all-done { background: rgba(126,212,154,.1); border-color: rgba(126,212,154,.4); }
.hq-live.all-done .hq-ring-fg { stroke: var(--ok); }
.hq-live.out { opacity: 0; transform: translateY(-6px) scale(.95); }
@keyframes hq-in { from { opacity: 0; transform: scale(.85); } }
@keyframes hq-breathe { 50% { filter: drop-shadow(0 0 4px rgba(255,138,61,.7)); } }
.hq-dot { position: absolute; right: 7px; bottom: 7px; z-index: 3; width: 20px; height: 20px; pointer-events: none; border-radius: 50%;
  background: rgba(var(--dkr-14-15-17), 0.55); transition: opacity .5s .7s, transform .3s; }
.hq-dot svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hq-dot circle { fill: none; stroke: rgba(var(--ink), 0.25); stroke-width: 2.4; }
.hq-dot .hq-dot-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 47.1; stroke-dashoffset: 47.1; transition: stroke-dashoffset .5s ease, stroke .3s; }
.tile[data-hq="busy"] .hq-dot svg { animation: hq-spin .9s linear infinite; }
.tile[data-hq="busy"] .hq-dot-fg { stroke-dashoffset: 33; }
.tile[data-hq="done"] .hq-dot-fg { stroke-dashoffset: 0; stroke: var(--ok); }
.tile[data-hq="done"] .hq-dot { opacity: 0; transform: scale(1.3); }
@keyframes hq-spin { to { transform: rotate(270deg); } }
.tile img.hq-swap { animation: hq-swap .7s ease; }
@keyframes hq-swap { from { filter: blur(6px) saturate(.6); } }
@media (max-width: 720px) { .hq-live .hq-word { display: none; } .hq-live { padding: 0 10px 0 6px; } }
@media (prefers-reduced-motion: reduce) { .tile[data-hq="busy"] .hq-dot svg, .hq-live .hq-ring { animation: none; } }
.dialog.tfa-dlg { width: min(500px, calc(100vw - 24px)); max-width: none; }
.dialog.tfa-dlg form { width: auto; }
.dialog.onboard.ob-two { width: min(540px, calc(100vw - 24px)); max-width: none; }
.dialog.onboard.ob-two form { width: auto; max-height: calc(100dvh - 48px); overflow: auto; }
.top-menu { position: relative; flex: none; }
.top-menu summary { list-style: none; }
.top-menu summary::-webkit-details-marker { display: none; }

/* ---------- Mehrere Personen im Kundenlink ---------- */
.c0 { --pc: #ff8a3d; } .c1 { --pc: #6bb7ff; } .c2 { --pc: #7ed49a; } .c3 { --pc: #d79bff; } .c4 { --pc: #ffd166; } .c5 { --pc: #ff7a9c; }
.who-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 4px; border-radius: 99px; flex: none;
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line-hi); color: var(--text); font: 500 .88rem var(--sans); cursor: pointer;
  transition: border-color .15s, background .15s; }
.who-chip:hover { border-color: rgba(255,138,61,.6); background: var(--accent-soft); }
.who-chip[hidden] { display: none; }
.who-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pc, var(--accent)); color: #15110c; font: 700 .75rem var(--sans); }
.dialog.who-dlg { width: min(470px, calc(100vw - 24px)); max-width: none; }
.who-dlg form { gap: 16px; }
.who-head { display: flex; gap: 14px; align-items: flex-start; }
.who-head p { margin: 6px 0 0; }
.who-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.who-icon svg { width: 22px; height: 22px; fill: currentColor; }
.who-dlg label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .9rem; }
.who-dlg input { height: 46px; padding: 0 14px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 1rem var(--sans); }
.who-dlg input:focus { outline: none; border-color: var(--accent); }
.who-why { font-size: .78rem; }
.who-err { color: var(--warn); font-size: .88rem; margin: 0; }
.who-err:empty { display: none; }
.who-pick { display: flex; flex-direction: column; gap: 8px; }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.who-person { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 99px; cursor: pointer;
  background: rgba(var(--ink), 0.05); border: 1px solid var(--line-hi); color: var(--text); font: 500 .92rem var(--sans); transition: border-color .15s, transform .15s; }
.who-person:hover { border-color: var(--pc); transform: translateY(-1px); }
.who-person span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #15110c; font: 700 .75rem var(--sans); }
.who-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.who-or::before, .who-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.who-choice form { align-items: center; text-align: center; }
.who-thumb { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.who-thumb img { width: 100%; height: 100%; object-fit: cover; }
.who-q { font: 650 1.1rem/1.35 var(--sans); margin: 0; max-width: 340px; }
.who-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.who-actions .btn { width: 100%; justify-content: center; }
.likers { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: flex; pointer-events: none; }
.likers b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #15110c;
  font: 700 9.5px var(--sans); box-shadow: 0 0 0 2px rgba(14,15,17,.85); }
.likers b + b { margin-left: -6px; }
.likers.together { padding: 2px; border-radius: 99px; background: rgba(255,138,61,.25); box-shadow: 0 0 0 1px rgba(255,138,61,.6); }
.chip-person .pdot { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--pc); color: #15110c;
  font: 700 8.5px var(--sans); font-style: normal; margin-right: 2px; }
.chip-both .ico { fill: var(--accent); }
.grid[data-filter="person"] .tile.pf-out { display: none; }
@media (max-width: 720px) { .who-chip { padding: 0 4px; } .who-chip .who-name { display: none; } }

/* Stand für den Kunden: Abgeschickt → In Bearbeitung → Fertig */
.work-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; align-items: center; gap: 0; }
.work-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.work-steps li + li::before { content: ""; width: clamp(18px, 6vw, 54px); height: 2px; border-radius: 2px; background: var(--line-hi); margin: 0 10px; }
.work-steps li.done + li::before, .work-steps li.done + li.now::before { background: var(--accent); }
.work-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .72rem var(--mono); font-style: normal;
  border: 1.5px solid var(--line-hi); color: var(--muted); }
.work-steps i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.work-steps li.done { color: var(--text); }
.work-steps li.done i { background: var(--accent); border-color: var(--accent); color: #1a0e05; }
.work-steps li.now { color: var(--text); }
.work-steps li.now i { border-color: var(--accent); color: var(--accent); animation: ws-pulse 1.8s ease-in-out infinite; }
@keyframes ws-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,138,61,.15); } }
.submitted-note[data-state="ready"] .work-steps li.done:last-child i { background: var(--ok); border-color: var(--ok); }
.work-text { margin: 0; }
.work-link { color: var(--accent); font-weight: 600; text-decoration: none; margin-left: 6px; }
.work-notify { margin: 10px 0 0; font-size: .85rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.work-notify:empty { display: none; }
.work-notify .ico { width: 14px; height: 14px; fill: none; stroke: var(--ok); stroke-width: 2.4; }
@media (max-width: 520px) { .work-steps li span { display: none; } .work-steps li.now span, .work-steps li:last-child.done span { display: inline; } }
@media (prefers-reduced-motion: reduce) { .work-steps li.now i { animation: none; } }

/* Admin: an Kunden-Herzen steht, wer sie gesetzt hat */
.grid[data-protect-client] .tile.liked[data-by="client"][data-who]::before { content: attr(data-who); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.submitted-note .work-steps, .submitted-note .work-notify { justify-content: center; }
.submitted-note .work-text { color: var(--ok); }
.submitted-note[data-state="working"] .work-text { color: var(--text-2); }
.ppl { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ppl .label { margin: 6px 0 0; }
.admin-steps { justify-content: flex-start; margin: 2px 0 0; flex-wrap: wrap; row-gap: 8px; }
.admin-steps small { font-size: .78rem; }
.ppl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ppl-actions .link-btn { align-self: center; }
.ppl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ppl-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); }
.ppl-list li > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ppl-list .small { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ppl-bell { width: 12px; height: 12px; }
.ppl-n { display: inline-flex; align-items: center; gap: 5px; font: 600 .85rem var(--mono); color: var(--text-2); }
.ppl-n .ico { width: 14px; height: 14px; fill: var(--accent); }
.ws-badge { display: inline-flex; margin-left: 8px; padding: 2px 9px; border-radius: 99px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255,138,61,.4); vertical-align: middle; }
.ws-badge.ready { color: var(--ok); background: rgba(126,212,154,.1); border-color: rgba(126,212,154,.4); }
.work-notify { display: block; text-align: center; }
.work-notify .ico { vertical-align: -2px; margin-right: 4px; }

/* ---------- Knopf: nur Symbol + Designer ---------- */
.lead .lead-btn-icon, .lead-btn-icon { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
.lead .lead-btn-icon .ico { width: 19px; height: 19px; }
/* Spalte „Knopf“: Vorschau wie beim Kunden, nicht in Großbuchstaben */
.snip-field span { font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.snip-field > span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.snip-look { height: 44px; min-height: 44px; padding: 0 6px 0 4px; border: 1px solid var(--line-hi); border-radius: 12px; background: var(--dk-1d1e22);
  justify-content: space-between; overflow: hidden; transition: border-color .15s, background .15s; font-size: .95rem; }
.snip-look:hover { border-color: rgba(255,138,61,.55); background: rgba(255,138,61,.06); }
.snip-look .lead-btn { min-height: 34px; height: 34px; padding: 0 14px; font-size: .86rem; }
.snip-look .lead-btn-icon { width: 34px; min-width: 34px; padding: 0; }
.snip-look .lead-link { font-size: .9rem; padding-left: 8px; }
.snip-look-edit { flex: none; }
.dialog.lbd { width: min(560px, calc(100vw - 24px)); max-width: none; }
.dialog.lbd form { width: auto; }
.lbd-stage { min-height: 120px; }
.lbd-styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lbd-style { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border-radius: 14px; cursor: pointer;
  background: rgba(var(--ink), 0.03); border: 1px solid var(--line); color: var(--text-2); transition: border-color .15s, background .15s, transform .15s; min-width: 0; }
.lbd-style:hover { transform: translateY(-1px); border-color: var(--line-hi); }
.lbd-style[aria-pressed="true"] { border-color: rgba(255,138,61,.7); background: var(--accent-soft); color: var(--text); }
.lbd-style small { font: 500 .74rem var(--sans); }
.lbd-mini { margin: 0; max-width: 100%; height: 30px; display: grid; place-items: center; font-size: .8rem; white-space: nowrap; overflow: hidden; pointer-events: none; }
.lbd-mini .lead-btn { min-height: 26px; height: 26px; padding: 0 9px; font-size: .68rem; gap: 4px; max-width: 100%; overflow: hidden; }
.lbd-mini .lead-btn .ico { width: 11px; height: 11px; }
.lbd-mini .lead-btn-icon { width: 28px; min-width: 28px; height: 28px; padding: 0; }
.lbd-mini .lead-link { font-size: .72rem; }
.lbd-mini .lead-link .ico { width: 11px; height: 11px; }
@media (max-width: 520px) { .lbd-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Fenster immer mittig – auch wenn ein Browser sie nicht als Vollbild-Fenster öffnet */
.dialog[open]:not(.sx-dlg) { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 24px); overflow: auto; }
.dialog[open]:not(:modal) { z-index: 500; box-shadow: 0 0 0 100vmax rgba(5,5,7,.72), 0 30px 80px rgba(0,0,0,.6); }
/* ---------- Rechte im Team ---------- */
.tm-rights { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tm-rights i { font-style: normal; font: 500 10.5px var(--sans); padding: 2px 8px; border-radius: 99px; color: var(--text-2);
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line); }
.dialog.rights-dlg { width: min(520px, calc(100vw - 24px)); max-width: none; }
.rights-dlg form { gap: 14px; }
.rt-block { display: flex; flex-direction: column; gap: 8px; }
.rt-block > b, .rt-text b { font-size: .92rem; }
.rt-seg { display: grid; gap: 6px; }
.rt-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), 0.02); cursor: pointer; transition: border-color .15s, background .15s; }
.rt-opt:has(input:checked) { border-color: rgba(255,138,61,.6); background: var(--accent-soft); }
.rt-opt input { accent-color: var(--accent); margin-top: 3px; }
.rt-opt span, .rt-text { display: flex; flex-direction: column; gap: 2px; }
.rt-opt small, .rt-text small { color: var(--muted); font-size: .8rem; }
.rt-switch { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; position: relative; }
.rt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rt-knob { width: 42px; height: 24px; border-radius: 99px; background: rgba(var(--ink), 0.12); position: relative; transition: background .2s; }
.rt-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.rt-switch input:checked + .rt-knob { background: var(--accent); }
.rt-switch input:checked + .rt-knob::after { transform: translateX(18px); }
.rt-switch input:focus-visible + .rt-knob { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Links & Vorlagen nur zum Nutzen */
.snip-panel[data-readonly] .snip-add, .snip-panel[data-readonly] .snip-del, .snip-panel[data-readonly] .snip-foot, .snip-panel[data-readonly] .snip-look-edit { display: none; }
.snip-ro-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(var(--ink), 0.04); border: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }

/* =================== Login-Szene =================== */
body.login-scene { overflow: hidden; min-height: 100dvh; }
.login-scene main { padding: 0; max-width: none; min-height: 100dvh; display: grid; place-items: center; position: relative; }
.ls-world { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.ls-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: ls-spin 200s linear infinite; }
.ls-slot { position: absolute; left: 0; top: 0; }
.ls-tile { position: absolute; left: 0; top: 0; border-radius: 10px; overflow: hidden; will-change: transform;
  box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--ink), 0.06); }
.ls-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .25s; }
.ls-tile.liked::after { box-shadow: inset 0 0 0 3px var(--accent); }
@keyframes ls-spin { to { transform: rotate(360deg); } }
@keyframes ls-spin-tile { from { transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); } to { transform: translate(-50%, -50%) rotate(calc(var(--tilt, 0deg) - 360deg)); } }
.ls-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 42% 50% at 50% 50%, rgba(var(--dkr-14-15-17), 0.98) 0%, rgba(var(--dkr-14-15-17), 0.94) 45%, rgba(var(--dkr-14-15-17), 0.6) 72%, rgba(var(--dkr-14-15-17), 0.12) 100%); }
@media (max-width: 720px) { .ls-vignette { background: radial-gradient(ellipse 70% 42% at 50% 50%, rgba(var(--dkr-14-15-17), 0.98) 0%, rgba(var(--dkr-14-15-17), 0.92) 50%, rgba(var(--dkr-14-15-17), 0.5) 80%, rgba(var(--dkr-14-15-17), 0.1) 100%); } }
/* Aktionen an den Bildern */
.ls-heart { position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--dkr-14-15-17), 0.6); animation: ls-in .35s cubic-bezier(.2,1.6,.4,1); }
.ls-heart svg { width: 13px; height: 13px; fill: var(--accent); }
.ls-heart.out { animation: ls-out .5s ease forwards; }
.ls-pop { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ls-pop svg { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; fill: var(--accent); filter: drop-shadow(0 4px 14px rgba(255,120,40,.6));
  animation: heart-pop .9s cubic-bezier(.2,1.4,.3,1) forwards; }
.ls-break { position: absolute; left: 50%; top: 50%; width: 0; height: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.ls-break b { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; }
.ls-break svg { width: 100%; height: 100%; fill: #b9b3ac; }
.ls-break .l { clip-path: polygon(0 0, 52% 0, 44% 22%, 56% 40%, 45% 58%, 54% 76%, 48% 100%, 0 100%); animation: hb-left .9s .1s cubic-bezier(.5,0,.75,.4) forwards; }
.ls-break .r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 54% 76%, 45% 58%, 56% 40%, 44% 22%); animation: hb-right .9s .1s cubic-bezier(.5,0,.75,.4) forwards; }
.ls-bubble { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: inline-flex; gap: 4px; align-items: center;
  padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: #f2f1ee; color: #17181b; font: 600 11px/1.25 var(--sans);
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transform-origin: 0 100%; animation: ls-in .3s cubic-bezier(.2,1.5,.4,1), ls-out .4s 2.8s ease forwards; }
.ls-bubble i { width: 5px; height: 5px; border-radius: 50%; background: #8b8f97; animation: ls-dot 1s ease-in-out infinite; }
.ls-bubble i:nth-child(2) { animation-delay: .15s; } .ls-bubble i:nth-child(3) { animation-delay: .3s; }
.ls-bubble.said { display: block; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes ls-dot { 50% { transform: translateY(-3px); opacity: .5; } }
.ls-mark { position: absolute; width: 38%; aspect-ratio: 1; }
.ls-mark svg { width: 100%; height: 100%; overflow: visible; }
.ls-mark ellipse { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ls-draw .7s ease-out forwards, ls-out .5s 2.1s ease forwards; filter: drop-shadow(0 0 4px rgba(255,138,61,.5)); }
@keyframes ls-draw { to { stroke-dashoffset: 0; } }
.ls-done { position: absolute; left: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #0d2016; animation: ls-in .35s cubic-bezier(.2,1.6,.4,1), ls-out .4s 1.6s ease forwards; }
.ls-done svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ls-in { from { opacity: 0; transform: scale(.3); } }
@keyframes ls-out { to { opacity: 0; transform: scale(.6) translateY(6px); } }

/* Mitte */
.ls-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; width: min(420px, 100%); }
.ls-title { margin: 0; font: 800 clamp(3.2rem, 9vw, 6.4rem)/.95 var(--sans); letter-spacing: -.055em; color: var(--text);
  animation: ls-rise .8s cubic-bezier(.2,.8,.2,1) both; }
.ls-title i { font-style: normal; color: var(--accent); }
.ls-logo { width: clamp(84px, 13vw, 116px); height: auto; margin: clamp(22px, 4vh, 36px) 0 10px; overflow: visible; animation: ls-rise .8s .08s cubic-bezier(.2,.8,.2,1) both; }
.ls-logo .lq { fill: var(--dk-3a3b40); }
.ls-logo .lq-heart rect { fill: #ff8a3d; }
.ls-logo .lq-heart path { fill: #1a0e05; }
.ls-logo .lq-heart { transform-origin: 23px 9px; transform-box: view-box; }
.ls-logo.beat .lq-heart { animation: ls-beat 1s cubic-bezier(.3,.1,.3,1); }
.ls-logo.beat .lq-heart rect { animation: ls-glow 1s ease; }
@keyframes ls-beat { 0% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(.96); } 42% { transform: scale(1.14); } 70% { transform: scale(1); } }
@keyframes ls-glow { 14%, 42% { filter: drop-shadow(0 0 3px rgba(255,138,61,.95)); } }
.ls-sub { margin: 4px 0 0; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; animation: ls-rise .8s .14s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ls-rise { from { opacity: 0; transform: translateY(16px); } }
.ls-card { width: 100%; margin-top: clamp(26px, 5vh, 44px); display: flex; flex-direction: column; align-items: center; gap: 14px; animation: ls-rise .8s .2s cubic-bezier(.2,.8,.2,1) both; }
.ls-open { min-width: 220px; height: 54px; font-size: 1.05rem; box-shadow: none; transition: opacity .25s, transform .3s cubic-bezier(.3,1.4,.5,1); }
.ls-open:hover { transform: translateY(-2px) scale(1.02); }
.ls-form { width: 100%; display: none; text-align: left; }
.ls-center.open .ls-form { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px;
  background: rgba(var(--dkr-23-24-27), 0.86); border: 1px solid var(--line-hi); box-shadow: 0 30px 80px rgba(0,0,0,.55); backdrop-filter: blur(10px);
  animation: ls-form-in .45s cubic-bezier(.2,.9,.3,1.1); }
@keyframes ls-form-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.ls-center.open .ls-open { display: none; }
.ls-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .88rem; }
.ls-form input { height: 50px; padding: 0 16px; border-radius: 14px; background: var(--dk-101114); border: 1px solid var(--line-hi); color: var(--text); font: 500 1rem var(--sans); }
.ls-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.18); }
.ls-form .btn { height: 50px; margin-top: 4px; }
.ls-form .alert { margin: 0; }
.ls-forgot { color: var(--muted); font-size: .88rem; text-decoration: none; transition: color .15s; }
.ls-forgot:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .ls-ring, .ls-tile, .ls-title, .ls-logo, .ls-sub, .ls-card { animation: none !important; }
}
.rights-dlg label.rt-opt { flex-direction: row; align-items: flex-start; }
.rights-dlg label.rt-switch { display: grid; }
.rt-opt b, .rt-text b { color: var(--text); }
/* Feedback: Art als Chips mit Linien-Symbolen */
.fb-kind { display: inline-flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.fb-kind button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 99px; cursor: pointer;
  background: rgba(var(--ink), 0.03); border: 1px solid var(--line-hi); color: var(--text-2); font: 500 .9rem var(--sans);
  transition: background .15s, border-color .15s, color .15s; }
.fb-kind button svg { width: 18px; height: 18px; }
.fb-kind button:hover { color: var(--text); border-color: rgba(var(--ink), 0.3); }
.fb-kind button[aria-pressed="true"] { color: var(--text); background: var(--accent-soft); border-color: rgba(255,138,61,.65); }
.fb-kind button[aria-pressed="true"] svg { color: var(--accent); }
.fb-kind button[data-v="fehler"][aria-pressed="true"] { background: rgba(255,107,94,.1); border-color: rgba(255,107,94,.55); }
.fb-kind button[data-v="fehler"][aria-pressed="true"] svg { color: #ff8a80; }
.fb-kind button[data-v="lob"][aria-pressed="true"] { background: rgba(126,212,154,.08); border-color: rgba(126,212,154,.5); }
.fb-kind button[data-v="lob"][aria-pressed="true"] svg { color: var(--ok); }
.tfa-qr .qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 4px; }
.tfa-qr .qr { padding: 6px; }
/* Handy: Tabs „Auswahl/Abgabe“ – Symbole nicht zusammendrücken, dafür „WePreview.“ etwas kompakter */
.g-tab svg { flex: none; }
@media (max-width: 720px) {
  .g-tab svg { width: 17px; height: 17px; }
  .g-tab { gap: 7px; padding: 0 14px 0 12px; }
  body:has(.g-tabs) .brand { gap: 7px; }
  body:has(.g-tabs) .brand > span { font-size: 1.02rem; letter-spacing: -.04em; }
  body:has(.g-tabs) .brand-mark { width: 24px; height: 24px; }
  body:has(.g-tabs) .brand-logo { height: 24px; }
  body:has(.g-tabs) .topbar { gap: 10px; }
}
@media (max-width: 430px) {
  body:has(.g-tabs) .brand > span { display: none; }       /* nur das Logo – mehr Platz für die Tabs */
  .g-tab svg { display: inline; }
}
@media (max-width: 340px) { .g-tab svg { display: none; } }
/* Abgabe: die Leiste mit „Ansicht“ läuft mit der Seite mit, statt über dem Text zu kleben */
body.client.deliver .gallery-toolbar { position: static; background: none; }
body.client.deliver.head-hidden .gallery-toolbar { transform: none; }
/* Einladung, Passwort, 2FA … im Look der Anmeldung */
body.ls-auth-page { overflow-x: hidden; overflow-y: auto; }
.ls-auth-page main { padding: clamp(28px, 6vh, 64px) 0; align-items: start; }
.ls-auth { width: min(460px, 100%); }
.ls-home { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.ls-auth .ls-title { font-size: clamp(2.6rem, 6.5vw, 4.2rem); }
.ls-auth .ls-logo { width: clamp(64px, 9vw, 84px); margin: 18px 0 0; }
.ls-auth .ls-card { margin-top: clamp(22px, 4vh, 34px); }
.ls-auth .panel { width: 100%; max-width: none; margin: 0; text-align: left; padding: 26px; border-radius: 22px;
  background: rgba(var(--dkr-23-24-27), 0.88); border: 1px solid var(--line-hi); box-shadow: 0 30px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: ls-form-in .5s .15s cubic-bezier(.2,.9,.3,1.1) both; }
.ls-auth .panel::before, .ls-auth .panel::after { display: none; }        /* keine Eck-Rahmen */
.ls-auth .panel .display-sm { font-size: clamp(1.7rem, 4vw, 2.1rem); }
.ls-auth .panel input:not([type=checkbox]):not([type=radio]):not(.sr-only) { height: 50px; border-radius: 14px; background: var(--dk-101114); }
.ls-auth .panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.18); outline: none; }
.ls-auth .panel .btn { height: 50px; }
.ls-auth-page .ls-vignette { position: fixed; background: radial-gradient(ellipse 36% 80% at 50% 48%, rgba(var(--dkr-14-15-17), 0.98) 0%, rgba(var(--dkr-14-15-17), 0.94) 55%, rgba(var(--dkr-14-15-17), 0.6) 78%, rgba(var(--dkr-14-15-17), 0.15) 100%); }
@media (max-width: 720px) { .ls-auth-page .ls-vignette { background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(var(--dkr-14-15-17), 0.97) 0%, rgba(var(--dkr-14-15-17), 0.9) 60%, rgba(var(--dkr-14-15-17), 0.55) 85%, rgba(var(--dkr-14-15-17), 0.2) 100%); } }
.ls-auth .ls-title { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.ls-auth .ls-logo { width: clamp(56px, 7vw, 70px); margin-top: 14px; }
.ls-auth .ls-card { margin-top: clamp(18px, 3vh, 28px); }
.ls-auth .panel { gap: 14px; }
.login-scene-panel { display: flex; flex-direction: column; gap: 12px; }
.ls-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ls-pick select { flex: 1; min-width: 220px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .92rem var(--sans); }
.ls-pick select[hidden] { display: none; }
/* Ordner-Auswahl (fpick.js) */
.fpick { position: relative; flex: 1; min-width: 240px; }
.fpick-btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; text-align: left;
  border-radius: 12px; background: rgba(var(--ink), 0.04); border: 1px solid var(--line-hi); color: var(--text); font: 500 .92rem var(--sans); cursor: pointer;
  transition: border-color .2s, background .2s; }
.fpick-btn:hover, .fpick-btn[aria-expanded="true"] { border-color: var(--accent); background: rgba(var(--ink), 0.06); }
.fpick-btn > svg { width: 16px; height: 16px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.fpick-btn > svg:last-child { margin-left: auto; transition: transform .2s; }
.fpick-btn[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.fpick-cur { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.fpick-cur, .fpick-cur small { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.fpick-cur small, .fpick-opt small { display: block; font: 500 .7rem var(--sans); color: var(--muted); }
.fpick-cur small:empty { display: none; }
.fpick-pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); padding: 8px; border-radius: 14px;
  background: var(--dk-1d1e22); border: 1px solid var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.35); animation: fpick-in .16s var(--ease) both; }
.fpick-pop[hidden] { display: none; }
@keyframes fpick-in { from { opacity: 0; transform: translateY(-4px); } }
.fpick-q { width: 100%; height: 38px; padding: 0 12px; margin-bottom: 6px; border-radius: 10px; background: rgba(var(--ink), 0.05);
  border: 1px solid var(--line); color: var(--text); font: 500 .9rem var(--sans); }
.fpick-q:focus { outline: none; border-color: var(--accent); }
.fpick-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; overscroll-behavior: contain; }
.fpick-opt { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 6px 10px 6px 12px; border: 0; border-radius: 9px;
  background: none; color: var(--text); font: 500 .9rem var(--sans); text-align: left; cursor: pointer; }
.fpick-opt span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpick-opt svg { width: 15px; height: 15px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.fpick-opt:hover, .fpick-opt.act { background: rgba(var(--ink), 0.06); }
.fpick-opt.on { color: var(--accent); }
.fpick-opt.on svg { color: var(--accent); }
.fpick-opt.special + .fpick-opt:not(.special) { margin-top: 5px; position: relative; }
.fpick-opt.special + .fpick-opt:not(.special)::before { content: ""; position: absolute; left: 6px; right: 6px; top: -4px; border-top: 1px solid var(--line); }
.fpick-empty { margin: 8px 10px; color: var(--muted); font-size: .88rem; }
.ls-tile.has-photo { background-size: cover !important; background-position: center !important; }
/* Dateien vom Computer auf eine Ordner-Kachel ziehen */
.card.up-target { outline: 2px solid var(--accent); outline-offset: 3px; transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 50px -12px rgba(255,138,61,.55);
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .18s; position: relative; z-index: 351; }
.up-veil.on-card { background: transparent; }
.ls-open, .ls-open:hover, .ls-open:focus-visible { box-shadow: none !important; filter: none !important; }
/* Knopf-Designer: saubere Stil-Kärtchen */
.lead-btn .lbl, .lead-link .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbd-style { padding: 14px 6px 10px; gap: 10px; justify-content: space-between; }
.lbd-mini { height: 32px; width: 100%; }
.lbd-mini .lead-btn { height: 28px; min-height: 28px; padding: 0 12px; font-size: .74rem; gap: 5px; }
.lbd-mini .lead-btn .ico { width: 12px; height: 12px; }
.lbd-mini .lead-btn-icon { width: 30px; min-width: 30px; height: 30px; padding: 0; }
.lbd-mini .lead-btn-icon .ico { width: 13px; height: 13px; }
.lbd-mini .lead-link { font-size: .8rem; gap: 5px; }
.lbd-stage { min-height: 128px; padding: 18px; }
.lbd-stage .lead-btn { max-width: 100%; }
.lbd-icons { gap: 8px; }
.lbd-icon { border-radius: 12px; }
/* Spalte „Knopf“: langer Text wird sauber gekürzt, Stift bleibt sichtbar */
.snip-fields-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(150px, .9fr); }
.snip-look { width: 100%; min-width: 0; gap: 6px; }
.snip-look > .lead-btn, .snip-look > .lead-link { min-width: 0; max-width: calc(100% - 32px); }
.snip-look .lead-btn { display: inline-flex; }
.snip-look-edit { flex: none; margin-left: auto; }
/* Auswahl + Abgabe: Anleitung und Rückfrage */
.both-help { margin: 4px 0 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line);
  color: var(--text-2); font-size: .84rem; line-height: 1.5; display: grid; gap: 6px; }
.both-help[hidden] { display: none; }
.both-help b { color: var(--text); font-weight: 600; }
.both-help li::marker { color: var(--accent); font-weight: 700; }
.dialog.both-dlg { width: min(480px, calc(100vw - 24px)); max-width: none; }
.both-dlg-art { display: flex; gap: 8px; justify-content: center; padding: 18px; border-radius: 16px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); }
.bd-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 99px; background: rgba(var(--ink), 0.06); border: 1px solid var(--line-hi); font: 600 .88rem var(--sans); }
.bd-tab:first-child { background: var(--text); color: var(--bg); }
.bd-tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.both-dlg .dialog-actions { flex-wrap: wrap; }
.info-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: -2px; padding: 4px 10px 4px 6px; border-radius: 99px;
  background: none; border: 1px solid transparent; color: var(--muted); font: 500 .8rem var(--sans); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.info-btn[hidden] { display: none; }
.info-btn svg { width: 17px; height: 17px; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); border-color: rgba(255,138,61,.35); }
.both-help-in { animation: help-in .25s cubic-bezier(.2,.8,.2,1); }
@keyframes help-in { from { opacity: 0; transform: translateY(-4px); } }
/* Dateityp an der Kachel (nur Admin): Farbe je Hersteller/Art */
.ext-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; pointer-events: none; padding: 3px 7px; border-radius: 6px;
  font: 700 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--lt-ffffff); background: rgba(var(--dkr-14-15-17), 0.72); border: 1px solid rgba(var(--ink), 0.18);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: opacity .2s; }
.ext-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--ec, #8b8f97); }
.ext-sony { --ec: #ff8a3d; } .ext-canon { --ec: #ff4d4d; } .ext-nikon { --ec: #ffd23f; } .ext-fuji { --ec: #3ddc84; }
.ext-olympus { --ec: #4da3ff; } .ext-panasonic { --ec: #36d6e7; } .ext-leica { --ec: #e0263c; } .ext-dng { --ec: #b28dff; }
.ext-pentax { --ec: #2ec4a6; } .ext-raw { --ec: #c9b18a; }
.ext-jpg { --ec: #c7c9cf; } .ext-png { --ec: #7fd1ff; } .ext-tif { --ec: #8f9bff; } .ext-heic { --ec: #ff8fd0; } .ext-vid { --ec: #ff6bd6; }
.tile .video-badge ~ .ext-tag, .tile:has(.video-badge) .ext-tag { left: auto; right: 8px; }
.grid.selecting .ext-tag { opacity: .4; }
@media (max-width: 720px) { .ext-tag { left: 5px; bottom: 5px; font-size: 8.5px; padding: 2px 5px; } }
/* „Welche Formate?“ im Hochladen-Bereich */
.fmt-info { margin-top: 10px; }
.fmt-info summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: .82rem; list-style: none; }
.fmt-info summary::-webkit-details-marker { display: none; }
.fmt-info summary svg { width: 16px; height: 16px; }
.fmt-info summary:hover, .fmt-info[open] summary { color: var(--accent); }
.fmt-info p { margin: 8px 0 0; line-height: 1.55; }
.fmt-info b { color: var(--text-2); }
/* Dateiname beim Darüberfahren steht rechts neben dem Schild – keine Überlappung */
.ext-tag { min-width: 46px; text-align: center; }
.tile:has(.ext-tag) figcaption { padding-left: 64px; padding-bottom: 11px; }
.tile:has(.video-badge):has(.ext-tag) figcaption { padding-left: 12px; padding-right: 66px; }
/* ---------- Wasserzeichen ---------- */
.wm-panel { display: flex; flex-direction: column; gap: 12px; }
.wm-head { display: flex; justify-content: space-between; align-items: baseline; }
.wm-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wm-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--dk-0c0d0f); border: 1px solid var(--line); min-height: 220px; display: grid; place-items: center; }
.wm-stage img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.wm-loading { position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--ink), 0.25); border-top-color: var(--accent); animation: hq-spin .8s linear infinite; }
.wm-loading[hidden] { display: none; }
.wm-controls { display: flex; flex-direction: column; gap: 14px; }
.wm-field { display: flex; flex-direction: column; gap: 6px; }
.wm-field > span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.wm-field > span b { color: var(--text-2); font-weight: 600; }
.wm-field input:not([type=range]) { height: 42px; padding: 0 13px; border-radius: 11px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .95rem var(--sans); }
.wm-field input[type=range] { accent-color: var(--accent); width: 100%; }
.wm-seg button { flex: 1; }
.wm-seg button:disabled { opacity: .4; cursor: not-allowed; }
.wm-seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.wm-text[hidden] { display: none; }
.wm-actions { display: flex; justify-content: flex-end; }
.wm-link { margin-left: 8px; font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.wm-link:hover { color: var(--accent); }
#share.mode-deliver .wm-switch { display: none; }
@media (max-width: 860px) { .wm-grid { grid-template-columns: 1fr; } }
body.no-save .tile img, body.no-save #lightbox img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.wm-panel, .login-scene-panel, .feedback-panel { max-width: none; margin: 0 0 18px; }
/* Schriften fürs Wasserzeichen (Auswahl-Knöpfe zeigen die Schrift selbst) */
@font-face { font-family: "WM Montserrat"; src: url("/static/fonts/wm/montserrat.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WM Bebas"; src: url("/static/fonts/wm/bebas.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WM Playfair"; src: url("/static/fonts/wm/playfair.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WM Cormorant"; src: url("/static/fonts/wm/cormorant.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WM Dancing"; src: url("/static/fonts/wm/dancing.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WM GreatVibes"; src: url("/static/fonts/wm/greatvibes.woff2") format("woff2"); font-display: swap; }
.wm-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wm-fonts button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 11px; cursor: pointer;
  background: rgba(var(--ink), 0.03); border: 1px solid var(--line); color: var(--text-2); transition: border-color .15s, background .15s; }
.wm-fonts button:hover { border-color: var(--line-hi); }
.wm-fonts button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(255,138,61,.65); color: var(--text); }
.wm-fonts b { font-size: 1.35rem; line-height: 1.2; font-weight: 600; }
.wm-fonts small { font: 500 .68rem var(--sans); color: var(--muted); }
.wmf-inter b { font-family: var(--sans); } .wmf-montserrat b { font-family: "WM Montserrat"; } .wmf-bebas b { font-family: "WM Bebas"; font-weight: 400; letter-spacing: .04em; }
.wmf-playfair b { font-family: "WM Playfair"; } .wmf-cormorant b { font-family: "WM Cormorant"; } .wmf-dancing b { font-family: "WM Dancing"; }
.wmf-greatvibes b { font-family: "WM GreatVibes"; font-weight: 400; font-size: 1.6rem; } .wmf-mono b { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; }
@media (max-width: 520px) { .wm-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Anmeldung geklappt: Titel und Formular weg, Logo und Bilder kommen auf mich zu */
.ls-warping .ls-title, .ls-warping .ls-sub, .ls-warping .ls-card { transition: opacity .18s ease, transform .3s cubic-bezier(.5,0,.8,.4); opacity: 0; transform: scale(1.12); }
/* beim Flug: teure Schatten und Herz-Abzeichen weg – hält die Animation flüssig */
.ls-warping .ls-tile { box-shadow: none; }
.ls-warping .ls-tile::after, .ls-warping .ls-bubble, .ls-warping .ls-mark, .ls-warping .ls-done { display: none; }
.ls-warping .ls-vignette { transition: opacity .4s ease; opacity: 0; }
.ls-warping .ls-logo { position: relative; z-index: 5; }
.ls-warping::after { content: ""; position: fixed; inset: 0; z-index: 50; background: var(--bg); opacity: 0; pointer-events: none; animation: ls-warp-end .86s ease-in forwards; }
@keyframes ls-warp-end { 0%, 78% { opacity: 0; } 100% { opacity: 1; } }
.ls-shake { animation: ls-shake .4s ease; }
@keyframes ls-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
/* nach dem Login sanft auftauchen */
/* (1.22: Aufbau von oben übernimmt chrome.js) */
@keyframes page-in-soft { from { opacity: 0; } }
.card-pending { pointer-events: none; }
.card-pending .card-cover { background: linear-gradient(110deg, transparent 30%, rgba(var(--ink), 0.04) 50%, transparent 70%) 0 0 / 250% 100%; animation: pend-shine 1.1s linear infinite; }
@keyframes pend-shine { to { background-position: -250% 0; } }

/* ---------- Suche ---------- */
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin: 0 1px; border-radius: 6px;
  border: 1px solid var(--line-hi); border-bottom-width: 2px; background: rgba(var(--ink), 0.04); font: 600 11px var(--mono); color: var(--text); vertical-align: middle; }
.search-dlg { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; background: transparent; display: none; }
.search-dlg[open] { display: flex; justify-content: center; align-items: flex-start; padding: min(14vh, 120px) 16px 16px; }
.search-dlg::backdrop { background: rgba(var(--dkr-6-7-9), 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sr-box { width: min(680px, 100%); max-height: min(72vh, 640px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--panel, var(--dk-16171a)); border: 1px solid var(--line-hi); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8); animation: sr-in .18s cubic-bezier(.2,1.2,.4,1); }
@keyframes sr-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.search-dlg .sr-field { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-dlg .sr-lupe { width: 20px; height: 20px; color: var(--accent); flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.search-dlg .sr-field input { flex: 1; width: auto; height: auto; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; padding: 0;
  font: 500 1.1rem var(--sans); color: var(--text); }
.sr-field input::-webkit-search-cancel-button { display: none; }
.sr-results { overflow-y: auto; padding: 6px 8px 10px; min-height: 60px; transition: opacity .15s; }
.sr-results.loading { opacity: .6; }
.sr-sec h3 { margin: 10px 10px 4px; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.sr-item:hover, .sr-item.on { background: var(--accent-soft); }
.sr-item.on { box-shadow: inset 0 0 0 1px rgba(255,138,61,.45); }
.sr-ico, .sr-thumb { width: 40px; height: 40px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--ink), 0.05) center / cover no-repeat; }
.sr-ico svg { width: 18px; height: 18px; color: var(--text-2); }
.sr-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sr-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-main small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-main mark { background: none; color: var(--accent); }
.sr-meta { flex: none; font: 500 11px var(--mono); color: var(--muted); }
.sr-empty { margin: 14px 12px; color: var(--muted); font-size: .9rem; }
.sr-foot { display: flex; gap: 18px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.sr-foot span { display: flex; align-items: center; gap: 4px; }
.sr-foot .link-btn { margin-left: auto; }
.sr-esc { flex: none; }
@media (max-width: 600px) { .sr-foot span { display: none; } .search-dlg[open] { padding-top: 12px; } .sr-box { max-height: calc(100dvh - 24px); } }
/* Übersicht der Kürzel */
.keys-dlg { width: min(440px, calc(100vw - 32px)); }
.keys-list { display: grid; gap: 2px; margin: 8px 0 12px; }
.keys-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.keys-row:last-child { border-bottom: 0; }
/* Einstellungen → Tastenkürzel */
.keys-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.keys-panel kbd { min-width: 20px; height: 20px; font-size: 10px; }
.hk-list { display: grid; gap: 4px; margin: 14px 0; }
.hk-row { display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.hk-row:hover { background: rgba(var(--ink), 0.025); }
.hk-label { display: flex; flex-direction: column; min-width: 0; }
.hk-label small { color: var(--muted); font-size: .78rem; }
.hk-key { min-width: 120px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-hi); background: rgba(var(--ink), 0.02);
  display: flex; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: var(--text); font: inherit; }
.hk-key:hover { border-color: rgba(255,138,61,.6); }
.hk-key.changed { border-style: solid; border-color: rgba(255,138,61,.45); }
.hk-row.recording .hk-key { border: 1px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: hk-pulse 1.2s ease-in-out infinite; }
@keyframes hk-pulse { 50% { box-shadow: 0 0 0 7px rgba(255,138,61,.08); } }
.hk-wait { font-size: .82rem; color: var(--accent); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.hk-wait small { color: var(--muted); font-size: .68rem; }
.hk-row.dupe .hk-key { border-color: var(--warn); }
.hk-tools { display: flex; gap: 4px; }
.hk-mini { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.hk-mini:hover { color: var(--text); border-color: var(--line-hi); }
.hk-mini svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hk-mini[hidden] { display: none; }
.hk-msg { grid-column: 1 / -1; color: var(--warn); font-size: .8rem; }
.hk-foot { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 560px) { .hk-row { grid-template-columns: 1fr auto; } .hk-tools { grid-column: 2; justify-self: end; } .hk-key { min-width: 96px; } }

/* ---------- Ordner-Ansicht (Einstellungen → Ordner-Ansicht) ---------- */
.cards.fv-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.cards.fv-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.cards.fv-small .card-body { padding: 10px 12px 12px; }
.cards.fv-small .card-title { font-size: .95rem; }
.cards.fv-small .card-status { transform: scale(.88); transform-origin: left center; }
.cards.fv-small .badge { font-size: 9px; }
.cards.fv-icon .card-cover { aspect-ratio: 16 / 9; }
.cards.fv-icon.fv-small .card-cover { aspect-ratio: 2 / 1; }
.cards.fv-icon .card-folder { width: 46%; height: 46%; max-width: 92px; fill: rgba(255,138,61,.16); stroke: rgba(255,138,61,.45); stroke-width: .6; }
.cards.fv-icon .card:hover .card-folder { fill: rgba(255,138,61,.24); }
.cv-mosaic { position: absolute; inset: 0; display: grid; gap: 2px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cv-mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cv-mosaic.n2 { grid-template-rows: 1fr; }
.cv-mosaic.n3 img:first-child { grid-row: span 2; }
/* Mischordner: unten rechts ein Ordner-Symbol mit Anzahl; 1,5 s darauf → Ring (subring.js) */
.sub-ind { position: absolute; right: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px 0 8px;
  border-radius: 99px; background: rgba(var(--dkr-14-15-17), 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,138,61,.35); color: #fff; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.sub-ind:hover, .sub-ind:focus-visible, .sub-ind.arming { transform: scale(1.06); background: rgba(var(--dkr-14-15-17), 0.88); border-color: var(--accent); outline: none; }
.sub-ind .si-ico { width: 17px; height: 17px; fill: var(--accent); flex: none; }
.sub-ind b { font: 700 .74rem var(--mono); color: #fff; letter-spacing: .02em; }
/* Ring füllt sich in 1,5 s */
.sub-ind .si-ring { position: absolute; left: -4px; top: -4px; width: calc(100% + 8px); height: calc(100% + 8px); pointer-events: none; overflow: visible; }
.sub-ind .si-ring rect { x: 1.25px; y: 1.25px; width: calc(100% - 2.5px); height: calc(100% - 2.5px); rx: 20px; ry: 20px;
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.sub-ind.arming .si-ring rect { opacity: 1; animation: si-fill var(--arm, 1.5s) linear forwards; }
@keyframes si-fill { to { stroke-dashoffset: 0; } }
.cards.fv-small .sub-ind { height: 26px; padding: 0 8px 0 6px; right: 7px; bottom: 7px; }
.cards.fv-small .sub-ind .si-ico { width: 14px; height: 14px; }
body.folder-selecting .sub-ind { pointer-events: none; opacity: .6; }

/* Ring um den Mauszeiger */
.sub-orbit { position: fixed; z-index: 260; width: 0; height: 0; pointer-events: none; }
.so-hub { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,138,61,.18), 0 0 24px rgba(255,138,61,.5); transform: scale(0); transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.sub-orbit.on .so-hub { transform: scale(1); }
.so-item { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; max-width: 200px;
  padding: 8px 14px 8px 11px; border-radius: 99px; text-decoration: none; white-space: nowrap; color: var(--text);
  background: var(--dk-1d1e22); border: 1px solid var(--line-hi); box-shadow: 0 14px 34px rgba(0,0,0,.45);
  font: 600 .86rem var(--sans);
  transform: translate(-50%, -50%) scale(.3); opacity: 0;
  transition: transform .45s cubic-bezier(.2,1.25,.35,1) calc(var(--i) * 45ms), opacity .25s ease calc(var(--i) * 45ms), border-color .15s, background .15s; }
.so-item svg { width: 16px; height: 16px; fill: var(--accent); flex: none; }
.so-item span { overflow: hidden; text-overflow: ellipsis; }
.sub-orbit.on .so-item { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); }
/* sanftes Schweben – jede in eigenem Takt */
.sub-orbit.on .so-item { animation: so-float var(--fd) ease-in-out calc(.5s + var(--i) * 120ms) infinite; }
@keyframes so-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30% { translate: var(--fx) -5px; rotate: .6deg; }
  65% { translate: calc(var(--fx) * -.6) 3px; rotate: -.5deg; }
}
.so-item:hover, .so-item:focus-visible { border-color: var(--accent); background: var(--dk-17181b); outline: none; z-index: 2; }
.so-item:hover { animation-play-state: paused; }
.so-more { justify-content: center; min-width: 46px; padding: 8px 12px; font: 700 .82rem var(--mono); color: var(--accent); }
.sub-orbit.off .so-item { opacity: 0; transform: translate(-50%, -50%) scale(.4); transition-duration: .22s; transition-delay: 0s; }
.sub-orbit.off .so-hub { transform: scale(0); }
@media (prefers-reduced-motion: reduce) { .sub-orbit.on .so-item { animation: none; } }

/* Suche: Kennzeichen + Inhalt */
.sr-tag { display: inline-flex; align-items: center; gap: 0; margin-left: 8px; padding: 2px 7px; border-radius: 99px; vertical-align: 2px;
  font: 600 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background: rgba(var(--ink), 0.07); }
.sr-tag.sr-on { color: var(--ok); background: rgba(126,212,154,.1); }
.sr-tag.sr-both { padding: 0; overflow: hidden; background: none; border: 1px solid rgba(255,138,61,.45); }
.sr-tag.sr-both i { font-style: normal; padding: 2px 7px; color: var(--accent); }
.sr-tag.sr-both i + i { background: var(--accent); color: #1a0e05; }
.sr-meta { display: flex; gap: 10px; }
.sr-m { display: inline-flex; align-items: center; gap: 4px; }
.sr-m svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sr-m:first-child:not(:last-child) svg { fill: currentColor; stroke: none; }
.keys-dlg { padding: 22px 24px; }
/* Rundgang: Seite „Tastenkürzel“ */
.tm-keys { display: grid; gap: 6px; width: min(100%, 300px); margin: auto; }
.tm-key { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px;
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line); font-size: .85rem; }
.tour-text a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,138,61,.6); text-underline-offset: 3px; }

/* ---------- Einstellungen: besser lesbar ---------- */
.settings-page main .panel h2.label { font: 700 1.2rem/1.25 var(--sans); letter-spacing: -.015em; text-transform: none; color: var(--text);
  margin: 0 0 2px; display: flex; align-items: center; gap: 10px; }
/* statt des Punkts vor jeder Überschrift: ein feiner, warm auslaufender Lichtstreif oben an der Karte */
/* Akzent-Linie läuft oben links und unten rechts über die Ecke und blendet weich aus */
.settings-page main .panel { position: relative; }
.settings-page main .panel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 1;
  border: 1.5px solid var(--accent);
  -webkit-mask: radial-gradient(300px 170px at 0 0, #000 42%, rgba(0,0,0,.5) 70%, transparent 100%), radial-gradient(300px 170px at 100% 100%, #000 42%, rgba(0,0,0,.5) 70%, transparent 100%);
          mask: radial-gradient(300px 170px at 0 0, #000 42%, rgba(0,0,0,.5) 70%, transparent 100%), radial-gradient(300px 170px at 100% 100%, #000 42%, rgba(0,0,0,.5) 70%, transparent 100%); }
.settings-page main .panel > p.muted, .settings-page main .panel .team-head p.muted, .settings-page main .keys-panel > p.muted,
.settings-page main .fv-panel > p.muted { color: var(--text-2); font-size: .9rem; line-height: 1.55; max-width: 78ch; }
.settings-page main .panel { border-color: rgba(var(--ink), 0.09); }
.settings-page main .panel label, .settings-page .wm-field > span, .settings-page .fv-lbl { color: var(--text-2); }
.settings-page .settings-row { align-items: stretch; }
.settings-page .settings-row > .panel { height: 100%; }
.settings-page .brand-panel > form, .settings-page .mail-panel > form { flex: 1; }
/* Sprungleiste zu den Bereichen */
.set-nav { position: sticky; top: calc(var(--topbar) + 8px); z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: -4px 0 22px; padding: 6px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(var(--dkr-42-30-22), 0.94), rgba(var(--dkr-30-24-20), 0.94)); border: 1px solid rgba(255,138,61,.32);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.8), inset 0 1px 0 rgba(var(--ink), 0.05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav a { flex: none; padding: 8px 13px; border-radius: 10px; color: #e9ddd2; font: 500 .86rem var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s; }
.set-nav a:hover { color: var(--lt-ffffff); background: rgba(255,138,61,.14); }
.set-nav a.on { color: #1a0e05; background: var(--accent); font-weight: 600; box-shadow: 0 6px 18px -6px rgba(255,138,61,.7); }
.settings-page main .panel[id] { scroll-margin-top: calc(var(--topbar) + 70px); }
/* Ordner-Ansicht */
.fv-grid { display: grid; gap: 18px; margin: 14px 0 6px; }
.fv-field { display: grid; gap: 8px; }
.fv-lbl { font: 600 .85rem var(--sans); }
.fv-seg button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; }
.fv-ico { width: 30px; height: 22px; display: grid; gap: 2px; flex: none; font-style: normal; }
.fv-ico b { border-radius: 2px; background: currentColor; opacity: .45; }
.seg button[aria-pressed="true"] .fv-ico b { opacity: .7; }
.fv-ico-s { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; height: 9px; margin: 6px 0; }
.fv-ico-m { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; height: 13px; margin: 4px 0; }
.fv-ico-l { grid-template-columns: repeat(2, 1fr); }
.fv-ico-one { grid-template-columns: 1fr; }
.fv-ico-mos { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fv-ico-sym { place-items: center; border: 1.5px solid currentColor; border-radius: 4px; opacity: .7; }
.fv-ico-sym svg { width: 14px; height: 14px; fill: currentColor; }
.fv-mixed { align-items: flex-start; }
.fv-mixed span { display: flex; flex-direction: column; gap: 2px; }
.fv-mixed small { font-size: .82rem; }
@media (max-width: 640px) { .fv-seg { flex-direction: column; } .fv-seg button { justify-content: flex-start; padding: 0 14px; } }

.badge-both { padding: 0 !important; overflow: hidden; gap: 0 !important; border: 1px solid rgba(255,138,61,.5); background: rgba(var(--dkr-14-15-17), 0.7) !important; }
.badge-both i { font-style: normal; padding: 3px 7px; color: var(--accent); }
.badge-both i + i { background: var(--accent); color: #1a0e05; }

/* Abstand zwischen den Bereichen + grünes Aufleuchten nach dem Speichern */
.settings-page main > .panel:not(:last-child), .settings-page main > form.panel:not(:last-child) { margin-bottom: 18px; }
.panel.saved-flash { animation: saved-flash 1.6s ease-out; }
@keyframes saved-flash {
  0% { box-shadow: 0 0 0 0 rgba(126,212,154,0); border-color: var(--line); }
  15% { box-shadow: 0 0 0 3px rgba(126,212,154,.55), 0 0 40px rgba(126,212,154,.25); border-color: rgba(126,212,154,.9); background-color: rgba(126,212,154,.06); }
  100% { box-shadow: 0 0 0 0 rgba(126,212,154,0); border-color: var(--line); }
}
.save-ok { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; color: var(--ok) !important;
  background: rgba(126,212,154,.12); font-weight: 600; animation: dc-in .25s cubic-bezier(.2,1.4,.4,1); }
.save-ok::before { content: "✓"; }

/* ---------- Stapel: Fotos als Fächer, bei Sammlungen mehrere Stapel ---------- */
.cv-stack { position: absolute; inset: 0; overflow: hidden; contain: paint;
  background: radial-gradient(90% 70% at 50% 100%, rgba(255,138,61,.08), transparent 70%), var(--bg-2); }
.card-cover .cv-stack .sk-pic { position: absolute; display: block; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px;
  border: 3px solid #f2efe8; box-shadow: 0 8px 18px -8px rgba(0,0,0,.7); transition: transform .35s var(--ease); }
/* ein Ordner: Fächer aus 3 Fotos, nutzt die Fläche */
.cv-fan .sk-pic { left: 50%; bottom: 7%; width: 36%; transform-origin: 50% 100%; }
.cv-fan .sk-pic:nth-of-type(1) { transform: translateX(-108%) rotate(-12deg); }
.cv-fan .sk-pic:nth-of-type(2) { transform: translateX(8%) rotate(12deg); }
.cv-fan .sk-pic:nth-of-type(3) { transform: translateX(-50%) translateY(-5%); }
.cv-fan.n1 .sk-pic:nth-of-type(1) { transform: translateX(-50%) translateY(-4%) rotate(-3deg); }
.cv-fan.n2 .sk-pic:nth-of-type(1) { transform: translateX(-88%) rotate(-8deg); }
.cv-fan.n2 .sk-pic:nth-of-type(2) { transform: translateX(-12%) translateY(-4%) rotate(7deg); }
.card:hover .cv-fan .sk-pic:nth-of-type(1) { transform: translateX(-122%) translateY(-3%) rotate(-16deg); }
.card:hover .cv-fan .sk-pic:nth-of-type(2) { transform: translateX(22%) translateY(-3%) rotate(16deg); }
.card:hover .cv-fan .sk-pic:nth-of-type(3) { transform: translateX(-50%) translateY(-10%); }
.card:hover .cv-fan.n1 .sk-pic:nth-of-type(1) { transform: translateX(-50%) translateY(-9%) rotate(-3deg); }
.card:hover .cv-fan.n2 .sk-pic:nth-of-type(1) { transform: translateX(-96%) translateY(-4%) rotate(-11deg); }
.card:hover .cv-fan.n2 .sk-pic:nth-of-type(2) { transform: translateX(-4%) translateY(-8%) rotate(10deg); }
/* Sammlung: je Projekt ein kleiner Stapel (2 Fotos übereinander) */
.cv-piles .sk-pile { position: absolute; bottom: 9%; width: 30%; aspect-ratio: 3 / 4; transition: transform .35s var(--ease); }
.cv-piles .sk-pile .sk-pic { inset: 0; width: 100%; }
.cv-piles .sk-pile .sk-pic:nth-of-type(1) { transform: rotate(7deg) translate(7%, -5%); filter: brightness(.82); }
.cv-piles .sk-pile .sk-pic:nth-of-type(2) { transform: rotate(-2deg); }
.cv-piles.n3 .sk-pile:nth-child(1) { left: 5%; transform: rotate(-9deg); }
.cv-piles.n3 .sk-pile:nth-child(2) { left: 35%; bottom: 13%; z-index: 2; }
.cv-piles.n3 .sk-pile:nth-child(3) { left: 65%; transform: rotate(9deg); }
.cv-piles.n2 .sk-pile:nth-child(1) { left: 17%; transform: rotate(-7deg); }
.cv-piles.n2 .sk-pile:nth-child(2) { left: 52%; bottom: 12%; transform: rotate(6deg); z-index: 2; }
.card:hover .cv-piles.n3 .sk-pile:nth-child(1) { transform: rotate(-12deg) translate(-6%, -4%); }
.card:hover .cv-piles.n3 .sk-pile:nth-child(2) { transform: translateY(-7%); }
.card:hover .cv-piles.n3 .sk-pile:nth-child(3) { transform: rotate(12deg) translate(6%, -4%); }
.card:hover .cv-piles .sk-pile .sk-pic:nth-of-type(1) { transform: rotate(11deg) translate(12%, -8%); }
.cards.fv-small .cv-stack .sk-pic { border-width: 2px; border-radius: 4px; }

/* Ordner nach Stand filtern (kleine Symbole neben „Ordner“) */
.sf-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.sf-head .label { margin: 0; }
.sf-bar { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sf-bar[hidden] { display: none; }
.sf { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid var(--line-hi); background: rgba(var(--ink), 0.03); color: var(--text-2); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.sf svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf-ready svg { fill: currentColor; stroke: none; }
.sf:hover { color: var(--text); transform: translateY(-1px); }
.sf[hidden] { display: none; }
.sf[aria-pressed="true"].sf-sent { color: #10170f; background: var(--ok); border-color: var(--ok); }
.sf[aria-pressed="true"].sf-open { color: var(--lt-ffffff); background: #5d6470; border-color: #5d6470; }
.sf[aria-pressed="true"].sf-working { color: #1a1030; background: #c9a6ff; border-color: #c9a6ff; }
.sf[aria-pressed="true"].sf-ready { color: #2a1d00; background: #ffd27a; border-color: #ffd27a; }
.sf[aria-pressed="true"].sf-dl { color: #06182a; background: #8fc6ff; border-color: #8fc6ff; }
.sf[aria-pressed="true"].sf-chat { color: #1a0e05; background: var(--accent); border-color: var(--accent); }
.cards.sf-on .card[data-flags]:not(.sf-hit) { display: none; }
.cards.sf-on .card-new { display: none; }
.sf-empty { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; padding: 20px 4px; }

/* ---------- Löschen durch Gedrückthalten ---------- */
.card-trash { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--dkr-10-10-12), 0.78); border: 1px solid rgba(var(--ink), 0.14); color: var(--text-2); cursor: pointer;
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s, color .2s, background .2s;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.card:hover .card-trash, .card-trash:focus-visible, .card-trash.holding { opacity: 1; transform: none; }
@media (hover: none) { .card-trash { opacity: .9; transform: none; } }
.card-trash:hover { color: var(--warn); background: rgba(var(--dkr-40-14-12), 0.88); border-color: rgba(255,122,107,.45); }
.card-trash .ht-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.ht-ring { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: rotate(-90deg); pointer-events: none; }
.ht-ring circle { fill: none; stroke: transparent; stroke-width: 3; }
.ht-ring .ht-fg { stroke: var(--warn); stroke-linecap: round; stroke-dasharray: 100.6; stroke-dashoffset: 100.6; }
.card-trash.holding { color: var(--lt-ffffff); background: rgba(120,28,22,.9); transform: scale(1.12); }
.card-trash.holding .ht-fg { animation: ht-fill var(--hold, 3s) linear forwards; }
.card-trash.holding .ht-ico { animation: ht-shake .5s ease-in-out infinite; }
@keyframes ht-fill { to { stroke-dashoffset: 0; } }
@keyframes ht-shake { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.card-trash.hold-nudge, .hold-btn.hold-nudge { animation: ls-shake .4s ease; }
.card.card-vanish { animation: card-vanish .42s cubic-bezier(.5,0,.8,.4) forwards; pointer-events: none; }
@keyframes card-vanish { to { opacity: 0; transform: scale(.82) translateY(14px) rotate(-3deg); filter: blur(2px); } }
/* „Löschen“-Knopf oben im Ordner: füllt sich beim Halten */
.hold-btn { position: relative; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold-btn > :not(.hold-fill) { position: relative; z-index: 1; }
.hold-fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,122,107,.55), rgba(255,92,92,.8)); transform: scaleX(0); transform-origin: left; }
.hold-btn.holding .hold-fill { animation: hold-fill var(--hold, 3s) linear forwards; }
.hold-btn.holding { color: var(--lt-ffffff); border-color: var(--warn); }
.hold-btn.holding .ico { animation: ht-shake .5s ease-in-out infinite; }
@keyframes hold-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .card-trash.holding .ht-ico, .hold-btn.holding .ico { animation: none; } }
/* Live-Vorschau in den Einstellungen */
.fv-preview-wrap { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-hi); }
.fv-preview { padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.fv-preview .cards { pointer-events: auto; }
.fv-preview .cards.fv-medium { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.fv-preview .cards.fv-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fv-preview .cards.fv-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.fv-ico-stack { position: relative; display: block; }
.fv-ico-stack b { position: absolute; left: 9px; top: 2px; width: 12px; height: 17px; border-radius: 2px; border: 1.5px solid currentColor; background: none; opacity: .7; transform-origin: 50% 120%; }
.fv-ico-stack b:nth-child(1) { transform: rotate(-20deg); } .fv-ico-stack b:nth-child(3) { transform: rotate(20deg); }
.fv-seg { flex-wrap: wrap; }
/* Abschicken: Fächer folgt der Maus */
.sx-stack.sx-tilt { perspective: 700px; }
.sx-stack.sx-tilt::before { content: ""; position: absolute; inset: 0; }
.sx-tilt .sx-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(var(--x), var(--y)) rotate(var(--r)) translateZ(calc(var(--i) * 6px));
  transform-style: preserve-3d; overflow: hidden; }
.sx-tilt .sx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 35%), rgba(var(--ink), 0.38), rgba(var(--ink), 0) 55%); mix-blend-mode: soft-light; }
.tfa-trust { align-items: flex-start; margin: 2px 0 4px; }
.tfa-trust span { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.tfa-trust small { font-size: .78rem; }
.tfa-devices { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); }
.tfa-devices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tfa-devices li { display: flex; flex-direction: column; }
.tfa-devices .btn { justify-self: start; }

.fv-panel .hk-foot, .keys-panel .hk-foot { margin-top: 18px; }

/* Auswahl + Abgabe: Herz → Pfeil, jede Hälfte zeigt ihren Stand */
.duo { display: inline-flex; align-items: center; gap: 0; height: 26px; padding: 0 6px; border-radius: 99px; pointer-events: auto;
  background: rgba(var(--dkr-10-10-12), 0.82); border: 1px solid rgba(var(--ink), 0.12); }
.duo.is-online { border-color: rgba(126,212,154,.4); }
.duo-h { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; }
.duo-h svg { width: 12px; height: 12px; }
.duo-h:first-child svg { fill: currentColor; }
.duo-h:last-child svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.duo-line { width: 12px; height: 2px; margin: 0 2px; border-radius: 2px; background: rgba(var(--ink), 0.18); }
.duo-open { color: var(--accent); }
.duo-h.duo-open svg { fill: none; stroke: currentColor; stroke-width: 2.4; }
.duo-done { color: #10170f; background: var(--ok); }
.duo-line.duo-done { background: linear-gradient(90deg, var(--ok), rgba(126,212,154,.4)); }
.duo-ready { color: #1a0e05; background: var(--accent); }
.duo-empty { color: var(--muted); opacity: .6; }
.st-ready { width: 28px; padding: 0; color: #ffd27a; background: rgba(255,200,90,.14); border-color: rgba(255,200,90,.4); }
.st-ready svg { fill: currentColor; stroke: none; }
.st-work { width: 28px; padding: 0; color: #c9a6ff; background: rgba(170,130,255,.12); border-color: rgba(170,130,255,.35); }
.sr-duo { margin-left: 10px; vertical-align: middle; position: relative; top: -1px; height: 24px; padding: 0 3px; gap: 0; border-radius: 99px;
  background: rgba(255,138,61,.1); border-color: rgba(255,138,61,.35); }
.sr-duo .duo-h { width: 18px; height: 18px; }
.sr-duo .duo-h svg { width: 10px; height: 10px; }
.sr-duo .duo-line { width: 8px; margin: 0 3px; background: rgba(255,138,61,.45); }
/* Abgabe: stilles Herz mit Zähler */
.tile .sheart { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 30px; min-width: 30px; padding: 0 8px;
  border-radius: 99px; border: 0; background: rgba(var(--dkr-10-10-12), 0.62); color: var(--lt-ffffff); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.tile:hover .sheart, .tile .sheart.has, .tile .sheart.mine { opacity: 1; }
@media (hover: none) { .tile .sheart { opacity: .9; } }
.tile .sheart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile .sheart.mine svg { fill: var(--accent); stroke: var(--accent); }
.tile .sheart b { font: 600 12px var(--mono); }
.tile .sheart b:empty { display: none; }
.tile .sheart.pop svg { animation: heart-pop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes heart-pop { 40% { transform: scale(1.45); } }
.grid.deliver .tile .tile-dl { right: auto; left: 8px; }
body.deliver #lb-heart { display: none; }
.ov-tag-dl { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 1px 7px; border-radius: 99px; vertical-align: 1px;
  font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8fc6ff; background: rgba(111,195,255,.13); border: 1px solid rgba(111,195,255,.3); }
.ov-tag-dl svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.submit-bar[hidden] { display: none !important; }

.tb-sentinel { height: 0; margin: 0; }
/* Handy: Bereichs-Leiste nur mit Symbolen (Name steht im Tooltip/aria-label) */
@media (max-width: 640px) {
  .ptab .fold-title { display: none; }
  .ptab { min-height: 54px; padding: 8px 2px; }
  .ptab .fold-icon { width: 36px; height: 36px; }
}

/* ---------- Titelbild: oben Desktop / Handy umschalten, eine Vorschau ---------- */
.cv2 .cover-views { display: block; }
.cv2 .cover-views.cv-show-web .cover-view[data-target="mobile"],
.cv2 .cover-views.cv-show-mobile .cover-view[data-target="web"] { display: none; }
.cv2 .cover-view { animation: cv-in .28s cubic-bezier(.2,.9,.3,1); }
@keyframes cv-in { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.cv2 .mock-web { max-height: 46vh; aspect-ratio: 16 / 9; }
.cv2 .mock-phone { max-width: 230px; max-height: 46vh; margin: 0 auto; }
.cv-dev { position: relative; display: inline-flex; align-self: center; margin: 2px auto 16px; padding: 4px; border-radius: 99px;
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line); isolation: isolate; }
.cv2 .cover-inner { display: flex; flex-direction: column; }
.cv-dev button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 99px;
  background: none; color: var(--text-2); font: 500 .9rem var(--sans); cursor: pointer; transition: color .2s; }
.cv-dev button svg { width: 17px; height: 17px; }
.cv-dev button[aria-selected="true"] { color: #141414; }
.cv-dev-kind { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.cv-dev-kind:empty { display: none; }
.cv-dev-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 99px;
  background: var(--text); transition: transform .3s cubic-bezier(.3,.9,.3,1), width .3s cubic-bezier(.3,.9,.3,1); }
.cv2 .cover-actions { align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; }
.cv2 .cover-actions .badge { font-size: 9px; padding: 3px 8px; }
.cv2 .cover-actions .cv-both { margin: 0 auto 0 0; font-size: .88rem; }
.cv2 .cover-view[data-target="mobile"] .cover-actions { justify-content: center; }
.cv2 .cover-hint { text-align: center; margin: 12px 0 4px; }
.cv-for { margin-left: 8px; font: 500 .78rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--accent); }
@media (max-width: 560px) { .cv-dev button { padding: 8px 12px; } .cv-dev-kind { display: none; } }
.cv2 .cover-actions .cover-kind { display: none; }
/* Ansicht: zufällig mischen */
.view-shuffle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.view-shuffle .switch { margin: 0; font-size: .88rem; }
.view-shuffle .icon-btn svg { width: 16px; height: 16px; }
.view-shuffle [hidden] { display: none; }
.grid.reshuffled .tile { animation: reshuffle .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes reshuffle { from { opacity: 0; transform: scale(.96); } }
/* Fortschrittskreis auf frisch hochgeladenen Bildern: Ring genau mittig in seiner Scheibe */
.tile .hq-dot { display: block; overflow: hidden; }
.tile .hq-dot svg { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; display: block;
  transform-origin: 50% 50%; top: 0; left: 0; }
/* Stapel: keine harte Kante zur Kachel unten – weicher, orangefarbener Schein unter den Fotos */
.card-cover:has(.cv-stack) { background: transparent; }
.cv-stack { background: none; contain: none; }
.cv-stack::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 34%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,138,61,.30), rgba(255,138,61,.10) 55%, transparent); filter: blur(10px); transition: opacity .35s; opacity: .75; }
.card:hover .cv-stack::before { opacity: 1; }
.card-cover .cv-stack .sk-pic { box-shadow: 0 16px 30px -14px rgba(255,120,40,.55), 0 4px 10px -4px rgba(0,0,0,.5); }
.cv-fan .sk-pic { bottom: 13%; width: 34%; }
.cv-piles .sk-pile { bottom: 14%; width: 29%; }
.cv-piles.n3 .sk-pile:nth-child(2) { bottom: 18%; }
.cv-piles.n2 .sk-pile:nth-child(2) { bottom: 17%; }

/* Admin: einzelnes Foto direkt löschen (Mülleimer oben links beim Darüberfahren) */
.tile-del {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--dkr-10-10-12), 0.62); border: 1px solid rgba(var(--ink), 0.16); color: var(--lt-ffffff);
  opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s, background .18s, border-color .18s;
}
.tile-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile-del, .tile-del:focus-visible { opacity: 1; transform: none; }
.tile-del:hover { background: #d9463b; border-color: #d9463b; }
.grid.selecting .tile-del, .tile.deleting .tile-del { display: none; }
@media (hover: none) { .tile-del { display: none; } }
.tile.deleting { pointer-events: none; }
.tile.tile-gone { transition: opacity .25s, transform .25s; opacity: 0; transform: scale(.92); }
.cv-stack:not(:has(.sk-pic))::before { display: none; }

/* Hochladen-Tab: Fortschritt über alles, am Ende grün und dann weg */
.upload-status.is-done .progress-bar { background: var(--ok, #4cc38a); box-shadow: 0 0 12px rgba(76,195,138,.6); }
.upload-status.is-done #upload-text { color: var(--ok, #4cc38a); }
.upload-status.is-failed .progress-bar { background: #d9463b; box-shadow: none; }
.up-sum-live { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Sammlung: Schalter „Texte der Projekte zeigen“ + Hinweis im Texte-Bereich eines Projekts */
.switch.proj-texts { align-items: flex-start; }
.switch.proj-texts input { margin-top: 2px; }
.switch.proj-texts small { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.4; }
.texts-hidden-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 9px 12px; border-radius: 10px;
  background: rgba(var(--ink), 0.035); border: 1px solid var(--line, rgba(var(--ink), 0.08)); line-height: 1.45; }
.texts-hidden-note .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.texts-hidden-note a { color: var(--accent); }

/* ================= Rundgang: Kapitel + neue Vorschauen ================= */
.tour-chapters { display: flex; gap: 6px; flex-wrap: wrap; padding-right: 44px; }
.tour-chapters button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted);
  font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tour-chapters button:hover { color: var(--text); border-color: var(--line-hi); }
.tour-chapters button.on { background: var(--accent-soft, rgba(255,138,61,.14)); color: var(--accent); border-color: rgba(255,138,61,.45); }
.tour-mock { position: relative; overflow: hidden; justify-content: safe center; }
.tour-mock .tm-keys { gap: 4px; }
.tour-mock .tm-key { padding: 4px 9px; font-size: .78rem; }
.tour-text h2 > span i { margin-left: 0; }
.tm-likes i { aspect-ratio: 1.4; }
.tm-piles > span:nth-child(2) .tm-pic:first-child { background: linear-gradient(135deg, #a07a4f, var(--dk-3a2f45)); }
.tm-piles > span:nth-child(3) .tm-pic:first-child { background: linear-gradient(135deg, #6f8f6a, var(--dk-2f3a36)); }
.tm-piles > span:nth-child(2) .tm-pic:nth-child(2) { background: linear-gradient(135deg, #b48b72, #46404f); }
.tm-piles > span:nth-child(3) .tm-pic:nth-child(2) { background: linear-gradient(135deg, #7d93b0, var(--dk-2c3442)); }
@keyframes tm-file { 0% { left: 4%; top: 4%; transform: rotate(-8deg); opacity: 0; } 10% { opacity: 1; } 55% { left: 44%; top: 56%; transform: rotate(4deg); opacity: 1; }
  80% { left: 44%; top: 62%; transform: scale(.4); opacity: 0; } 100% { left: 44%; top: 62%; opacity: 0; } }
.tour-text li a { color: var(--accent); }

.tm-pic { display: block; border-radius: 4px; background: linear-gradient(135deg, #8a6a52, #3c4250); border: 1.5px solid rgba(255,255,255,.85); }
.tm-pic:nth-child(2) { background: linear-gradient(135deg, #5d7f8a, var(--dk-2d3540)); }
.tm-pic:nth-child(3) { background: linear-gradient(135deg, #9b7b5a, #4a3a52); }

/* Ordner-Leiste + Kacheln mit Fächer */
.tm-fbar { display: flex; align-items: center; gap: 6px; font: 500 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tm-fbar > span:first-child { margin-right: 4px; }
.tm-fic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--line); }
.tm-fic.on { border-color: rgba(255,138,61,.6); color: var(--accent); background: rgba(255,138,61,.1); }
.tm-fic svg, .tm-chips svg, .tm-legend svg, .tm-pill svg, .tm-file svg, .tm-del svg, .tm-mail svg, .tm-devs svg, .tm-share-row svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-card { position: relative; }
.tm-fan { flex: 1; position: relative; }
.tm-fan .tm-pic { position: absolute; bottom: 8%; left: 50%; width: 40%; aspect-ratio: .78; transform-origin: 50% 100%; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.tm-fan .tm-pic:nth-child(1) { transform: translateX(-105%) rotate(-12deg); }
.tm-fan .tm-pic:nth-child(2) { transform: translateX(5%) rotate(12deg); }
.tm-fan .tm-pic:nth-child(3) { transform: translateX(-50%); }
.tm-card:hover .tm-fan .tm-pic:nth-child(1) { transform: translateX(-115%) rotate(-16deg); }
.tm-card:hover .tm-fan .tm-pic:nth-child(2) { transform: translateX(15%) rotate(16deg); }
.tm-fan .tm-pic { transition: transform .4s var(--ease); }
.tm-fan::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,138,61,.28), transparent); filter: blur(4px); z-index: -1; }

/* Duo-Symbol */
.tm-duo { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border-radius: 99px; background: rgba(var(--dkr-10-10-12), 0.7); font-style: normal; }
.tm-card .tm-duo { position: absolute; top: 6px; right: 6px; }
.tm-duo svg { width: 11px; height: 11px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tm-duo svg.e { stroke: var(--muted); opacity: .6; }
.tm-duo svg.o { stroke: #1a0e05; background: var(--accent); border-radius: 50%; padding: 2px; width: 15px; height: 15px; }
.tm-duo svg.g { stroke: var(--dk-10170f); background: var(--ok); border-radius: 50%; padding: 2px; width: 15px; height: 15px; }
.tm-duo s { display: block; width: 10px; height: 2px; border-radius: 2px; background: rgba(var(--ink), 0.18); text-decoration: none; }
.tm-duo s.g { background: var(--ok); }
.tm-duos { display: flex; flex-direction: column; gap: 10px; }
.tm-duos > div { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(var(--ink), 0.035); font-size: .8rem; color: var(--text-2);
  animation: tm-row 6s infinite; }
.tm-duos > div:nth-child(2) { animation-delay: 2s; }
.tm-duos > div:nth-child(3) { animation-delay: 4s; }
.tm-duos .tm-duo { transform: scale(1.35); transform-origin: left center; margin-right: 18px; }
@keyframes tm-row { 0%, 30% { background: rgba(255,138,61,.1); } 36%, 100% { background: rgba(var(--ink), 0.035); } }

/* Ansicht-Chips */
.tm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tm-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.tm-chips span.on { background: rgba(255,255,255,.9); color: #111; border-color: transparent; }
.tm-shuf { color: var(--accent) !important; border-color: rgba(255,138,61,.45) !important; }
.tm-shuf svg { animation: tm-spin 2.4s ease-in-out infinite; }
@keyframes tm-spin { 0%, 60% { transform: none; } 80%, 100% { transform: rotate(180deg); } }

/* Dateien vom Computer hineinziehen */
.tm-page { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6px; }
.tm-grid2 .tm-card { aspect-ratio: .9; }
.tm-hot { animation: tm-hot 3.2s ease-in-out infinite; }
@keyframes tm-hot { 0%, 45% { border-color: var(--line); box-shadow: none; } 55%, 85% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.25), 0 0 26px rgba(255,138,61,.3); } 100% { border-color: var(--line); } }
.tm-file { position: absolute; left: 4%; top: 4%; display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border-radius: 10px; background: #f3efe9; color: #1a1a1a;
  box-shadow: 0 10px 24px rgba(0,0,0,.45); font: 700 .7rem var(--sans); animation: tm-file 3.2s cubic-bezier(.45,.05,.3,1) infinite; }
.tm-pill { position: absolute; top: 4%; right: 4%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: rgba(var(--dkr-20-20-24), 0.9);
  border: 1px solid rgba(255,138,61,.5); color: var(--text); font-size: .68rem; animation: tm-pill 3.2s ease-in-out infinite; }
.tm-pill svg { color: var(--accent); }
@keyframes tm-pill { 0%, 40% { opacity: 0; transform: translateY(-4px); } 50%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Verschieben: Pfad oben, Ring, Stapel am Zeiger */
.tm-crumbs { display: flex; gap: 6px; justify-content: center; }
.tm-crumbs span { position: relative; padding: 5px 11px; border-radius: 99px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); font-size: .7rem; color: var(--text-2); }
.tm-crumbs span.here { color: var(--muted); border-style: dashed; }
.tm-ring-on { border-color: rgba(255,138,61,.6) !important; color: var(--text) !important; }
.tm-ring { position: absolute; width: 34px; height: 34px; left: 50%; top: 50%; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), rgba(var(--ink), 0.1) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); animation: tm-ring 3s linear infinite; }
.tm-open .tm-ring { animation-delay: 1.5s; top: 40%; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes tm-ring { 0% { --p: 0; opacity: 1; } 45% { --p: 100; opacity: 1; } 55%, 100% { --p: 100; opacity: 0; } }
.tm-ghost { position: absolute; right: 22%; top: 34%; width: 44px; height: 36px; animation: tm-ghost 3s ease-in-out infinite; }
.tm-ghost .tm-pic { position: absolute; inset: 0; box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.tm-ghost .tm-pic:first-child { transform: rotate(-8deg); }
.tm-ghost .tm-pic:nth-child(2) { transform: rotate(5deg); }
.tm-ghost b { position: absolute; right: -8px; top: -8px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 700 .62rem/18px var(--sans); text-align: center; }
@keyframes tm-ghost { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(-6px, -4px) rotate(3deg); } }
.tm-legend { display: flex; justify-content: space-between; gap: 8px; font: 500 .62rem var(--mono); letter-spacing: .04em; color: var(--muted); }
.tm-legend span { display: inline-flex; align-items: center; gap: 4px; }
.tm-legend svg { color: var(--accent); }

/* Auswählen & Löschen */
.tm-sel i.s { box-shadow: inset 0 0 0 2px var(--accent); }
.tm-sel i.s::after { content: "✓"; position: absolute; left: 5px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #1a0e05; font: 700 .58rem/15px var(--sans); text-align: center; }
.tm-tiles i.tm-del { display: grid; place-items: start; padding: 5px; animation: tm-gone 3.4s ease-in-out infinite; }
.tm-del svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: #d9463b; color: var(--lt-ffffff); }
@keyframes tm-gone { 0%, 40% { opacity: 1; transform: none; } 55%, 85% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: none; } }
.tm-toast { align-self: center; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--dk-24252a); border: 1px solid var(--line-hi);
  font-size: .74rem; box-shadow: 0 10px 24px rgba(0,0,0,.35); animation: tm-toast 3.4s ease-in-out infinite; }
.tm-toast b { padding: 4px 10px; border-radius: 99px; background: var(--accent); color: #1a0e05; font-weight: 600; }
@keyframes tm-toast { 0%, 45% { opacity: 0; transform: translateY(6px); } 55%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Ablauf eines Duos */
.tm-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; position: relative; }
.tm-flow li { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); animation: tm-step 7.5s infinite; }
.tm-flow li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-hi); font: 700 .68rem var(--sans); font-style: normal; }
.tm-flow li:nth-child(2) { animation-delay: 1.5s; } .tm-flow li:nth-child(3) { animation-delay: 3s; }
.tm-flow li:nth-child(4) { animation-delay: 4.5s; } .tm-flow li:nth-child(5) { animation-delay: 6s; }
.tm-flow li:nth-child(2) i, .tm-flow li:nth-child(4) i { border-color: rgba(255,138,61,.5); }
@keyframes tm-step { 0%, 18% { color: var(--text); transform: translateX(4px); } 22%, 100% { color: var(--muted); transform: none; } }
.tm-flow li { transition: color .3s; }

/* Sammlung */
.tm-coll { display: flex; flex-direction: column; gap: 10px; }
.tm-big { aspect-ratio: auto; height: 150px; }
.tm-piles { flex: 1; display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding-bottom: 10px; }
.tm-piles > span { position: relative; width: 52px; height: 64px; }
.tm-piles .tm-pic { position: absolute; inset: 0; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.tm-piles .tm-pic:first-child { transform: rotate(-8deg) translateX(-4px); }
.tm-piles .tm-pic:nth-child(2) { transform: rotate(5deg) translateX(3px); }
.tm-piles > span:nth-child(2) { transform: translateY(-8px); }
.tm-share-row { display: flex; justify-content: space-between; align-items: center; }
.tm-share-row .tm-lock { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font: 600 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tm-n { font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Kunde: wer hat was gewählt */
.tm-who-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); font-size: .78rem; }
.tm-who-chip small { color: var(--muted); }
.tm-av2, .tm-likes u { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 .62rem var(--sans); text-decoration: none; color: #111; }
.c1 { background: #f2a65a; } .c2 { background: #7ec4e6; }
.tm-likes i { display: flex; align-items: flex-end; gap: 2px; padding: 4px; }
.tm-likes u { width: 17px; height: 17px; font-size: .52rem; box-shadow: 0 0 0 1.5px #16171a; }
.tm-likes i.on::after { left: auto; right: 5px; }

/* Kommentar + Markierung */
.tm-markpic { position: relative; height: 70px; border-radius: 10px; background: linear-gradient(135deg, #8a6a52, #3c4250); }
.tm-mark { position: absolute; left: 58%; top: 22%; width: 44px; height: 30px; border: 2px solid var(--accent); border-radius: 50%; animation: tm-mark 2.6s ease-in-out infinite; }
@keyframes tm-mark { 0% { clip-path: inset(0 100% 0 0); } 40%, 100% { clip-path: inset(0 0 0 0); } }

/* Mails */
.tm-mails { display: flex; flex-direction: column; gap: 10px; }
.tm-mail { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line); animation: tm-mail 5s ease-in-out infinite; }
.tm-mail.k { margin-left: 26px; animation-delay: 2.5s; }
.tm-mail svg { width: 20px; height: 20px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: rgba(255,138,61,.12); color: var(--accent); flex: none; }
.tm-mail.k svg { background: rgba(126,212,154,.12); color: var(--ok); }
.tm-mail span { display: flex; flex-direction: column; font-size: .76rem; color: var(--text-2); }
.tm-mail b { font: 600 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@keyframes tm-mail { 0% { opacity: .35; transform: translateY(4px); } 12%, 50% { opacity: 1; transform: none; } 62%, 100% { opacity: .35; } }

/* PC / Handy */
.tm-devs { display: flex; gap: 6px; }
.tm-devs span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.tm-devs span:first-child { background: rgba(255,255,255,.9); color: #111; border-color: transparent; }

/* Aktivität */
.tm-acts { display: flex; flex-direction: column; gap: 8px; }
.tm-acts p { margin: 0; display: flex; align-items: center; gap: 9px; font-size: .76rem; color: var(--text-2); }
.tm-acts p i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tm-acts p i.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.tm-acts p i.dl { background: var(--accent); }
.tm-acts small { margin-left: auto; font: 500 .62rem var(--mono); color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tour-mock *, .tour-mock *::before, .tour-mock *::after { animation: none !important; } }
@media (max-width: 640px) { .tour-chapters { gap: 4px; } .tour-chapters button { padding: 5px 9px; font-size: .62rem; } }
.tour-mock:has(.tm-keys) { padding-top: 12px; padding-bottom: 12px; }

/* Dynamische Ansicht (Mosaik/Spalten mit verschieden großen Bildern): Kacheln absolut platziert */
.view-dyn { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.view-dyn[hidden] { display: none; }
.view-dyn .switch { margin: 0; font-size: .88rem; }
.view-dyn + .view-shuffle { margin-top: 10px; padding-top: 0; border-top: 0; }
.view-dyn[hidden] + .view-shuffle { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.grid.dyn { display: block; position: relative; column-count: auto; columns: auto; }
.grid.dyn::after { display: none; }
.grid.dyn > .tile { position: absolute; margin: 0; flex: none; max-width: none;
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.grid.dyn.dyn-first > .tile { transition: none; }
.grid.dyn > .tile img, .grid.dyn > .tile .placeholder { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .grid.dyn > .tile { transition: none; } }

/* Rundgang: Tastenkürzel-Liste passt immer ganz hinein */
.tour-mock:has(.tm-keys) { aspect-ratio: auto; justify-content: center; }
.tour-mock .tm-keys { margin: 0 auto; }

/* Speicher: größte Ordner mit Pfad, Projektname und Auswahl/Abgabe-Kennzeichen */
.disk-folder { align-items: end; }
.df-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; white-space: normal; min-width: 0; }
.df-path { flex-basis: 100%; font: 500 .66rem var(--mono); letter-spacing: .06em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-title b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.df-role { font: 600 .6rem var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.role-auswahl .df-role { color: var(--sel); background: rgba(126,212,154,.12); }
.role-abgabe .df-role { color: var(--del); background: rgba(106,169,255,.13); }
.df-n { font: 500 .66rem var(--mono); color: var(--muted); }
.role-auswahl .df-bar rect { fill: var(--sel); }
.role-abgabe .df-bar rect { fill: var(--del); }

/* Pfad-Menü: tippen zum Suchen */
.peek-head { display: flex; flex-direction: column; gap: 7px; }
.peek-search { display: flex; align-items: center; gap: 7px; padding: 0 10px; height: 32px; border-radius: 9px; background: rgba(var(--ink), 0.05); border: 1px solid var(--line);
  text-transform: none; letter-spacing: 0; cursor: text; transition: border-color .15s, background .15s; }
.peek-search:focus-within { border-color: rgba(255,138,61,.55); background: rgba(255,138,61,.06); }
.peek-search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.peek-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; color: var(--text); font: 500 .85rem var(--sans); }
.peek-search input::-webkit-search-cancel-button { display: none; }
.peek-row[hidden] { display: none; }
.peek-row.is-hit { background: rgba(var(--ink), 0.09); box-shadow: inset 0 0 0 1px rgba(255,138,61,.45); }
.peek-row mark { background: none; color: var(--accent); }
.peek-head > span { overflow: hidden; text-overflow: ellipsis; }

/* Mülleimer jetzt unten rechts neben dem Namen (statt über den Bildern) – ruhig, erst beim Darüberfahren */
.card-body { position: relative; }
.card-body:has(> .card-trash) .card-title { padding-right: 40px; }
.card-body > .card-trash { right: 12px; top: 12px; bottom: auto; width: 32px; height: 32px; background: rgba(var(--ink), 0.04); border-color: var(--line); }
.card-body > .card-trash .ht-ico { width: 15px; height: 15px; }
.card-body > .card-trash:hover { background: rgba(var(--dkr-40-14-12), 0.88); }
.cards.fv-small .card-body > .card-trash { right: 8px; top: 8px; width: 28px; height: 28px; }
@media (hover: none) { .card-body > .card-trash { opacity: .75; } }

/* Symbol „Stapel“: echte, sich überlappende Karten (Fächer) */
.fv-ico-stack { --ink: var(--dk-16171a); --c1: #55575d; --c2: #6c6e74; --c3: #a3a5aa; width: 34px; }
.seg button[aria-pressed="true"] .fv-ico-stack { --ink: var(--text); --c1: #8f8b84; --c2: #6f6b65; --c3: var(--dk-3a3835); }
.fv-ico-stack b, .seg button[aria-pressed="true"] .fv-ico-stack b { left: 11px; top: 3px; width: 12px; height: 16px; border: 0; border-radius: 2.5px; opacity: 1;
  box-shadow: 0 0 0 1.5px var(--ink); transform-origin: 50% 100%; }
.fv-ico-stack b:nth-child(1) { background: var(--c1); transform: rotate(-24deg) translateX(-2px); }
.fv-ico-stack b:nth-child(3) { background: var(--c2); transform: rotate(24deg) translateX(2px); }
.fv-ico-stack b:nth-child(2) { background: var(--c3); z-index: 2; transform: translateY(-1px); }

/* Einstellungen: Haltezeit ausprobieren */
.fv-hold-row { display: flex; align-items: center; gap: 16px; }
.fv-hold-row .view-range { flex: 1; }
.fv-try { display: flex; align-items: center; gap: 10px; flex: none; }
.fv-try .card-trash { position: relative; right: auto; top: auto; bottom: auto; opacity: 1; transform: none; width: 40px; height: 40px; }
.fv-try .card-trash.done { color: #10170f; background: var(--ok); border-color: var(--ok); }
.fv-try-msg { font-size: .8rem; line-height: 1.35; color: var(--muted); width: 210px; }
.fv-try-msg.ok { color: var(--ok); }
@media (max-width: 640px) { .fv-hold-row { flex-direction: column; align-items: stretch; } }

/* Einstellungen: angesprungene Karte leuchtet kurz auf */
.panel.nav-flash { animation: nav-flash 1.4s ease-out; }
@keyframes nav-flash {
  0% { box-shadow: 0 0 0 0 rgba(255,138,61,0), inset 0 0 0 1px rgba(255,138,61,0); }
  18% { box-shadow: 0 0 0 4px rgba(255,138,61,.22), 0 0 46px rgba(255,138,61,.22), inset 0 0 0 1px rgba(255,138,61,.75); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,61,0), inset 0 0 0 1px rgba(255,138,61,0); }
}
@media (prefers-reduced-motion: reduce) { .panel.nav-flash { animation-duration: .01s; } }

/* Tab-Ordner farbig: Auswahl grün (wie der Haken bei abgeschickter Auswahl), Abgabe blau */
.card.role-auswahl { --tint: 126,212,154; }
.card.role-abgabe { --tint: 106,169,255; }
.card.role-auswahl, .card.role-abgabe {
  border-color: rgba(var(--tint), .34);
  background: linear-gradient(180deg, rgba(var(--tint), .07), rgba(var(--tint), .015) 60%), var(--surface);
}
.card.role-auswahl:hover, .card.role-abgabe:hover { border-color: rgba(var(--tint), .7); box-shadow: 0 14px 40px -12px rgba(var(--tint), .32); }
.card.role-auswahl .badge-tab, .card.role-abgabe .badge-tab { color: rgb(var(--tint)); background: rgba(var(--dkr-14-15-17), 0.85); box-shadow: inset 0 0 0 1px rgba(var(--tint), .45); }
.card.role-auswahl .card-title, .card.role-abgabe .card-title { color: rgb(var(--tint)); }
.card.role-auswahl .cv-stack::before, .card.role-abgabe .cv-stack::before {
  background: radial-gradient(closest-side, rgba(var(--tint), .32), rgba(var(--tint), .1) 55%, transparent); }
.card.role-auswahl .card-cover .cv-stack .sk-pic, .card.role-abgabe .card-cover .cv-stack .sk-pic {
  box-shadow: 0 16px 30px -14px rgba(var(--tint), .6), 0 4px 10px -4px rgba(0,0,0,.5); }
.cards.fv-icon .card.role-auswahl .card-folder, .cards.fv-icon .card.role-abgabe .card-folder { fill: rgba(var(--tint), .16); stroke: rgba(var(--tint), .5); }
.card.role-auswahl .liked-text { color: var(--accent); }
.peek-search { flex-direction: row; margin: 0; font: inherit; }
.fv-ico-stack { height: 22px; }
.fv-ico-stack b, .seg button[aria-pressed="true"] .fv-ico-stack b { left: 11px; top: 2px; width: 13px; height: 18px; }
.ov-req { color: var(--accent); font-weight: 600; }

/* Admin: Stand der Auswahl – Bedenkzeit, Änderungs-Anfrage */
.sel-req { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,138,61,.08); border: 1px solid rgba(255,138,61,.4); }
.sel-req-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,138,61,.16); color: var(--accent); }
.sel-req-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sel-req-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sel-req-note { margin: 4px 0 0; font-size: .88rem; color: var(--text-2); font-style: italic; }
.sel-req-actions { display: flex; gap: 8px; }
@media (max-width: 640px) { .sel-req { grid-template-columns: auto 1fr; } .sel-req-actions { grid-column: 1 / -1; } }
.sel-grace { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.sel-grace .ico { width: 15px; height: 15px; color: var(--accent); }
.sel-panel .sel-row { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px; max-width: 640px; }
.sel-panel .sel-switch { align-items: flex-start; max-width: 720px; }
.sel-panel .sel-switch small { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.45; }
.sel-panel .sel-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

/* Markierungs-Notiz gespeichert: direkt an der Markierung in der Liste */
.lb-c-mark { position: relative; }
.lb-c-mark.just-saved { animation: mk-saved 1.6s ease-out; }
@keyframes mk-saved { 0% { box-shadow: inset 0 0 0 1px rgba(126,212,154,0), 0 0 0 0 rgba(126,212,154,0); }
  20% { box-shadow: inset 0 0 0 1px rgba(126,212,154,.8), 0 0 18px rgba(126,212,154,.25); } 100% { box-shadow: inset 0 0 0 1px rgba(126,212,154,0); } }
.lb-c-saved { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 99px;
  background: rgba(126,212,154,.16); color: var(--ok); font: 600 .72rem var(--sans); animation: toast-pop .25s var(--ease) both; transition: opacity .35s; pointer-events: none; }
.lb-c-saved svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-c-saved.out { opacity: 0; }
@keyframes toast-pop { from { opacity: 0; transform: scale(.85); } }
.toast.toast-bottom, body.no-scroll .toast.toast-bottom { top: auto; bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ===== Stand der Auswahl: Karte oben neben dem Titel (statt unten über der Leiste) ===== */
.hero:has(> .sel-card:not([hidden])) { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero:has(> .sel-card:not([hidden])) > * { grid-column: 1; }
.hero:has(> .sel-card:not([hidden])) > .sel-card { grid-column: 2; grid-row: 1 / span 9; align-self: center; }
.sel-card { margin: 0; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, rgba(126,212,154,.07), rgba(126,212,154,.02)), var(--surface);
  border: 1px solid rgba(126,212,154,.3); box-shadow: 0 18px 50px -24px rgba(126,212,154,.35); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.sel-card[hidden] { display: none; }
.sel-card .work-steps { justify-content: flex-start; margin: 0; }
.sel-card .work-text { color: var(--ok); line-height: 1.5; }
.sel-card .work-text b { font-variant-numeric: tabular-nums; }
.sel-card[data-state="working"] .work-text, .sel-card[data-state="final"] .work-text,
.sel-card[data-state="requested"] .work-text, .sel-card[data-state="declined"] .work-text { color: var(--text-2); }
.sel-card[data-state="ready"] .work-steps li.done:last-child i { background: var(--ok); border-color: var(--ok); }
.sel-card[data-state="reopened"] { border-color: rgba(255,138,61,.4); background: linear-gradient(180deg, rgba(255,138,61,.08), rgba(255,138,61,.02)), var(--surface); box-shadow: none; }
.sel-card[data-state="reopened"] .work-steps { display: none; }
.sel-card[data-state="reopened"] .work-text { color: var(--text); }
.sel-card .work-notify { justify-content: flex-start; margin: 0; }
.sel-card .sel-bar { height: 4px; border-radius: 4px; background: rgba(var(--ink), 0.08); overflow: hidden; }
.sel-card .sel-bar i { display: block; height: 100%; background: var(--ok); transform-origin: left; transition: transform 1s linear; }
.sel-card.flash { animation: sel-card-flash 1.4s ease-out; }
@keyframes sel-card-flash { 0% { box-shadow: 0 0 0 0 rgba(126,212,154,.0); } 20% { box-shadow: 0 0 0 5px rgba(126,212,154,.25), 0 0 50px rgba(126,212,154,.3); } 100% { box-shadow: 0 18px 50px -24px rgba(126,212,154,.35); } }
@media (max-width: 899px) {
  .hero:has(> .sel-card:not([hidden])) { display: block; }
  .hero > .sel-card { margin-top: 18px; }
}

/* Leiste unten: auf dem PC größer; Zurückholen-Knopf mit Restzeit, „Änderung anfragen“ */
@media (min-width: 900px) {
  .submit-bar { padding: 9px 9px 9px 26px; gap: 22px; font-size: 1.02rem; }
  .submit-bar #submit-btn { min-height: 52px; padding: 0 30px; font-size: 1.05rem; }
  .submit-bar #submit-btn .ico { width: 18px; height: 18px; }
  .submit-bar #unsubmit-btn, .submit-bar #request-btn { min-height: 48px; padding: 0 22px; }
  .submit-count .ico { width: 19px; height: 19px; }
}
.sb-timer { margin-left: 8px; font-variant-numeric: tabular-nums; opacity: .8; font-weight: 500; }
.sb-timer:empty { display: none; }
.submit-bar #request-btn { display: none; align-items: center; gap: 7px; }
.submit-bar.is-sent #request-btn:not([hidden]) { display: inline-flex; }
.submit-bar #request-btn .ico { width: 15px; height: 15px; }
#submit-btn .ico { display: none; }
@media (min-width: 900px) { #submit-btn { gap: 8px; } #submit-btn .ico { display: inline-block; } }
.submit-bar #request-btn[disabled] { opacity: .65; cursor: default; }
.submit-bar.is-sent.is-final #unsubmit-btn { display: none; }
body.sel-locked #grid .tile .heart { opacity: .55; }
body.sel-locked #grid .tile.liked .heart { opacity: .9; }

/* Hinweis oben (neues Herz-Limit, Auswahl freigegeben …) */
.g-notice { position: fixed; left: 50%; top: calc(var(--topbar) + 14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 210;
  width: min(560px, calc(100vw - 32px)); display: grid; grid-template-columns: auto 1fr auto; gap: 12px 14px; align-items: center;
  padding: 14px 14px 14px 16px; border-radius: 18px; background: rgba(var(--dkr-24-25-29), 0.96); border: 1px solid rgba(255,138,61,.5);
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 4px rgba(255,138,61,.08); animation: g-notice-in .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes g-notice-in { from { opacity: 0; transform: translate(-50%, -14px) scale(.97); } }
.g-notice.out { animation: g-notice-out .3s ease both; }
@keyframes g-notice-out { to { opacity: 0; transform: translate(-50%, -10px); } }
.g-notice-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,138,61,.15); color: var(--accent); }
.g-notice-ico svg { width: 20px; height: 20px; fill: currentColor; }
.g-notice-ico.line svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-notice-text { display: flex; flex-direction: column; gap: 3px; font-size: .92rem; line-height: 1.45; color: var(--text-2); }
.g-notice-text b { color: var(--text); font-size: 1rem; }
.g-notice-acts { display: flex; gap: 8px; }
@media (max-width: 560px) { .g-notice { grid-template-columns: auto 1fr; } .g-notice-acts { grid-column: 1 / -1; justify-content: flex-end; } }
.sx-note { width: 100%; margin: 4px 0 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(var(--ink), 0.04);
  color: var(--text); font: 400 .92rem/1.45 var(--sans); resize: vertical; }
.sx-note[hidden] { display: none; }
.sx-note:focus { outline: none; border-color: rgba(255,138,61,.6); }
.limit-note[hidden] { display: none; }
.limit-note.flash { animation: limit-flash 1.6s ease-out; }
@keyframes limit-flash { 15% { color: var(--accent); text-shadow: 0 0 18px rgba(255,138,61,.45); } }
/* Stand-Karte: Schritte passen immer hinein (Linien teilen sich den Platz) */
.sel-card .work-steps li { flex: none; }
.sel-card .work-steps li + li { flex: 1 1 0; min-width: 0; }
.sel-card .work-steps li + li::before { flex: 1 1 auto; width: auto; min-width: 10px; margin: 0 8px; }
.sel-card .work-steps li span { overflow: hidden; text-overflow: ellipsis; }
.sel-card .work-steps li:last-child { flex: 0.6 1 0; }
.hero:has(> .sel-card:not([hidden])) > :not(.sel-card) { justify-self: start; max-width: 100%; }
.sel-card .work-notify, .sel-card .work-notify .link-btn { text-align: left; }

/* ===== Glocke für alle: Benachrichtigungen ===== */
.inbox-head { flex-direction: row; align-items: center; justify-content: space-between; }
.inbox-set { color: var(--muted); text-decoration: none; }
.inbox-set:hover { color: var(--accent); }
.inbox-ico { background: rgba(var(--ink), 0.06); color: var(--text-2); }
.inbox-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inbox-item.k-submit .inbox-ico, .inbox-item.k-team_answer .inbox-ico { background: rgba(126,212,154,.14); color: var(--ok); }
.inbox-item.k-download .inbox-ico { background: rgba(106,169,255,.14); color: var(--del, #6aa9ff); }
.inbox-item.k-more_hearts .inbox-ico svg { fill: currentColor; stroke: none; }
.inbox-item.urgent .inbox-ico { background: rgba(255,138,61,.18); color: var(--accent); animation: bell-urgent 2s ease-in-out infinite; }
@keyframes bell-urgent { 50% { box-shadow: 0 0 0 5px rgba(255,138,61,.12); } }
.inbox-item.urgent { background: rgba(255,138,61,.08); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35); }
.inbox-item.done { opacity: .75; }
.inbox-link { text-decoration: none; color: inherit; }
a.inbox-link:hover b { color: var(--accent); }
.inbox-meta b { font-weight: 600; }
.inbox-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inbox-acts .btn { min-height: 30px; padding: 0 12px; font-size: .8rem; }
.inbox-done { display: flex; align-items: center; gap: 5px; color: var(--ok) !important; font-size: .78rem !important; }
.inbox-done svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.inbox summary.ring svg { animation: bell-ring 1.2s ease-in-out 2; transform-origin: 50% 15%; color: var(--accent); }

/* Pop-up oben rechts bei neuen (vor allem dringenden) Benachrichtigungen */
.bell-pop { position: fixed; right: 16px; top: calc(var(--topbar) + 12px + env(safe-area-inset-top)); z-index: 220; width: min(400px, calc(100vw - 32px));
  background: var(--dk-1d1e22); border: 1px solid var(--line-hi); border-radius: 18px; padding: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  animation: bell-pop-in .45s cubic-bezier(.2,1.3,.4,1) both; }
.bell-pop.urgent { border-color: rgba(255,138,61,.6); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 4px rgba(255,138,61,.1); }
.bell-pop .inbox-item { background: none; box-shadow: none; }
.bell-pop .inbox-del { opacity: 1; }
.bell-pop.out { animation: bell-pop-out .3s ease both; }
@keyframes bell-pop-in { from { opacity: 0; transform: translate(20px, -6px) scale(.97); } }
@keyframes bell-pop-out { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 640px) { .bell-pop { left: 12px; right: 12px; width: auto; } }

/* ===== Einstellungen → Benachrichtigungen ===== */
.notif-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 28px; margin-top: 14px; align-items: start; }
@media (max-width: 980px) { .notif-grid { grid-template-columns: minmax(0, 1fr); } }
.notif-matrix { display: flex; flex-direction: column; min-width: 0; }
.nm-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(var(--ink), 0.02); }
.nm-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px; align-items: center; column-gap: 8px; padding: 12px 16px; min-height: 52px; }
.nm-table:not(:has(.nm-head > :nth-child(3))) .nm-row { grid-template-columns: minmax(0, 1fr) 92px; }
.nm-row + .nm-row { border-top: 1px solid var(--line); }
.nm-row > :not(.nm-label) { display: flex; justify-content: center; align-items: center; }
.nm-head { min-height: 0; padding-top: 10px; padding-bottom: 10px; background: rgba(var(--ink), 0.035);
  font: 600 .64rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nm-head > span { display: inline-flex; align-items: center; gap: 6px; }
.nm-head svg { width: 14px; height: 14px; flex: none; }
.nm-row.urgent { box-shadow: inset 3px 0 0 var(--accent); }
.nm-label { font-size: .92rem; line-height: 1.4; min-width: 0; }
.nm-urgent { font-style: normal; font: 600 .58rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  padding: 2px 7px; border-radius: 99px; background: rgba(255,138,61,.12); margin-left: 6px; white-space: nowrap; vertical-align: 2px; }
.nm-sw { margin: 0; }
.nm-none { color: var(--muted); }
.nm-foot { margin: 12px 2px 0; }
.nm-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 520px) {
  .nm-row { grid-template-columns: minmax(0, 1fr) 64px 64px; padding: 12px; }
  .nm-table:not(:has(.nm-head > :nth-child(3))) .nm-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .nm-head { letter-spacing: .04em; font-size: .58rem; }
  .nm-head > span:not(:first-child) svg { display: none; }
}
.notif-side { display: flex; flex-direction: column; gap: 18px; }
.notif-sub { margin: 0 0 6px; font-size: .95rem; font-weight: 600; }
.notif-device, .notif-mail { padding: 16px; border-radius: 16px; background: rgba(var(--ink), 0.025); border: 1px solid var(--line); }
.notif-device p { margin: 0 0 10px; }
.notif-mail .mail-form { margin-top: 10px; }

/* Mein Zugang: Rechte + anfragen */
.me-rights { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.rights-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.rights-list li { display: flex; align-items: center; gap: 8px; }
.rights-list svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rights-list li.on svg { color: var(--ok); }
.rights-list li.off { color: var(--muted); }
.me-rights .btn { align-self: flex-start; }
.treq-dlg form { display: flex; flex-direction: column; gap: 12px; min-width: min(420px, 86vw); }
.treq-dlg h2 { margin: 0; }
.treq-list { display: flex; flex-direction: column; gap: 8px; }
.treq-note { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(var(--ink), 0.04); color: var(--text); font: 400 .9rem var(--sans); resize: vertical; }
.viewonly-note .link-btn { margin-left: 8px; color: var(--accent); }

/* Herzen aufgebraucht: gebrochenes Herz + „OK!“ / „Um mehr bitten“ */
.hx-heart { position: relative; width: 96px; height: 96px; margin: 0 auto 4px; }
.hx-heart { filter: drop-shadow(0 10px 22px rgba(255,138,61,.35)); }
.hx-heart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; background: none; }
.hx-heart svg path { fill: var(--accent); stroke: none; }
.hx-heart .hx-l, .hx-heart .hx-r { transform-box: fill-box; transform-origin: 50% 100%; }
.hx-heart .hx-l { animation: hx-l 1.1s cubic-bezier(.3,1.4,.4,1) .15s both; }
.hx-heart .hx-r { animation: hx-r 1.1s cubic-bezier(.3,1.4,.4,1) .15s both; }
@keyframes hx-l { 0% { transform: none; } 100% { transform: translate(-1.6px, .8px) rotate(-13deg); } }
@keyframes hx-r { 0% { transform: none; } 100% { transform: translate(1.6px, .8px) rotate(13deg); } }
.hx-n { position: absolute; right: -8px; bottom: 2px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center;
  background: var(--dk-24252a); border: 1px solid var(--line-hi); color: var(--text); font: 700 .85rem var(--mono); animation: hx-n .4s .8s both; }
@keyframes hx-n { from { opacity: 0; transform: scale(.6); } }
.hx-ask { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; text-align: left; }
.hx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hx-chips .chip.on { background: var(--accent); color: #1a0e05; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .hx-heart g, .hx-n { animation: none !important; } }
.hx-dlg .hx-heart { margin-top: 22px; }
.hx-dlg form { overflow: visible; }
.treq-note { height: 74px; min-height: 0; }
.inbox-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.inbox-link b { flex: 1 1 auto; min-width: 0; }
.nm-hint { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); }
#share-limit-box.limit-flash, .limit-flash { animation: limit-box-flash 1.8s ease-out; border-radius: 14px; }
@keyframes limit-box-flash { 15% { box-shadow: 0 0 0 4px rgba(255,138,61,.25), 0 0 36px rgba(255,138,61,.25); background: rgba(255,138,61,.06); } }

/* Glocke: ohne Punkt links, dafür Album-Vorschau + wer/was/wo */
.inbox-item.new::before { display: none; }
.inbox-item.rich, .bell-pop .inbox-item.rich { grid-template-columns: 72px 1fr auto; gap: 14px; padding: 12px; align-items: start; }
.inbox-thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: rgba(var(--ink), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.06); }
.inbox-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inbox-thumb.inbox-ico { display: grid; place-items: center; }
.inbox-thumb.inbox-ico svg { width: 24px; height: 24px; }
.inbox-item.urgent .inbox-thumb { box-shadow: 0 0 0 2px var(--accent); }
.inbox-top { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 18px; }
.inbox-top time { margin-left: auto; flex: none; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.inbox-album { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .8rem; color: var(--text-2); font-weight: 500; }
.inbox-album svg { width: 12px; height: 12px; flex: none; color: var(--accent); fill: currentColor; }
.inbox-album span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-title { display: block; margin-top: 3px; font-size: .95rem; line-height: 1.35; color: var(--text-2); text-decoration: none; }
.inbox-title b { color: var(--text); font-weight: 600; }
a.inbox-title:hover b { color: var(--accent); }
.inbox-details { margin: 3px 0 0 !important; font-size: .82rem !important; color: var(--muted) !important; }
.inbox-note { margin: 8px 0 0 !important; padding: 6px 10px; border-left: 2px solid rgba(255,138,61,.5); border-radius: 0 8px 8px 0;
  background: rgba(var(--ink), 0.03); font-style: italic; font-size: .85rem !important; }
.inbox-item.rich .inbox-done { margin-top: 8px; }
.inbox-item.rich .inbox-del { margin-top: -4px; }
.inbox-done.no { color: var(--text-2) !important; }
.inbox-done.no svg { color: #ff8a8a; }
.inbox-goto { color: var(--text-2); border: 1px solid var(--line); background: transparent; }
.inbox-goto:hover { color: var(--text); border-color: rgba(255,138,61,.5); }

/* ===================== Einstellungen: Seitenleiste + Bereiche + Suche ===================== */
.set-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 6px; }
.set-side { position: sticky; top: calc(var(--topbar) + 14px); display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - var(--topbar) - 28px); }
.set-search { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 44px; border-radius: 12px;
  background: rgba(var(--ink), 0.04); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.set-search:focus-within { border-color: rgba(255,138,61,.6); background: rgba(var(--ink), 0.06); }
.set-search > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.set-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: 500 .92rem var(--sans); outline: none; padding: 0; }
.set-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.set-search kbd { font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.set-search:focus-within kbd { display: none; }
.set-results { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 14px; background: var(--dk-1b1c20); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); overflow-y: auto; max-height: min(460px, 60dvh); }
.set-results[hidden] { display: none; }
.set-hit-row { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 11px; border-radius: 10px; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; }
.set-hit-row b { font-weight: 500; font-size: .9rem; }
.set-hit-row b mark { background: none; color: var(--accent); font-weight: 700; }
.set-hit-row small { font-size: .75rem; color: var(--muted); }
.set-hit-row.on, .set-hit-row:hover { background: rgba(255,138,61,.12); }
.set-none { margin: 0; padding: 10px; font-size: .85rem; color: var(--muted); }
.set-side.searching .set-groups { opacity: .35; }
.set-groups { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: none; transition: opacity .15s; }
.set-groups a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); text-decoration: none; transition: background .15s, color .15s; }
.set-groups a > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.set-groups a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 600 .92rem var(--sans); }
.set-groups a small { font: 400 .74rem/1.35 var(--sans); color: var(--muted); }
.set-groups a:hover { background: rgba(var(--ink), 0.05); color: var(--text); }
.set-groups a.on { background: rgba(255,138,61,.12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35); }
.set-groups a.on > svg { color: var(--accent); }
.set-groups .set-prof { margin-top: 10px; position: relative; }
.set-groups .set-prof::before { content: ""; position: absolute; left: 12px; right: 12px; top: -7px; border-top: 1px solid var(--line); }
.set-ver { font: 600 10px var(--mono); color: var(--accent); margin-left: 2px; }
.set-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.set-main > * { margin-top: 0; margin-bottom: 0; }
.set-main > [hidden] { display: none; }
.set-group { display: flex; flex-direction: column; gap: 18px; animation: set-in .25s ease-out; }
.set-group[hidden] { display: none; }
@keyframes set-in { from { opacity: 0; transform: translateY(6px); } }
.set-ghead h2 { margin: 0; font: 700 1.6rem/1.2 var(--sans); letter-spacing: -.02em; }
.set-ghead p { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }
.settings-page .set-group > .panel, .settings-page .set-group .set-pair > .panel { margin: 0 !important; max-width: none; width: auto; }
.set-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.set-group[data-g=profil] { gap: 18px; }
.set-group[data-g=profil] > *, .set-group[data-g=profil] > .settings-row > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.set-group[data-g=profil] > .settings-row { display: grid; gap: 18px; }
.set-hit { animation: set-hit 2.2s ease-out; border-radius: 10px; }
@keyframes set-hit { 0%, 30% { box-shadow: 0 0 0 3px rgba(255,138,61,.55), 0 0 30px rgba(255,138,61,.25); background-color: rgba(255,138,61,.08); } }
@media (max-width: 1100px) { .set-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .set-side { top: calc(var(--topbar) + 6px); z-index: 20; max-height: none; gap: 8px; padding: 8px; margin: 0 -8px; border-radius: 16px;
    background: rgba(var(--dkr-17-18-21), 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .set-search kbd { display: none; }
  .set-groups { flex-direction: row; overflow-x: auto; gap: 4px; }
  .set-groups a { flex: none; align-items: center; padding: 8px 12px; gap: 8px; }
  .set-groups a small { display: none; }
  .set-groups .set-prof { margin: 0; }
  .set-groups .set-prof::before { display: none; }
  .set-results { position: absolute; left: 8px; right: 8px; top: 58px; z-index: 30; }
  .set-ghead h2 { font-size: 1.3rem; }
}

/* Patchnotes */
.pn-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.pn { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), 0.02); }
.pn-current { border-color: rgba(255,138,61,.35); background: linear-gradient(180deg, rgba(255,138,61,.06), rgba(var(--ink), 0.015)); }
.pn-head { display: flex; align-items: center; gap: 10px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pn-ver { color: var(--text); }
.pn-badge { padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #1a0e05; letter-spacing: .06em; }
.pn-head time { margin-left: auto; letter-spacing: .04em; text-transform: none; font-weight: 500; }
.pn-title { margin: 8px 0 10px; font: 650 1.05rem/1.35 var(--sans); color: var(--text); }
.pn-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pn-items li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; font-size: .9rem; line-height: 1.5; color: var(--text-2); }
.pn-tag { justify-self: start; font: 600 10px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px;
  background: rgba(var(--ink), 0.06); color: var(--text-2); }
.pn-neu { background: rgba(255,138,61,.15); color: var(--accent); }
.pn-verbessert { background: rgba(106,169,255,.14); color: #8dbbff; }
.pn-sicherheit { background: rgba(126,212,154,.14); color: var(--ok); }
.pn-behoben { background: rgba(var(--ink), 0.08); color: var(--text); }
@media (max-width: 600px) { .pn-items li { grid-template-columns: 1fr; gap: 4px; } }
.settings-page .set-side label.set-search { flex-direction: row; align-items: center; gap: 10px; font-size: .92rem; }
.set-hit-row.note { cursor: default; }
.set-hit-row.note b::after { content: " · in den Ordnern"; color: var(--muted); font-weight: 400; font-size: .78rem; }
.ppl-total { color: var(--muted); letter-spacing: .06em; }
.ppl-unnamed { opacity: .8; }
.ppl-unnamed .who-av { background: rgba(var(--ink), 0.08); color: var(--text-2); }
.lb-c-who .lb-c-saved { position: static; margin-left: 8px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
a.card .badge-comment { cursor: pointer; pointer-events: auto; }
a.card .badge-comment:hover { filter: brightness(1.25); }
.card-badges .badge-online { pointer-events: auto; cursor: default; }


/* =====================================================================
   Design: dunkel (Standard) und hell – umschaltbar oben rechts
   Feste Farben der Oberfläche laufen über Variablen (--ink = Grundfarbe für
   halbtransparente Linien/Flächen, --dk-… dunkle Flächen, --lt-… helle Schrift).
   Fotos, Großansicht und Titelbilder bleiben in beiden Designs dunkel.
   ===================================================================== */
:root {
  --ink: 255, 255, 255;
  color-scheme: dark;
  --dk-000000: #000000;
  --dk-0a0a0c: #0a0a0c;
  --dk-0c0d0f: #0c0d0f;
  --dk-0e0f11: #0e0f11;
  --dk-101114: #101114;
  --dk-10170f: #10170f;
  --dk-111215: #111215;
  --dk-16171a: #16171a;
  --dk-17181b: #17181b;
  --dk-1a1b1e: #1a1b1e;
  --dk-1a1b1f: #1a1b1f;
  --dk-1b1c20: #1b1c20;
  --dk-1c1d21: #1c1d21;
  --dk-1d1e22: #1d1e22;
  --dk-222222: #222222;
  --dk-222327: #222327;
  --dk-23252a: #23252a;
  --dk-24252a: #24252a;
  --dk-26272b: #26272b;
  --dk-2a2b30: #2a2b30;
  --dk-2b2c31: #2b2c31;
  --dk-2c3442: #2c3442;
  --dk-2d3540: #2d3540;
  --dk-2f3a36: #2f3a36;
  --dk-3a2f45: #3a2f45;
  --dk-3a3029: #3a3029;
  --dk-3a3835: #3a3835;
  --dk-3a3b40: #3a3b40;
  --dkr-10-10-12: 10, 10, 12;
  --dkr-13-36-22: 13, 36, 22;
  --dkr-14-15-17: 14, 15, 17;
  --dkr-17-18-21: 17, 18, 21;
  --dkr-18-19-22: 18, 19, 22;
  --dkr-20-20-24: 20, 20, 24;
  --dkr-20-21-24: 20, 21, 24;
  --dkr-22-23-26: 22, 23, 26;
  --dkr-23-24-27: 23, 24, 27;
  --dkr-24-25-29: 24, 25, 29;
  --dkr-26-27-31: 26, 27, 31;
  --dkr-30-24-20: 30, 24, 20;
  --dkr-40-14-12: 40, 14, 12;
  --dkr-40-40-44: 40, 40, 44;
  --dkr-42-30-22: 42, 30, 22;
  --dkr-5-5-7: 5, 5, 7;
  --dkr-6-7-9: 6, 7, 9;
  --dkr-8-8-10: 8, 8, 10;
  --lt-d9d5cc: #d9d5cc;
  --lt-ffffff: #ffffff;
}
html[data-theme="light"] {
  --ink: 24, 26, 32;
  --bg: #f4f3f0; --bg-2: #ebe9e4;
  --surface: rgba(24, 26, 32, 0.04); --surface-hi: rgba(24, 26, 32, 0.07);
  --line: rgba(24, 26, 32, 0.11); --line-hi: rgba(24, 26, 32, 0.2);
  --text: #1b1c20; --text-2: #46474d; --muted: #6f7077;
  --accent: #f07425; --accent-soft: rgba(240, 116, 37, 0.13);
  --ok: #26995a; --sel: #26995a; --del: #2f7de0; --warn: #d9463b;
  color-scheme: light;
  --dk-000000: #ffffff;
  --dk-0a0a0c: #fafafa;
  --dk-0c0d0f: #f9f9f9;
  --dk-0e0f11: #f8f8f8;
  --dk-101114: #f6f7f7;
  --dk-10170f: #f6f8f5;
  --dk-111215: #f6f6f7;
  --dk-16171a: #f4f4f5;
  --dk-17181b: #f3f3f4;
  --dk-1a1b1e: #f2f2f3;
  --dk-1a1b1f: #f2f2f3;
  --dk-1b1c20: #f1f1f2;
  --dk-1c1d21: #f1f1f2;
  --dk-1d1e22: #f0f0f2;
  --dk-222222: #f0f0f0;
  --dk-222327: #eeeeef;
  --dk-23252a: #ededef;
  --dk-24252a: #ededee;
  --dk-26272b: #ececed;
  --dk-2a2b30: #eaeaec;
  --dk-2b2c31: #e9eaeb;
  --dk-2c3442: #e3e5e9;
  --dk-2d3540: #e4e6e9;
  --dk-2f3a36: #e6e9e8;
  --dk-3a2f45: #e5e2e8;
  --dk-3a3029: #ebe8e6;
  --dk-3a3835: #e7e6e5;
  --dk-3a3b40: #e3e3e4;
  --dkr-10-10-12: 250, 250, 250;
  --dkr-13-36-22: 241, 247, 243;
  --dkr-14-15-17: 248, 248, 248;
  --dkr-17-18-21: 246, 246, 247;
  --dkr-18-19-22: 245, 246, 247;
  --dkr-20-20-24: 245, 245, 246;
  --dkr-20-21-24: 245, 245, 246;
  --dkr-22-23-26: 244, 244, 245;
  --dkr-23-24-27: 243, 243, 244;
  --dkr-24-25-29: 242, 243, 244;
  --dkr-26-27-31: 242, 242, 243;
  --dkr-30-24-20: 245, 243, 242;
  --dkr-40-14-12: 247, 240, 240;
  --dkr-40-40-44: 236, 236, 237;
  --dkr-42-30-22: 243, 240, 238;
  --dkr-5-5-7: 252, 252, 253;
  --dkr-6-7-9: 251, 251, 252;
  --dkr-8-8-10: 251, 251, 251;
  --lt-d9d5cc: #46433d;
  --lt-ffffff: #1a1a1a;
}
/* Inseln, die immer dunkel bleiben (Bilder, Großansicht, Titelbild, Anmeldeseite) */
html[data-theme="light"] :is(.lightbox, .deliver-hero.has-cover, .tile, .card-cover, .login-scene, .mv-ghost, .sx-pile, .sx-fly, .hx-heart, .wm-stage, .cv-mock, .fv-preview .card-cover) {
  --ink: 255, 255, 255;
  --bg: #0e0f11; --bg-2: #131417;
  --surface: rgba(255, 255, 255, 0.035); --surface-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08); --line-hi: rgba(255, 255, 255, 0.16);
  --text: #eceae4; --text-2: #b4b3ae; --muted: #85868b;
  --ok: #7ed49a; --sel: #7ed49a; --del: #6aa9ff; --warn: #ff7a6b; --accent: #ff8a3d;
  color-scheme: dark;
  --dk-000000: #000000;
  --dk-0a0a0c: #0a0a0c;
  --dk-0c0d0f: #0c0d0f;
  --dk-0e0f11: #0e0f11;
  --dk-101114: #101114;
  --dk-10170f: #10170f;
  --dk-111215: #111215;
  --dk-16171a: #16171a;
  --dk-17181b: #17181b;
  --dk-1a1b1e: #1a1b1e;
  --dk-1a1b1f: #1a1b1f;
  --dk-1b1c20: #1b1c20;
  --dk-1c1d21: #1c1d21;
  --dk-1d1e22: #1d1e22;
  --dk-222222: #222222;
  --dk-222327: #222327;
  --dk-23252a: #23252a;
  --dk-24252a: #24252a;
  --dk-26272b: #26272b;
  --dk-2a2b30: #2a2b30;
  --dk-2b2c31: #2b2c31;
  --dk-2c3442: #2c3442;
  --dk-2d3540: #2d3540;
  --dk-2f3a36: #2f3a36;
  --dk-3a2f45: #3a2f45;
  --dk-3a3029: #3a3029;
  --dk-3a3835: #3a3835;
  --dk-3a3b40: #3a3b40;
  --dkr-10-10-12: 10, 10, 12;
  --dkr-13-36-22: 13, 36, 22;
  --dkr-14-15-17: 14, 15, 17;
  --dkr-17-18-21: 17, 18, 21;
  --dkr-18-19-22: 18, 19, 22;
  --dkr-20-20-24: 20, 20, 24;
  --dkr-20-21-24: 20, 21, 24;
  --dkr-22-23-26: 22, 23, 26;
  --dkr-23-24-27: 23, 24, 27;
  --dkr-24-25-29: 24, 25, 29;
  --dkr-26-27-31: 26, 27, 31;
  --dkr-30-24-20: 30, 24, 20;
  --dkr-40-14-12: 40, 14, 12;
  --dkr-40-40-44: 40, 40, 44;
  --dkr-42-30-22: 42, 30, 22;
  --dkr-5-5-7: 5, 5, 7;
  --dkr-6-7-9: 6, 7, 9;
  --dkr-8-8-10: 8, 8, 10;
  --lt-d9d5cc: #d9d5cc;
  --lt-ffffff: #ffffff;
}
html[data-theme="light"] .backdrop {
  background:
    radial-gradient(60vmax 50vmax at 88% -8%, rgba(255, 138, 61, .16), rgba(255, 138, 61, .05) 40%, transparent 70%),
    radial-gradient(40vmax 30vmax at -10% 110%, rgba(255, 138, 61, .05), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
html[data-theme="light"] .panel { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6)); box-shadow: 0 1px 2px rgba(24,26,32,.04), 0 8px 24px -16px rgba(24,26,32,.18); }
html[data-theme="light"] .topbar { background: rgba(244, 243, 240, .82); }
html.theme-swap, html.theme-swap * { transition: background-color .3s, color .3s, border-color .3s !important; }

/* Sprache & Design (Profil-Menü bzw. Galerie oben rechts) */
.ui-switch { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; padding: 6px 10px; }
.ui-lbl { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ui-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(var(--ink), .06); border: 1px solid var(--line); }
.ui-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text-2); font: 500 .84rem var(--sans); cursor: pointer; white-space: nowrap; }
.ui-seg button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ui-seg button:hover { color: var(--text); }
.ui-seg button[aria-pressed="true"] { background: var(--accent); color: #1a0e05; font-weight: 600; }
.ui-menu { position: relative; }
.ui-menu > summary { list-style: none; }
.ui-menu > summary::-webkit-details-marker { display: none; }
.ui-menu > summary svg { width: 18px; height: 18px; }
.ui-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 280px; padding: 8px; border-radius: 16px;
  background: var(--dk-1b1c20, #1b1c20); border: 1px solid var(--line-hi); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); }
html.i18n-wait body { opacity: 0; animation: i18n-show 0s 1.2s forwards; }
@keyframes i18n-show { to { opacity: 1; } }
html[data-theme="light"] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), select, textarea) { background-color: #fff; }
html[data-theme="light"] input[type=range] { color-scheme: light; }
html[data-theme="light"] :is(.lightbox, .login-scene) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), select, textarea) {
  background-color: rgba(0,0,0,.25); color: var(--text); color-scheme: dark; }

/* Helles Design: helle Akzent-Schriften dunkler, damit sie auf hellem Grund lesbar bleiben */
html[data-theme="light"] :is(.st-dl) { color: #1f6fb2; }
html[data-theme="light"] :is(.role-admin) { color: #1f6fb2; }
html[data-theme="light"] :is(.tm-state.off) { color: #c0362c; }
html[data-theme="light"] :is(.tm-menu button.danger) { color: #c0362c; }
html[data-theme="light"] :is(.viewonly-note) { color: #1f6fb2; }
html[data-theme="light"] :is(.me-hint) { color: #b4540a; }
html[data-theme="light"] :is(.btn.trash-btn) { color: #c0362c; }
html[data-theme="light"] :is(.menu-item.trash-btn) { color: #c0362c; }
html[data-theme="light"] :is(.me-menu-item.danger) { color: #c0362c; }
html[data-theme="light"] :is(.k-idee) { color: #a35a00; }
html[data-theme="light"] :is(.k-fehler) { color: #c0362c; }
html[data-theme="light"] :is(.fb-kind button[data-v="fehler"][aria-pressed="true"] svg) { color: #c0362c; }
html[data-theme="light"] :is(.set-nav a) { color: #5c5047; }
html[data-theme="light"] :is(.st-ready) { color: #a35a00; }
html[data-theme="light"] :is(.st-work) { color: #6b3fb8; }
html[data-theme="light"] :is(.ov-tag-dl) { color: #1f6fb2; }
html[data-theme="light"] :is(.inbox-done.no svg) { color: #c0362c; }
html[data-theme="light"] :is(.pn-verbessert) { color: #1f6fb2; }
/* Inseln: Schriftfarbe mitnehmen (sonst erbt der Titel die dunkle Schrift der hellen Seite) */
html[data-theme="light"] :is(.deliver-hero.has-cover, .lightbox, .login-scene, .cv-mock, .card-cover, .tile) { color: var(--text); }
/* Profil: Anmeldungen (bekannte Geräte, Mail bei neuem Gerät) */
.dev-panel { display: flex; flex-direction: column; gap: 14px; }
.dev-alert { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.dev-list { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--ink), 0.03); border: 1px solid var(--line); }
.dev-list .btn { justify-self: start; }
.dev-list ul { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dev-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.dev-list li > span, .dev-list li > small { grid-column: 1; }
.dev-list li .dev-forget { grid-column: 2; grid-row: 1 / span 2; }
.dev-list li.gone { opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; }
.dev-here { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--ok); margin-left: 6px;
  padding: 2px 8px; border-radius: 99px; background: rgba(126,212,154,.1); border: 1px solid rgba(126,212,154,.3); }
.dev-list .mono { font-family: var(--mono); font-size: .85em; }
.notme-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 6px; font-size: .92rem; }
.notme-facts dt { color: var(--muted); }
.notme-facts dd { margin: 0; text-align: right; font-weight: 600; }
/* Einstellungen: Sicherung */
.bk-panel { display: flex; flex-direction: column; gap: 14px; }
.bk-status { padding: 10px 14px; border-radius: 10px; font-size: .92rem; border: 1px solid var(--line); }
.bk-status.ok { background: rgba(126,212,154,.08); border-color: rgba(126,212,154,.3); }
.bk-status.warn { background: rgba(255,170,90,.08); border-color: rgba(255,170,90,.35); }
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-list li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.bk-list .mono { text-transform: none; letter-spacing: 0; font-family: var(--mono); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-kind { font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.bk-kind.bk-update, .bk-kind.bk-rollback { color: var(--accent); border-color: rgba(255,140,60,.35); }
.bk-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .bk-list li { grid-template-columns: 1fr auto; } .bk-list li em, .bk-list li small { grid-column: 1; } }

/* ---------- Kundenlink: Design der Abgabe (dtpick.js) ---------- */
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dt-row[hidden] { display: none; }
.dt-row-lbl { font-size: .92rem; }
.dt-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text);
  font: 500 .9rem var(--sans); cursor: pointer; transition: border-color .15s, background .15s;
}
.dt-chip:hover { border-color: var(--line-hi); background: var(--surface-hi); }
.dt-chip .dt-change { color: var(--muted); font-size: .82rem; }
.dt-sw { display: inline-flex; }
.dt-sw i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--dk-17181b); margin-left: -5px; background: var(--muted); }
.dt-sw i:first-child { margin-left: 0; box-shadow: 0 0 0 1px var(--line-hi); }

.dialog.dt-dlg[open] { width: min(1240px, calc(100vw - 24px)); max-width: none; height: min(860px, calc(100dvh - 24px)); max-height: none; overflow: hidden; }
.dt-inner { display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.dt-side { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.dt-head p { margin-top: 6px; }
.dt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dt-card {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s;
}
.dt-card:hover { border-color: var(--line-hi); }
.dt-card[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.dt-thumb { position: relative; display: block; height: 74px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line) inset; }
.dt-aa { position: absolute; left: 10px; top: 6px; font-size: 30px; line-height: 1.1; }
.dt-lines { position: absolute; left: 10px; right: 34%; bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.dt-lines i { display: block; height: 3px; border-radius: 2px; opacity: .35; }
.dt-lines i + i { width: 60%; }
.dt-bar-acc { position: absolute; right: 10px; bottom: 10px; width: 26%; height: 14px; border-radius: 3px; }
.dt-card-txt { display: flex; flex-direction: column; padding: 0 2px; }
.dt-card-txt b { font-size: .92rem; }
.dt-card-txt small { color: var(--muted); font-size: .76rem; }
.dt-custom { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.dt-custom[hidden] { display: none; }
.dt-custom-head { display: flex; justify-content: space-between; align-items: center; }
.dt-colors { display: grid; gap: 8px; }
.dt-custom label.dt-color { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; color: var(--text); }
.dt-color-in { display: inline-flex; align-items: center; gap: 6px; }
.dt-color input[type=color] { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.dt-color input[type=text] { width: 92px; min-height: 34px; padding: 0 8px; font: 400 .85rem var(--mono); text-transform: uppercase; }
.dt-custom label.dt-font { gap: 6px; font-size: .9rem; color: var(--text); }
.dt-warn { margin: 0; color: var(--warn); }
.dt-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dt-stage { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; padding: 14px; overflow: hidden; background: rgba(var(--ink), 0.03); }
.dt-frame { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-hi), 0 20px 50px rgba(0,0,0,.35); background: #fff; }
.dt-frame[hidden] { display: none; }
.dt-frame.is-phone { border-radius: 28px; box-shadow: 0 0 0 6px var(--dk-1a1b1f), 0 0 0 7px var(--line-hi), 0 20px 50px rgba(0,0,0,.35); margin-top: 6px; }
.dt-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.dt-empty { align-self: center; max-width: 360px; text-align: center; }
.dt-actions { padding: 14px 18px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .dialog.dt-dlg[open] { width: 100vw; height: 100dvh; border-radius: 0; margin: 0; overflow: auto; }
  .dt-inner { display: block; height: auto; }
  .dt-side { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .dt-main { height: 680px; }
  .dt-actions { position: sticky; bottom: 0; z-index: 2; background: var(--dk-17181b); }
  .dt-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .dt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   Oben in der Leiste: DE/EN und Tag/Nacht (ui.js)
   ===================================================================== */
.ui-quick { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ui-quick { margin-right: 2px; }
/* DE/EN: kleiner Schieber, gleiche Höhe wie Tag/Nacht */
.lang-sw {
  --h: 34px; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 76px; height: var(--h); padding: 3px; border-radius: 99px; cursor: pointer;
  background: rgba(var(--ink), .06); border: 1px solid var(--line); color: var(--muted);
  font: 600 11px var(--mono); letter-spacing: .08em;
}
.lang-sw span { position: relative; z-index: 1; text-align: center; transition: color .25s; }
.lang-sw span.on { color: #1a0e05; }
.lang-sw i {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--accent);
  box-shadow: 0 2px 8px rgba(255,138,61,.35); transition: transform .32s cubic-bezier(.5,1.5,.45,1);
}
.lang-sw span:first-child:not(.on) ~ i { transform: translateX(100%); }
/* beim Klick schon umlegen, dann lädt die Seite in der neuen Sprache */
.lang-sw.flip span:first-child.on ~ i { transform: translateX(100%); }
.lang-sw.flip span:first-child:not(.on) ~ i { transform: none; }
.lang-sw.flip span.on { color: var(--muted); }
.lang-sw.flip span:not(.on) { color: #1a0e05; }
.lang-sw:hover { border-color: var(--line-hi); }
.lang-sw:focus-visible, .day-night:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Tag/Nacht: Nachthimmel mit Sternen und Mond ↔ Taghimmel mit Wolken und Sonne */
.day-night {
  position: relative; width: 64px; height: 34px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; overflow: hidden; flex: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  -webkit-tap-highlight-color: transparent;
}
.dn-sky, .dn-night, .dn-day { position: absolute; inset: 0; border-radius: inherit; }
.dn-night { background: linear-gradient(135deg, #1b1a4a 0%, #3b2a7a 55%, #6a3fa0 100%); transition: opacity .5s; }
.dn-day { background: linear-gradient(180deg, #7cc8f0 0%, #b8e3f7 100%); opacity: 0; transition: opacity .5s; }
.dn-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .9;
  transition: transform .5s cubic-bezier(.5,1.4,.4,1), opacity .4s; animation: dn-twinkle 2.6s ease-in-out infinite; }
.dn-stars i:nth-child(1) { left: 36px; top: 7px; }
.dn-stars i:nth-child(2) { left: 46px; top: 13px; width: 1.5px; height: 1.5px; animation-delay: .6s; }
.dn-stars i:nth-child(3) { left: 54px; top: 6px; animation-delay: 1.1s; }
.dn-stars i:nth-child(4) { left: 41px; top: 22px; width: 1.5px; height: 1.5px; animation-delay: 1.7s; }
.dn-stars i:nth-child(5) { left: 52px; top: 24px; animation-delay: .3s; }
.dn-stars i:nth-child(6) { left: 30px; top: 15px; width: 1px; height: 1px; animation-delay: 2s; }
.dn-stars i:nth-child(7) { left: 58px; top: 16px; width: 1px; height: 1px; animation-delay: .9s; }
@keyframes dn-twinkle { 50% { opacity: .35; } }
.dn-clouds { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateY(60%); opacity: 0;
  transition: transform .55s cubic-bezier(.4,1.3,.4,1), opacity .4s; }
.dn-clouds .dn-c1 { fill: rgba(255,255,255,.75); }
.dn-clouds .dn-c2 { fill: #fff; }
.dn-knob {
  position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbfbfb 0%, #d9d9de 60%, #b9b9c2 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.4), inset -2px -2px 4px rgba(0,0,0,.12);
  transition: transform .55s cubic-bezier(.5,1.45,.4,1), background .45s, box-shadow .45s;
}
/* Mondkrater – verschwinden bei Tag */
.dn-knob i { position: absolute; border-radius: 50%; background: rgba(150,150,165,.45); transition: opacity .3s; }
.dn-knob i:nth-child(1) { width: 6px; height: 6px; left: 6px; top: 7px; }
.dn-knob i:nth-child(2) { width: 4px; height: 4px; left: 15px; top: 14px; }
.dn-knob i:nth-child(3) { width: 3px; height: 3px; left: 9px; top: 17px; }
.day-night[aria-checked="true"] .dn-night { opacity: 0; }
.day-night[aria-checked="true"] .dn-day { opacity: 1; }
.day-night[aria-checked="true"] .dn-stars i { opacity: 0; transform: translateY(-12px) scale(.4); }
.day-night[aria-checked="true"] .dn-clouds { opacity: 1; transform: none; }
.day-night[aria-checked="true"] .dn-knob {
  transform: translateX(30px) rotate(180deg);
  background: radial-gradient(circle at 35% 30%, #fff7b0 0%, #ffd23f 55%, #f5a623 100%);
  box-shadow: 0 0 0 4px rgba(255,214,80,.25), 0 0 14px rgba(255,200,60,.7), 0 2px 6px rgba(0,0,0,.2);
}
.day-night[aria-checked="true"] .dn-knob i { opacity: 0; }
.day-night:hover .dn-knob { filter: brightness(1.05); }
.day-night:active .dn-knob { width: 30px; }
.day-night[aria-checked="true"]:active .dn-knob { transform: translateX(26px) rotate(180deg); }

/* Welle beim Umschalten: alter Stand bleibt stehen, der neue wächst vom Schalter aus darüber */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.theme-wave::view-transition-new(root) { clip-path: circle(0px at var(--wave-x, 100%) var(--wave-y, 0px)); }
html.theme-wave * { transition: none !important; }
html.theme-wave .day-night * { transition: inherit; }

/* Profil-Menü: Sprache/Design nur noch am Handy (oben ist dort zu wenig Platz) */
.me-menu-ui { display: none; }
@media (max-width: 640px) {
  .topbar .ui-quick { display: none; }
  .me-menu-ui { display: block; }
  body.client .topbar .ui-quick { display: inline-flex; gap: 6px; }
  body.client .lang-sw { width: 64px; --h: 30px; height: 30px; font-size: 10px; }
  body.client .day-night { width: 54px; height: 30px; }
  body.client .dn-knob { width: 22px; height: 22px; }
  body.client .day-night[aria-checked="true"] .dn-knob { transform: translateX(24px) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dn-stars i { animation: none; }
  .dn-knob, .dn-clouds, .lang-sw i { transition-duration: .01s; }
}
.dt-devs { padding: 3px; gap: 3px; }
.dt-devs button { width: 46px; min-height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.dt-devs button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#dt-tab .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Unternehmen löschen */
.acc-del-dlg { width: min(480px, calc(100vw - 24px)); }
.acc-del-head { display: flex; gap: 14px; align-items: flex-start; }
.acc-del-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,122,107,.12); border: 1px solid rgba(255,122,107,.35); color: var(--warn); }
.acc-del-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acc-del-head p { margin-top: 4px !important; }
.acc-del-list { margin: 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: rgba(255,122,107,.06); border: 1px solid rgba(255,122,107,.2);
  display: grid; gap: 6px; font-size: .9rem; }
.acc-del-list li::marker { color: var(--warn); }
.acc-del-note { color: var(--muted); }
.acc-del-confirm b { color: var(--text); }
.acc-del-confirm input { font-weight: 600; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
#desktop-notify { max-width: 100%; white-space: normal; text-align: left; min-height: 36px; height: auto; padding-top: 6px; padding-bottom: 6px; }
.nm-row > :first-child { justify-content: flex-start; }
.ls-pick .fpick { flex: 1 1 100%; }
.ls-pick:has(.fpick) .btn-primary { margin-left: 0; }

/* Lange drücken → Auswahl (longpress.js) */
.lp-ring { position: fixed; z-index: 270; width: 52px; height: 52px; margin: -26px 0 0 -26px; pointer-events: none;
  animation: lp-in .2s ease-out both; }
.lp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
.lp-ring circle { fill: none; stroke-width: 4; }
.lp-ring .lp-bg { stroke: rgba(14,15,17,.55); fill: rgba(14,15,17,.25); }
.lp-ring .lp-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: lp-fill var(--dur) linear forwards; }
.lp-ring.done { animation: lp-done .35s ease-out forwards; }
@keyframes lp-in { from { opacity: 0; transform: scale(.6); } }
@keyframes lp-fill { to { stroke-dashoffset: 0; } }
@keyframes lp-done { to { opacity: 0; transform: scale(1.5); } }
.tile.lp-hold, .card.lp-hold { scale: .975; transition: scale 1.2s ease-out; }
.tile.lp-pop, .card.lp-pop { animation: lp-pop .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes lp-pop { 0% { scale: .96; } 60% { scale: 1.02; } 100% { scale: 1; } }
#grid .tile img, .cards .card img { -webkit-touch-callout: none; }
#grid .tile, .cards .card { -webkit-user-select: none; user-select: none; }

/* Favoriten-Download an der Auswahl-Kachel (favdl.js) */
.card-fav { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border-radius: 99px; background: rgba(126,212,154,.12); border: 1px solid rgba(126,212,154,.35); color: var(--sel);
  font: 600 .8rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s, transform .15s var(--ease); white-space: nowrap; }
.card-fav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card-fav:hover, .card-fav:focus-visible { background: rgba(126,212,154,.22); border-color: var(--sel); outline: none; }
.card-fav:active { transform: scale(.95); }
.card-fav.busy { opacity: .6; pointer-events: none; }
.st-mode + .card-fav { margin-left: 8px; }
.card-status-fav { justify-content: flex-end; }
.cards.fv-small .card-fav { height: 28px; padding: 0 8px; }
.cards.fv-small .card-fav span { display: none; }
.cards .card-body { container-type: inline-size; }
@container (max-width: 250px) { .card-fav span { display: none; } .card-fav { padding: 0 8px; } }
@media (max-width: 640px) { .card-fav span { display: none; } .card-fav { padding: 0 9px; } }
body.folder-selecting .card-fav { pointer-events: none; opacity: .5; }

.fav-dlg { width: min(480px, calc(100vw - 32px)); padding: 22px; }
.fav-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.fav-head .dialog-title { margin: 0; }
.fav-sub { margin: 2px 0 0; }
.fav-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(126,212,154,.12); color: var(--sel); }
.fav-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: fav-drop 1.4s ease-in-out infinite; }
@keyframes fav-drop { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
.fav-lr { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(var(--ink), 0.035); border: 1px solid var(--line); }
.fav-lr > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fav-lr b { font-size: .92rem; }
.fav-lr small { font-size: .76rem; line-height: 1.4; }
.fav-lr .btn { flex: none; }
.fav-lr .btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.fav-lr .btn.copied { border-color: var(--sel); color: var(--sel); }
.fav-ask { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fav-ask h3 { margin: 0 0 4px; font-size: 1rem; }
.fav-ask p { margin: 0 0 14px; }
.fav-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-btns .btn-primary { min-width: 88px; }
.fav-dlg .dialog-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .fav-btns { flex-direction: column; } .fav-btns .btn { width: 100%; } .fav-lr { flex-direction: column; align-items: stretch; } }

/* Automatisch abmelden (idle.js): Ring ums Profilbild + Hinweis 1 Minute vorher */
.me-chip { position: relative; }
.idle-ring { position: absolute; inset: 0; pointer-events: none; }
.idle-ring[hidden] { display: none; }
.idle-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.idle-ring circle { fill: none; stroke-width: 3; }
.idle-ring .ir-bg { stroke: rgba(14,15,17,.45); }
.idle-ring .ir-fg { stroke: var(--sel); stroke-linecap: round; stroke-dasharray: 1000; transition: stroke-dashoffset 1s linear, stroke .4s; }
.idle-ring.low .ir-fg { stroke: var(--accent); }
.idle-ring.crit .ir-fg { stroke: #ff5d5d; }
.idle-ring.crit { animation: idle-pulse 1s ease-in-out infinite; }
@keyframes idle-pulse { 50% { opacity: .45; } }
.idle-warn { position: fixed; z-index: 300; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 99px; background: var(--dk-1d1e22); border: 1px solid rgba(255,93,93,.5);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); color: var(--text); font-size: .9rem;
  transform: translate(-50%, 20px); opacity: 0; transition: transform .3s cubic-bezier(.2,1.2,.4,1), opacity .25s; }
.idle-warn.on { transform: translate(-50%, 0); opacity: 1; }
.idle-warn > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #ff5d5d; stroke-width: 2; stroke-linecap: round; }
.idle-warn .btn { flex: none; }
@media (max-width: 520px) { .idle-warn { border-radius: 18px; flex-wrap: wrap; justify-content: center; text-align: center; padding: 12px; } }
.notice-idle { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.4;
  background: rgba(255,138,61,.12); border: 1px solid rgba(255,138,61,.35); color: var(--text); }
.idle-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.idle-seg button { flex: 1 1 auto; }
.tm-state.tfa { display: inline-flex; align-items: center; gap: 4px; background: rgba(126,212,154,.12); color: var(--sel); }
.tm-state.tfa svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.tm-trust { cursor: help; }
.notif-fav .dev-alert { align-items: flex-start; }
.notif-fav .dev-alert > span { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; line-height: 1.35; }
.notif-fav .dev-alert small { font-size: .76rem; line-height: 1.45; }

/* Andere Unternehmen: Aktivität */
.acc-act { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.acc-spark { width: 120px; height: 26px; flex: none; }
.acc-spark path { fill: var(--accent); opacity: .75; }
.acc-last { color: var(--text-2); }
.acc-act-btn { flex: none; }
.acc-spark .sp-base { fill: rgba(var(--ink), 0.14); opacity: 1; }
.aa-tabs button { white-space: nowrap; display: inline-flex; align-items: center; }
.acc-act-btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.acc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.acc-chips-k { font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.acc-chips i { font-style: normal; font-size: .76rem; padding: 3px 9px; border-radius: 99px; background: rgba(var(--ink), 0.06); color: var(--text-2); white-space: nowrap; }
.acc-chips i.zero { opacity: .5; }

.acc-act-dlg { width: min(640px, calc(100vw - 32px)); padding: 22px; }
.acc-act-dlg[open] { display: flex; flex-direction: column; max-height: min(780px, calc(100dvh - 40px)); }
.aa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aa-head .dialog-title { margin: 0; }
.aa-head p { margin: 4px 0 0; }
.aa-tabs { margin: 16px 0 12px; align-self: flex-start; }
.aa-tabs button { padding: 7px 14px; }
.aa-n { font: 600 .7rem var(--mono); color: var(--accent); margin-left: 4px; }
.aa-body { overflow-y: auto; min-height: 0; flex: 1; margin: 0 -6px; padding: 0 6px; }
.aa-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.aa-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; }
.aa-row + .aa-row { border-top: 1px solid var(--line); }
.aa-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--ink), 0.05); color: var(--text-2); }
.aa-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aa-row.k-upload .aa-ico, .aa-row.k-folder_new .aa-ico { color: var(--accent); background: rgba(255,138,61,.1); }
.aa-row.k-folder_del .aa-ico, .aa-row.k-link_off .aa-ico { color: #ff7a7a; background: rgba(255,92,92,.1); }
.aa-row.k-link_on .aa-ico, .aa-row.k-submit .aa-ico { color: var(--sel); background: rgba(126,212,154,.1); }
.aa-row.k-view .aa-ico, .aa-row.k-zip .aa-ico, .aa-row.k-file .aa-ico { color: var(--del); background: rgba(106,169,255,.1); }
.aa-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .9rem; line-height: 1.35; min-width: 0; }
.aa-txt b { font-weight: 600; }
.aa-who { color: var(--text-2); }
.aa-who.client { color: var(--del); }
.aa-f { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.aa-when { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.aa-empty { padding: 18px 2px; margin: 0; list-style: none; }
.aa-links { display: flex; flex-direction: column; gap: 10px; }
.aa-link { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), 0.025); display: flex; flex-direction: column; gap: 8px; }
.aa-link-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.aa-link-top b { font-size: .95rem; margin-right: 2px; }
.aa-chip { display: inline-flex; align-items: center; gap: 4px; font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(var(--ink), 0.07); color: var(--text-2); }
.aa-chip.lock { color: var(--accent); background: rgba(255,138,61,.12); }
.aa-chip.lock svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.aa-chip.ok { color: var(--sel); background: rgba(126,212,154,.12); }
.aa-url { display: flex; align-items: center; gap: 6px; min-width: 0; }
.aa-url code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .78rem var(--mono); color: var(--text-2);
  padding: 7px 10px; border-radius: 9px; background: rgba(var(--ink), 0.05); }
.aa-url .icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
@media (max-width: 560px) { .aa-row { grid-template-columns: 28px minmax(0, 1fr); row-gap: 3px; } .aa-when { grid-column: 2; } }

/* Herzen in Kunden-Auswahl nur ansehen (Einstellungen → Funktionen) */
#grid[data-hearts-locked] .tile:not(.liked) .heart { display: none; }
#grid[data-hearts-locked] .tile .heart { cursor: default; }
#grid[data-hearts-locked] .tile .heart:hover { transform: none; }
html.vt-quick::view-transition-old(root) { animation: vt-out .2s ease both; }
html.vt-quick::view-transition-new(root) { animation: vt-in .2s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Einstellungen → Funktionen */
.fn-list { display: flex; flex-direction: column; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: center; padding: 16px 18px; margin: 0; }
.fn-row + .fn-row { border-top: 1px solid var(--line); }
.fn-row-col { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fn-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fn-txt b { font-size: .95rem; }
.fn-txt small { font-size: .8rem; line-height: 1.45; }
.fn-ctl { display: flex; align-items: center; gap: 12px; }
.fn-ctl input { flex: 1; min-width: 0; }
.fn-val { font: 600 .82rem var(--mono); color: var(--accent); min-width: 48px; text-align: right; }
.fn-seg { flex-wrap: wrap; align-self: start; }
.fn-panel .hk-foot { margin-top: 16px; }
.fn-seg button { white-space: nowrap; }
.switch-row { grid-template-columns: minmax(0, 1fr) auto; cursor: pointer; }
.switch-row .switch { margin: 0; }
@media (max-width: 640px) { .fn-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; } .switch-row { grid-template-columns: minmax(0, 1fr) auto; } .fn-seg button { flex: 1 1 100%; } }

/* Leiste oben: Papierkorb (rechts neben Hell/Dunkel) */
.icon-round.trash-top { color: #ff6b5e; border-color: rgba(255,107,94,.35); }
.icon-round.trash-top svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-round.trash-top:hover { color: #fff; background: #e5483b; border-color: #e5483b; }
.trash-top .trash-count { background: #e5483b; color: #fff; }
.topbar .ui-quick { margin: 0; }
/* Profil-Menü: Sprache */
.me-menu-lang { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; row-gap: 8px; align-items: center; padding: 10px 10px 6px; color: var(--text); }
.me-menu-lang > svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; }
.me-menu-lang .me-lang { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.me-menu-lang .me-lang button { padding: 7px 10px; font-size: .84rem; }
.scan-form { margin: 0; }
.scan-form .btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.scan-hint { margin: -4px 0 14px; }

/* Markieren-Modus: Ordnerleiste oben (selfolders.js) */
.sel-folders { position: fixed; z-index: 120; top: calc(var(--topbar) + 10px + env(safe-area-inset-top)); left: 50%; max-width: min(1100px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px;
  background: rgba(var(--dkr-14-15-17), 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-hi); box-shadow: 0 16px 44px rgba(0,0,0,.4);
  transform: translate(-50%, -16px); opacity: 0; transition: transform .28s cubic-bezier(.2,1.2,.4,1), opacity .2s; }
.sel-folders.on { transform: translate(-50%, 0); opacity: 1; }
.sel-folders[hidden] { display: none; }
.sf-lbl { flex: none; font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.sf-lbl b { font: 700 .82rem var(--mono); color: var(--accent); }
.sel-folders.empty .sf-lbl b { color: var(--muted); }
.sf-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; min-width: 0; padding: 2px; }
.sf-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 12px; max-width: 220px;
  background: rgba(var(--ink), 0.05); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: 600 .84rem var(--sans);
  transition: border-color .15s, background .15s, transform .15s; }
.sf-chip img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.sf-chip > svg { width: 32px; height: 32px; padding: 7px; border-radius: 8px; flex: none; fill: var(--accent); background: rgba(255,138,61,.1); }
.sf-chip.up > svg { fill: none; stroke: var(--text-2); stroke-width: 2; background: rgba(var(--ink), 0.06); }
.sf-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-chip small { font: 600 .68rem var(--mono); color: var(--muted); }
.sf-chip:hover, .sf-chip.drop-hover { border-color: var(--accent); background: rgba(255,138,61,.12); }
.sf-chip.drop-hover { transform: scale(1.06); }
.sf-chip.busy { opacity: .6; pointer-events: none; }
.sf-chip.hit { animation: lp-pop .5s cubic-bezier(.2,1.5,.4,1); border-color: var(--sel); }
@media (max-width: 640px) { .sel-folders { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; left: 12px; right: 12px; max-width: none; transform: translateY(-16px); }
  .sel-folders.on { transform: none; } .sf-lbl { padding-left: 4px; } }

/* Upload im Hintergrund: andere Seite darüber (bgupload.js) */
.bg-frame { position: fixed; inset: 0; z-index: 400; background: var(--bg); opacity: 0; transition: opacity .18s ease; }
.bg-frame.on { opacity: 1; }
.bg-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
html.bg-framed body { overflow: hidden; }

/* Anzeige in der Ecke */
.bgup { position: fixed; z-index: 410; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: 12px; row-gap: 8px; width: 250px; padding: 10px 14px 12px 10px; border-radius: 18px; text-align: left; cursor: pointer;
  background: rgba(var(--dkr-14-15-17), 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.45); color: var(--text); font: inherit;
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,1.2,.4,1), opacity .25s, border-color .2s; }
.bgup.right { right: 18px; } .bgup.left { left: 18px; }
.bgup.on { transform: none; opacity: 1; pointer-events: auto; }
.bgup:hover { border-color: rgba(255,138,61,.6); }
.bgup-stage { position: relative; width: 52px; height: 44px; grid-row: span 2; }
.bgup-folder { position: absolute; left: 6px; bottom: 0; width: 40px; height: 34px; }
.bgup-folder svg { width: 100%; height: 100%; fill: var(--accent); filter: drop-shadow(0 4px 10px rgba(255,138,61,.35)); }
.bgup-lid { position: absolute; left: 4px; right: 4px; top: 9px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.28); transform-origin: 50% 100%; }
.bgup-folder.gulp { animation: bgup-gulp .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes bgup-gulp { 40% { transform: scale(1.12, .92); } }
.bgup-pic { position: absolute; left: 14px; top: -28px; width: 24px; height: 18px; border-radius: 3px; background: #888 center / cover no-repeat;
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); z-index: 1;
  animation: bgup-fly .85s cubic-bezier(.45,.05,.55,1) forwards; }
.bgup-pic.raw { background: linear-gradient(135deg, #3a3d44, #24262b); font: 700 6px/14px var(--mono); color: #fff; text-align: center; letter-spacing: .04em; }
@keyframes bgup-fly {
  0% { transform: translate(calc(var(--sx) - 40px), -14px) rotate(calc(var(--r) * -2)) scale(.7); opacity: 0; }
  25% { opacity: 1; }
  60% { transform: translate(calc(var(--sx) * .3), 4px) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(0, 34px) rotate(0) scale(.5); opacity: 0; }
}
.bgup-txt { display: flex; flex-direction: column; min-width: 0; }
.bgup-n { font: 700 .92rem var(--mono); }
.bgup-where { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgup-track { height: 4px; border-radius: 99px; background: rgba(var(--ink), 0.1); overflow: hidden; align-self: end; }
.bgup-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.bgup.done .bgup-fill { background: var(--sel); } .bgup.failed .bgup-fill { background: #ff5d5d; }
.bgup.done .bgup-folder svg { fill: var(--sel); filter: none; }
/* schlichte Variante: nur Text + Balken */
.bgup-bar { grid-template-columns: minmax(0, 1fr); width: 230px; padding: 12px 14px; }
.bgup-bar .bgup-stage { display: none; }
@media (max-width: 520px) { .bgup { left: 12px !important; right: 12px !important; width: auto; } }
@media (prefers-reduced-motion: reduce) { .bgup-pic { display: none; } }
.fn-two { display: flex; flex-wrap: wrap; gap: 10px; }
.fn-two .fn-seg { flex: 1 1 280px; }

/* ===== Team-Chat (chat.js) ===== */
.chat-btn.has-new svg { color: var(--accent); }
.chat-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-panel { position: fixed; z-index: 300; top: calc(var(--topbar) + 8px); right: 12px; bottom: 12px; width: min(400px, calc(100vw - 24px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--dk-17181b); border: 1px solid var(--line-hi); box-shadow: 0 24px 70px rgba(0,0,0,.5);
  transform: translateX(calc(100% + 24px)); transition: transform .32s cubic-bezier(.2,1,.3,1); }
.chat-panel.on { transform: none; }
.chat-panel[hidden] { display: none; }
.ch-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ch-head .icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.ch-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-title b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-title small { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ch-list { display: flex; flex-direction: column; padding: 6px; }
.ch-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 12px;
  background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ch-row:hover { background: rgba(var(--ink), 0.05); }
.ch-row-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ch-row-t b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row-t small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row.unread .ch-row-t small { color: var(--text-2); font-weight: 600; }
.ch-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ch-row-r small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.ch-unread { font: 700 10px/18px var(--mono); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #1a1208; text-align: center; font-style: normal; }
.ch-tag { font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; padding: 2px 6px; border-radius: 99px;
  background: rgba(255,138,61,.14); color: var(--accent); vertical-align: 2px; }
.ch-tag.soft { background: rgba(var(--ink), 0.07); color: var(--muted); }
.ch-av { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--sans);
  background: linear-gradient(135deg, rgba(255,138,61,.4), rgba(255,138,61,.1)); color: var(--text); }
.ch-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-av.team { background: rgba(106,169,255,.16); color: var(--del); }
.ch-av.team svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ch-on { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 2.5px var(--dk-17181b); }
.ch-empty { padding: 28px 18px; text-align: center; font-size: .88rem; }
.ch-msgs { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 8px; }
.ch-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; margin-top: 8px; }
.ch-msg.cont { margin-top: 1px; }
.ch-msg.mine { align-self: flex-end; align-items: flex-end; }
.ch-who { font-size: .72rem; color: var(--muted); margin: 0 0 3px 10px; }
.ch-bubble { padding: 8px 12px; border-radius: 16px; background: rgba(var(--ink), 0.07); font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.ch-msg.mine .ch-bubble { background: rgba(255,138,61,.16); border-bottom-right-radius: 6px; }
.ch-msg:not(.mine) .ch-bubble { border-bottom-left-radius: 6px; }
.ch-bubble p { margin: 0; }
.ch-bubble a { color: var(--accent); }
.ch-at { color: var(--accent); font-weight: 700; }
.ch-meta { display: flex; align-items: center; gap: 6px; font-size: .66rem; color: var(--muted); margin: 3px 8px 0; opacity: 0; transition: opacity .15s; }
.ch-msg:hover .ch-meta, .ch-msg:last-child .ch-meta { opacity: 1; }
.ch-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 0 2px; }
.ch-del:hover { color: #ff6b5e; }
.ch-pics { display: grid; gap: 3px; border-radius: 12px; overflow: hidden; width: 240px; max-width: 100%; }
.ch-pics.n2, .ch-pics.n4 { grid-template-columns: 1fr 1fr; } .ch-pics.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.ch-pics.n3 .ch-pic:first-child { grid-row: span 2; }
.ch-pic { position: relative; border: 0; padding: 0; background: #222; cursor: zoom-in; aspect-ratio: 1; min-height: 0; }
.ch-pics.n1 .ch-pic { aspect-ratio: auto; }
.ch-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-pics.n1 .ch-pic img { max-height: 260px; object-fit: contain; background: #111; }
.ch-pic b { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font: 700 1.1rem var(--mono); }
.ch-folder a, .ch-folder > span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink), 0.06); color: var(--text); text-decoration: none; }
.ch-folder svg { width: 28px; height: 28px; fill: var(--accent); flex: none; }
.ch-folder a > span, .ch-folder > span > span { display: flex; flex-direction: column; min-width: 0; } .ch-folder small { color: var(--muted); font-size: .74rem; }
.ch-folder a:hover { background: rgba(255,138,61,.12); }
.ch-compose { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ch-compose[hidden] { display: none; }
.ch-compose textarea, .ct-box textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-hi);
  background: rgba(var(--ink), 0.04); color: var(--text); font: 400 .9rem/1.35 var(--sans); }
.ch-compose textarea:focus, .ct-box textarea:focus { outline: none; border-color: var(--accent); }
.ch-compose textarea, .ct-box textarea { box-sizing: border-box; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(var(--ink), .25) transparent; }
.ch-compose textarea.at-max, .ct-box textarea.at-max { overflow-y: auto; }
.ch-compose textarea::-webkit-scrollbar, .ct-box textarea::-webkit-scrollbar { width: 6px; }
.ch-compose textarea::-webkit-scrollbar-thumb, .ct-box textarea::-webkit-scrollbar-thumb { background: rgba(var(--ink), .25); border-radius: 6px; }
.ch-compose textarea::-webkit-scrollbar-track, .ct-box textarea::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.ch-send { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: #1a0e05; display: grid; place-items: center; cursor: pointer; }
.ch-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ch-mention { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); display: flex; flex-direction: column; padding: 4px; border-radius: 12px;
  background: var(--dk-1d1e22); border: 1px solid var(--line-hi); box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 2; }
.ct-box .ch-mention { position: static; margin-bottom: 6px; }
.ch-mention[hidden] { display: none; }
.ch-mention button { text-align: left; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 600 .86rem var(--sans); cursor: pointer; }
.ch-mention button.act, .ch-mention button:hover { background: rgba(255,138,61,.14); color: var(--accent); }
.ch-viewer { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.ch-viewer img { max-width: 94vw; max-height: 86dvh; object-fit: contain; border-radius: 6px; }
.ch-v-x { position: absolute; top: 16px; right: 16px; color: #fff; }
.ch-v-x svg, .ch-v-nav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.ch-v-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ch-v-nav svg { width: 22px; height: 22px; } .ch-v-nav.prev { left: 20px; } .ch-v-nav.next { right: 20px; }
.ch-v-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font: 500 .82rem var(--mono); }
.ct-dlg { width: min(460px, calc(100vw - 32px)); padding: 22px; }
.ct-box { display: flex; flex-direction: column; gap: 12px; }
.ct-box .dialog-title { margin: 0; }
.ct-box .ct-what { margin: -6px 0 0; }
.ct-targets { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 14px; }
.ct-t { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left; margin: 0; }
.ct-t input { position: absolute; opacity: 0; pointer-events: none; }
.ct-t span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ct-t small { font-size: .75rem; color: var(--muted); }
.ct-t:hover { background: rgba(var(--ink), 0.05); }
.ct-t:has(input:checked) { background: rgba(255,138,61,.13); box-shadow: inset 0 0 0 1px rgba(255,138,61,.45); }
.ct-box .dialog-actions .btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.lb-team svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
#select-chat svg, #chat-folder svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.tm-av { position: relative; }
.tm-av .ch-on { right: -2px; bottom: -2px; box-shadow: 0 0 0 2.5px var(--dk-17181b); }
.acc-online { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #3ecf6e; font-weight: 600; }
.acc-online i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 3px rgba(62,207,110,.2); }
@media (max-width: 640px) { .chat-panel { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; z-index: 320; } }
.ct-t b { color: var(--text); }

/* ===== Ringe (Vorschau wird verbessert, Unterordner-Symbol): CSS statt SVG – immer exakt mittig ===== */
@property --rp { syntax: "<number>"; inherits: true; initial-value: 0; }
.hq-dot svg, .tile .hq-dot svg { display: none !important; }
.hq-dot { --rp: 0; --ring: var(--accent); }
.hq-dot::before { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--rp) * 1turn), rgba(var(--ink), 0.28) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.4px));
  transition: --rp .5s ease; }
.tile[data-hq="busy"] .hq-dot { --rp: .3; }
.tile[data-hq="busy"] .hq-dot::before { animation: hq-spin2 .9s linear infinite; }
.tile[data-hq="done"] .hq-dot { --rp: 1; --ring: var(--ok); }
@keyframes hq-spin2 { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tile[data-hq="busy"] .hq-dot::before { animation: none; } }
.sub-ind .si-ring { display: none !important; }
.sub-ind { --rp: 0; }
.sub-ind::after { content: ""; position: absolute; inset: -4px; border-radius: 99px; pointer-events: none; opacity: 0;
  padding: 2.5px; background: conic-gradient(from 0deg, var(--accent) calc(var(--rp) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.sub-ind.arming::after { opacity: 1; animation: si-fill2 var(--arm, 1.5s) linear forwards; }
@keyframes si-fill2 { from { --rp: 0; } to { --rp: 1; } }

/* E) Werkzeugleiste über den Bildern: gleiche Farbe wie die Seite (auch im hellen Design) */
/* (ohne backdrop-filter: das würde fest positionierte Menüs darin verschieben) */
.gallery-toolbar { background: color-mix(in srgb, var(--bg) 95%, transparent); }

/* F) Team: grüner Punkt nicht abschneiden */
.tm-av { overflow: visible; }
.tm-av img { border-radius: 50%; }

/* K) Suche in den Einstellungen: kein Kasten im Kasten */
.set-side .set-search input, .set-side .set-search input:focus, .set-side .set-search input:hover {
  border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important;
  height: 100%; padding: 0 !important; margin: 0 !important; -webkit-appearance: none; appearance: none; }
.set-side .set-search input::-webkit-search-decoration, .set-side .set-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* H) Fliegende Abzüge nicht über einer anderen Seite (Upload im Hintergrund) */
html.bg-framed .up-print { display: none; }
.ch-on.away { background: var(--dk-17181b); box-shadow: inset 0 0 0 2.5px #3ecf6e, 0 0 0 2.5px var(--dk-17181b); }
.ch-msg.gone .ch-bubble { animation: ch-gone .5s ease; } @keyframes ch-gone { from { opacity: .3; transform: scale(.96); } }
.set-groups a > span { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }

/* Ordner-Kacheln: freigegeben für … / angelegt von … (nur mit Team) */
.badge-shared { display: inline-flex; align-items: center; gap: 6px; padding-left: 3px; background: rgba(106,169,255,.16); color: #9cc4ff;
  border: 1px solid rgba(106,169,255,.35); backdrop-filter: blur(8px); }
.bs-avs { display: inline-flex; }
.bs-avs i, .meta .by i { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; flex: none;
  font: 700 9px var(--sans); font-style: normal; color: #fff; background: linear-gradient(135deg, #6aa9ff, #3b6fd1); box-shadow: 0 0 0 1.5px rgba(14,15,17,.8); }
.bs-avs i + i { margin-left: -6px; }
.bs-avs img, .meta .by img { width: 100%; height: 100%; object-fit: cover; }
.meta .by { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 600; }
.meta .by i { width: 16px; height: 16px; background: linear-gradient(135deg, rgba(255,138,61,.8), rgba(255,138,61,.4)); box-shadow: none; }

/* Papierkorb oben: Ordner/Bilder hineinziehen – beim Annähern größer, Deckel geht auf */
.trash-top .tt-ico { width: 19px; height: 19px; overflow: visible; }
.trash-top .tt-lid { transform-origin: 4.5px 6.5px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.trash-top { transition: transform .18s ease-out, color .15s, border-color .15s, background .15s, box-shadow .2s; }
body.dragging-items .trash-top.bin-near { transform: scale(calc(1 + var(--near, 0) * .45)); z-index: 5; box-shadow: 0 0 0 calc(var(--near, 0) * 6px) rgba(229,72,59,.18); }
.trash-top.bin-open .tt-lid, .trash-top.drop-hover .tt-lid { transform: translateY(-2px) rotate(-32deg); }
.trash-top.drop-hover { color: #fff; background: #e5483b; border-color: #e5483b; }
.trash-top.bin-eat { animation: bin-eat .5s cubic-bezier(.2,1.6,.4,1); }
.trash-top.bin-eat .tt-lid { animation: bin-lid .5s ease; }
@keyframes bin-eat { 30% { transform: scale(1.35, 1.15); } 60% { transform: scale(.92, 1.05); } }
@keyframes bin-lid { 0% { transform: translateY(-2px) rotate(-32deg); } 60% { transform: rotate(6deg); } 100% { transform: none; } }
/* Ordnerleiste: Pfad + Unterordner in einer Leiste (auch beim Ziehen – kein zweiter Balken) */
.sel-folders .sf-lbl { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.sf-hint { display: none; font: 600 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
body.dragging-items .sf-hint { display: block; }
.sf-path { display: flex; align-items: center; gap: 4px; flex: none; min-width: 0; }
.sf-sep { font-style: normal; color: var(--muted); font-size: .8rem; }
.sf-crumb { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 10px; font: 600 .8rem var(--sans);
  color: var(--text-2); text-decoration: none; border: 1px solid transparent; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.sf-crumb svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.sf-crumb.here { color: var(--text); background: rgba(var(--ink), 0.06); }
.sf-crumb.here svg { fill: var(--accent); stroke: none; }
a.sf-crumb:hover, a.sf-crumb.drop-hover { border-color: var(--accent); background: rgba(255,138,61,.12); color: var(--text); }
.sf-div { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line-hi); flex: none; }
@media (max-width: 640px) { .sf-path { overflow-x: auto; } .sf-div { display: none; } }
/* Shift halten: Vorschau, welche Bilder ein Klick markiert */
#grid.ranging .tile:not(.range-preview):not(.selected) { opacity: .55; transition: opacity .15s; }
#grid .tile.range-preview { box-shadow: 0 0 0 3px rgba(255,138,61,.75); border-radius: var(--tile-r, 10px); }
#grid .tile.range-preview::after { content: ""; position: absolute; inset: 0; background: rgba(255,138,61,.14); pointer-events: none; z-index: 2; border-radius: inherit; }
#grid .tile.range-end { box-shadow: 0 0 0 3px var(--accent), 0 8px 30px rgba(255,138,61,.35); }

/* Markierungen fürs Team im Chat */
.ch-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ch-marks polyline, .ch-marks ellipse, .ch-marks rect { fill: none; stroke: #ff8a3d; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); vector-effect: non-scaling-stroke; }
.ch-marks polyline, .ch-marks ellipse, .ch-marks rect { stroke-width: 3; }
.ch-pics.marked .ch-pic { position: relative; width: 100%; max-height: none; }
.ch-pics.marked .ch-pic img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.ch-mk-tag { position: absolute; left: 6px; bottom: 6px; font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  padding: 2px 7px; border-radius: 99px; background: rgba(255,138,61,.9); color: #1a0e05; }
.ch-v-stage { position: relative; max-width: 94vw; max-height: 86dvh; display: grid; }
.ch-v-stage[data-ar] { width: min(94vw, calc(86dvh * var(--ar, 1.5))); }
.ch-v-stage img { max-width: 94vw; max-height: 86dvh; width: 100%; height: 100%; object-fit: contain; }
.ch-v-stage .ch-marks polyline, .ch-v-stage .ch-marks ellipse, .ch-v-stage .ch-marks rect { stroke-width: 4; }
.ct-draw { display: flex; flex-direction: column; gap: 8px; }
.ct-canvas { position: relative; width: min(100%, calc(46dvh * var(--ar, 1.5))); border-radius: 12px; overflow: hidden; background: #111; touch-action: none; margin: 0 auto; }
.ct-canvas img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.ct-svg { pointer-events: auto !important; cursor: crosshair; touch-action: none; }
.ct-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ct-tools button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(var(--ink), 0.04); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.ct-tools button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-tools button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(255,138,61,.12); }
.ct-sep { width: 1px; height: 22px; background: var(--line-hi); margin: 0 4px; }
.ct-hint { margin-left: 6px; font-size: .74rem; flex: 1; min-width: 160px; }
.ct-dlg:has(.ct-draw) { width: min(620px, calc(100vw - 32px)); }
.ct-dlg:has(.ct-draw) .ct-targets { max-height: 160px; }
.ch-pics.marked { width: auto; }
.ch-pics.marked .ch-pic { width: min(240px, calc(280px * var(--ar, 1.5))); }
.ct-dlg[open] { max-height: calc(100dvh - 32px); overflow-y: auto; }
/* 1.16.1: Zähler „+N“ beim Hineinfliegen in die Ordnerleiste – als kleines Schild an der Ecke */
.sf-chip, a.sf-crumb { position: relative; }
.sel-folders .drop-count { left: 20px; top: 50%; min-width: 0; padding: 2px 8px; font-size: 12px; box-shadow: 0 6px 16px rgba(255,138,61,.4); }
.grid.flip-now > .tile, .grid.flip-now .tile { transition: none !important; }
/* 1.16.2: offline = grauer Punkt */
.ch-on.off { background: #7d828b; }
/* 1.16.2: Logo eines Unternehmens (das es selbst hochgeladen hat) statt Anfangsbuchstabe */
.acc-av.has-logo { background: #fff; padding: 5px; }
.acc-av.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }

/* ---------- 1.17: Chat fertig – Suche, gelesen, tippt, Reaktionen, Emojis ---------- */
.ch-search { display: flex; align-items: center; gap: 8px; margin: 10px 12px 2px; padding: 0 12px; height: 38px; border-radius: 12px;
  background: rgba(var(--ink), 0.05); border: 1px solid var(--line); cursor: text; }
.ch-search[hidden] { display: none; }
.ch-search:focus-within { border-color: var(--accent); }
.ch-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.ch-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: 400 .88rem var(--sans); outline: none; padding: 0; }
.ch-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.ch-hits { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.ch-hits[hidden] { display: none; }
.ch-hits-h { margin: 12px 10px 4px; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ch-hits-h small { margin-left: 4px; font: inherit; color: var(--accent); }
.ch-hit { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ch-hit:hover { background: rgba(var(--ink), 0.05); }
.ch-hit-top { display: flex; justify-content: space-between; gap: 10px; }
.ch-hit-top b { font-size: .84rem; } .ch-hit-top small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.ch-hit-t { font-size: .8rem; color: var(--text-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-hit-t em { font-style: normal; color: var(--muted); }
.ch-hit mark { background: rgba(255,138,61,.28); color: var(--text); border-radius: 3px; padding: 0 1px; }
.ch-list .ch-row[hidden] { display: none; }

/* Zeile: Blase + Reagieren-Knopf daneben */
.ch-line { position: relative; display: flex; align-items: center; gap: 4px; max-width: 100%; }
.ch-msg.mine .ch-line { flex-direction: row-reverse; }
.ch-react { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.ch-react svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ch-msg:hover .ch-react, .ch-react:focus-visible { opacity: 1; }
.ch-react:hover { background: rgba(var(--ink), 0.08); color: var(--text); }
@media (hover: none) { .ch-react { opacity: .55; } }
.ch-quick { position: absolute; bottom: calc(100% + 4px); z-index: 3; display: flex; gap: 2px; padding: 4px; border-radius: 99px;
  background: var(--dk-17181b); border: 1px solid var(--line-hi); box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: ch-pop .16s ease-out; }
.ch-msg:not(.mine) .ch-quick { left: 0; } .ch-msg.mine .ch-quick { right: 0; }
.ch-quick button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; transition: transform .12s, background .12s; }
.ch-quick button:hover { background: rgba(var(--ink), 0.08); transform: scale(1.18); }
.ch-quick-more { color: var(--muted); font: 600 1.1rem var(--sans) !important; }
@keyframes ch-pop { from { opacity: 0; transform: translateY(4px) scale(.96); } }
.ch-rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ch-rx[hidden], .ch-rx:empty { display: none; }
.ch-rx-b { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line-hi);
  background: rgba(var(--ink), 0.04); color: var(--text); cursor: pointer; font: 400 .9rem var(--sans); }
.ch-rx-b small { font: 600 11px var(--mono); color: var(--text-2); }
.ch-rx-b.mine { border-color: rgba(255,138,61,.6); background: rgba(255,138,61,.14); }
.ch-rx-b:hover { border-color: var(--accent); }
.ch-bubble.big { background: none !important; padding: 0 2px; font-size: 2.3rem; line-height: 1.15; }

/* Gesendet / gelesen */
.ch-tick { display: inline-grid; color: var(--muted); }
.ch-tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-msg.read .ch-tick, .ch-msg.read-some .ch-tick { color: var(--accent); }
.ch-msg.read-some .ch-tick { opacity: .6; }
.ch-msg:has(+ .ch-seen) .ch-meta, .ch-msg:nth-last-child(2):has(+ .ch-seen) .ch-meta { opacity: 1; }
.ch-seen { align-self: flex-end; display: flex; align-items: center; gap: 6px; margin: 4px 8px 0; font-size: .68rem; color: var(--muted); animation: ch-pop .2s ease-out; }
.ch-seen-av { display: flex; }
.ch-seen-av img, .ch-seen-av i { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--dk-17181b);
  display: grid; place-items: center; font: 700 8px var(--sans); font-style: normal; background: rgba(255,138,61,.35); color: var(--text); }
.ch-seen-av > :first-child { margin-left: 0; }

/* tippt gerade … */
.ch-typing { display: flex; align-items: center; gap: 8px; padding: 2px 16px 10px; font-size: .74rem; color: var(--muted); }
.ch-typing[hidden] { display: none; }
.ch-dots { display: inline-flex; gap: 3px; padding: 8px 10px; border-radius: 14px; border-bottom-left-radius: 5px; background: rgba(var(--ink), 0.07); }
.ch-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ch-dot 1.2s infinite ease-in-out; }
.ch-dots i:nth-child(2) { animation-delay: .15s; } .ch-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* aus der Suche angesprungen */
.ch-msg.hit .ch-bubble { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .4s; }
.ch-down { position: absolute; right: 16px; bottom: 78px; z-index: 2; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px;
  border: 1px solid var(--line-hi); background: var(--dk-17181b); color: var(--text); font: 600 .78rem var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ch-down[hidden] { display: none; }
.ch-down svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ch-down.pulse { border-color: var(--accent); color: var(--accent); }

/* Emoji-Knopf + Auswahl */
.ch-emo-btn { width: 40px; height: 40px; flex: none; color: var(--muted); }
.ch-emo-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ch-emo-btn:hover, .ch-emo-btn[aria-expanded="true"] { color: var(--accent); }
.emo-pop { position: absolute; left: 10px; right: 10px; bottom: 70px; z-index: 4; height: min(340px, 52%); display: flex; flex-direction: column;
  border-radius: 16px; background: var(--dk-17181b); border: 1px solid var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.45); overflow: hidden; animation: ch-pop .16s ease-out; }
.emo-pop[hidden] { display: none; }
.emo-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px; }
.emo-q { flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: rgba(var(--ink), 0.05); border: 1px solid var(--line); }
.emo-q:focus-within { border-color: var(--accent); }
.emo-q svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.emo-q input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: 400 .85rem var(--sans); padding: 0; }
.emo-tabs { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.emo-tabs button { flex: 1 0 auto; min-width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 1.05rem; cursor: pointer; filter: grayscale(.6); opacity: .8; }
.emo-tabs button:hover { background: rgba(var(--ink), 0.07); filter: none; opacity: 1; }
.emo-grid { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 10px; overscroll-behavior: contain; }
.emo-grid h4 { margin: 10px 4px 4px; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.emo-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.emo-set button { height: 38px; border: 0; border-radius: 9px; background: none; font-size: 1.45rem; line-height: 1; cursor: pointer; transition: transform .1s, background .1s; }
.emo-set button:hover { background: rgba(var(--ink), 0.08); transform: scale(1.15); }
.emo-none, .emo-load { padding: 24px; text-align: center; }

/* Einstellungen → Funktionen → Töne */
.fn-sound-opts { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.fn-sw { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-size: .88rem; }
.fn-sw > span:first-child { flex: 1; }
.fn-try { width: 32px; height: 32px; }
.fn-try svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 640px) { .fn-sound-opts { min-width: 0; width: 100%; } }

/* 1.17: Zwei-Faktor-Code in 6 Feldern, prüft sofort */
.tfa-code.otp-src { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; padding: 0 !important; border: 0 !important; }
.otp { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.otp-boxes { display: flex; gap: 8px; justify-content: center; }
.otp-boxes[hidden] { display: none; }
.otp .otp-d { width: 48px; min-width: 0; min-height: 0; height: 58px; padding: 0 !important; background: rgba(0,0,0,.25); border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(var(--ink), 0.04);
  color: var(--text); text-align: center; font: 600 1.55rem/1 var(--mono); caret-color: var(--accent); transition: border-color .15s, box-shadow .15s, transform .15s; }
.otp-d:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.22); }
.otp-boxes .otp-d:nth-child(3) { margin-right: 10px; }
.otp.full .otp-d { border-color: rgba(255,138,61,.55); }
.otp.checking .otp-d { animation: otp-wave .9s ease-in-out infinite; }
.otp.checking .otp-d:nth-child(2) { animation-delay: .06s; } .otp.checking .otp-d:nth-child(3) { animation-delay: .12s; }
.otp.checking .otp-d:nth-child(4) { animation-delay: .18s; } .otp.checking .otp-d:nth-child(5) { animation-delay: .24s; } .otp.checking .otp-d:nth-child(6) { animation-delay: .3s; }
@keyframes otp-wave { 50% { transform: translateY(-3px); } }
.otp.shake .otp-boxes { animation: otp-shake .42s ease; }
.otp.shake .otp-d { border-color: #ff6b5e; }
@keyframes otp-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.otp-alt { border: 0; background: none; padding: 2px; color: var(--muted); font: 500 .8rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.otp-alt:hover { color: var(--accent); }
.tfa-code:not(.otp-src) + .otp { margin-top: 10px; }
@media (max-width: 420px) { .otp .otp-d { width: 40px; height: 52px; font-size: 1.35rem; } .otp-boxes { gap: 6px; } .otp-boxes .otp-d:nth-child(3) { margin-right: 6px; } }
.otp .otp-alt { align-self: center; }

/* Suchfelder im Chat/Emoji: nicht wie Formular-Labels stapeln */
.chat-panel label.ch-search, .emo-pop label.emo-q { flex-direction: row; gap: 8px; font-size: inherit; color: inherit; }
.ch-search input[type="search"], .emo-q input[type="search"] { -webkit-appearance: none; appearance: none; border: 0; background: none; box-shadow: none; min-height: 0; height: 100%; padding: 0; }
.ch-search input[type="search"], .emo-q input[type="search"] { background: none !important; }  /* sonst färbt das helle Design das Feld weiß */
.ch-search input[type="search"]:focus, .emo-q input[type="search"]:focus { box-shadow: none; }
/* 1.17.1: Glocke – lange Ordnerpfade kürzen statt die Zeit hinauszuschieben */
.inbox-item.rich, .bell-pop .inbox-item.rich { grid-template-columns: 72px minmax(0, 1fr) auto; }
.inbox-item { grid-template-columns: 34px minmax(0, 1fr) auto; }
.inbox-item > * { min-width: 0; }
.inbox-list { overflow-x: hidden; }
/* 1.17.1: Töne in Einstellungen → Benachrichtigungen */
.snd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) 36px; align-items: center; gap: 10px; margin-top: 10px; }
.snd-label { font-size: .88rem; color: var(--text); }
.snd-pick { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-hi); background: rgba(0,0,0,.25); color: var(--text); font: 500 .85rem var(--sans); }
.snd-try { width: 36px; height: 36px; }
.snd-try svg { width: 14px; height: 14px; fill: currentColor; }
/* 1.18: Upload-Anzeige größer, Landen sanfter */
.bgup { width: 300px; padding: 12px 16px 14px 12px; column-gap: 14px; }
.bgup-stage { width: 72px; height: 60px; }
.bgup-folder { left: 6px; width: 58px; height: 48px; }
.bgup-lid { top: 13px; height: 10px; }
.bgup-pic { left: 20px; top: -34px; width: 32px; height: 24px; animation: bgup-fly 1.2s cubic-bezier(.33,.0,.25,1) forwards; }
@keyframes bgup-fly {
  0% { transform: translate(calc(var(--sx) - 36px), -16px) rotate(calc(var(--r) * -1.5)) scale(.75); opacity: 0; }
  20% { opacity: 1; }
  62% { transform: translate(calc(var(--sx) * .3), 6px) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(0, 46px) rotate(0) scale(.55); opacity: 0; }
}
.bgup-folder.gulp { animation: bgup-gulp .6s cubic-bezier(.3,.7,.3,1); }
@keyframes bgup-gulp { 35% { transform: scale(1.05, .96); } 70% { transform: scale(.99, 1.01); } }
.bgup-n { font-size: 1rem; }
.bgup-where { font-size: .78rem; }
/* 1.18: Ordnerleiste beim Darüberziehen – lesbar, gleiche Rundung, keine zweite Kontur */
.sel-folders .sf-chip.drop-hover, .sel-folders a.sf-crumb.drop-hover {
  outline: none; border-radius: 12px; color: var(--text); border-color: var(--accent); background: rgba(255,138,61,.16);
  box-shadow: 0 0 0 3px rgba(255,138,61,.18), 0 10px 24px rgba(0,0,0,.3); transform: scale(1.04); }
.sel-folders .sf-chip.drop-hover > svg { background: var(--accent); fill: #1a0e05; }
.sel-folders .sf-chip.drop-hover small { color: var(--text-2); }

/* ---------- 1.19: Zwischenablage (clip.js) ---------- */
.clipdock { position: fixed; z-index: 405; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px; border-radius: 18px; cursor: pointer; max-width: min(340px, calc(100vw - 36px));
  background: rgba(var(--dkr-14-15-17), 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.45); color: var(--text);
  opacity: 0; transform: translateY(20px) scale(.96); transition: opacity .3s, transform .4s cubic-bezier(.2,1.2,.4,1), bottom .35s ease; }
.clipdock[hidden] { display: none; }
.clipdock.on { opacity: 1; transform: none; animation: cd-float 4.2s ease-in-out infinite .4s; }
body.clip-lift .clipdock { bottom: calc(118px + env(safe-area-inset-bottom)); }
@keyframes cd-float { 0%, 100% { transform: translateY(0); box-shadow: 0 18px 50px rgba(0,0,0,.45); } 50% { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0,0,0,.38); } }
.clipdock:hover { border-color: rgba(255,138,61,.6); }
/* 1–3 Bilder: kleine Kacheln, leicht gefächert */
.cd-pics { position: relative; width: 74px; height: 58px; flex: none; }
.cd-pic { position: absolute; top: 4px; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: var(--dk-2a2b30);
  border: 2px solid var(--lt-f4f1ea, #f4f1ea); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.cd-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-pics.n1 .cd-pic { left: 14px; }
.cd-pics.n2 .cd-pic:nth-child(1) { left: 4px; transform: rotate(-7deg); } .cd-pics.n2 .cd-pic:nth-child(2) { left: 24px; transform: rotate(5deg); }
.cd-pics.n3 .cd-pic:nth-child(1) { left: 0; transform: rotate(-10deg); } .cd-pics.n3 .cd-pic:nth-child(2) { left: 14px; transform: rotate(-1deg); z-index: 1; }
.cd-pics.n3 .cd-pic:nth-child(3) { left: 28px; transform: rotate(8deg); z-index: 2; }
/* mehr als 3: vollgepackter Ordner */
.cd-folder { position: relative; width: 70px; height: 58px; flex: none; }
.cd-folder svg { position: absolute; left: 3px; width: 64px; height: 52px; bottom: 0; }
.cd-back { fill: #c96a26; } .cd-front { fill: var(--accent); filter: drop-shadow(0 -2px 4px rgba(0,0,0,.25)); z-index: 2; }
.cd-peek { position: absolute; left: 10px; right: 10px; bottom: 16px; height: 36px; z-index: 1; }
.cd-peek i { position: absolute; bottom: 0; width: 26px; height: 32px; border-radius: 3px; overflow: hidden; background: #e9e4da; border: 2px solid #f4f1ea; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.cd-peek i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-peek i:nth-child(1) { left: 2px; transform: rotate(-12deg); } .cd-peek i:nth-child(2) { left: 14px; bottom: 4px; transform: rotate(2deg); } .cd-peek i:nth-child(3) { left: 26px; transform: rotate(13deg); }
.cd-folder.is-folders .cd-peek i { background: var(--accent); border-color: #ffb27a; }
.cd-n { position: absolute; right: -6px; top: -6px; z-index: 3; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font: 700 .74rem var(--mono); box-shadow: 0 0 0 2px var(--bg); }
.cd-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd-txt b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-txt small { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.cd-tag { align-self: flex-start; font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal;
  padding: 2px 7px; border-radius: 99px; background: rgba(255,138,61,.16); color: var(--accent); }
.cd-tag.cut { background: rgba(var(--ink), 0.1); color: var(--text-2); }
kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--line-hi);
  border-bottom-width: 2px; font: 600 10px var(--mono); color: var(--text-2); background: rgba(var(--ink), 0.05); }
.cd-x { align-self: flex-start; width: 26px; height: 26px; margin: -4px -4px 0 4px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.cd-x:hover { background: rgba(var(--ink), 0.08); color: var(--text); }
body.clip-busy .clipdock { opacity: .6; pointer-events: none; }
/* Hinweis neben der Maus */
.clip-hint { position: fixed; z-index: 420; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 12px; pointer-events: none;
  background: var(--dk-17181b); border: 1px solid rgba(255,138,61,.55); color: var(--text); font-size: .8rem; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(4px) scale(.97); transition: opacity .2s, transform .25s cubic-bezier(.2,1.2,.4,1); }
.clip-hint.on { opacity: 1; transform: none; }
.clip-hint span { margin-left: 6px; }
.clip-hint[hidden] { display: none; }
.cards .card.clip-target, .cards .card-new.clip-target { outline: 2px dashed var(--accent); outline-offset: 4px; }
.sel-folders .clip-target, .crumbs .clip-target { outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: 12px; }
.clip-cut { opacity: .45; filter: saturate(.6); }
.clip-landed { animation: drop-pulse .5s cubic-bezier(.2,1.4,.3,1); }
@media (prefers-reduced-motion: reduce) { .clipdock.on { animation: none; } }
@media (max-width: 520px) { .clipdock { left: 12px; right: 12px; max-width: none; } }
/* 1.19: Chat anpinnen */
.ch-pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ch-pin { color: var(--muted); margin-left: auto; }
.ch-pin[aria-pressed="true"] { color: var(--accent); background: rgba(255,138,61,.12); }
.ch-pin[aria-pressed="true"] svg { transform: rotate(-35deg); fill: rgba(255,138,61,.35); }
.ch-head .ch-title { min-width: 0; }

/* ---------- Chat: angepinnt über Seitenwechsel, Stumm, gelöste Fenster (1.20) ---------- */
.chat-panel.instant { transition: none; }
.ch-head { position: relative; }
.ch-head .icon-btn.muted { color: var(--accent); background: var(--accent-soft); }
.ch-row-mute { width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px; color: var(--muted); }
.ch-menu { position: absolute; top: calc(100% - 4px); right: 12px; z-index: 5; min-width: 230px; display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: var(--dk-1d1e22); border: 1px solid var(--line-hi); box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: chMenuIn .16s ease-out; }
@keyframes chMenuIn { from { opacity: 0; transform: translateY(-4px); } }
.ch-menu small { padding: 6px 10px 4px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ch-menu button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 .86rem var(--sans); text-align: left; cursor: pointer; }
.ch-menu button:hover { background: rgba(var(--ink), .07); }
.ch-menu button svg { width: 16px; height: 16px; }
.ch-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

.ch-docks { position: fixed; right: 16px; bottom: 0; z-index: 290; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px; pointer-events: none;
  transition: right .32s cubic-bezier(.2,1,.3,1); }
body.chat-open .ch-docks { right: calc(min(400px, 100vw - 24px) + 24px); }
.ch-dock { pointer-events: auto; width: 380px; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; overflow: hidden;
  background: var(--dk-17181b); border: 1px solid var(--line-hi); border-bottom: 0; box-shadow: 0 -8px 40px rgba(0,0,0,.35);
  transform: translateY(24px); opacity: 0; transition: transform .28s cubic-bezier(.2,1,.3,1), opacity .2s, width .28s cubic-bezier(.2,1,.3,1); }
.ch-dock.in { transform: none; opacity: 1; }
.ch-dock.out { transform: translateY(105%); opacity: 0; transition: transform .3s cubic-bezier(.5,0,.75,0), opacity .3s ease-in; }
.ch-dock:not(.open) { width: 280px; }
.cw-head { display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 8px; border-bottom: 1px solid transparent; }
.ch-dock.open .cw-head { border-bottom-color: var(--line); }
.ch-dock.has-new .cw-head { background: rgba(255,138,61,.1); }
.cw-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cw-av .ch-av { width: 32px; height: 32px; font-size: .8rem; }
.cw-av .ch-av.team svg { width: 16px; height: 16px; }
.cw-av .ch-on { width: 10px; height: 10px; }
.cw-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-name b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-name small { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-muted { width: 14px; height: 14px; flex: none; color: var(--muted); }
.cw-head .icon-btn { width: 30px; height: 30px; }
.cw-head .icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.cw-main { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.2,1,.3,1); }
.ch-dock.open .cw-main { grid-template-rows: 1fr; }
.cw-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.cw-inner > * { flex: none; }
.cw-body { height: min(400px, calc(100vh - var(--topbar) - 170px)); overflow-y: auto; overscroll-behavior: contain; }
.cw-body { display: flex; flex-direction: column; }
.cw-body .ch-msgs { padding: 10px 12px 6px; margin-top: auto; }
.cw-body .ch-empty { margin: auto 0; }
.cw-body .ch-msg { max-width: 90%; }
.cw-compose { padding: 8px 10px 10px; }
.cw-compose textarea { max-height: 110px; }
.cw-compose .ch-send { width: 38px; height: 38px; }
@media (max-width: 640px) {
  .ch-docks { right: 12px; bottom: 84px; flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  body.chat-open .ch-docks { display: none; }
  .ch-dock, .ch-dock:not(.open) { width: auto; border-radius: 999px; border-bottom: 1px solid var(--line-hi); box-shadow: 0 8px 26px rgba(0,0,0,.35); }
  .cw-head { padding: 4px; }
  .cw-name, .cw-big, .cw-x, .cw-main, .cw-muted { display: none; }
  .cw-av .ch-av { width: 44px; height: 44px; }
  .cw-bar { position: relative; }
  .cw-n { position: absolute; top: -4px; right: -4px; }
}

/* ---------- Rückfrage im WePreview-Stil (ask.js) ---------- */
.ask-dlg { width: min(460px, calc(100vw - 32px)); }
.ask-dlg form { display: flex; flex-direction: column; gap: 12px; }
.ask-head { display: flex; align-items: flex-start; gap: 14px; }
.ask-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ask-dlg.is-danger .ask-ico { background: rgba(255,92,92,.13); color: #ff6b6b; }
.ask-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ask-title { margin: 0; padding-top: 10px; font: 700 1.08rem/1.35 var(--sans); letter-spacing: -.015em; color: var(--text); }
.ask-p { margin: 0 0 0 58px; font-size: .9rem; line-height: 1.55; color: var(--text-2); }
.ask-dlg .dialog-actions { margin-top: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ask-dlg:has([value="alt"]) { width: min(540px, calc(100vw - 32px)); }
.ask-dlg:has([value="alt"]) [value="no"] { margin-right: auto; }
.ask-dlg[open] { animation: askIn .2s cubic-bezier(.2,1.2,.3,1); }
.ask-dlg.out { animation: askOut .16s ease-in forwards; }
@keyframes askIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes askOut { to { opacity: 0; transform: translateY(4px) scale(.98); } }
@media (max-width: 520px) { .ask-p { margin-left: 0; } }

/* Freigabe-Chip: mehrere Personen = „Team“, darüberfahren zeigt die Liste */
.card-badges .badge-shared { pointer-events: auto; cursor: default; }
.bs-avs i.bs-more { background: rgba(14,15,17,.85); color: #cfe0ff; font-size: 8px; }
.tip.people { display: flex; flex-direction: column; gap: 6px; min-width: 210px; padding: 10px 12px; white-space: normal; text-align: left; }
.tip.people .tp-h { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tp-row { display: flex; align-items: center; gap: 9px; font-size: .84rem; }
.tp-row i { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; font: 700 10px var(--sans); font-style: normal; color: #fff; background: linear-gradient(135deg, #6aa9ff, #3b6fd1); }
.tp-row i img { width: 100%; height: 100%; object-fit: cover; }
.tp-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.tp-row em { font-style: normal; font: 600 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 2px 7px; border-radius: 99px; background: rgba(var(--ink), .07); }
.tp-row em.edit { color: var(--accent); background: var(--accent-soft); }
.tp-more { color: var(--muted); font-size: .76rem; }

/* „Löschen“-Knopf als Ablage: beim Darüberziehen geht der Deckel zur Seite, beim Loslassen schnappt er zu */
.trash-drop .td-lid { transform-origin: 19.5px 6.5px; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.trash-drop .td-ico { overflow: visible; }
body.dragging-items .trash-drop:not(:disabled), body.dragging-items .trash-drop[disabled] { opacity: 1; pointer-events: auto; }
body.dragging-items .trash-drop { transition: transform .18s cubic-bezier(.3,1.5,.5,1), box-shadow .18s, background .18s; }
.trash-drop.drop-hover { transform: scale(1.08); background: rgba(255,92,92,.22); border-color: #ff6b6b; box-shadow: 0 0 0 6px rgba(255,92,92,.14); }
.trash-drop.drop-hover .td-lid { transform: translate(3px, -3px) rotate(28deg); }
.trash-drop.bin-eat { animation: tdEat .5s cubic-bezier(.3,1.4,.5,1); }
.trash-drop.bin-eat .td-lid { animation: tdLid .5s ease-out; }
@keyframes tdEat { 0% { transform: scale(1.08); } 45% { transform: scale(.92); } 100% { transform: none; } }
@keyframes tdLid { 0% { transform: translate(3px, -3px) rotate(28deg); } 40% { transform: translate(3px, -3px) rotate(28deg); } 70% { transform: translateY(1px); } 100% { transform: none; } }

/* Ordner-Ansicht (Größe, Vorschau): Knöpfe stehen frei – ohne Kasten drumherum */
.fv-seg { background: none; border: 0; padding: 0; gap: 10px; }
.fv-seg button { flex: 1 1 0; border: 1px solid var(--line-hi); border-radius: 12px; background: rgba(var(--ink), .03); transition: border-color .15s, background .15s, transform .15s; }
.fv-seg button:hover { border-color: rgba(var(--ink), .3); background: rgba(var(--ink), .06); }
.fv-seg button[aria-pressed="true"] { border-color: var(--text); }
.fv-seg button:active { transform: scale(.98); }

/* Andere Unternehmen: Logo groß als eigene Kachel links */
.tm.acc { align-items: flex-start; gap: 18px; }
.tm.acc .acc-av { width: 92px; height: 92px; border-radius: 22px; font: 750 2rem var(--sans); letter-spacing: -.04em; align-self: center;
  border: 1px solid var(--line-hi); box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.tm.acc .acc-av:not(.has-logo) { background: radial-gradient(120% 120% at 20% 10%, rgba(111,195,255,.45), rgba(111,195,255,.08) 65%), var(--dk-1d1e22); color: #d8ecff; }
.tm.acc .acc-av.has-logo { background: #fff; padding: 14px; border-color: rgba(0,0,0,.06); }
.tm.acc .acc-av.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.tm.acc.is-pending .acc-av { opacity: .7; }
@media (max-width: 720px) { .tm.acc .acc-av { width: 60px; height: 60px; border-radius: 16px; font-size: 1.4rem; align-self: flex-start; } .tm.acc .acc-av.has-logo { padding: 9px; } }

/* Pfad-Menü (Home ›): Suchfeld ohne doppelten Rahmen und weißen Kasten – ruhig wie die Chat-Suche */
.peek-search { height: 38px; padding: 0 12px; gap: 9px; border-radius: 12px; background: rgba(var(--ink), .05); border: 1px solid var(--line-hi); color: var(--muted);
  transition: border-color .15s, background .15s, box-shadow .15s; }
.peek-search:focus-within { border-color: rgba(255,138,61,.6); background: rgba(255,138,61,.05); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent); }
.peek-search input[type="search"] { -webkit-appearance: none; appearance: none; background: none !important; border: 0 !important; box-shadow: none !important;
  min-height: 0; height: 100%; padding: 0; font: 500 .88rem var(--sans); color: var(--text); }
.peek-search input[type="search"]:focus { box-shadow: none !important; outline: none; }
.peek-search input::placeholder { color: var(--muted); }

/* Kundengalerie live: entferntes Bild/Ordner blendet weich aus · Galerie nicht mehr verfügbar */
.live-gone { animation: liveGone .4s cubic-bezier(.4,0,.2,1) forwards; pointer-events: none; }
@keyframes liveGone { to { opacity: 0; transform: scale(.85); filter: blur(4px); } }
.g-gone { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(10,10,12,.55); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .35s; }
.g-gone.on { opacity: 1; }
.g-gone-box { max-width: 420px; padding: 30px 28px; border-radius: 22px; text-align: center; background: var(--dk-17181b); border: 1px solid var(--line-hi);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g-gone-box h2 { margin: 6px 0 0; font: 700 1.25rem/1.25 var(--sans); letter-spacing: -.02em; color: var(--text); }
.g-gone-box p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.55; }
.g-gone-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.g-gone-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Warten auf die Geräte-Bestätigung */
.devwait .dw-mail { position: relative; width: 64px; height: 64px; margin: 6px auto 4px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.devwait .dw-mail svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.devwait .dw-pulse { position: absolute; inset: -6px; border-radius: 24px; border: 2px solid rgba(255,138,61,.5); animation: dwPulse 1.8s ease-out infinite; }
@keyframes dwPulse { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
.devwait .dw-state { text-align: center; color: var(--accent); letter-spacing: .04em; }
.devwait.ok .dw-pulse, .devwait.no .dw-pulse { animation: none; opacity: 0; }
.devwait.ok .dw-state { color: #7ed49a; }
.devwait.no .dw-state { color: var(--warn); }
.dev-verify { align-items: flex-start; margin-top: 10px; }
.dev-verify .dv-txt { display: flex; flex-direction: column; gap: 2px; }
.dev-verify .dv-txt small { font-size: .82rem; line-height: 1.45; }

/* ---------- Pfad als Ablageziel (pathdrop.js): schwebender Pfad + Aufklapp-Spalten wie im Explorer ---------- */
.path-float { position: fixed; left: 0; top: 0; z-index: 420; opacity: 0; box-sizing: border-box;
  padding: 10px; border-radius: 18px; background: transparent; border: 1px solid transparent; box-shadow: none;
  transition: background .3s, border-color .3s, box-shadow .35s, backdrop-filter .3s, width .35s cubic-bezier(.2,.9,.25,1); pointer-events: none; max-width: calc(100vw - 24px); }
.path-float.on { opacity: 1; pointer-events: none; }
.path-float.on .crumb { pointer-events: auto; }
.path-float.lifted { background: color-mix(in srgb, var(--dk-17181b) 92%, transparent); backdrop-filter: blur(14px);
  border-color: var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.crumbs.is-carried { visibility: hidden; }
.path-float .crumbs { margin: 0; }
.path-float.lifted .crumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumb.casc-open { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.casc { position: fixed; inset: 0; pointer-events: none; z-index: 430; }
.casc-col { position: fixed; width: 290px; max-height: min(460px, calc(100vh - 100px)); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
  padding: 6px; border-radius: 16px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); box-shadow: 0 22px 60px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .16s, transform .2s cubic-bezier(.2,1.2,.3,1); }
.casc-col.on { opacity: 1; transform: none; }
.casc-head { padding: 8px 10px 6px; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.casc-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 11px; color: var(--text); text-decoration: none; position: relative;
  transition: background .12s; }
.casc-row:hover, .casc-row.is-path { background: rgba(var(--ink), .07); }
.casc-row.drop-hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.casc-row.is-off { opacity: .4; pointer-events: none; }
.casc-thumb { width: 38px; height: 38px; flex: none; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--ink), .06); color: var(--muted); }
.casc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.casc-thumb svg { width: 18px; height: 18px; }
.casc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.casc-text b { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.casc-text small { font: 500 10px var(--mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.casc-more { width: 14px; height: 14px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.casc-empty { margin: 4px 10px 8px; font-size: .82rem; color: var(--muted); }
/* geschafft: kurzer Haken am Ziel */
.casc-row.drop-ok::after, .crumb.drop-ok::after { content: ""; position: absolute; right: 10px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: #3fbf7f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  animation: dropOk .85s ease-out forwards; }
.crumb.drop-ok { position: relative; }
@keyframes dropOk { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 45% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.spring-ring, .drag-path, .sel-folders { display: none !important; }

/* Einstellungen → Laufender Upload: kleine Vorschau, die zeigt, wie es aussieht */
.up-prev { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.upp-screen { position: relative; width: min(360px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line-hi); box-shadow: inset 0 0 0 4px rgba(var(--ink), .03); }
.upp-top { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.upp-top i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink), .18); }
.upp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.upp-grid span { aspect-ratio: 4 / 3; border-radius: 4px; background: rgba(var(--ink), .08); }
.upp-dock { position: absolute; bottom: 10px; left: 10px; transition: left .4s cubic-bezier(.2,1.2,.3,1), right .4s; }
.up-prev[data-pos="right"] .upp-dock { left: calc(100% - 10px); transform: translateX(-100%); }
.upp-anim, .upp-bar { display: none; }
.up-prev[data-mode="anim"] .upp-anim, .up-prev:not([data-mode]) .upp-anim { display: flex; }
.up-prev[data-mode="bar"] .upp-bar { display: flex; }
.upp-anim { position: relative; align-items: center; gap: 6px; padding: 6px 9px 6px 6px; border-radius: 11px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); }
.upp-anim b { font: 600 9px var(--mono); color: var(--text); }
.upp-folder { width: 26px; height: 22px; display: grid; place-items: center; color: var(--accent); }
.upp-folder svg { width: 20px; height: 20px; }
.upp-anim em { position: absolute; left: 10px; bottom: 30px; width: 12px; height: 9px; border-radius: 2px; background: linear-gradient(135deg, #f0b27a, #8b6cf1); opacity: 0; animation: uppFly 2.4s ease-in infinite; }
.upp-anim em:nth-of-type(2) { animation-delay: .8s; left: 16px; }
.upp-anim em:nth-of-type(3) { animation-delay: 1.6s; left: 4px; }
@keyframes uppFly { 0% { opacity: 0; transform: translate(0, -26px) rotate(-14deg); } 15% { opacity: 1; } 70% { opacity: 1; transform: translate(4px, 22px) rotate(6deg) scale(.6); } 85%, 100% { opacity: 0; transform: translate(4px, 26px) scale(.3); } }
.upp-bar { flex-direction: column; gap: 4px; width: 120px; padding: 6px 8px; border-radius: 9px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); }
.upp-bar small { font: 600 8px var(--mono); color: var(--muted); }
.upp-bar span { height: 4px; border-radius: 4px; background: rgba(var(--ink), .1); overflow: hidden; }
.upp-bar i { display: block; height: 100%; width: 30%; background: var(--accent); border-radius: 4px; animation: uppBar 2.4s ease-in-out infinite; }
@keyframes uppBar { from { width: 10%; } to { width: 92%; } }

/* Kundenlink: welche Unterordner (1.22) */
.share-only { margin: -2px 0 14px 46px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, rgba(127,127,127,.06)); }
.share-only .so-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .86rem; font-weight: 600; margin-bottom: 10px; }
.share-only .so-head .linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.share-only .so-list { display: flex; flex-wrap: wrap; gap: 6px; }
.share-only .so-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; cursor: pointer; user-select: none; transition: background .15s, border-color .15s, opacity .15s; }
.share-only .so-chip input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.share-only .so-chip small { color: var(--muted); font-size: .74rem; }
.share-only .so-chip:has(input:not(:checked)) { opacity: .55; }
.share-only .so-chip:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.share-only .so-hint { margin: 10px 0 0; }
@media (max-width: 600px) { .share-only { margin-left: 0; } }
.both-never { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-size: .86rem; color: var(--muted); cursor: pointer; }
.both-never input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

/* Aktivität: zwei Spalten am Desktop – links Zahlen + Stand, rechts Personen + Verlauf (1.22) */
.act-cols { display: flex; flex-direction: column; gap: 14px; }
.act-main, .act-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.act-card { display: flex; flex-direction: column; gap: 10px; }
.act-card .label { margin: 6px 0 0; }
.act-side { border-top: 1px solid var(--line); padding-top: 16px; }
.act-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act-feed li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; font-size: .88rem; }
.act-feed li + li::before { content: ""; position: absolute; left: 12px; top: -7px; height: 14px; width: 1px; background: var(--line); }
.act-feed i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--ink), 0.05); color: var(--muted); }
.act-feed i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act-feed .af-submit i { background: rgba(80, 200, 120, .14); color: #50c878; }
.act-feed .af-zip i, .act-feed .af-file i { background: rgba(111,195,255,.13); color: #8fc6ff; }
.act-feed .af-more_hearts i { background: var(--accent-soft); color: var(--accent); }
.act-feed time { white-space: nowrap; }
@media (min-width: 980px) {
  .admin-panels.tabbed .act-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; }
  .admin-panels.tabbed .act-main { padding-right: 40px; }
  .admin-panels.tabbed .act-side { padding: 0 0 0 40px; border-top: 0; border-left: 1px solid var(--line); }
  .admin-panels.tabbed .act-main .ppl { border-top: 0; margin-top: 0; }
  .admin-panels.tabbed #activity .act-main .activity-list { grid-template-columns: 1fr 1fr; }
}

/* ===================== Stapel ohne Rahmen (1.22) =====================
   Keine Kachel mehr: die Fotos schweben frei, darunter ein weicher Schatten am „Boden“. Jeder Stapel wiegt sich
   leicht und versetzt (wie an einem Faden), beim Darüberfahren hebt er sich und fächert weiter auf. */
.cards.fv-stack .card:not(.card-new) { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
.cards.fv-stack .card:not(.card-new):hover { transform: none; border-color: transparent; box-shadow: none; }
.cards.fv-stack .card-cover:has(.cv-stack) { overflow: visible; aspect-ratio: 5 / 4; }
.cards.fv-stack .cv-stack { overflow: visible; animation: sk-float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
.cards.fv-stack .card:nth-child(4n+1) .cv-stack { --i: 0; } .cards.fv-stack .card:nth-child(4n+2) .cv-stack { --i: 1; }
.cards.fv-stack .card:nth-child(4n+3) .cv-stack { --i: 2; } .cards.fv-stack .card:nth-child(4n+4) .cv-stack { --i: 3; }
@keyframes sk-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
/* Schatten am Boden: atmet gegenläufig mit (oben = kleiner, blasser) */
.cards.fv-stack .card-cover:has(.cv-stack)::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3%; height: 9%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(5px); animation: sk-floor 6s ease-in-out infinite; transition: transform .45s var(--ease), opacity .45s; }
.cards.fv-stack .card:nth-child(4n+2) .card-cover::after { animation-delay: -1.3s; } .cards.fv-stack .card:nth-child(4n+3) .card-cover::after { animation-delay: -2.6s; }
.cards.fv-stack .card:nth-child(4n+4) .card-cover::after { animation-delay: -3.9s; }
@keyframes sk-floor { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: .88; opacity: .65; } }
.cards.fv-stack .cv-stack::before { bottom: 6%; opacity: .55; }
/* größere Fotos, mehr Luft zwischen den Karten */
.cards.fv-stack .cv-fan .sk-pic { width: 33%; bottom: 16%; border-width: 4px; border-radius: 7px; }
.cards.fv-stack .cv-piles .sk-pile { width: 27%; }
.cards.fv-stack .cv-piles.n3 .sk-pile:nth-child(1) { left: 9%; } .cards.fv-stack .cv-piles.n3 .sk-pile:nth-child(2) { left: 36.5%; } .cards.fv-stack .cv-piles.n3 .sk-pile:nth-child(3) { left: 64%; }
.cards.fv-stack .card-cover .cv-stack .sk-pic { box-shadow: 0 18px 32px -16px rgba(0,0,0,.75), 0 3px 8px -3px rgba(0,0,0,.45); }
/* Darüberfahren: Stapel hebt sich, Fächer geht weiter auf, Schatten wird weit und weich */
.cards.fv-stack .card:hover .cv-stack { animation-play-state: paused; }
.cards.fv-stack .card:hover .cv-stack .sk-pic, .cards.fv-stack .card:hover .cv-piles .sk-pile { transition-duration: .5s; }
.cards.fv-stack .card:hover .cv-fan .sk-pic:nth-of-type(1) { transform: translateX(-120%) translateY(-6%) rotate(-16deg); }
.cards.fv-stack .card:hover .cv-fan .sk-pic:nth-of-type(2) { transform: translateX(20%) translateY(-6%) rotate(16deg); }
.cards.fv-stack .card:hover .cv-fan .sk-pic:nth-of-type(3) { transform: translateX(-50%) translateY(-14%) scale(1.04); }
.cards.fv-stack .card:hover .card-cover::after { transform: scaleX(1.25); opacity: .5; }
/* Name schwebt mittig darunter */
.cards.fv-stack .card:not(.card-new) .card-body { text-align: center; padding: 2px 10px 10px; }
.cards.fv-stack .card:not(.card-new) .meta { justify-content: center; }
.cards.fv-stack .card:not(.card-new) .card-status { justify-content: center; }
.cards.fv-stack .card:not(.card-new) .card-title { transition: color .25s; }
.cards.fv-stack .card:not(.card-new):hover .card-title { color: var(--accent); }
.cards.fv-stack .card-body:has(> .card-trash) .card-title { padding: 0 34px; }
/* Leerer Ordner: zwei gestrichelte Karten als „Platzhalter-Stapel“ */
.cards.fv-stack .cv-fan.n0 { display: block; }
.cards.fv-stack .cv-fan.n0::before { display: block; opacity: 1; left: 34%; right: 34%; width: auto; height: 46%; bottom: 18%; border-radius: 8px; filter: none;
  background: none; border: 1.5px dashed var(--line-hi); transform: rotate(-8deg) translateX(-14%); }
.cards.fv-stack .cv-fan.n0::after { content: ""; position: absolute; left: 34%; right: 34%; height: 46%; bottom: 18%; border-radius: 8px;
  border: 1.5px dashed var(--line-hi); transform: rotate(6deg) translateX(14%); }
.cards.fv-stack .cv-fan.n0 .card-folder { width: 34px; height: 34px; inset: auto 0 34% 0; margin: 0 auto; fill: rgba(var(--ink), .1); }
/* „Neuer Ordner“ passt sich an: kein Rahmen, nur der Kreis mit Plus */
.cards.fv-stack .card-new:not([open]) { border-color: transparent; }
.cards.fv-stack .card-new:not([open]) .plus { width: 64px; height: 64px; border-style: dashed; }
.cards.fv-stack .card:has(.cv-fan.n0) .card-cover::after { opacity: .35; animation: none; }
/* Auswählen: statt Rahmen leuchtet der Boden, der Haken sitzt am Stapel */
body.folder-selecting .cards.fv-stack.selectable .card.selected { border-color: transparent; box-shadow: none; }
body.folder-selecting .cards.fv-stack.selectable .card.selected .card-cover::after { background: radial-gradient(closest-side, rgba(255,138,61,.75), transparent); opacity: 1; animation: none; }
body.folder-selecting .cards.fv-stack.selectable .card.selected .card-title { color: var(--accent); }
.cards.fv-stack .card .check { top: 10%; left: 12%; }
/* Hineinziehen: Stapel wird zum Ziel – Rahmen um die Fläche wie bisher, aber weich */
.cards.fv-stack .card.drop-hover { outline: 2px dashed var(--accent); outline-offset: -4px; border-radius: 22px; box-shadow: none; background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) { .cards.fv-stack .cv-stack, .cards.fv-stack .card-cover::after { animation: none; } }
html[data-theme="light"] .cards.fv-stack .card-cover:has(.cv-stack)::after { background: radial-gradient(closest-side, rgba(40,30,20,.32), transparent); }
html[data-theme="light"] .cards.fv-stack .card-cover:has(.cv-stack) { background: transparent; }

/* Links & Textvorlagen: der Knopf steht frei – kein Kasten drumherum, der Stift erscheint daneben (1.22) */
.snip-look, .snip-look:hover { border: 0; background: none; padding: 0; overflow: visible; justify-content: flex-start; gap: 10px; }
.snip-look .lead-btn, .snip-look .lead-link { transition: transform .18s var(--ease), box-shadow .18s; }
.snip-look:hover .lead-btn { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(255,138,61,.5); }
.snip-look-edit { margin-left: 0; opacity: .55; transition: opacity .15s, color .15s, background .15s; }
.snip-look:hover .snip-look-edit, .snip-look:focus-visible .snip-look-edit { opacity: 1; }

/* Ordner mit Shift: Vorschau des Bereichs (1.22) */
.cards.ranging .card:not(.range-preview):not(.selected) { opacity: .55; transition: opacity .15s; }
.cards .card.range-preview { box-shadow: 0 0 0 3px rgba(255,138,61,.75); }
.cards .card.range-preview::after { content: ""; position: absolute; inset: 0; background: rgba(255,138,61,.12); pointer-events: none; z-index: 2; border-radius: inherit; }
.cards .card.range-end { box-shadow: 0 0 0 3px var(--accent), 0 8px 30px rgba(255,138,61,.35); }
.cards.fv-stack .card.range-preview, .cards.fv-stack .card.range-end { box-shadow: none; }
.cards.fv-stack .card.range-preview .card-cover::after { background: radial-gradient(closest-side, rgba(255,138,61,.6), transparent); opacity: 1; animation: none; }
.cards.fv-stack .card.range-preview::after { border-radius: 22px; }

/* Ordner löschen ohne Ruck (1.22) */
body.page-leave main { animation: page-leave .28s ease-in forwards; }
@keyframes page-leave { to { opacity: 0; transform: translateY(10px) scale(.99); } }
body.soft-in main { animation: soft-in .45s cubic-bezier(.2,.8,.3,1) both; }
@keyframes soft-in { from { opacity: 0; transform: translateY(-8px); } }

/* Ecke nach dem Upload: „wird verarbeitet“ (Balken läuft) → grünes „Fertig“ (1.22) */
.bgup.proc .bgup-n { font-size: .82rem; }
.bgup.proc .bgup-fill { background: linear-gradient(90deg, var(--accent), #ffb37a, var(--accent)); background-size: 200% 100%; animation: bgup-proc 1.2s linear infinite; }
@keyframes bgup-proc { to { background-position: -200% 0; } }
.bgup.proc .bgup-folder { animation: bgup-breathe 1.6s ease-in-out infinite; }      /* ganzer Ordner atmet (Deckel bleibt drauf) */
@keyframes bgup-breathe { 50% { transform: scale(.94); opacity: .8; } }
.bgup.done { --ok-g: 76, 195, 138; background: linear-gradient(rgba(var(--ok-g), .16), rgba(var(--ok-g), .16)), rgba(var(--dkr-14-15-17), .94); border-color: rgba(var(--ok-g), .55); box-shadow: 0 14px 40px -14px rgba(var(--ok-g), .55); }
.bgup.done .bgup-n { color: rgb(var(--ok-g)); }
.bgup.done .bgup-fill { background: rgb(var(--ok-g)); }
.bgup.done .bgup-folder svg { fill: rgb(var(--ok-g)); }
.bgup.done .bgup-folder::after { content: ""; position: absolute; left: 50%; top: 56%; width: 12px; height: 6px; margin: -5px 0 0 -6px;
  border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); animation: bgup-tick .35s .1s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes bgup-tick { to { transform: rotate(-45deg) scale(1); } }
/* Formular-Labels stapeln sonst untereinander – hier in einer Zeile */
.dialog label.both-never, form label.both-never { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 8px; }
.share-only label.so-chip { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.share-only label.so-chip span, .share-only label.so-chip small { margin: 0; font: inherit; letter-spacing: normal; text-transform: none; }
.share-only label.so-chip small { color: var(--muted); font-size: .74rem; }
/* Nach dem Login: bis chrome.js den Aufbau startet, nichts zeigen (arrive.js im <head>) */
html.arriving main, html.arriving .topbar { visibility: hidden; }

/* Pfad-Menü: Ziel-Zeile ohne äußeren Rahmen (wurde vom Menü abgeschnitten) – Rahmen innen, nichts vergrößert */
.casc-row.drop-hover, .casc-row[data-drop].drop-hover { outline: none; transform: none; border-radius: 11px;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text); }
.casc-col { padding: 6px; }
.crumbs-float .crumb.drop-hover { outline-offset: 2px; transform: none; }
.path-float { overflow: visible; }
/* Schwebender Pfad ersetzt solange die Werkzeugleiste darunter (keine Überlappung mit Filtern/„Ansicht“) */
body.path-floating .gallery-toolbar { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* Ordner ziehen: Ordner-Symbol, Bilder daraus stehen oben heraus – leerer Ordner = nur das Symbol (1.22) */
.drag-card.drag-folder { width: 92px; height: 80px; top: 26px; background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.drag-folder .df-ico { position: absolute; left: 0; bottom: 0; width: 92px; height: 74px; fill: var(--accent); z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)) drop-shadow(0 2px 6px rgba(255,138,61,.35)); }
.drag-folder.is-empty .df-ico { fill: #6f7178; filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
.drag-folder .df-pics { position: absolute; inset: 0; z-index: 1; }
.drag-folder .df-pics img { position: absolute; left: 24px; top: 0; width: 44px; height: 36px; object-fit: cover; border-radius: 4px;
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.4); transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.2,1.4,.3,1); }
.drag-folder .df-pics img:nth-child(1) { transform: translate(-12px, 6px) rotate(-14deg); }
.drag-folder .df-pics img:nth-child(2) { transform: translate(12px, 4px) rotate(12deg); }
.drag-folder .df-pics img:nth-child(3) { transform: translateY(-4px) rotate(-2deg); }
.mv-ghost.over .drag-folder .df-pics img:nth-child(1) { transform: translate(-16px, 2px) rotate(-20deg); }
.mv-ghost.over .drag-folder .df-pics img:nth-child(2) { transform: translate(16px, 0) rotate(18deg); }
.drag-folder .drag-card-title { top: auto; bottom: 6px; left: 6px; right: 6px; z-index: 3; padding: 0; background: none; text-align: center; color: #1a0e05; font-weight: 700; }
.drag-folder.is-empty .drag-card-title { color: #fff; }

/* Upload-Ecke: Deckel-Streifen nur beim „Schlucken“ der Fotos – sonst sah er wie ein loser Balken aus */
.bgup .bgup-lid { opacity: 0; transition: opacity .2s; }
.bgup:not(.proc):not(.done) .bgup-folder.gulp .bgup-lid { opacity: 1; }
.drag-folder .df-ico { width: 100px; height: 84px; left: -4px; bottom: -8px; }
.drag-folder .df-pics img { top: -4px; width: 48px; height: 38px; }
.drag-folder .drag-card-title, .drag-folder.is-empty .drag-card-title { bottom: -26px; left: 50%; right: auto; transform: translateX(-50%); max-width: 150px;
  padding: 3px 9px; border-radius: 99px; background: rgba(14,15,17,.88); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.drag-folder .df-pics img { top: -16px; }
.drag-folder .df-pics img:only-child { transform: translate(4px, 0) rotate(-6deg); }

/* ===================== Impressum & Datenschutz (1.23) ===================== */
.legal-page main { padding-bottom: 80px; }
.legal-doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.legal-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 10px; }
.legal-head h1 { margin: 0; }
.legal-tabs { display: inline-flex; }
.legal-tabs a { text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; }
.legal-back .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.legal-card { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.legal-card .label { margin: 0 0 14px; }
.legal-card p { margin: 0; line-height: 1.65; color: var(--text-2); }
.legal-card a { color: var(--accent); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-dl { margin: 0; display: flex; flex-direction: column; }
.legal-dl > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.legal-dl > div:first-child { border-top: 0; padding-top: 0; }
.legal-dl dt { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.legal-dl dd { margin: 0; line-height: 1.6; }
.legal-rows { display: flex; flex-direction: column; gap: 18px; }
.legal-rows h3 { margin: 0 0 5px; font-size: 1rem; font-weight: 600; }
.legal-empty p { color: var(--muted); }
.legal-foot { text-align: center; margin: 10px 0 0; }
@media (max-width: 640px) {
  .legal-doc { padding-top: 20px; }
  .legal-dl > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-card { padding: 18px; }
}
/* kleine Links unten in der Kundengalerie / Anmeldung */
.legal-links { display: flex; justify-content: center; gap: 10px; padding: 40px 16px 110px; font-size: .8rem; color: var(--muted); }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--text); }
.ls-legal { position: fixed; left: 0; right: 0; bottom: 14px; padding: 0; z-index: 5; }
/* Einstellungen */
.legal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 14px 0 6px; }
.legal-field { display: flex; flex-direction: column; gap: 6px; }
.legal-field.wide { grid-column: 1 / -1; }
.legal-field > span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-field > span small { text-transform: none; letter-spacing: normal; font-family: var(--sans); }
@media (max-width: 700px) { .legal-form { grid-template-columns: 1fr; } }
.legal-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 7px; color: var(--text-2); font: 500 .9rem var(--sans); transition: background .15s, color .15s; }
.legal-tabs a:hover { color: var(--text); }

/* Abgelaufene Galerie (1.23) */
.exp-card { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.exp-art { position: relative; height: 92px; margin-bottom: 4px; }
.exp-art span { position: absolute; left: 50%; top: 10px; width: 58px; height: 72px; margin-left: -29px; border-radius: 8px; background: var(--surface-hi); border: 1.5px dashed var(--line-hi); }
.exp-art span:nth-child(1) { transform: translateX(-26px) rotate(-10deg); }
.exp-art span:nth-child(2) { transform: translateX(26px) rotate(9deg); }
.exp-art svg { position: absolute; left: 50%; top: 22px; width: 46px; height: 46px; margin-left: -23px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round;
  background: var(--bg); border-radius: 50%; padding: 4px; box-shadow: 0 0 0 6px var(--accent-soft); }
.exp-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.exp-form label { display: flex; flex-direction: column; gap: 6px; }
.exp-form label > span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.exp-form label > span small { text-transform: none; letter-spacing: normal; font-family: var(--sans); }
.exp-done { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(76,195,138,.12); color: #7fdcaa; margin: 0; }
.exp-done .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; margin-top: 2px; }

/* Kundenlink: Ablauf, Erinnerungen, nach Ablauf (1.23) */
.share-rules { display: flex; flex-direction: column; gap: 14px; padding: 14px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sr-block { display: flex; flex-direction: column; gap: 9px; }
.sr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sr-lbl { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sr-val { font-size: .92rem; }
.sr-exp.is-expired .sr-val { color: var(--warn, #ff7a6b); }
.sr-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sr-row input[type=date] { height: 34px; padding: 0 10px; border-radius: 10px; color-scheme: dark; }
html[data-theme="light"] .sr-row input[type=date] { color-scheme: light; }
.sr-seg { display: inline-flex; }
.sr-seg button { flex: none; min-height: 30px; padding: 0 12px; font-size: .82rem; }
.sr-sum { margin: 0; }
.sr-nums { display: flex; gap: 10px; flex-wrap: wrap; }
.sr-num { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; color: var(--muted); }
.sr-num input { width: 110px; height: 34px; padding: 0 10px; border-radius: 10px; }
.sr-now { align-self: flex-start; }
.sr-block > .link-btn { align-self: flex-start; }
.sr-more > summary { cursor: pointer; list-style: none; font-size: .86rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.sr-more > summary::before { content: "›"; display: inline-block; transition: transform .2s; }
.sr-more[open] > summary::before { transform: rotate(90deg); }
.sr-more > summary::-webkit-details-marker { display: none; }
.sr-sub { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sr-after button { padding: 0 10px; }
.sr-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.sr-checks label.so-chip { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.sr-sub > .link-btn { align-self: flex-start; }
/* Texte der Erinnerungen */
.dialog.mt-dlg { width: min(620px, calc(100vw - 24px)); max-width: none; }
.mt-ph { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.mt-chip { border: 1px solid var(--line-hi); background: var(--surface-hi); color: var(--text); border-radius: 99px; padding: 5px 10px; font: 500 12px var(--mono); cursor: pointer; }
.mt-chip:hover { border-color: var(--accent); color: var(--accent); }
.mt-part { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.mt-part legend { padding: 0 6px; font: 600 .86rem var(--sans); }
.mt-part label { display: flex; flex-direction: column; gap: 6px; }
.mt-part label > span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Einstellungen → Automationen (1.23) */
.auto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 4px; }
.auto-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.auto-h { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: .95rem; font-weight: 600; }
.auto-h svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auto-h svg use[href="#i-play"] { fill: var(--accent); }
.auto-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.auto-row > span:first-child { min-width: 150px; color: var(--text-2); }
.auto-in { display: inline-flex; align-items: center; gap: 6px; }
.auto-in input { width: 76px; height: 34px; padding: 0 10px; border-radius: 10px; }
.auto-in small { color: var(--muted); }
.auto-sub { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.auto-seg button { font-size: .84rem; min-height: 32px; }
.auto-card .btn { align-self: flex-start; }
.auto-card .switch small { display: block; margin-top: 2px; }
@media (max-width: 800px) { .auto-grid { grid-template-columns: 1fr; } }

/* Server-Überwachung (1.23) */
.mon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.mon-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.mon-tile span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mon-tile b { font-size: 1.15rem; }
.mon-tile small { color: var(--text-2); font-size: .78rem; line-height: 1.4; }
.mon-tile.bad { border-color: rgba(255,122,107,.5); background: rgba(255,90,90,.07); }
.mon-tile.bad b { color: #ff8a7d; }
.mon-hc { display: flex; flex-direction: column; gap: 10px; }
.mon-hc .notif-sub { margin: 4px 0 0; }
.mon-url input { flex: 1; min-width: 0; }
@media (max-width: 800px) { .mon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Diashow in der Abgabe (1.23) */
html.ss-on, html.ss-on body { overflow: hidden; }
.ss { position: fixed; inset: 0; z-index: 900; background: #050506; opacity: 0; transition: opacity .4s ease; cursor: none; }
.ss.on { opacity: 1; }
.ss.ui { cursor: default; }
.ss-stage { position: absolute; inset: 0; overflow: hidden; }
.ss-layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 1.2s ease; }
.ss-layer.on { opacity: 1; }
.ss-layer img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: ss-kb1 6s ease-out both; will-change: transform; }
@keyframes ss-kb1 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1%, -1%); } }
@keyframes ss-kb2 { from { transform: scale(1.06) translate(1%, 0); } to { transform: scale(1) translate(0, 0); } }
@keyframes ss-kb3 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(1%, 1%); } }
@keyframes ss-kb4 { from { transform: scale(1.05) translate(0, 1%); } to { transform: scale(1) translate(0, -0.5%); } }
.ss-layer img.ss-kb2 { animation-name: ss-kb2; } .ss-layer img.ss-kb3 { animation-name: ss-kb3; } .ss-layer img.ss-kb4 { animation-name: ss-kb4; }
.ss-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.ss.ui .ss-ui { opacity: 1; transform: none; pointer-events: auto; }
.ss-count { font: 500 12px var(--mono); letter-spacing: .08em; color: rgba(255,255,255,.75); min-width: 70px; }
.ss-btns { display: flex; gap: 10px; }
.ss-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(20,20,22,.55); color: #fff;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s, transform .15s; }
.ss-btn:hover { background: rgba(255,255,255,.16); transform: scale(1.05); }
.ss-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ss-play svg { fill: currentColor; stroke: none; }
.ss-x { justify-self: end; }
.ss-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.08); }
.ss-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.ss-bar i.run { animation-name: ss-bar; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes ss-bar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ss-layer img { animation: none !important; } }
/* Download-Größe wählen */
.dl-pick { position: absolute; z-index: 950; min-width: 250px; padding: 8px; border-radius: 16px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .15s, transform .18s; }
.dl-pick.on { opacity: 1; transform: none; }
.dl-pick > b { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.dl-pick a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 11px; color: var(--text); text-decoration: none; }
.dl-pick a:hover { background: rgba(var(--ink), .07); }
.dl-pick a span { font-weight: 600; font-size: .92rem; }
.dl-pick a small { color: var(--muted); font-size: .78rem; }
.exp-card .pill .rec { color: #ff8a7d; }
.exp-card .pill .rec::before { background: #ff8a7d; }
.exp-legal { padding: 8px 0 0; justify-content: flex-start; }

/* Mein Profil → Lightroom Classic (1.23) */
.lr-badge { font: 800 15px/1 var(--sans); letter-spacing: -.02em; color: #31a8ff; background: #001e36; border: 1px solid #31a8ff55; display: grid; place-items: center; }
.lr-steps { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.lr-steps li { line-height: 1.55; color: var(--text-2); }
.lr-steps li b { color: var(--text); }
.lr-steps li > .btn, .lr-key { display: inline-flex; gap: 8px; margin: 8px 0 0; }
.lr-steps li > .btn { display: flex; width: max-content; }
.lr-key { display: flex; }
.lr-steps code { font: 500 .85em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-hi); }
#lr-state { display: block; margin-top: 6px; }
.lr-show { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lr-show input { flex: 1; min-width: 220px; font: 500 .85rem var(--mono); }
.lr-show small { flex-basis: 100%; }

/* 1.23: eigener Mail-Zugang optional */
.smtp-box > p.small { margin: 8px 0 12px; }
.smtp-actions { display: grid; gap: 8px; margin-top: 4px; }

/* 1.23: WhatsApp in „Wer bist du?“ */
.who-dlg label.who-wa-ok { flex-direction: row; align-items: center; gap: 10px; margin-top: -6px; font-size: .86rem; cursor: pointer; }
.who-dlg label.who-wa-ok input { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); flex: none; }

/* ---------- 1.23: WhatsApp ---------- */
:root { --wa: #25d366; --wa-dk: #128c4b; }
/* Einstellungen */
.wa-panel .keys-head .label { display: inline-flex; align-items: center; gap: 10px; }
.wa-logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(37,211,102,.14); color: var(--wa); }
.wa-logo svg, .wa-badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wa-badge { color: var(--wa); background: rgba(37,211,102,.12); }
.wa-badge svg { width: 22px; height: 22px; }
.wa-state { font-size: .8rem; padding: 4px 10px; border-radius: 99px; background: rgba(var(--ink), .07); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.wa-state.ok { background: rgba(37,211,102,.14); color: var(--wa); }
.wa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 14px; }
.wa-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wa-col .notif-sub { margin: 8px 0 0; }
.wa-col .notif-sub:first-child { margin-top: 0; }
.wa-seg { flex-wrap: wrap; }
.wa-seg button { flex: 1 1 auto; }
.wa-tpl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wa-tpl li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; font-size: .86rem; color: var(--text-2); }
.wa-tpl li + li { border-top: 1px solid var(--line); }
.wa-st { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; font-style: normal; padding: 3px 8px; border-radius: 99px; background: rgba(var(--ink), .07); color: var(--muted); white-space: nowrap; }
.wa-st.ok { background: rgba(37,211,102,.14); color: var(--wa); }
.wa-st.wait { background: rgba(255,190,80,.14); color: #e8b14f; }
.wa-st.bad { background: rgba(255,90,90,.14); color: #ff7a7a; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wa-col:first-child .wa-actions { justify-content: flex-start; }
.wa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wa-fields label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-2); min-width: 0; }
.wa-fields input { height: 40px; padding: 0 11px; border-radius: 10px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .9rem var(--sans); min-width: 0; }
.wa-fields input:focus { outline: none; border-color: var(--accent); }
.wa-fields small { font-size: .74rem; }
.wa-copy { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .82rem; color: var(--text-2); }
.wa-copy code { font: 500 .8rem var(--mono); padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.25); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-last { margin: 0; text-align: right; }
.wa-last.warn { color: #ff8a7a; }
@media (max-width: 900px) { .wa-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .wa-fields { grid-template-columns: 1fr; } .wa-copy { grid-template-columns: 1fr auto; } .wa-copy span { grid-column: 1 / -1; } }
/* Profil */
.wa-me-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
/* Chat: Liste */
.wa-sec { margin-top: 6px; }
.wa-sec-h { display: flex; align-items: center; gap: 7px; margin: 14px 10px 6px; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wa-sec-h svg { width: 14px; height: 14px; fill: none; stroke: var(--wa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-sec-h small { font: inherit; color: var(--wa); }
.wa-av { background: linear-gradient(135deg, rgba(37,211,102,.32), rgba(37,211,102,.08)); }
.wa-dot { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--wa-dk); box-shadow: 0 0 0 2.5px var(--dk-17181b); }
.wa-dot svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wa-row.unread .ch-unread { background: var(--wa); color: #06210f; }
.wa-none { padding: 4px 10px 10px; font-size: .82rem; }
/* Chat: Unterhaltung */
.wa-view { display: flex; flex-direction: column; gap: 6px; min-height: 100%; }
.wa-view[hidden] { display: none; }
.wa-ctx { position: sticky; top: 0; z-index: 2; margin: -2px -2px 6px; padding: 10px 12px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.wa-ctx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.wa-folder { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 600; }
.wa-folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-folder svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wa-folder:hover { color: var(--accent); }
.wa-ctx .btn-small { flex: none; }
.wa-link-pick { display: flex; align-items: center; gap: 8px; width: 100%; font-size: .82rem; color: var(--muted); }
.wa-link-pick select { flex: 1; min-width: 0; height: 34px; border-radius: 9px; background: rgba(0,0,0,.25); border: 1px solid var(--line-hi); color: var(--text); padding: 0 8px; font: 500 .84rem var(--sans); }
.wa-window { margin: 0; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.wa-window.open { color: var(--wa); }
.wa-window.closed { color: #e8b14f; }
.wa-msgs { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.wa-msg.mine .ch-bubble { background: rgba(37,211,102,.16); border-color: rgba(37,211,102,.28); }
.wa-msg.failed .ch-bubble { border-color: rgba(255,90,90,.5); }
.wa-tpl-msg { border-style: dashed; }
.wa-img { display: block; margin: -4px -6px 6px; border-radius: 10px; overflow: hidden; max-width: 240px; }
.wa-img img { display: block; width: 100%; height: auto; }
.wa-file { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: .86rem; }
.wa-file svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wa-via { font-size: .7rem; color: var(--muted); }
.wa-tick { display: inline-flex; }
.wa-tick svg + svg { margin-left: -7px; }
.wa-tick.read { color: #53bdeb; }
.wa-err { font-size: .7rem; color: #ff7a7a; cursor: help; }
.wa-compose { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.wa-compose[hidden] { display: none; }
.wa-compose textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; box-sizing: border-box; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-hi);
  background: rgba(var(--ink), 0.04); color: var(--text); font: 400 .9rem/1.35 var(--sans); }
.wa-compose textarea:focus { outline: none; border-color: var(--wa); }
.wa-compose .ch-send { background: var(--wa); color: #06210f; }
.wa-compose.closed textarea, .wa-compose.closed .ch-send { opacity: .4; cursor: not-allowed; }
/* Kundenlink */
.share-wa { margin: -2px 0 2px; }
.share-wa p { margin: 0; display: flex; align-items: center; gap: 6px; }
.share-wa-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(37,211,102,.22); background: rgba(37,211,102,.05); }
.share-wa-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.share-wa .ico { width: 16px; height: 16px; color: var(--wa); fill: none; stroke: currentColor; stroke-width: 1.9; flex: none; }
.wa-chip { font-size: .78rem; padding: 3px 9px; border-radius: 99px; background: rgba(37,211,102,.14); color: var(--text); }
.wa-chip.off { background: rgba(var(--ink), .07); color: var(--muted); }
.dialog.wa-dlg { width: min(480px, calc(100vw - 24px)); max-width: none; }
.wa-dlg form { display: flex; flex-direction: column; gap: 14px; }
.wa-dlg label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .9rem; }
.wa-dlg label[hidden] { display: none; }
.wa-dlg input:not([type=checkbox]), .wa-dlg select { height: 44px; padding: 0 12px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 500 .95rem var(--sans); }
.wa-dlg label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .86rem; cursor: pointer; }
.wa-dlg label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wa); flex: none; }
.wa-dlg small { font-size: .76rem; }
.wa-dlg h2 { margin: 0; }
.wa-dlg p { margin: 0; }

/* 1.23: Kundenlink – Optionen mit Schalter (Passwort, Auswahl-Limit, Gültig bis) */
.opt { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; background: rgba(var(--ink), .015);
  transition: border-color .25s, background .25s; }
.opt.is-open { border-color: var(--line-hi); background: rgba(var(--ink), .03); padding-bottom: 14px; }
.opt > .switch, .opt-head { min-height: 44px; }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opt-head .sr-val { font-size: .86rem; text-align: right; }
.opt-body { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.opt:not(.is-open) .opt-body { display: none; }
.opt.is-open .opt-body { animation: optIn .28s var(--ease) both; }
@keyframes optIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.opt-pw .pw-status { display: none; }
.opt-pw .pw-legacy { margin: 0; }
.opt-limit .inline-form { max-width: 220px; }
.opt-exp .sr-row { margin: 0; }
.opt-exp .sr-sub { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.sr-after { width: 100%; }
.sr-after button { flex: 1; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.sr-hint { font-size: .78rem; }
.sr-after-days { flex-direction: row !important; align-items: center; gap: 8px; }
.sr-after-days input { width: 72px; }
.sr-dl .sr-sub { margin: 0; padding: 0; border: 0; }
.sr-checks input[type=checkbox], .so-chip input[type=checkbox] { accent-color: var(--accent); }
#share.mode-deliver #share-limit-box { display: none; }
.share-rules { border: 0; padding: 0; gap: 12px; }
.auto-in.auto-pw input { width: 180px; }
.opt-pw #pw-remove { display: none; }
.share-rules > .sr-block { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(var(--ink), .015); }
.share-rules > .sr-block[hidden] { display: none; }
.wa-msg { width: 100%; box-sizing: border-box; resize: vertical; min-height: 150px; padding: 10px 12px; border-radius: 12px; background: var(--dk-1d1e22); border: 1px solid var(--line-hi); color: var(--text); font: 400 .88rem/1.45 var(--sans); }
.wa-msg:focus { outline: none; border-color: var(--wa); }
.wa-ph { display: flex; flex-wrap: wrap; gap: 6px; }

/* 1.23: Text für den Kunden – Knöpfe im Eingabefeld wie beim Kunden (richtext.js) */
textarea.rt-src { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; pointer-events: none; padding: 0 !important; border: 0 !important; }
.rt-ed.lead { margin: 0; max-width: none; min-height: 170px; color: var(--text-2) !important; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; outline: none; cursor: text;
  transition: border-color .2s, box-shadow .2s; }
.rt-ed.lead:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.12); }
.rt-ed .rt-btns { display: flex; cursor: default; user-select: none; }
.rt-ed .rt-b { position: relative; display: inline-flex; }
.rt-ed .rt-b > .lead-btn, .rt-ed .rt-b > .lead-link, .rt-ed .rt-in > * { cursor: pointer; }
.rt-ed .rt-in { display: inline-flex; vertical-align: middle; margin: 0 2px; user-select: none; }
.rt-ed .lead-btn { display: inline-flex; align-items: center; }
.rt-x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-hi); background: var(--dk-24252a);
  color: var(--text); font: 600 14px/1 var(--sans); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; padding: 0; }
.rt-b:hover .rt-x { opacity: 1; transform: none; }
.rt-x:hover { background: var(--danger, #e5484d); border-color: transparent; color: #fff; }
.rt-ed.text-swap { animation: text-swap .25s ease; }

/* 1.23: Team als Profil-Kacheln – im Ordner (Reiter „Team“) … */
.ta-fixed { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(var(--ink), .03); border: 1px solid var(--line); }
.ta-fixed-l { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ta-faces { display: flex; padding-left: 6px; }
.ta-face { width: 34px; height: 34px; margin-left: -6px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 700 .85rem var(--sans);
  background: linear-gradient(135deg, rgba(255,138,61,.4), rgba(255,138,61,.1)); color: var(--text); box-shadow: 0 0 0 2.5px var(--dk-17181b); cursor: default; }
.ta-face img { width: 100%; height: 100%; object-fit: cover; }
.ta-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ta-q { flex: 1 1 200px; height: 38px !important; min-height: 0 !important; }
.ta-filter button { font-size: .8rem; padding: 6px 12px; }
.ta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.ta-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px 10px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(var(--ink), .02); transition: border-color .2s, background .2s, opacity .2s; min-width: 0; }
.ta-tile.lv-view { border-color: rgba(106,169,255,.45); background: rgba(106,169,255,.06); }
.ta-tile.lv-edit { border-color: rgba(255,138,61,.5); background: rgba(255,138,61,.06); }
.ta-tile.lv-none .ta-av { filter: grayscale(.8); opacity: .65; }
.ta-tile.is-off { opacity: .55; }
.ta-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 700 1.3rem var(--sans); margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(255,138,61,.4), rgba(255,138,61,.1)); color: var(--text); transition: filter .2s, opacity .2s; }
.ta-av img { width: 100%; height: 100%; object-fit: cover; }
.ta-tile b { font-size: .9rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-tile small { font-size: .74rem; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
.ta-lv { display: flex; gap: 3px; margin-top: 8px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.ta-lv button { width: 34px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.ta-lv button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ta-lv button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ta-lv button:hover { color: var(--text); background: rgba(var(--ink), .06); }
.ta-lv button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.ta-tile.lv-view .ta-lv button[aria-pressed="true"] { background: #6aa9ff; color: #0b1626; }
.ta-tile.lv-edit .ta-lv button[aria-pressed="true"] { background: var(--accent); color: #1a0e05; }
.ta-none { grid-column: 1 / -1; }

/* … und in den Einstellungen (Team) */
.team-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px !important; }
.team-list .tm { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 14px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(var(--ink), .02); position: relative; }
.team-list .tm-av { width: 64px; height: 64px; font-size: 1.5rem; overflow: visible; }
.team-list .tm-av img { border-radius: 50%; }
.team-list .tm-av .ch-on { width: 14px; height: 14px; right: 2px; bottom: 2px; }
.team-list .tm-who { align-items: center; width: 100%; }
.team-list .tm-who > b { white-space: normal; }
.team-list .tm-who > .small { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.team-list .tm-rights { justify-content: center; }
.team-list .tm-ctl { width: 100%; justify-content: center; flex-wrap: wrap; margin-top: auto; }
.team-list .tm-ctl select { flex: 1 1 0; min-width: 0; }
.team-list .tm .tm-more { position: absolute; top: 8px; right: 8px; }
.team-list .tm .tm-more .tm-menu { right: 0; left: auto; text-align: left; }
.team-search { margin: 0 0 12px; height: 40px !important; min-height: 0 !important; }
.ta-q, .team-search { width: 100%; background: rgba(0,0,0,.25); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font: 400 15px var(--sans); }
.ta-q:focus, .team-search:focus { outline: none; border-color: var(--accent); }
.team-list .tm-ctl select { flex: 1 1 100%; }
.srch { position: relative; display: flex; align-items: center; flex: 1 1 220px; margin: 0; }
.srch svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.srch input { padding-left: 38px !important; height: 40px !important; min-height: 0 !important; margin: 0; }
#team > .srch { margin-bottom: 12px; }
/* Pfad-Menü: Unterordner weiter aufklappen (wie im Explorer) */
.peek-row.has-sub { position: relative; padding-right: 26px; }
.peek-row.has-sub::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -4px; border-right: 1.6px solid var(--muted); border-top: 1.6px solid var(--muted); transform: rotate(45deg); }
.peek-row.is-open { background: rgba(var(--ink), 0.09); }
.peek-row.is-open::after { border-color: var(--accent); }
.peek-sub { position: fixed; }
/* lange Listen: Kopfzeile bleibt ganz, nur die Liste scrollt */
.peek > .peek-head { flex: none; }
.peek > .peek-list { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.lightbox.key-glide .lb-stage img, .lightbox.key-glide .lb-marks { transition: scale .25s cubic-bezier(.3,.8,.3,1), transform-origin .25s cubic-bezier(.3,.8,.3,1); }

/* 1.23: Suche – großes Ordnersymbol + Bilderstapel mit Zählern */
.sr-meta { display: flex; align-items: center; gap: 18px; padding-right: 6px; }
.sr-fold, .sr-stack { position: relative; display: inline-grid; place-items: center; flex: none; }
.sr-fold svg { width: 34px; height: 34px; fill: rgba(255,138,61,.22); stroke: var(--accent); stroke-width: 1.4; }
.sr-stack { width: 44px; height: 36px; }
.sr-layer { position: absolute; width: 34px; height: 26px; border-radius: 6px; background: rgba(var(--ink), .08) center / cover no-repeat; border: 1.5px solid var(--dk-17181b);
  box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; }
.sr-layer.empty svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.sr-stack .l1 { transform: translate(0, 3px); z-index: 3; }
.sr-stack .l2 { transform: translate(5px, -2px) rotate(7deg); z-index: 2; filter: brightness(.8); }
.sr-stack .l3 { transform: translate(-5px, -4px) rotate(-8deg); z-index: 1; filter: brightness(.65); }
.sr-badge { position: absolute; top: -7px; right: -9px; z-index: 5; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 99px;
  display: grid; place-items: center; font: 700 10.5px var(--sans); font-style: normal; color: #1a0e05; background: var(--accent); box-shadow: 0 0 0 2px var(--dk-17181b); }
.sr-stack .sr-badge { background: var(--text); color: var(--bg); }
.sr-item.is-sel .sr-badge, .sr-item:hover .sr-badge { box-shadow: 0 0 0 2px var(--dk-24252a); }

/* 1.23: Glocke – stumm schalten + aufräumen */
.inbox-tools { position: relative; display: flex; align-items: center; gap: 4px; }
.inbox-tools .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.inbox-mute.on { color: var(--accent); }
.inbox-menu { top: calc(100% + 6px); right: 0; }
.inbox-set { margin-left: 4px; }
.inbox-muted { margin: 0; padding: 8px 16px; font-size: .8rem; color: #e8b14f; background: rgba(255,190,80,.07); border-bottom: 1px solid var(--line); }
.inbox > summary.is-muted { position: relative; }
.inbox > summary.is-muted svg { opacity: .55; }
.inbox > summary.is-muted::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.8px; margin: -1px 0 0 -11px; border-radius: 2px;
  background: currentColor; transform: rotate(-45deg); opacity: .8; pointer-events: none; }

/* ===================== 1.24 ===================== */
/* Regeln rechts: Neuaufbau ohne Einblend-Animation (kein Flackern) */
.share-rules.no-anim *, .share-rules.no-anim { animation: none !important; transition: none !important; }
/* Segment-Schalter: die helle Fläche gleitet zur neuen Wahl (glide.js) */
.seg { position: relative; }
.seg > button { position: relative; z-index: 1; }
.seg-ghost { position: absolute; z-index: 0; border-radius: 7px; background: var(--text); pointer-events: none; }
.seg > button.glide-to { background: transparent !important; transition: color .2s; }
/* Passwort: Ändern | Kopieren */
.pw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.pw-actions > .btn { justify-content: center; }
.pw-actions.one { grid-template-columns: 1fr; }
.pw-actions #pw-copy { display: inline-flex; align-items: center; gap: 7px; }
.pw-actions #pw-copy .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* Zahlenfeld mit −/+ */
.num-step { display: inline-flex; align-items: stretch; height: 44px; border: 1px solid var(--line-hi); border-radius: 12px; background: rgba(0,0,0,.25); overflow: hidden; }
.num-step:focus-within { border-color: rgba(255,138,61,.6); box-shadow: 0 0 0 3px rgba(255,138,61,.15); }
.num-step input { width: 64px; border: 0 !important; background: none !important; box-shadow: none !important; text-align: center; font: 600 1rem var(--mono); color: var(--text); padding: 0; border-radius: 0; }
.num-step input:focus { outline: none; }
.ns-btn { width: 40px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.ns-btn:hover { background: rgba(var(--ink), .06); color: var(--text); }
.ns-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Upload-Streifen über dem Raster: Bilder tauchen einfach auf (kein Hineinfliegen) */
.up-strip .bc-mosaic i:first-child { animation: stripIn .35s cubic-bezier(.2,.9,.25,1); }
@keyframes stripIn { from { opacity: 0; transform: scale(.7); } }

/* Upload-Anzeige: Ordner geht auf, Bilder fliegen hinein · zu + Schraubenschlüssel beim Verarbeiten · grünes Häkchen */
.bgup.center { left: 0; right: 0; margin-inline: auto; }
.bgup-stage { width: 66px; height: 52px; align-self: center; }
.bgup-folder { position: absolute; left: 4px; top: 2px; bottom: auto; width: 58px; height: 48px; animation: none; }
.bgup-folder svg { filter: none; }
.bgup-lid { display: none; }
.bgup-folder .bf-back { position: absolute; inset: 0; width: 100%; height: 100%; fill: #c75f22 !important; }
.bf-sheet { position: absolute; left: 7px; right: 7px; top: 11px; height: 22px; border-radius: 3px; background: linear-gradient(#f4ede6, #ddd2c7); transform: rotate(-3deg); opacity: .9; }
.bf-pics { position: absolute; inset: 0; z-index: 1; }
.bgup-folder .bf-front { position: absolute; left: 0; bottom: 0; width: 100%; height: 36px; z-index: 2; fill: var(--accent) !important;
  filter: drop-shadow(0 -2px 5px rgba(0,0,0,.25)) !important; transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.3,1.4,.5,1), fill .3s; }
.bgup.uploading .bf-front { transform: perspective(90px) rotateX(-46deg); }
.bgup .bgup-pic { left: 13px; top: -30px; z-index: 1; }
@keyframes bgup-fly {
  0% { transform: translate(calc(var(--sx) - 34px), -18px) rotate(calc(var(--r) * -1.5)) scale(.75); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translate(calc(var(--sx) * .3), 2px) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(0, 40px) rotate(0) scale(.6); opacity: 1; }
}
.bgup-folder.gulp .bf-front { animation: bf-gulp .45s cubic-bezier(.3,.7,.3,1); }
@keyframes bf-gulp { 40% { transform: perspective(90px) rotateX(-30deg) scaleY(.96); } }
.bgup-folder .bf-wrench { position: absolute; z-index: 3; left: 50%; top: 62%; width: 26px; height: 26px; margin: -13px 0 0 -13px; fill: #fff !important;
  opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .25s, transform .3s; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)) !important; }
.bgup.proc .bgup-folder { animation: none; }
.bgup.proc .bf-wrench { opacity: 1; transform: none; animation: bf-turn 1.1s ease-in-out .3s infinite; }
@keyframes bf-turn { 0%, 100% { transform: rotate(-28deg); } 50% { transform: rotate(32deg); } }
.bgup.done .bf-back { fill: #2f8f62 !important; } .bgup.done .bf-front { fill: rgb(var(--ok-g)) !important; }
.bgup.done .bgup-folder::after { z-index: 4; top: 64%; }
.bgup.done .bf-sheet { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bgup.proc .bf-wrench { animation: none; } .bf-front { transition: none; } }
/* Vorschau in den Einstellungen: auch Mitte */
.up-prev[data-pos="center"] .upp-dock { left: 50%; transform: translateX(-50%); }

/* Suche: Ordner als Mappe mit eingestecktem Bild */
.sr-fico { position: relative; width: 46px; height: 40px; flex: none; }
.sr-fico .sf-back { position: absolute; inset: 0; border-radius: 4px 8px 8px 8px; background: #b9581f; }
.sr-fico .sf-back::before { content: ""; position: absolute; left: 0; top: -4px; width: 19px; height: 8px; border-radius: 4px 4px 0 0; background: #b9581f; }
.sr-fico .sf-pic { position: absolute; left: 4px; right: 4px; top: 2px; bottom: 6px; border-radius: 4px; background: #f1ebe5 center / cover no-repeat;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); transform: rotate(-4deg); transition: transform .25s cubic-bezier(.2,.9,.25,1); display: grid; place-items: center; }
.sr-fico .sf-pic svg { display: none; }
.sr-fico .sf-front { position: absolute; left: 0; right: 0; bottom: 0; height: 11px; border-radius: 3px 3px 8px 8px; background: linear-gradient(var(--accent), #e8752f);
  box-shadow: 0 -2px 4px rgba(0,0,0,.25); }
.sr-fico.empty .sf-pic { background: rgba(255,255,255,.12); box-shadow: none; }
.sr-item:hover .sr-fico .sf-pic, .sr-item.on .sr-fico .sf-pic, .sr-item[aria-selected="true"] .sr-fico .sf-pic { transform: translateY(-4px) rotate(-6deg); }
/* Strg+Z: was genau zurückgenommen wurde */
.undo-card { position: fixed; z-index: 640; left: 50%; top: calc(var(--topbar, 64px) + 14px); display: flex; gap: 14px; align-items: flex-start; max-width: min(460px, calc(100vw - 32px));
  padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(var(--dkr-14-15-17), .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-hi); box-shadow: 0 22px 60px rgba(0,0,0,.5); color: var(--text); cursor: pointer;
  transform: translate(-50%, -14px) scale(.97); opacity: 0; transition: transform .38s cubic-bezier(.2,1.3,.4,1), opacity .25s; }
.undo-card.on { transform: translate(-50%, 0); opacity: 1; }
.uc-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255,138,61,.4); }
.uc-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.undo-card.on .uc-ico svg { animation: ucSpin .6s cubic-bezier(.3,1.4,.5,1); }
@keyframes ucSpin { from { transform: rotate(160deg); } }
.uc-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.uc-k { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.uc-k kbd { font: 600 9px var(--mono); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-hi); color: var(--text-2); text-transform: none; }
.uc-main b { font-size: 1rem; font-weight: 600; }
.uc-route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uc-chip { padding: 3px 10px; border-radius: 99px; font-size: .82rem; background: rgba(var(--ink), .06); border: 1px solid var(--line); color: var(--text-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-chip.to { color: var(--accent); border-color: rgba(255,138,61,.45); background: var(--accent-soft); }
.uc-arr { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; }
.uc-sub, .uc-left { font-size: .8rem; color: var(--muted); }
.so-item[data-id] { cursor: grab; }
body.dragging-items .sub-orbit { pointer-events: none; }
/* Andere Unternehmen: Aktivität der letzten 7 Tage als ruhiges Zahlen-Raster (3 × 2) */
.acc-stats { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.acc-stats-k { display: block; font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; text-align: left; }
.acc-stats-k em { font-style: normal; color: var(--sel); }
.acc-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.as-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; min-width: 0; text-align: center; }
.as-cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.as-cell:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.as-cell b { font: 600 1.05rem var(--mono); color: var(--text); line-height: 1.1; }
.as-cell small { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.as-cell svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-cell:not(.zero) small { color: var(--text-2); }
.as-cell:not(.zero) svg { color: var(--accent); }
.as-cell.zero b { color: var(--muted); font-weight: 500; opacity: .7; }
/* WhatsApp: Einrichtungs-Assistent */
.wa-guide-cta { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(37,211,102,.10), rgba(255,138,61,.08)); border: 1px solid rgba(37,211,102,.35); }
.wa-guide-cta.is-done { background: rgba(var(--ink), .025); border-color: var(--line); }
.wgc-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(37,211,102,.15); color: #25d366; }
.wgc-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.wgc-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wgc-txt small { color: var(--muted); font-size: .8rem; }
.wg-dlg { width: min(1060px, calc(100vw - 32px)); max-width: none; padding: 0; overflow: hidden; }
.wg-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.wg-head b { flex: 1; font-size: 1rem; }
.wg-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 14px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.wg-steps button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border: 1px solid transparent; border-radius: 99px; background: none; color: var(--muted); font: 500 .8rem var(--sans); white-space: nowrap; cursor: pointer; }
.wg-steps button i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); font-style: normal; background: rgba(var(--ink), .07); }
.wg-steps button i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.wg-steps button.done { color: var(--text-2); }
.wg-steps button.done i { background: rgba(37,211,102,.18); color: #3ddc84; }
.wg-steps button.on { color: var(--text); border-color: rgba(255,138,61,.45); background: var(--accent-soft); }
.wg-steps button.on i { background: var(--accent); color: #1a0e05; }
.wg-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; padding: 22px 24px; max-height: calc(100vh - 230px); overflow: auto; }
.wg-k { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wg-text h2 { margin: 4px 0 12px; font-size: 1.3rem; }
.wg-list { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.5; color: var(--text-2); }
.wg-list b { color: var(--text); }
.wg-list code, .wg-copy code { font-size: .78rem; }
.wg-note, .wg-warn { font-size: .82rem; line-height: 1.45; padding: 10px 12px; border-radius: 12px; margin: 0 0 12px; background: rgba(var(--ink), .04); color: var(--text-2); }
.wg-warn { background: rgba(255,170,60,.08); border: 1px solid rgba(255,170,60,.3); }
.wg-fields { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.wg-fields label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-2); }
.wg-fields small.ok { color: #3ddc84; font-size: .75rem; }
.wg-copy { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); min-width: 0; }
.wg-copy span { flex: none; font-size: .75rem; color: var(--muted); }
.wg-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; }
.wg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wg-acts .btn { display: inline-flex; align-items: center; gap: 7px; }
.wg-acts .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.wg-result { margin: 10px 0 0; font-size: .85rem; min-height: 1.2em; color: var(--muted); }
.wg-result.ok, .wg-state.ok { color: #3ddc84; } .wg-result.bad { color: #ff7a6b; }
.wg-state { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.wg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.wg-dots { display: flex; gap: 6px; margin: 0 auto; }
.wg-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--ink), .15); transition: width .25s, background .25s; }
.wg-dots i.on { width: 20px; border-radius: 4px; background: var(--accent); }
/* nachgezeichnete Meta-Seite (bewusst hell, wie bei Meta) */
.wg-mock { align-self: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.35); background: #f0f2f5; color: #1c1e21; font: 500 12px var(--sans); }
.wgm-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #e4e6eb; }
.wgm-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c4c7cc; }
.wgm-bar span { margin-left: 8px; flex: 1; padding: 3px 10px; border-radius: 99px; background: #fff; color: #65676b; font: 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgm-win { display: flex; min-height: 250px; }
.wgm-side { flex: none; width: 34%; padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; background: #fff; border-right: 1px solid #dadde1; }
.wgm-side span { padding: 6px 8px; border-radius: 7px; color: #444950; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wgm-side span.sub { padding-left: 20px; font-size: 11px; }
.wgm-side span.on { background: #e7f3ff; color: #0064d1; font-weight: 700; box-shadow: inset 0 0 0 2px var(--accent); }
.wgm-body { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.wgm-h { font-weight: 700; font-size: 13px; }
.wgm-opt, .wgm-step, .wgm-table, .wgm-row { position: relative; padding: 9px 11px; border-radius: 9px; background: #fff; border: 1px solid #dadde1; }
.wgm-step.ok { color: #65676b; } .wgm-step em, .wgm-row em { font-style: normal; color: #65676b; margin-left: 6px; font-weight: 400; }
.wgm-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.wgm-field > span { font-weight: 700; font-size: 11px; color: #444950; }
.wgm-field i { position: relative; font-style: normal; padding: 7px 10px; border-radius: 7px; background: #fff; border: 1px solid #ccd0d5; color: #444950; font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgm-field i u { color: #0064d1; text-decoration: none; font-family: var(--sans); font-weight: 700; margin-left: 6px; }
.wgm-field i.strike { color: #b0322c; font-family: var(--sans); text-decoration: line-through; opacity: .75; }
.wgm-ids { display: flex; flex-direction: column; gap: 6px; }
.wgm-ids span { position: relative; padding: 7px 10px; border-radius: 7px; background: #fff; border: 1px solid #dadde1; font-weight: 700; font-size: 11px; }
.wgm-ids i { font-style: normal; font-weight: 400; font-family: var(--mono); color: #65676b; }
.wgm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wgm-btn { position: relative; padding: 7px 12px; border-radius: 7px; background: #e4e6eb; font-weight: 700; }
.wgm-btn.pri { background: #0866ff; color: #fff; }
.wgm-row { display: flex; align-items: center; gap: 8px; }
.wgm-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #0866ff; color: #fff; font-weight: 700; }
.wgm-checks { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 9px; background: #fff; border: 1px solid #dadde1; font-family: var(--mono); font-size: 11px; }
.wgm-table { display: flex; justify-content: space-between; }
.wgm-table em { font-style: normal; font-weight: 700; color: #1a7f37; } .wgm-table em.wait { color: #9a6700; }
.wg-mock .hl { outline: 2.5px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255,138,61,.18); }
.wgm-pin { position: absolute; z-index: 2; top: -9px; left: -9px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #1a0e05; font: 800 10px var(--mono); box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: wgPin 1.8s ease-in-out infinite; }
@keyframes wgPin { 50% { transform: scale(1.15); } }
@media (max-width: 820px) {
  .wg-main { grid-template-columns: 1fr; max-height: calc(100vh - 210px); }
  .wa-guide-cta { flex-wrap: wrap; }
}
.wgm-field i.hl { overflow: visible; }

/* ===================== Video-Proofing (vproof.js) ===================== */
.lightbox.vmode .lb-side, .lightbox.vmode #lb-marks { display: none !important; }
/* Kommentare zum ganzen Video: schwebendes Fenster über dem Video (Sprechblase öffnet, ✕ schließt) */
.lightbox.vmode .lb-side.lb-chat:not([hidden]) { display: flex !important; }
.lb-chat.lb-chat-float { left: 24px; top: 72px; width: 360px; max-height: calc(100% - 330px); min-height: 0; z-index: 6;
  box-shadow: 0 18px 60px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb-chat-x { display: none; }
.lb-chat.lb-chat-float .lb-chat-x { display: inline-flex; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; align-items: center; justify-content: center;
  border: 0; border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer; z-index: 1; }
.lb-chat.lb-chat-float .lb-chat-x:hover { background: rgba(var(--ink), .08); color: var(--text); }
.lb-chat.lb-chat-float .lb-chat-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lb-chat.lb-chat-float .lb-side-chev { display: none; }
.lb-chat.lb-chat-float .lb-side-head { padding-right: 48px; cursor: default; }
.lb-chat.lb-chat-float .lb-side-head b { margin-left: 8px; }
.lightbox.vmode .lb-comment-btn[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--accent); color: #1a0e05; font: 700 10px/16px var(--mono); text-align: center; }
.lightbox.vmode .lb-comment-btn { position: relative; }
@media (max-width: 900px) { .lightbox.vmode .lb-side.lb-chat:not([hidden]) { display: none !important; } }
.lightbox.vlist .lb-stage { --lb-right: 400px; }
.lightbox.vlist .vp, .lightbox.vlist .lb-bar { margin-right: 400px; }
.lightbox.vlist .lb-next { right: 416px; }
.vp { --vt-note: #4da3ff; --vt-keep: #3ddc84; --vt-cut: #ff6159; position: relative; z-index: 4; margin: 6px 16px 0; padding: 10px 12px 8px; border-radius: 16px;
  background: rgba(var(--dkr-14-15-17), .96); border: 1px solid var(--line-hi); box-shadow: 0 -10px 40px rgba(0,0,0,.35); user-select: none; -webkit-user-select: none; }
.vp[hidden] { display: none; }
.vp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vp-transport { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.vp-b { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 9px;
  background: none; color: var(--text-2); cursor: pointer; font: 600 11px var(--mono); transition: background .15s, color .15s; }
.vp-b:hover { background: rgba(var(--ink), .07); color: var(--text); }
.vp-b small { font-size: 10px; }
.vp-b.off { color: var(--muted); }
.vp-play { width: 50px; height: 50px; min-width: 50px; padding: 0; background: var(--accent); color: #1a0e05; border-radius: 50%; box-shadow: 0 6px 20px -6px rgba(255,138,61,.7); transition: transform .15s, background .15s; }
.vp-play:hover { background: #ff9b57; color: #1a0e05; transform: scale(1.06); }
.vp-play:active { transform: scale(.96); }
/* großes Symbol, Ecken abgerundet (Strich in gleicher Farbe), Dreieck optisch mittig (Schwerpunkt leicht rechts) */
.vp-play svg { display: block; fill: currentColor; stroke: none; width: 26px; height: 26px; }
.vp-play svg:has(use[href="#i-vplay"]) { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
/* runde Knöpfe wie bei modernen Playern – Abspielen groß in der Mitte, der Rest kleiner */
.vp-transport .vp-b:not(.vp-play), .vp-row > .vp-b[data-a="mute"], .vp-row > .vp-b[data-a="full"] { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.vp-transport .vp-b[data-a="prev"], .vp-transport .vp-b[data-a="next"] { width: 32px; min-width: 32px; height: 32px; }
.vp-skip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vp-skip text { font: 700 7.5px var(--sans); fill: currentColor; stroke: none; text-anchor: middle; }
.vp-tc { display: flex; align-items: baseline; gap: 4px; padding: 0 6px; font: 600 15px var(--mono); color: var(--text); letter-spacing: .02em; }
.vp-tc .vp-len { font-size: 11px; color: var(--muted); font-weight: 500; }
.vp-rate { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.vp-rate button { height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 11px var(--mono); cursor: pointer; }
.vp-rate button[aria-pressed="true"] { background: rgba(var(--ink), .12); color: var(--text); }
.vp-gap { flex: 1; }
.vp-tools { display: flex; gap: 6px; }
.vp-tools[hidden] { display: none; }
.vp-t { --c: var(--vt-note); display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text); font: 600 .84rem var(--sans); transition: background .15s, transform .15s; }
.vp-t svg { stroke: var(--c); width: 16px; height: 16px; }
.vp-t:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.vp-t.vt-keep { --c: var(--vt-keep); } .vp-t.vt-cut { --c: var(--vt-cut); }
.vp-t.rec { background: var(--c); color: #0d0e10; animation: vpRec 1.2s ease-in-out infinite; }
.vp-t.rec svg { stroke: #0d0e10; }
@keyframes vpRec { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent); } }
.vp-exp, .vp-poster { gap: 6px; font: 600 .82rem var(--sans); padding: 0 10px; border: 1px solid var(--line-hi); border-radius: 99px; }
.vp-listbtn { position: relative; gap: 6px; }
.vp-listbtn b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: rgba(var(--ink), .1); font: 700 10px/18px var(--mono); color: var(--text-2); }
.vp-listbtn.has b { background: var(--accent); color: #1a0e05; }
.vp-listbtn[aria-pressed="true"] { background: rgba(var(--ink), .1); color: var(--text); }
.vp-rec { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: .82rem; color: var(--text-2); }
.vp-rec[hidden] { display: none; }
.vp-rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: vpBlink 1s steps(2) infinite; }
@keyframes vpBlink { 50% { opacity: .2; } }
/* Zeitleiste */
.vp-tl { position: relative; margin-top: 10px; overflow-x: auto; overflow-y: hidden; border-radius: 10px; background: #0b0c0e; border: 1px solid var(--line); scrollbar-width: thin; cursor: text; outline: none; }
.vp-inner { position: relative; min-width: 100%; display: flex; flex-direction: column; }
.vp-ruler { position: relative; height: 22px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: ew-resize; }
.vp-ruler span { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(255,255,255,.22); }
.vp-ruler span i { position: absolute; left: 4px; top: 4px; font: 500 10px var(--mono); font-style: normal; color: rgba(255,255,255,.55); white-space: nowrap; }
.vp-ruler em { position: absolute; bottom: 0; height: 5px; border-left: 1px solid rgba(255,255,255,.14); }
.vp-lane { --rows: 1; position: relative; height: calc(var(--rows) * 24px + 8px); background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.02) 39px 40px); cursor: crosshair; }
.vp-note { --c: var(--vt-note); position: absolute; top: calc(4px + var(--r) * 24px); height: 20px; min-width: 6px; padding: 0 6px; border: 0; border-radius: 5px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 30%, #111); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 75%, transparent); color: #fff; text-align: left; overflow: hidden; }
.vp-note.vt-keep { --c: var(--vt-keep); } .vp-note.vt-cut { --c: var(--vt-cut); }
.vp-note.vt-cut { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #111) 0 6px, color-mix(in srgb, var(--c) 18%, #111) 6px 12px); }
.vp-note span { display: block; font: 600 11px/20px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.vp-note.on { box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); z-index: 2; }
.vp-note:not(.own) { opacity: .92; }
.vp-note .h { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; background: color-mix(in srgb, var(--c) 80%, #fff); opacity: 0; transition: opacity .15s; }
.vp-note .h.a { left: 0; border-radius: 5px 0 0 5px; } .vp-note .h.b { right: 0; border-radius: 0 5px 5px 0; }
.vp-note:hover .h, .vp-note.on .h { opacity: .9; }
.vp-note.pt { width: 2px; min-width: 2px; padding: 0; margin-left: -1px; overflow: visible; background: var(--c); box-shadow: none; border-radius: 0; }
.vp-note.pt i { position: absolute; top: 2px; left: 1px; width: 16px; height: 14px; border-radius: 3px 8px 8px 3px; background: var(--c); }
.vp-note.pt.on i { box-shadow: 0 0 0 2px #fff; }
.vp-strip { height: 54px; background: #15161a no-repeat; border-top: 1px solid rgba(255,255,255,.05); cursor: ew-resize; opacity: .35; transition: opacity .3s; }
.vp-strip.on { opacity: .95; }
.vp-wave { height: 30px; background: #101114; border-top: 1px solid rgba(255,255,255,.05); cursor: ew-resize; overflow: hidden; }
.vp-wave[hidden] { display: none; }
.vp-wave img { display: block; width: 100%; height: 100%; opacity: .55; filter: sepia(1) saturate(4) hue-rotate(-12deg); pointer-events: none; }
.vp-selbox { position: absolute; top: 22px; bottom: 0; background: rgba(255,138,61,.13); box-shadow: inset 1px 0 0 var(--accent), inset -1px 0 0 var(--accent); pointer-events: none; }
.vp-selbox[hidden] { display: none; }
.vp-selbox::after { content: attr(data-len); position: absolute; top: 3px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 700 10px var(--mono); white-space: nowrap; }
.vp-selbox .h { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; pointer-events: auto; }
.vp-selbox .h.a { left: -5px; } .vp-selbox .h.b { right: -5px; }
.vp-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 3; box-shadow: 0 0 8px rgba(255,138,61,.6); }
.vp-head i { position: absolute; top: 0; left: -6px; width: 14px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.vp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.vp-hint { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-zoom { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.vp-zoom button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.vp-zoom button svg { width: 13px; height: 13px; }
.vp-zoom b { min-width: 44px; text-align: center; font: 600 10px var(--mono); color: var(--muted); }
/* Liste der Stellen */
.vp-list { position: absolute; z-index: 5; top: 64px; right: 16px; bottom: 16px; width: 370px; display: flex; flex-direction: column;
  background: rgba(var(--dkr-22-23-26), .96); border: 1px solid var(--line-hi); border-radius: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.5); overflow: hidden; }
.vp-list[hidden] { display: none; }
.vpl-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.vpl-head b { font-size: .95rem; }
.vpl-n { font: 700 11px var(--mono); padding: 1px 7px; border-radius: 99px; background: rgba(var(--ink), .1); color: var(--text-2); }
.vpl-x { margin-left: auto; }
.vpl-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.vpl-empty { margin: 12px 8px; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.vpl-item { --c: var(--vt-note); display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), .025);
  box-shadow: inset 3px 0 0 var(--c); transition: border-color .15s, background .15s; }
.vpl-item.vt-keep { --c: var(--vt-keep); } .vpl-item.vt-cut { --c: var(--vt-cut); }
.vpl-item.on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.vpl-go { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 9px 8px 9px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.vpl-kind { display: inline-flex; align-items: center; gap: 6px; font: 700 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.vpl-kind svg { width: 13px; height: 13px; stroke: var(--c); }
.vpl-tc { font: 600 11px var(--mono); color: var(--text-2); text-align: right; }
.vpl-tc em { font-style: normal; color: var(--muted); margin-left: 4px; }
.vpl-txt { grid-column: 1 / -1; font-size: .86rem; line-height: 1.4; word-break: break-word; }
.vpl-txt i { color: var(--muted); }
.vpl-who { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); }
.vpl-act { flex: none; width: 34px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.vpl-act:hover { background: rgba(var(--ink), .07); color: var(--text); }
.vpl-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.vpl-act [href="#i-play"] { fill: currentColor; stroke: none; }
.vpl-act svg:has(use[href="#i-play"]) { fill: currentColor; stroke: none; }
/* Notiz an einer Stelle */
.vp-pop { --c: var(--vt-note); position: absolute; z-index: 8; width: 330px; padding: 12px; border-radius: 14px; background: var(--dk-1d1e22);
  border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line-hi)); box-shadow: 0 20px 50px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 9px; animation: vpPop .2s cubic-bezier(.2,1.2,.4,1); }
.vp-pop[hidden] { display: none; }
.vp-pop.vt-keep { --c: var(--vt-keep); } .vp-pop.vt-cut { --c: var(--vt-cut); }
@keyframes vpPop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.vpp-head { display: flex; align-items: center; gap: 8px; }
.vpp-head .icon-btn { margin-left: auto; }
.vpp-kind { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.vpp-kind svg { width: 14px; height: 14px; fill: none; stroke: var(--c); stroke-width: 2; }
.vpp-tc { font: 600 12px var(--mono); color: var(--text-2); }
.vpp-txt { margin: 0; font-size: .9rem; line-height: 1.45; }
.vpp-who { color: var(--muted); font-size: .75rem; }
.vpp-types { display: flex; gap: 4px; }
.vpp-types button { --c: var(--vt-note); flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--text-2); font: 600 .74rem var(--sans); }
.vpp-types button svg { width: 13px; height: 13px; fill: none; stroke: var(--c); stroke-width: 2; }
.vpp-types .vt-keep { --c: var(--vt-keep); } .vpp-types .vt-cut { --c: var(--vt-cut); }
.vpp-types button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text); }
.vpp-types button:disabled { opacity: .35; cursor: not-allowed; }
.vp-pop textarea { width: 100%; resize: vertical; min-height: 60px; }
.vpp-acts { display: flex; justify-content: space-between; }
/* Fotograf: Export */
.vp-exp-dlg { width: min(560px, calc(100vw - 32px)); }
.vpe-list { margin: 12px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; line-height: 1.45; color: var(--text-2); }
.vpe-list b { color: var(--text); }
.vpe-src { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--text-2); margin: 8px 0; }
.vpe-src input { font-family: var(--mono); font-size: .85rem; }
/* Kommentar-Übersicht: Zeit statt Nummer */
.fc-tc { flex: none; align-self: flex-start; padding: 2px 7px; border-radius: 6px; font: 700 11px var(--mono); background: rgba(77,163,255,.18); color: #8cc4ff; }
.fc-tc.vt-keep { background: rgba(61,220,132,.16); color: #7ff0b1; } .fc-tc.vt-cut { background: rgba(255,97,89,.16); color: #ff9690; }
@media (max-width: 1099px) {
  .vp-list { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 60vh; }
}
@media (max-width: 760px) {
  .vp { margin: 4px 8px 0; padding: 8px; }
  .vp-rate, .vp-b[data-a="back"], .vp-b[data-a="fwd"], .vp-b[data-a="full"], .vp-foot .vp-hint, .vp-exp span, .vp-poster span { display: none; }
  .vp-tc { font-size: 12px; }
  .vp-tools { width: 100%; order: 5; }
  .vp-t { flex: 1; justify-content: center; padding: 0 6px; font-size: .78rem; }
  .vp-strip { height: 40px; } .vp-wave { height: 22px; }
  .vp-pop { width: calc(100vw - 24px); }
}
.vp { container-type: inline-size; }
.vp-row { flex-wrap: nowrap; }
@container (max-width: 1120px) { .vp-t span, .vp-exp span, .vp-poster span { display: none; } .vp-t { padding: 0 11px; } }
@container (max-width: 900px) { .vp-rate, .vp-b[data-a="full"] { display: none; } }
@container (max-width: 640px) { .vp-row { flex-wrap: wrap; } .vp-b[data-a="back"], .vp-b[data-a="fwd"], .vp-b[data-a="mute"] { display: none; } .vp-tools { order: 5; width: 100%; } .vp-t { flex: 1; justify-content: center; } .vp-t span { display: inline; } }
.lightbox { --vt-note: #4da3ff; --vt-keep: #3ddc84; --vt-cut: #ff6159; }
.vp-t, .vpp-types button { white-space: nowrap; }
.vpp-types button { font-size: .72rem; gap: 4px; padding: 0 4px; }
.vpl-kind svg, .vpp-kind svg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ===================== Abgabe: Filme (Kinoplakat + Reihe) ===================== */
.films { width: min(1180px, calc(100% - 32px)); margin: 8px auto 48px; }
.films-k { margin: 0 0 14px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.films-k::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.film-hero { position: relative; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.fh-open { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.fh-open img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.95) brightness(.92); }
.fh-open:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.fh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%), radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(0,0,0,.45)); }
.fh-play { position: absolute; left: 50%; top: 50%; width: clamp(96px, 10vw, 150px); aspect-ratio: 1; height: auto; margin: 0; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1.5px solid rgba(255,255,255,.55); transition: transform .35s cubic-bezier(.2,1.4,.4,1), background .3s; }
.fh-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: fhRing 2.6s ease-out infinite; }
@keyframes fhRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.fh-play svg { width: 76%; height: 76%; fill: #fff; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; margin: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.fh-open:hover .fh-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); border-color: var(--accent); }
.fh-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 32px; pointer-events: none; }
.fh-meta b { font: 700 clamp(1.4rem, 3.4vw, 2.6rem)/1.05 var(--display, var(--sans)); letter-spacing: -.02em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.fh-meta > span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; pointer-events: auto; }
.fh-meta em { font: 600 12px var(--mono); font-style: normal; color: rgba(255,255,255,.8); padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.45); }
.fh-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35);
  color: #fff; font: 600 .86rem var(--sans); text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.fh-link:hover { background: rgba(255,255,255,.18); }
.fh-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.fh-link svg:has(use[href="#i-play"]) { fill: currentColor; stroke: none; }
.film-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.film-card { display: flex; flex-direction: column; gap: 9px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.fc-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 14px 34px -14px rgba(0,0,0,.7); }
.fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.film-card:hover .fc-img img { transform: scale(1.06); }
.fc-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5); opacity: .9; transition: transform .3s, background .3s; }
.fc-play svg { width: 76%; height: 76%; fill: #fff; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; margin: 0; }
.film-card:hover .fc-play { transform: scale(1.1); background: var(--accent); border-color: var(--accent); }
.fc-img em { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font: 600 11px var(--mono); font-style: normal; }
.film-card b { font-size: .95rem; font-weight: 600; padding: 0 2px; }
.grid.films-only { height: 0 !important; min-height: 0 !important; overflow: hidden; margin: 0; padding: 0; }
@media (max-width: 640px) {
  .film-hero { border-radius: 16px; }
  .fh-meta { position: static; flex-direction: column; align-items: flex-start; padding: 14px 4px 0; background: none; }
  .fh-meta b { color: var(--text); text-shadow: none; }
  .fh-meta > span { justify-content: flex-start; }
  .fh-link { background: rgba(var(--ink), .06); color: var(--text); border-color: var(--line-hi); }
  .film-hero { overflow: visible; background: none; box-shadow: none; }
  .fh-open { border-radius: 16px; }
  .fh-play { width: 78px; }
}
/* Kino-Modus: in der Abgabe ohne Proofing-Werkzeuge noch etwas dunkler */
.lightbox.vmode:not(:has(.vp-tools:not([hidden]))) { background: rgba(0,0,0,.985); }
.vp.ro .vp-lane, .vp.ro .vp-listbtn { display: none; } .vp.ro .vp-selbox { display: none; }
.fn-flow button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; min-height: 52px; } .fn-flow button small { font-size: .72rem; opacity: .7; font-weight: 400; }
/* ===================== Kundenlink als Phasen ===================== */
#share.flow-phases .share-mode > .seg, #share.flow-phases #mode-sub, #share.flow-phases #both-info, #share.flow-phases #both-help { display: none !important; }
.phases { display: flex; flex-direction: column; gap: 12px; }
.phases[hidden] { display: none; }
/* Phasen in „Aktivität“: eine Leiste mit drei Stationen – Linie füllt sich bis zur aktuellen Phase */
.ph-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.ph-steps li { position: relative; }
.ph-steps li + li::before { content: ""; position: absolute; left: calc(-50% + 26px); right: calc(50% + 26px); top: 25px; height: 2px; border-radius: 2px; background: var(--line-hi); z-index: 0; }
.ph-steps li.ph-done + li::before { background: linear-gradient(90deg, var(--sel), var(--accent)); }
.ph-steps li.ph-done + li.ph-done::before { background: var(--sel); }
.ph-steps button { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 8px 10px; border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; transition: background .2s; }
.ph-steps button:not(:disabled):hover { background: rgba(var(--ink), .035); }
.ph-top { display: grid; place-items: center; margin-bottom: 8px; }
.ph-steps i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2, #16171a); border: 1.5px solid var(--line-hi); color: var(--muted); transition: all .25s; }
.ph-steps i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-no { display: none; }
.ph-steps b { font-size: .95rem; font-weight: 650; color: var(--text); }
.ph-steps small { font-size: .76rem; color: var(--muted); line-height: 1.35; max-width: 22ch; }
.ph-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 11px; border-radius: 99px; font-size: .72rem; font-weight: 650; background: rgba(var(--ink), .06); color: var(--muted); }
.ph-tag svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* jetzt: leuchtet gleichmäßig rundum */
.ph-now i { background: var(--accent); border-color: var(--accent); color: #1a0e05; box-shadow: 0 0 0 5px rgba(255,138,61,.16), 0 0 26px rgba(255,138,61,.45); }
.ph-now .ph-tag { background: var(--accent-soft); color: var(--accent); }
/* erledigt */
.ph-done i { background: rgba(126,212,154,.14); border-color: rgba(126,212,154,.55); color: var(--sel); }
.ph-done small { color: var(--text-2); }
.ph-done button:hover .ph-tag-back { color: var(--text); }
/* als Nächstes: der eigentliche Knopf */
.ph-go i { border-style: dashed; border-color: rgba(255,138,61,.6); color: var(--accent); }
.ph-go .ph-tag-go { background: var(--accent); color: #1a0e05; }
.ph-go button:hover i { border-style: solid; background: var(--accent-soft); transform: scale(1.06); }
.ph-go button:hover .ph-tag-go { background: #ff9b57; }
.ph-next:not(.ph-go) button { opacity: .55; }
.ph-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-skip button { opacity: .5; }
.ph-skip button b { text-decoration: line-through; text-decoration-color: var(--muted); }
.act-ph > h3.label { margin: 18px 0 14px; }
.act-ph { padding: 0 0 4px; }
.ph-hint { margin: 6px auto 16px; max-width: 64ch; text-align: center; line-height: 1.5; }
@media (max-width: 560px) { .ph-steps small { display: none; } .ph-steps i { width: 38px; height: 38px; } .ph-steps li + li::before { top: 22px; } }
/* Einstellungen-Suche: Treffer sanft hinterlegt */
.set-glow { position: absolute; z-index: 5; pointer-events: none; border-radius: 14px; background: linear-gradient(90deg, rgba(255,138,61,.13), rgba(255,138,61,.04));
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(255,138,61,.22); animation: setGlow 2.6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes setGlow { 0% { opacity: 0; transform: translateX(-6px); } 12% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }
/* Video-Kachel: Dateityp sitzt rechts unten – Stift/Sprechblase darüber statt darauf */
.tile:has(.video-badge):has(.ext-tag) .ind-badges { bottom: 36px; }
@media (max-width: 720px) { .tile:has(.video-badge):has(.ext-tag) .ind-badges { bottom: 28px; } }
/* Texte: Auswahl | Abgabe nicht mehr aneinanderkleben */
.text-switch { gap: 6px; padding: 4px; margin-bottom: 16px; max-width: 460px; }
.text-switch button { border-radius: 8px; }
.text-switch button:not([aria-pressed="true"]):hover { background: rgba(var(--ink), .06); }
/* Neuer Ordner beim Benennen: Mülleimer weg, damit er nicht über „OK“ liegt */
.card:has(.card-name) .card-trash { display: none; }
/* Timecode mit fester Breite – die Geschwindigkeits-Knöpfe daneben springen beim Spulen nicht mehr */
.vp-tc { flex: none; font-variant-numeric: tabular-nums; }
.vp-tc .vp-cur { display: inline-block; width: 11.5ch; }
.vp-tc .vp-len { display: inline-block; width: 13.5ch; white-space: nowrap; }
.vp-rate { flex: none; margin-left: 4px; }
/* Filmstreifen aus Kacheln (kein Verzerren beim Zoomen) */
.vp-strip { display: flex; overflow: hidden; background-image: none !important; }
.vp-strip i { flex: none; height: 100%; background-repeat: no-repeat; box-shadow: inset -1px 0 0 rgba(0,0,0,.35); }
.vp-strip:not(.on) { background: repeating-linear-gradient(90deg, #15161a 0 94px, #1b1c21 94px 96px) !important; }
@keyframes vpShimmer { from { background-position: 0 0; } to { background-position: 192px 0; } }
.vp-strip:not(.on):empty { animation: vpShimmer 1.4s linear infinite; }
/* echter Vollbildmodus: nur das Video, schlanke Leiste unten beim Hinfahren */
.lightbox.vfull { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; background: #000 !important; }
.lightbox.vfull > :not(.lb-stage):not(.vp) { display: none !important; }
.lightbox.vfull .lb-prev, .lightbox.vfull .lb-next, .lightbox.vfull .lb-marks { display: none !important; }
.lightbox.vfull .lb-stage { position: fixed !important; inset: 0 !important; --lb-side: 0px !important; --lb-right: 0px !important; padding: 0 !important; margin: 0 !important; transform: none !important; }
.lightbox.vfull #lb-video { position: absolute !important; inset: 0 !important; margin: 0 !important; max-width: 100vw !important; max-height: 100vh !important; width: 100vw !important; height: 100vh !important; object-fit: contain; border-radius: 0; transform: none !important; }
.lightbox.vfull .vp { position: fixed; left: 50%; bottom: 18px; width: min(1100px, calc(100vw - 32px)); margin: 0; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.2,.9,.25,1); background: rgba(14,15,17,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lightbox.vfull .vp.peek { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lightbox.vfull .vp .vp-tools, .lightbox.vfull .vp .vp-lane, .lightbox.vfull .vp .vp-wave, .lightbox.vfull .vp .vp-foot,
.lightbox.vfull .vp .vp-listbtn, .lightbox.vfull .vp .vp-exp, .lightbox.vfull .vp .vp-poster, .lightbox.vfull .vp .vp-rec { display: none !important; }
.lightbox.vfull .vp .vp-strip { height: 40px; }
.lightbox.vfull.vfull-cursor { cursor: none; }
/* Art des Kundenlinks: zweizeilige Knöpfe */
/* Kundenlink: zwei Arten – Nur teilen · Proofing */
.seg-mode { padding: 4px; gap: 4px; }
.seg-mode button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; min-height: 58px; padding: 9px 14px; text-align: left; border-radius: 11px; }
.seg-mode button > svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(var(--ink), .06); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: background .25s, color .25s; }
.seg-mode button > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.seg-mode button b { font-weight: 650; font-size: .95rem; }
.seg-mode button small { font-size: .74rem; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-mode button[aria-pressed="true"] > svg { background: var(--accent); color: #1a0e05; }
.seg-mode button[aria-pressed="true"] small { color: inherit; opacity: .62; }
/* So läuft es ab – Schritte leuchten der Reihe nach auf */
.mode-anim { position: relative; margin: 12px 0 10px; padding: 16px 10px 12px; border-radius: 14px; background: rgba(var(--ink), .025); border: 1px solid var(--line); overflow: hidden; }
.mode-anim .ma { display: none; position: relative; margin: 0; padding: 0; list-style: none; }
.mode-anim[data-mode="deliver"] .ma-deliver, .mode-anim[data-mode="proof"] .ma-proof { display: grid; }
.ma-n3 { grid-template-columns: repeat(3, 1fr); --cyc: 4.2s; } .ma-n4 { grid-template-columns: repeat(4, 1fr); --cyc: 5.6s; }
.mode-anim.ma-in .ma { animation: maIn .45s cubic-bezier(.2,.9,.25,1); }
@keyframes maIn { from { opacity: 0; transform: translateY(6px); } }
.ma::before, .ma::after { content: ""; position: absolute; top: 20px; height: 2px; border-radius: 2px; }
.ma-n3::before, .ma-n3::after { left: 16.66%; right: 16.66%; } .ma-n4::before, .ma-n4::after { left: 12.5%; right: 12.5%; }
.ma::before { background: var(--line-hi); }
.ma::after { background: linear-gradient(90deg, rgba(255,138,61,.15), var(--accent)); transform-origin: left; animation: maLine var(--cyc) linear infinite; }
@keyframes maLine { 0% { transform: scaleX(0); opacity: 1; } 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.ma-st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; text-align: center; min-width: 0; }
.ma-node { position: relative; width: 42px; height: 42px; margin-bottom: 7px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2, #16171a); color: var(--muted); border: 1px solid var(--line-hi); animation: maLit3 var(--cyc) ease-in-out infinite; }
.ma-n4 .ma-node { animation-name: maLit4; }
.ma-node svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ma-node em { position: absolute; right: -6px; top: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bg, #0e0f11); border: 1px solid var(--line-hi); font: 600 9.5px/15px var(--mono); font-style: normal; color: var(--text-2); }
.ma-i1 .ma-node { animation-delay: calc(var(--cyc) / 3); } .ma-i2 .ma-node { animation-delay: calc(var(--cyc) * 2 / 3); }
.ma-n4 .ma-i1 .ma-node { animation-delay: calc(var(--cyc) / 4); } .ma-n4 .ma-i2 .ma-node { animation-delay: calc(var(--cyc) / 2); } .ma-n4 .ma-i3 .ma-node { animation-delay: calc(var(--cyc) * 3 / 4); }
@keyframes maLit3 { 0%, 30% { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,138,61,.6); box-shadow: 0 0 22px -2px rgba(255,138,61,.45); transform: translateY(-2px); } 40%, 100% { box-shadow: none; transform: none; } }
@keyframes maLit4 { 0%, 22% { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,138,61,.6); box-shadow: 0 0 22px -2px rgba(255,138,61,.45); transform: translateY(-2px); } 30%, 100% { box-shadow: none; transform: none; } }
.ma-st b { font-size: .8rem; font-weight: 650; color: var(--text); line-height: 1.25; }
.ma-st small { font-size: .7rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 520px) { .ma-st small { display: none; } }
@media (prefers-reduced-motion: reduce) { .mode-anim *, .mode-anim .ma::after { animation: none !important; } .ma::after { transform: scaleX(1); opacity: .5; } }
/* „Link aktiv“ + „Neuen Link erzeugen“ in einer Zeile */
.share-linkhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.share-linkhead #share-regenerate { font-size: .8rem; color: var(--muted); }
.share-linkhead #share-regenerate:hover { color: var(--text); }
/* Handlungsbedarf: Kunde hat abgeschickt – Kachel leuchtet, bis du die Meldung gelesen oder weitergeschaltet hast */
.card.needs-look { box-shadow: 0 0 0 1.5px rgba(126,212,154,.55), 0 0 34px -6px rgba(126,212,154,.45); animation: lookGlow 2.4s ease-in-out infinite; }
@keyframes lookGlow { 50% { box-shadow: 0 0 0 1.5px rgba(126,212,154,.85), 0 0 46px -4px rgba(126,212,154,.6); } }
.card.needs-look-here .card-status .st-ok { position: relative; animation: lookPing 1.6s ease-in-out infinite; }
.card.needs-look-here .card-status .st-ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sel); animation: lookRing 1.6s ease-out infinite; }
@keyframes lookPing { 50% { transform: scale(1.12); } }
@keyframes lookRing { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.card.role-select.needs-look-here::before { content: "Neue Auswahl"; position: absolute; z-index: 5; right: 12px; top: 12px; padding: 3px 9px; border-radius: 99px;
  background: var(--sel); color: #0d1a12; font: 700 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; animation: lookPing 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .card.needs-look, .card.needs-look-here * , .card.needs-look-here::before { animation: none !important; } }
.sx-note-l { display: block; margin: 4px 0 6px; font-size: .82rem; color: var(--text-2); text-align: left; }
/* Kundenlink: Countdown bis zum Ablauf */
.exp-tick { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.exp-tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.exp-tick b { font-weight: 600; font-variant-numeric: tabular-nums; }
.exp-tick.soon { color: var(--accent); }
.exp-tick.soon svg { animation: lookPing 1.6s ease-in-out infinite; }
.exp-tick[data-unit="over"] { color: #ff7a6b; }
.uc-ico.again svg { transform: scaleX(-1); }
.rs-badge { background: linear-gradient(135deg, #2b2f3a, #12141a) !important; color: #ff8a3d !important; }
.rs-badge svg { width: 18px; height: 18px; fill: currentColor; }
.rs-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.rs-kinds > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), .025); }
.rs-kinds b { font-size: .9rem; }
.rs-linux { margin: 10px 0 0; }
.rs-linux code { font-size: .74rem; word-break: break-all; }
.vp-note.done { opacity: .38; filter: saturate(.3); }
.vpl-item.done { opacity: .55; }
.vpl-item.done .vpl-txt { text-decoration: line-through; text-decoration-color: var(--muted); }
.vpl-done[aria-pressed="true"] { color: var(--sel); }
/* Integrationen: ein Zugangsschlüssel für alle Apps */
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), .025); }
.key-state { font-size: .86rem; color: var(--text-2); }
.key-state b { color: var(--ok); font-weight: 650; }
.key-row .lr-key { margin: 0; }
.key-panel .lr-show { padding: 0 2px; }
/* Kommentar-Fenster: Video mit eigener Zeitleiste und farbigen Stellen */
.fcv { --vt-note: #4da3ff; --vt-keep: #3ddc84; --vt-cut: #ff6159; }
.fcv-vid { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.fcv-vid[hidden] { display: none; }
.fcv-vid video { width: 100%; max-height: calc(min(1080px, 100dvh - 32px) - 120px); border-radius: 8px; background: #000; cursor: pointer; }
.fcv-vbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fcv-vplay { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #1a0e05; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.fcv-vplay:hover { transform: scale(1.06); }
.fcv-vplay svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.fcv-vtc, .fcv-vlen { flex: none; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 4ch; }
.fcv-track { position: relative; flex: 1; height: 30px; border-radius: 8px; background: rgba(255,255,255,.06); cursor: pointer; touch-action: none; overflow: hidden; }
.fcv-buf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.05); pointer-events: none; }
.fcv-spots { position: absolute; inset: 0; }
.fcv-spot { --c: var(--vt-note); position: absolute; top: 6px; bottom: 6px; min-width: 5px; padding: 0; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: inset 0 0 0 1px var(--c); cursor: pointer; transition: transform .15s, background .15s; }
.fcv-spot.pt { width: 4px; margin-left: -2px; top: 3px; bottom: 3px; background: var(--c); border-radius: 2px; }
.fcv-spot.vt-keep { --c: var(--vt-keep); } .fcv-spot.vt-cut { --c: var(--vt-cut); }
.fcv-spot.done { --c: #8b8a86; opacity: .6; }
.fcv-spot:hover, .fcv-spot.on { background: var(--c); transform: scaleY(1.15); z-index: 1; }
.fcv-ph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); pointer-events: none; z-index: 2; }
.fcv-ph::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 6px; border-radius: 2px; background: #fff; }
/* Liste: Stellen mit Farbe, Zeit, Art, Person */
.fcv-tmark { --c: var(--vt-note); position: relative; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.fcv-tmark::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--c); }
.fcv-tmark.vt-keep { --c: var(--vt-keep); } .fcv-tmark.vt-cut { --c: var(--vt-cut); }
.fcv-tmark.done { opacity: .6; } .fcv-tmark.done::before { background: #8b8a86; }
.fcv-tm-tc { flex: none; min-width: 42px; font-size: 11px; line-height: 1.35; color: var(--text); white-space: pre-line; text-align: right; }
.fcv-tmark .fcv-mark-txt { flex: 1; min-width: 0; }
.fcv-tm-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fcv-tm-type { font: 650 .78rem var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--c) !important; }
.fcv-tm-who { font-size: .74rem; color: var(--muted); }
.fcv-tm-done { font-size: .72rem; color: var(--ok); }
.fcv-tm-note { font-size: .9rem; color: var(--text); overflow-wrap: anywhere; }
.fcv-tm-play { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--text-2); opacity: 0; transition: opacity .15s, background .15s; }
.fcv-tm-play svg { width: 12px; height: 12px; fill: currentColor; }
.fcv-tmark:hover .fcv-tm-play, .fcv-tmark.on .fcv-tm-play { opacity: 1; }
.fcv-tmark.on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.fcv-tmark.on .fcv-tm-play { background: var(--c); color: #0d0e10; }
.fcv-tmark.here { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.trash-days { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.trash-days .seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.trash-days .seg button { padding: 0 6px; min-height: 30px; white-space: nowrap; font-size: .8rem; }
/* Emoji-Auswahl als schwebendes Fenster (Text für den Kunden) */
.emo-pop.emo-float { position: fixed; right: auto; bottom: auto; z-index: 2000; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-hi); box-shadow: 0 24px 60px -12px rgba(0,0,0,.6); animation: pane-in .18s cubic-bezier(.2,.9,.25,1); }
.btn-emo { gap: 6px; }
.btn-emo span { font-size: 1rem; line-height: 1; }
/* der Punkt nach dem Titel gehört zur Gestaltung, nicht zum Text */
.display > i:last-child { user-select: none; -webkit-user-select: none; pointer-events: none; }
/* Kundenlink: Proofing als großer Schalter */
.proof-switch { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(var(--ink), .025); transition: border-color .25s, background .25s, box-shadow .25s; }
.proof-switch:hover { border-color: var(--line-hi); }
.proof-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ps-knob { position: relative; width: 44px; height: 26px; border-radius: 99px; background: rgba(var(--ink), .14); transition: background .25s; }
.ps-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .28s cubic-bezier(.2,.9,.25,1.2); }
.proof-switch input:checked + .ps-knob { background: var(--accent); }
.proof-switch input:checked + .ps-knob::after { transform: translateX(18px); }
.proof-switch input:focus-visible + .ps-knob { box-shadow: 0 0 0 3px var(--accent-soft); }
.ps-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-txt b { font-size: 1rem; font-weight: 650; color: var(--text); }
.ps-txt small { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.ps-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--ink), .06); color: var(--muted); transition: background .25s, color .25s, transform .3s; }
.ps-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proof-switch.on { border-color: rgba(255,138,61,.45); background: linear-gradient(180deg, rgba(255,138,61,.09), rgba(255,138,61,.02)); box-shadow: 0 0 24px -8px rgba(255,138,61,.45); }
.proof-switch.on .ps-ico { background: var(--accent); color: #1a0e05; transform: rotate(-8deg); }
.proof-switch.on .ps-ico svg { fill: currentColor; }
.mode-anim[hidden] { display: none; }
/* Kopieren bei ausgeschaltetem Link: Schalter „Link aktiv“ leuchtet auf */
.switch.sw-nudge { animation: swNudge 1.6s ease-out 1; border-radius: 99px; }
@keyframes swNudge { 0%, 40%, 80% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } 20%, 60% { box-shadow: 0 0 0 6px rgba(255,138,61,.35), 0 0 22px rgba(255,138,61,.5); } }
.switch.sw-nudge > span:first-of-type, .switch.sw-nudge input + span { color: var(--accent); }
.act-fresh { animation: actFresh 1.4s ease-out 1; }
@keyframes actFresh { 0% { box-shadow: inset 0 0 0 1px rgba(255,138,61,.5); } 100% { box-shadow: inset 0 0 0 1px rgba(255,138,61,0); } }
/* „Auswahl erhalten“ – jetzt oben in „Aktivität“ */
.act-received { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(126,212,154,.35); background: rgba(126,212,154,.06); }
.act-received > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-received b { font-size: .95rem; color: var(--text); }
.ar-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sel); color: #0c2414; }
.ar-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* Reiter mit Neuem (Kommentar, Aktivität, Status) leuchten, bis man reinschaut */
details.fold.fold-new > summary.fold-head { box-shadow: 0 0 0 1.5px rgba(126,212,154,.6), 0 0 22px rgba(126,212,154,.35); animation: lookGlow 2.4s ease-in-out infinite; border-radius: 14px; }
details.fold.fold-new > summary .fold-icon { color: var(--sel); }
.card.look-in { animation: lookIn .9s cubic-bezier(.2,1.2,.3,1) 1, lookGlow 2.4s ease-in-out .9s infinite; }
@keyframes lookIn { 0% { transform: scale(.97); } 50% { transform: scale(1.02); } 100% { transform: none; } }
/* Glocke ohne Albumbild: kein großes Kachel-Symbol, nur ein kleines Zeichen in der Kopfzeile */
.inbox-item.rich.noimg, .bell-pop .inbox-item.rich.noimg { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 14px 14px 16px; }
.inbox-chip { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.inbox-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.inbox-item.urgent .inbox-chip { background: var(--accent); color: #1a0e05; box-shadow: 0 0 0 4px rgba(255,138,61,.15); }
.bell-pop .inbox-item.noimg .inbox-title { font-size: 1rem; margin-top: 8px; }
.bell-pop .inbox-item.noimg .inbox-note { border-left-color: var(--accent); }

/* Aus der Glocke angesprungen: Rahmen mit Abstand statt direkt an den Elementen */
.jump-flash { animation: jump-flash 1.8s ease-out; outline: 1.5px solid transparent; outline-offset: 10px; border-radius: 16px; }
@keyframes jump-flash {
  0% { outline-color: rgba(255,138,61,0); outline-offset: 18px; }
  18% { outline-color: rgba(255,138,61,.85); outline-offset: 10px; box-shadow: 0 0 44px -6px rgba(255,138,61,.35); }
  70% { outline-color: rgba(255,138,61,.5); }
  100% { outline-color: rgba(255,138,61,0); outline-offset: 10px; }
}
.sel-req.jump-flash, .hearts-req.jump-flash { outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .jump-flash { animation-duration: .01s; } }

/* Antworten direkt an einer Stelle im Video */
.vpl-rbtn { position: relative; }
.vpl-rbtn.has { width: auto; padding: 0 7px; display: flex; gap: 4px; align-items: center; }
.vpl-rbtn b { font: 700 10.5px var(--mono); color: var(--c); }
.vpl-rbtn.has { color: var(--c); }
.vpl-thread { flex: 1 0 100%; display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 10px 16px; }
.vpl-rep { margin: 0; padding: 7px 10px; border-radius: 10px; background: rgba(var(--ink), .05); font-size: .82rem; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.vpl-rep b { font-size: .7rem; font-weight: 600; color: var(--muted); }
.vpl-rep.mine { background: color-mix(in srgb, var(--c) 12%, transparent); margin-left: 18px; }
.vpl-rep.theirs { margin-right: 18px; }
.vpl-reply { display: flex; gap: 6px; align-items: flex-end; }
.vpl-reply textarea { flex: 1; min-width: 0; resize: none; field-sizing: content; max-height: 120px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-hi); background: rgba(var(--ink), .04); color: var(--text); font: inherit; font-size: .84rem; }
.vpl-reply textarea:focus { outline: none; border-color: var(--c); }
.vpl-reply button { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); color: #111; display: grid; place-items: center; cursor: pointer; }
.vpl-reply button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.vpl-reply button:disabled { opacity: .5; }

/* Kommentare-Ansicht: Antworten unter einer Stelle */
.fcv-rthread { --c: var(--vt-note); display: flex; flex-direction: column; gap: 5px; margin: -2px 0 4px 18px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--c) 35%, transparent); }
.fcv-rthread[hidden] { display: none; }
.fcv-rthread.vt-keep { --c: var(--vt-keep); } .fcv-rthread.vt-cut { --c: var(--vt-cut); }
.fcv-rep { margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(var(--ink), .05); font-size: .82rem; line-height: 1.4; display: flex; flex-direction: column; gap: 1px; word-break: break-word; }
.fcv-rep b { font-size: .7rem; font-weight: 600; color: var(--muted); }
.fcv-rep.mine { background: color-mix(in srgb, var(--c) 12%, transparent); }
.fcv-rform { display: flex; gap: 6px; align-items: flex-end; padding-top: 2px; }
.fcv-rform[hidden] { display: none; }
.fcv-rform textarea { flex: 1; min-width: 0; resize: none; field-sizing: content; max-height: 120px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-hi); background: rgba(var(--ink), .04); color: var(--text); font: inherit; font-size: .84rem; }
.fcv-rform textarea:focus { outline: none; border-color: var(--c); }
.fcv-rform button { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); color: #111; display: grid; place-items: center; cursor: pointer; }
.fcv-rform button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Anmelde-/Abmelde-Seiten bleiben auch im hellen Design dunkel (Karte nicht weiß auf dunkler Bühne) */
html[data-theme="light"] .login-scene .ls-auth .panel, html[data-theme="light"] .login-scene .panel {
  background: rgba(23, 24, 27, .88); box-shadow: 0 30px 80px rgba(0,0,0,.55); color: var(--text); }
.fc-nrep { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.fc-nrep svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Titelbild aus einem Video: Stelle wählen */
.cv-vid { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; pointer-events: none; }
.cv-vid svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px; }
dialog.cvf { width: min(860px, calc(100vw - 32px)); padding: 18px; border-radius: 20px; border: 1px solid var(--line-hi); background: var(--dk-1a1b1e); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
dialog.cvf::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(4px); }
.cvf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cvf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvf-stage { border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; }
.cvf-stage video { display: block; width: 100%; max-height: min(60vh, 520px); object-fit: contain; cursor: pointer; }
.cvf-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cvf-bar input { flex: 1; min-width: 0; accent-color: var(--accent); }
.cvf-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #111; display: grid; place-items: center; cursor: pointer; }
.cvf-play svg { width: 18px; height: 18px; fill: currentColor; }
.cvf-tc { min-width: 58px; text-align: right; font-size: 12px; color: var(--text-2); }
.cvf-hint { margin: 10px 0 0; }
.cvf-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.fcv-rform textarea, .vpl-reply textarea { width: auto; min-height: 36px; height: auto; line-height: 1.35; }
/* Einblenden nur beim ersten Aufbau: danach würde jedes Umsortieren (Mischen, Layout) die Animation neu starten und das Gleiten übersteuern */
.grid.settled .tile { animation: none; }

/* Verarbeitung: Zahnrad dreht sich gleichmäßig (statt Schraubenschlüssel) */
.bgup-folder .bf-gear { fill: none !important; stroke: #fff; stroke-width: 2.1; stroke-linejoin: round; width: 24px; height: 24px; margin: -12px 0 0 -12px; filter: drop-shadow(0 1px 2px rgba(120,40,0,.35)); }
.bgup.proc .bf-gear { animation: bf-spin 2.4s linear .3s infinite; transform-origin: 50% 50%; }
@keyframes bf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bgup.proc .bf-gear { animation: none; } }

/* ---------- Reiter „Text“: ein Kasten wie ein Nachrichtenfeld ---------- */
.tx-box { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.14)); transition: border-color .2s, box-shadow .2s; }
.tx-box:focus-within { border-color: rgba(255,138,61,.55); box-shadow: 0 0 0 4px rgba(255,138,61,.09); }
.tx-box .rt-ed.lead, .tx-box > textarea:not(.rt-src) { border: 0; background: none; box-shadow: none !important; border-radius: 18px 18px 0 0; padding: 18px 20px 12px; min-height: 190px; }
.tx-box .rt-ed.lead:focus { box-shadow: none; }
.tx-tools.snip-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 12px; border-top: 1px solid var(--line); }
.tx-left, .tx-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tx-right { gap: 12px; margin-left: auto; }
.tx-right #description-state { white-space: nowrap; }
.tx-tool { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 11px; border: 1px solid transparent;
  background: none; color: var(--text-2); font: 500 .86rem var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.tx-tool::-webkit-details-marker { display: none; }
.tx-tool:hover, details[open] > .tx-tool, .tx-tool[aria-expanded="true"] { background: rgba(var(--ink), .06); color: var(--text); border-color: var(--line); }
.tx-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tx-tool .tx-emo { font-size: 15px; line-height: 1; filter: saturate(.9); }
.tx-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font: 700 10.5px/18px var(--mono); text-align: center; }
.tx-menu .tx-pop { left: 0; right: auto; top: auto; bottom: calc(100% + 10px); width: 340px; }
.tx-pop-head { margin: 4px 8px 6px; font-size: .74rem; color: var(--muted); }
.tx-pop .snip-chips { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.tx-pop .snip-chip { width: 100%; max-width: none; height: auto; padding: 8px 10px; gap: 10px; border-radius: 12px; border: 0; background: none; color: var(--text); text-align: left; overflow: visible; }
.tx-pop .snip-chip:hover { background: rgba(var(--ink), .06); transform: none; }
.tx-pop .sc-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); }
.tx-pop .sc-ico svg { width: 15px; height: 15px; }
.tx-pop .sc-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tx-pop .sc-txt b { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-pop .sc-txt small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .tx-tool > span:not(.tx-emo) { display: none; }
  .tx-tool { padding: 0 10px; }
  .tx-menu .tx-pop { width: min(340px, calc(100vw - 48px)); }
}

/* WhatsApp-Anleitung: Schritte passen immer – nur der aktuelle zeigt seinen Namen, die anderen ihre Nummer */
.wg-steps { align-items: center; justify-content: center; gap: 0; padding: 12px 16px; overflow: visible; flex-wrap: nowrap; }
.wg-steps li { display: flex; align-items: center; min-width: 0; }
.wg-steps li + li::before { content: ""; width: 22px; height: 2px; margin: 0 4px; border-radius: 2px; background: rgba(var(--ink), .12); flex: none; }
.wg-steps button { padding: 5px; transition: background .2s, border-color .2s, color .2s; }
.wg-steps button:not(.on) span { display: none; }
.wg-steps button.on { padding: 5px 14px 5px 5px; }
.wg-steps button.on span { overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.wg-steps button:not(.on):hover { background: rgba(var(--ink), .06); }
.wg-steps button i { width: 26px; height: 26px; }
/* Nummer am Feld nicht über dem Feldnamen: Feldname rückt ein Stück ein */
.wgm-field.hl > span { padding-left: 14px; }
.wgm-field.hl { padding-top: 2px; }

/* Branding-Vorschau: zeigt live, was man tippt */
.brand-preview { position: relative; }
.brand-prev-tag { position: absolute; top: 10px; right: 12px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-prev-text small { display: inline-flex; align-items: center; gap: 5px; }
.brand-prev-text em { transition: color .3s; }
.brand-prev-link { width: 11px; height: 11px; fill: none; stroke: var(--accent); stroke-width: 2.2; }
.brand-preview.bp-pulse em { color: var(--accent); }
.brand-preview.bp-pulse { box-shadow: 0 0 0 3px rgba(255,138,61,.14); transition: box-shadow .2s; }

/* Einstellungen → Kunden-Auswahl: Vorschau, wie es der Kunde erlebt */
.sel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.sel-ctl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 980px) { .sel-grid { grid-template-columns: 1fr; } .sel-demo { max-width: 340px; } }
.sel-demo { display: flex; flex-direction: column; gap: 12px; }
.sd-phone { position: relative; border-radius: 22px; padding: 10px; background: var(--dk-0e0f11); border: 1px solid var(--line-hi); box-shadow: 0 20px 50px -24px rgba(0,0,0,.8); overflow: hidden; }
.sd-top { display: flex; align-items: center; gap: 4px; padding: 2px 4px 8px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sd-top i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink), .15); }
.sd-top span { margin-left: 6px; }
.sd-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sd-pics i { position: relative; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #3a3d45, #24262b); }
.sd-pics i:nth-child(3n+2) { background: linear-gradient(135deg, #4a3a30, #2a2420); }
.sd-pics i:nth-child(4n+1) { background: linear-gradient(135deg, #2f3d4a, #1f262d); }
.sd-pics i svg { position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; fill: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .35s cubic-bezier(.2,1.6,.4,1); }
.sd-pics i.liked svg { opacity: 1; transform: none; }
.sd-bar { position: relative; height: 74px; margin-top: 8px; border-radius: 14px; background: rgba(var(--ink), .05); border: 1px solid var(--line); overflow: hidden; }
.sd-s { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.25,1); pointer-events: none; }
.sel-demo[data-s="0"] .sd-s0, .sel-demo[data-s="1"] .sd-s1, .sel-demo[data-s="2"] .sd-s2 { opacity: 1; transform: none; }
.sd-s0 { flex-direction: row; align-items: center; justify-content: space-between; }
.sd-s b { font-size: .8rem; }
.sd-row { display: flex; align-items: center; gap: 7px; }
.sd-row b { flex: 1; }
.sd-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 600 .72rem var(--sans); white-space: nowrap; }
.sel-demo[data-s="0"] .sd-s0 .sd-btn { animation: sd-tap 2.2s ease .9s both; }
@keyframes sd-tap { 0%, 100% { transform: none; } 8% { transform: scale(.9); box-shadow: 0 0 0 6px rgba(255,138,61,.25); } 16% { transform: none; } }
.sd-btn.sd-ghost { background: none; color: var(--text); border: 1px solid var(--line-hi); }
.sd-ok, .sd-lock { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(126,212,154,.16); color: var(--ok); }
.sd-ok svg, .sd-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sd-lock { background: rgba(var(--ink), .08); color: var(--text-2); }
.sd-timer { display: block; height: 3px; border-radius: 3px; background: rgba(var(--ink), .1); overflow: hidden; }
.sd-timer i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; }
.sel-demo[data-s="1"] .sd-timer i { animation: sd-timer 3.3s linear both; }
@keyframes sd-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sd-s1 small { font-size: .68rem; color: var(--muted); }
.sel-demo.no-req .sd-req { display: none; }
.sd-mail { position: absolute; right: 14px; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 600 .66rem var(--sans);
  opacity: 0; transform: translateY(-8px) scale(.9); transition: opacity .3s .35s, transform .4s .35s cubic-bezier(.2,1.4,.4,1); }
.sd-mail svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.sel-demo[data-s="2"] .sd-mail { opacity: 1; transform: none; }
.sd-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; counter-reset: sd; }
.sd-steps li { flex: 1; counter-increment: sd; padding: 6px 4px 0; border-top: 2px solid rgba(var(--ink), .1); font-size: .68rem; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.sd-steps li::before { content: counter(sd) " · "; font-family: var(--mono); }
.sd-steps li.on { color: var(--text); border-color: var(--accent); }
.sel-demo.no-grace .sd-steps li[data-s="1"] { opacity: .35; text-decoration: line-through; }
.sd-cap { margin: 0; min-height: 4.2em; line-height: 1.5; }

/* ---------- Einstellungen → Funktionen: kleine Bilder, die zeigen, was die Einstellung tut ---------- */
.fn-row.has-ill { grid-template-columns: 104px minmax(0, 1fr) minmax(220px, 300px); }
.fn-row.fn-row-col.has-ill { grid-template-columns: 104px minmax(0, 1fr); }
.fn-row.fn-row-col.has-ill > :not(.fn-ill) { grid-column: 2; }
.fn-row.switch-row.has-ill { grid-template-columns: 104px minmax(0, 1fr) auto; }
@media (max-width: 720px) { .fn-row.has-ill, .fn-row.fn-row-col.has-ill, .fn-row.switch-row.has-ill { grid-template-columns: 1fr; } .fn-row.has-ill > * { grid-column: auto !important; } .fn-ill { justify-self: start; } }
.fn-ill { position: relative; width: 104px; height: 70px; border-radius: 12px; background: rgba(var(--ink), .035); border: 1px solid var(--line); overflow: hidden; align-self: center; }
.fn-row-col .fn-ill { grid-row: 1 / span 2; }
.fn-ill svg { overflow: visible; }
.fi-ptr { position: absolute; width: 16px; height: 16px; fill: #fff; stroke: #111; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); z-index: 3; }
/* 1 · gedrückt halten: Ring füllt sich in der eingestellten Zeit, dann ist das Bild gewählt */
.fi-hold { --c: var(--hold, 1.5s); }
.fi-hold .fi-tile { position: absolute; left: 28px; top: 12px; width: 48px; height: 46px; border-radius: 7px; background: linear-gradient(135deg, #4a3a30, #2a2420); animation: fi-sel calc(var(--c) + 2s) infinite; }
.fi-chk { position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; opacity: 0; animation: fi-chk calc(var(--c) + 2s) infinite; }
.fi-chk svg { width: 9px; height: 9px; fill: none; stroke: #1a0e05; stroke-width: 3; }
.fi-hold .fi-ring { position: absolute; left: 41px; top: 24px; width: 22px; height: 22px; transform: rotate(-90deg); }
.fi-hold .fi-ring circle { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-dasharray: 57; stroke-dashoffset: 57; stroke-linecap: round; animation: fi-fill calc(var(--c) + 2s) linear infinite; }
.fi-hold .fi-ptr { left: 50px; top: 33px; }
@keyframes fi-fill { 0%, 12% { stroke-dashoffset: 57; opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 66%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fi-sel { 0%, 62% { transform: none; box-shadow: none; } 68%, 92% { transform: scale(.88); box-shadow: 0 0 0 3px var(--accent); } 100% { transform: none; } }
@keyframes fi-chk { 0%, 62% { opacity: 0; transform: scale(.3); } 68%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* 2 · Unterordner: Maus bleibt auf dem Ordner, nach der eingestellten Zeit schweben die Unterordner heraus */
.fi-ring2 { --c: var(--ring, 1s); }
.fi-card { position: absolute; left: 36px; top: 20px; width: 32px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--ink), .07); }
.fi-card svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.fi-sub { position: absolute; left: 44px; top: 27px; width: 16px; height: 13px; border-radius: 3px; background: var(--accent); opacity: 0; animation: fi-sub calc(var(--c) + 2.4s) cubic-bezier(.2,1.4,.4,1) infinite; }
.fi-sub.s1 { --x: -30px; --y: -14px; } .fi-sub.s2 { --x: 32px; --y: -14px; } .fi-sub.s3 { --x: 0px; --y: 24px; }
.fi-ring2 .fi-ptr { left: 52px; top: 36px; animation: fi-arrive calc(var(--c) + 2.4s) ease infinite; }
@keyframes fi-arrive { 0% { transform: translate(30px, 20px); opacity: 0; } 12% { transform: none; opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fi-sub { 0%, 55% { opacity: 0; transform: none; } 65%, 90% { opacity: 1; transform: translate(var(--x), var(--y)); } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }
/* 3 · Rückgängig: Bild fliegt in einen Ordner, Strg+Z holt es zurück; Punkte = Anzahl Schritte */
.fi-dst { position: absolute; right: 12px; top: 16px; width: 28px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(var(--ink), .07); }
.fi-dst svg { width: 16px; height: 16px; fill: none; stroke: var(--text-2); stroke-width: 1.8; }
.fi-pic { position: absolute; left: 12px; top: 14px; width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #2f3d4a, #1f262d); animation: fi-move 3.6s cubic-bezier(.4,0,.2,1) infinite; }
.fi-undo.off .fi-pic { animation-name: fi-move-noundo; }
@keyframes fi-move { 0%, 10% { transform: none; opacity: 1; } 30%, 50% { transform: translate(52px, 2px) scale(.35); opacity: .2; } 70%, 100% { transform: none; opacity: 1; } }
@keyframes fi-move-noundo { 0%, 10% { transform: none; opacity: 1; } 30%, 90% { transform: translate(52px, 2px) scale(.35); opacity: .2; } 100% { transform: none; opacity: 0; } }
.fi-key { position: absolute; left: 10px; bottom: 7px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-hi); font: 600 8.5px var(--mono); color: var(--text-2); background: rgba(var(--ink), .05); animation: fi-key 3.6s infinite; }
.fi-undo.off .fi-key { opacity: .25; animation: none; text-decoration: line-through; }
@keyframes fi-key { 0%, 50% { color: var(--text-2); border-color: var(--line-hi); } 55%, 66% { color: #1a0e05; background: var(--accent); border-color: var(--accent); transform: translateY(1px); } 72%, 100% { transform: none; } }
.fi-steps { position: absolute; right: 8px; bottom: 9px; display: flex; gap: 2px; }
.fi-steps i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .8; }
/* 4 · Proofing: aus dem Ordner werden „Auswahl“ und „Abgabe“; die Bilder wandern mit, bleiben – oder es wird gefragt */
.fi-f { position: absolute; display: grid; place-items: center; }
.fi-f svg { width: 22px; height: 22px; fill: none; stroke: var(--text-2); stroke-width: 1.7; }
.fi-f small { position: absolute; top: 22px; font-size: 7.5px; color: var(--muted); white-space: nowrap; }
.fi-main { left: 41px; top: 12px; animation: fi-main 4.2s infinite; }
.fi-sel, .fi-del { top: 30px; opacity: 0; animation: fi-kids 4.2s infinite; }
.fi-sel { left: 14px; } .fi-del { right: 14px; }
.fi-sel svg { stroke: var(--ok); } .fi-del svg { stroke: #6aa9ff; }
.fi-p { position: absolute; left: 48px; top: 20px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); animation: fi-p 4.2s infinite; }
.fi-p.p2 { left: 44px; } .fi-p.p3 { left: 52px; }
@keyframes fi-main { 0%, 25% { opacity: 1; transform: none; } 35%, 100% { opacity: .5; transform: translateY(-6px) scale(.8); } }
@keyframes fi-kids { 0%, 30% { opacity: 0; transform: translateY(-8px); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fi-p { 0%, 45% { transform: none; } 65%, 92% { transform: translate(-30px, 18px); } 100% { transform: none; } }
.fi-proof[data-v="no"] .fi-p { animation: none; transform: translateY(-6px); }
.fi-q { position: absolute; left: 60px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #1a0e05; font: 700 10px/15px var(--sans); text-align: center; opacity: 0; }
.fi-proof[data-v="ask"] .fi-q { animation: fi-q 4.2s infinite; }
@keyframes fi-q { 0%, 38% { opacity: 0; transform: scale(.4); } 44%, 60% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }
/* 5 · Herzen für den Kunden: an = Klick setzt das Herz, aus = Schloss */
.fi-tile2 { position: absolute; left: 30px; top: 12px; width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, #3a3d45, #24262b); }
.fi-h { position: absolute; right: 5px; bottom: 5px; width: 15px; height: 15px; fill: rgba(255,255,255,.25); }
.fi-hearts.on .fi-h { animation: fi-heart 2.6s infinite; }
@keyframes fi-heart { 0%, 40% { fill: rgba(255,255,255,.25); transform: none; } 46% { fill: var(--accent); transform: scale(1.35); } 54%, 90% { fill: var(--accent); transform: none; } 100% { fill: rgba(255,255,255,.25); } }
.fi-lock { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; opacity: 0; transition: opacity .3s; }
.fi-hearts:not(.on) .fi-lock { opacity: 1; animation: fi-nope 2.6s infinite; }
@keyframes fi-nope { 0%, 40% { transform: none; } 44% { transform: translateX(-2px); } 48% { transform: translateX(2px); } 52%, 100% { transform: none; } }
.fi-hearts .fi-ptr { left: 62px; top: 38px; animation: fi-click 2.6s infinite; }
@keyframes fi-click { 0%, 36% { transform: translate(8px, 10px); } 42%, 50% { transform: scale(.85); } 60%, 100% { transform: translate(8px, 10px); } }
@media (prefers-reduced-motion: reduce) { .fn-ill * { animation: none !important; } }
.brand-prev-link[hidden] { display: none; }

/* ================= KI (im Browser gerechnet) ================= */
.grid.ai-filtering .tile.ai-out { display: none !important; }
.ai-live { cursor: pointer; font: inherit; color: var(--text-2); }
.ai-live .ai-spark { width: 13px; height: 13px; fill: var(--accent); margin-left: -2px; flex: none; }
.ai-live.ai-paused { background: rgba(var(--ink), .05); border-color: var(--line-hi); }
.ai-live.ai-paused .hq-ring { animation: none; }
.ai-pop { position: fixed; z-index: 90; width: 300px; padding: 14px; border-radius: 16px; background: var(--dk-1c1d21); border: 1px solid var(--line-hi);
  box-shadow: 0 24px 70px -10px rgba(0,0,0,.75); animation: pane-in .2s ease; display: flex; flex-direction: column; gap: 8px; }
.ai-pop[hidden] { display: none; }
.aip-head { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.aip-head svg { width: 16px; height: 16px; fill: var(--accent); }
.aip-bar { height: 6px; border-radius: 6px; background: rgba(var(--ink), .1); overflow: hidden; }
.aip-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffb37a); border-radius: 6px; transition: width .5s ease; }
.aip-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: .82rem; color: var(--text-2); }
.aip-row b { color: var(--text); font-weight: 600; text-align: right; }
.aip-note { margin: 2px 0 0; font-size: .75rem; line-height: 1.45; color: var(--muted); }
.aip-acts { display: flex; gap: 8px; margin-top: 4px; }
/* Filter-Menü in der Galerie */
.ai-chip .ico { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.ai-chip.on { background: var(--accent-soft); border-color: rgba(255,138,61,.55); color: var(--text); }
.ai-chip.on .ico { fill: var(--accent); }
.ai-chip-n { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #1a0e05; font: 700 10.5px/18px var(--mono); }
.ai-panel { width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; }
.ai-panel.ai-busy { cursor: progress; }
.ai-sec { margin-top: 6px; }
.ai-q-row { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px 0 12px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(0,0,0,.2); }
.ai-q-row:focus-within { border-color: var(--accent); }
.ai-q-row svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.ai-q-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; outline: none; padding: 0; }
.ai-search .label { display: block; margin-bottom: 6px; }
.ai-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-idea { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-hi); background: rgba(var(--ink), .04); color: var(--text-2); font: 500 .8rem var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ai-idea:hover { color: var(--text); background: rgba(var(--ink), .08); }
.ai-idea[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a0e05; }
.ai-people { display: flex; flex-wrap: wrap; gap: 10px 8px; max-height: 230px; overflow-y: auto; padding: 2px; }
.ai-person { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; }
.ai-face { position: relative; width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: rgba(var(--ink), .06); cursor: pointer; overflow: visible; transition: border-color .15s, transform .15s; }
.ai-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ai-face b { position: absolute; right: -4px; bottom: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--dk-26272b); border: 1px solid var(--line-hi); color: var(--text-2); font: 700 9.5px/16px var(--mono); }
.ai-face:hover { transform: translateY(-1px); }
.ai-person.on .ai-face { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.2); }
.ai-pname { max-width: 100%; border: 0; background: none; padding: 0; color: var(--text-2); font: 500 .72rem var(--sans); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-pname.unnamed { color: var(--muted); font-style: italic; }
.ai-pname:hover { color: var(--accent); }
.ai-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-check { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-hi); background: rgba(var(--ink), .04); color: var(--text-2); font: 500 .82rem var(--sans); cursor: pointer; }
.ai-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ai-check b { font: 700 10.5px var(--mono); color: var(--muted); }
.ai-check[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(255,138,61,.55); color: var(--text); }
.ai-progress { margin: 0; }
.ai-progress:empty { display: none; }
.ai-foot { display: flex; justify-content: flex-end; }
.ai-none { margin: 0; }

/* Einstellungen → KI */
.ai-set-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 20px; margin-top: 14px; }
@media (max-width: 900px) { .ai-set-grid { grid-template-columns: 1fr; } }
.ai-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), .03); }
.ai-tile svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; margin-bottom: 4px; }
.ai-tile b { font-size: .92rem; }
.ai-tile small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.ai-stat { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.ai-set-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ai-set-acts .switch { margin: 0; }
.ai-chip .ai-chip-label { font: 500 .88rem var(--sans); letter-spacing: 0; text-transform: none; }
.tile .ai-notme { position: absolute; left: 8px; bottom: 8px; z-index: 4; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(14,15,17,.78); color: #fff; font: 600 .74rem var(--sans); cursor: pointer; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; backdrop-filter: blur(6px); }
.tile:hover .ai-notme, .tile .ai-notme:focus-visible { opacity: 1; transform: none; }
.tile .ai-notme:hover { background: var(--warn); border-color: var(--warn); color: #1a0e05; }
@media (hover: none) { .tile .ai-notme { opacity: 1; transform: none; } }

/* ================= Rundgang „So funktioniert WePreview“ (Videos) ================= */
.dialog.tour.tg[open] { padding: 0; width: min(1320px, 95vw); height: min(860px, 92vh); max-width: none; max-height: none; border-radius: 24px; overflow: hidden; }
.tg-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 100%; }
.tg-nav { display: flex; flex-direction: column; gap: 14px; padding: 24px 14px 18px; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); min-height: 0; }
.tg-brand { display: flex; flex-direction: column; padding: 0 10px 6px; }
.tg-brand b { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tg-brand span { font: 700 1.35rem/1.2 var(--sans); letter-spacing: -.02em; }
.tg-brand i { color: var(--accent); font-style: normal; }
.tg-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.tg-nav button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 11px; background: none; color: var(--text-2); font: 500 .88rem var(--sans); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.tg-nav button:hover { background: rgba(var(--ink), .05); color: var(--text); }
.tg-nav button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-nav button span { flex: 1; min-width: 0; }
.tg-nav button em { font: 600 10px var(--mono); font-style: normal; color: var(--muted); }
.tg-nav li.on button { background: var(--accent-soft); color: var(--text); }
.tg-nav li.on button svg { stroke: var(--accent); }
.tg-nav li.done button { color: var(--text-2); }
.tg-nav li.done button svg { stroke: var(--ok); }
.tg-prog { height: 4px; border-radius: 4px; background: rgba(var(--ink), .1); overflow: hidden; margin: 0 10px; }
.tg-prog i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .35s ease; }
.tg-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 26px 30px 20px; }
.tg-x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.tg-stage { flex: 1; min-height: 0; display: flex; }
.tg-step { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; animation: tg-in .35s cubic-bezier(.2,.9,.25,1); }
.tg-step.from-left { animation-name: tg-in-left; }
@keyframes tg-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes tg-in-left { from { opacity: 0; transform: translateX(-26px); } }
.tg-video { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tg-video video { display: block; max-width: 100%; max-height: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; border: 1px solid var(--line-hi); box-shadow: 0 24px 60px -28px rgba(0,0,0,.9); }
.tg-text { flex: none; max-width: 820px; }
.tg-kicker { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tg-text h2 { margin: 4px 0 8px; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--sans); letter-spacing: -.02em; }
.tg-text h2 i { color: var(--accent); font-style: normal; }
.tg-text ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; color: var(--text-2); line-height: 1.5; }
.tg-text kbd, .tg-setup kbd { display: inline-flex; align-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-hi); background: rgba(var(--ink), .06); font: 600 11px var(--mono); color: var(--text); vertical-align: 1px; }
.tg-text li i { font-style: normal; color: var(--muted); margin: 0 2px; }
.tg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.tg-count { font: 500 11px var(--mono); color: var(--muted); }
.tg-setup { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.tg-set { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--ink), .03); }
.tg-set b { font-size: .98rem; }
.tg-set small { color: var(--muted); line-height: 1.45; margin-bottom: 6px; }
.tg-set[hidden] { display: none; }
.tg-set .seg { align-self: flex-start; }
.tg-range { display: flex; align-items: center; gap: 12px; }
.tg-range input { flex: 1; accent-color: var(--accent); }
.tg-range b { min-width: 48px; font: 600 .85rem var(--mono); color: var(--accent); }
@media (max-width: 860px) {
  .dialog.tour.tg[open] { width: 100vw; height: 100dvh; border-radius: 0; margin: 0; border: 0; }
  .tg-x { top: 8px; right: 8px; }
  .tg-video { flex: none; padding-top: 34px; }
  .tg-video video { width: 100%; height: auto; }
  .tg-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .tg-nav { flex-direction: row; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tg-brand, .tg-prog { display: none; }
  .tg-nav ol { flex-direction: row; overflow: visible; }
  .tg-nav button { white-space: nowrap; }
  .tg-main { padding: 16px; }
  .tg-stage { overflow-y: auto; }
  .tg-nav:focus-visible { outline: none; }
  .tg-setup { grid-template-columns: 1fr; overflow-y: auto; }
}

/* ---------- 1.35 KI-Funktionen: Einstellungen ---------- */
.ai-stat-wide { margin-top: 14px; }
.ai-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px; }
@media (max-width: 900px) { .ai-stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-stat-grid { grid-template-columns: 1fr; } }
.ai-feats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
@media (max-width: 1100px) { .ai-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-feats { grid-template-columns: 1fr; } }
.ai-feat { cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.ai-feat:hover { border-color: var(--line-hi); }
.ai-feat:has(input:checked) { border-color: rgba(255,138,61,.45); background: var(--accent-soft); }
.ai-feat:not(:has(input:checked)) svg { stroke: var(--muted); }
.ai-feat:not(:has(input:checked)) b { color: var(--text-2); }
.ai-feat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ai-feat-head svg { margin: 0; }
.ai-feat input.sw { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; margin: 0; border-radius: 99px; background: rgba(var(--ink), 0.12); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.ai-feat input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.ai-feat input.sw:checked { background: var(--accent); }
.ai-feat input.sw:checked::after { transform: translateX(16px); background: #1a0e05; }
.ai-feat input.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-scope { align-self: flex-start; display: inline-flex; flex-wrap: wrap; margin-top: 14px; }
.ai-scope-note { margin: 10px 0 0; min-height: 1.2em; }
.ai-folders { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.14); overflow: hidden; }
.ai-folders[hidden] { display: none; }
.ai-folders-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ai-folder-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px; padding: 8px; max-height: 320px; overflow-y: auto; }
.ai-folder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: .9rem; min-width: 0; }
.ai-folder:hover { background: rgba(var(--ink), .05); }
.ai-folder input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.ai-folder span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-folder small { font: 500 11px var(--mono); color: var(--muted); flex: none; }
.ai-local { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.ai-local-row { display: grid; grid-template-columns: 140px auto minmax(0, 1fr); align-items: center; gap: 8px 16px; }
.ai-local-row b { font-size: .92rem; }
.ai-local-row .seg { display: inline-flex; flex-wrap: wrap; }
.ai-local-row small { line-height: 1.45; }
@media (max-width: 760px) { .ai-local-row { grid-template-columns: 1fr; } }
#ai-hw b { color: var(--text); font-weight: 600; }
.ai-set .seg button[disabled] { opacity: .4; cursor: not-allowed; }
.ai-status { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), .04); }
.ai-status[hidden], .ai-panel [hidden] { display: none !important; }
.ai-status p { margin: 0; line-height: 1.45; }
.ai-status .btn { align-self: flex-start; }
.ai-st-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ai-st-row b { font-family: var(--mono); font-size: .82rem; }
.ai-set .seg button { white-space: nowrap; }
/* Smart Search: aktive Filter + gefundene Motive */
.ai-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ai-active .label { margin-right: 2px; }
.ai-act { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border-radius: 99px; border: 1px solid rgba(255,138,61,.5); background: var(--accent-soft); color: var(--text); font: 500 .82rem var(--sans); cursor: pointer; }
.ai-act svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: .7; }
.ai-act:hover svg { opacity: 1; }
.ai-idea b { margin-left: 6px; font: 600 10px var(--mono); color: var(--muted); }
.ai-idea[aria-pressed="true"] b { color: inherit; opacity: .75; }
/* Smart Search: Grafikkarte freischalten + So funktioniert's */
.ai-gpu-setup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ai-gpu-setup[hidden] { display: none; }
.ai-gpu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ai-gpu-setup > p { margin: 0; }
.ai-gpu-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ai-gpu-way { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), .03); }
.ai-gpu-way[hidden] { display: none; }
.ai-gpu-way.mine { border-color: rgba(255,138,61,.45); background: var(--accent-soft); }
.ai-gpu-way p { margin: 0; line-height: 1.5; }
.ai-gpu-way .btn { align-self: flex-start; }
.ai-gpu-way code, .ai-gpu-setup code { font: 500 .78rem var(--mono); }
.ai-copy { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); min-width: 0; }
.ai-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
#ai-gpu-check { align-self: flex-start; }
.ai-how { margin: 12px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); line-height: 1.5; font-size: .9rem; }
.ai-how b { color: var(--text); }
.ai-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.ai-models > div { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), .03); }
.ai-models b { font-size: .88rem; }
.ai-models span { font-size: .82rem; color: var(--text-2); }
.ai-models small { font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .02em; }
.ai-copy code { white-space: normal; word-break: break-all; text-overflow: clip; }
#ki-info .ai-sec { margin-top: 14px; }

/* ---------- 1.37 Smart-Search-Menü: aufgeräumt ---------- */
.menu-panel.ai-panel { width: min(460px, calc(100vw - 24px)); padding: 0; gap: 0; overflow: hidden; max-height: min(78vh, 720px); overflow-y: auto; box-shadow: 0 24px 60px -18px rgba(0,0,0,.7); }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 12px; }
.ai-title { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--sans); color: var(--text); }
.ai-title svg { width: 15px; height: 15px; fill: var(--accent); stroke: none; }
.ai-head .ai-clear { font-size: .8rem; }
.ai-panel > .ai-active { margin: 0 18px 4px; padding: 0 0 12px; }
.ai-panel > .ai-status { margin: 0 18px 14px; }
.ai-block { padding: 14px 18px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ai-block .ai-ideas { display: flex; }
.ai-bh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ai-n { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 99px; background: rgba(var(--ink), .07); color: var(--text-2); font: 600 10px/18px var(--mono); letter-spacing: 0; text-align: center; }
.ai-n:empty { display: none; }
.ai-search { display: flex; flex-direction: column; gap: 10px; }
.ai-q-row { height: 44px; padding: 5px 5px 5px 14px; gap: 10px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line-hi); transition: border-color .15s, box-shadow .15s; }
.ai-q-row:focus-within { border-color: rgba(255,138,61,.7); box-shadow: 0 0 0 3px rgba(255,138,61,.14); }
.ai-q-row input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.6); }
.ai-go { flex: none; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-hi); background: rgba(var(--ink), .08); color: var(--text); font: 600 .82rem var(--sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ai-go:hover { background: var(--accent); border-color: var(--accent); color: #1a0e05; }
.ai-scene-note { margin: 0; font-size: .82rem; color: var(--muted); }
.ai-ideas { gap: 6px; }
.ai-idea { display: inline-flex; align-items: center; height: 30px; padding: 0 10px 0 12px; }
.ai-idea b { margin-left: 7px; min-width: 16px; text-align: center; }
.ai-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px 6px; max-height: 260px; overflow-y: auto; padding: 4px 2px 2px; margin: 0 -2px; }
.ai-person { width: auto; min-width: 0; gap: 6px; }
.ai-face { width: 58px; height: 58px; }
.ai-face b { right: -6px; bottom: -3px; }
.ai-pname { font-size: .74rem; max-width: 76px; }
.ai-maybe { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px 0 7px; border-radius: 99px; background: var(--accent-soft); border: 1px solid rgba(255,138,61,.4); font: 500 .68rem var(--sans); color: var(--text); max-width: 76px; }
.ai-maybe span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ai-maybe button { flex: none; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.ai-maybe button:hover { background: rgba(var(--ink), .12); color: var(--text); }
.ai-maybe svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.ai-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-check { height: 38px; justify-content: flex-start; padding: 0 12px; }
.ai-check span { flex: 1; text-align: left; }
.ai-check b { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 99px; background: rgba(var(--ink), .07); line-height: 18px; text-align: center; }
.ai-check[aria-pressed="true"] b { background: rgba(255,138,61,.25); color: var(--text); }
.ai-active { gap: 6px; }
@media (max-width: 560px) { .ai-checks { grid-template-columns: 1fr; } }
.ai-search .ai-bh { justify-content: flex-start; }
.ai-panel > .ai-active { border-bottom: 0; padding-bottom: 14px; }
.ai-q-row input, .ai-q-row input:focus, .ai-q-row input:hover { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; outline: none; color: var(--text); font: 400 .92rem var(--sans); }
.ai-maybe { flex-direction: column; height: auto; gap: 3px; padding: 4px 6px 4px; border-radius: 10px; max-width: 80px; }
.ai-maybe span { max-width: 100%; color: var(--accent); font-weight: 600; }
.ai-maybe > div { display: flex; gap: 4px; }
.ai-maybe button { width: 24px; height: 22px; border-radius: 7px; background: rgba(var(--ink), .08); }
.ai-maybe button[data-same]:hover { background: var(--ok, #4ade80); color: #062b14; }
.ai-maybe button[data-notsame]:hover { background: rgba(255,90,90,.85); color: #2b0606; }
.ai-search label.ai-bh { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; width: 100%; }
/* 1.39 Vorschau-Helfer (Einstellungen → Vorschau-Qualität) */
.pv-helper { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2, transparent); }
.pv-helper-head { display: flex; gap: 12px; align-items: flex-start; }
.pv-helper-head > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.pv-helper-head > div { display: flex; flex-direction: column; gap: 4px; line-height: 1.4; min-width: 0; }
.pv-helper .dev-alert { align-items: flex-start; }
.pv-helper .dv-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; min-width: 0; }
/* 1.40 Andere Unternehmen: Anfangsbuchstabe gut lesbar – eigene Farbe je Unternehmen, hell und dunkel mit Kontrast */
.acc-h0 { --acc-h: 210; } .acc-h1 { --acc-h: 24; } .acc-h2 { --acc-h: 150; } .acc-h3 { --acc-h: 280; }
.acc-h4 { --acc-h: 340; } .acc-h5 { --acc-h: 190; } .acc-h6 { --acc-h: 45; } .acc-h7 { --acc-h: 250; }
.tm.acc .acc-av:not(.has-logo) { background: radial-gradient(120% 120% at 20% 10%, hsl(var(--acc-h) 45% 27%), hsl(var(--acc-h) 40% 17%) 70%); color: hsl(var(--acc-h) 90% 90%); border-color: hsl(var(--acc-h) 40% 40% / .5); }
html[data-theme="light"] .tm.acc .acc-av:not(.has-logo) { background: radial-gradient(120% 120% at 20% 10%, hsl(var(--acc-h) 85% 93%), hsl(var(--acc-h) 70% 84%) 70%); color: hsl(var(--acc-h) 60% 28%); border-color: hsl(var(--acc-h) 50% 70% / .6); }
/* 1.42 DaVinci Resolve: Wegweiser */
.rs-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.rs-seg button { padding: 7px 12px; }
.rs-seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.rs-which { margin: 0 0 12px; }
.rs-plan > div { display: flex; flex-direction: column; gap: 10px; }
.rs-plan .lr-steps { margin: 0; }
.rs-plan .lr-steps .btn { margin-top: 6px; }
.rs-verdict { margin: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); line-height: 1.45; font-size: .9rem; }
.rs-verdict.ok { background: rgba(70, 190, 120, .08); border-color: rgba(70, 190, 120, .3); }
.rs-verdict.warn { background: rgba(255, 170, 60, .09); border-color: rgba(255, 170, 60, .35); }
.rs-verdict.bad { background: rgba(230, 80, 70, .08); border-color: rgba(230, 80, 70, .32); }
.rs-matrix-wrap { margin-top: 14px; }
.rs-matrix-wrap summary { cursor: pointer; color: var(--muted); }
.rs-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; margin-top: 8px; font-size: .84rem; }
.rs-matrix th { text-align: left; font-weight: 600; padding: 4px 6px; white-space: nowrap; }
.rs-matrix td { padding: 7px 9px; border-radius: 8px; text-align: center; }
.rs-matrix td.ok { background: rgba(70, 190, 120, .12); }
.rs-matrix td.warn { background: rgba(255, 170, 60, .14); }
.rs-matrix td.bad { background: rgba(230, 80, 70, .12); }
@media (max-width: 640px) { .rs-matrix { font-size: .74rem; } .rs-matrix td { padding: 6px 4px; } }
/* 1.46 Integrationen: Plugins als Kacheln nebeneinander, Beschreibung aufklappbar */
.set-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.set-tiles > .panel { margin: 0; }
.plug-tile { display: flex; flex-direction: column; gap: 14px; }
.plug-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.plug-head h2.label { margin: 0 0 4px; font-size: 1.05rem; }
.plug-head p { margin: 0; line-height: 1.45; }
.plug-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.plug-more { border-top: 1px solid var(--line); padding-top: 12px; }
.plug-more > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; }
.plug-more > summary::-webkit-details-marker { display: none; }
.plug-more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 2px; }
.plug-more[open] > summary::before { transform: rotate(45deg); }
.plug-more[open] > summary { color: var(--text); margin-bottom: 10px; }
.plug-more > *:not(summary) + * { margin-top: 10px; }
.plug-more .rs-pick { flex-direction: column; align-items: stretch; }
.plug-more .rs-seg { flex-wrap: wrap; }
.lr-keybox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 100%; }
.lr-keybox input { flex: 1 1 220px; min-width: 0; font: 500 .85rem var(--mono); letter-spacing: .02em; }
/* Integrationen als Liste untereinander: Text links, Knopf rechts, Beschreibung klappt darunter auf */
.plug-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 14px; align-items: center; }
.plug-tile > .plug-more { grid-column: 1 / -1; }
.plug-tile .plug-acts { justify-content: flex-end; }
.plug-more > summary:hover { color: var(--text); }
.plug-more[open] { animation: plug-open .22s ease-out; }
@keyframes plug-open { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 640px) { .plug-tile { grid-template-columns: minmax(0, 1fr); } .plug-tile .plug-acts { justify-content: flex-start; } }

/* 1.51: Bild der Auswahl, dessen bearbeitete Version aus Lightroom in der Abgabe liegt */
.lr-tag { position: absolute; left: 8px; bottom: 30px; z-index: 2; pointer-events: auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px 3px 5px; border-radius: 6px; font: 700 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(46, 160, 90, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lr-tag svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.tile:has(.video-badge) .lr-tag { left: auto; right: 8px; }
.grid.selecting .lr-tag { opacity: .4; }
@media (max-width: 720px) { .lr-tag { left: 5px; bottom: 24px; font-size: 8.5px; padding: 2px 5px 2px 4px; } }
/* 1.54: Empfehlung des Fotografen (z. B. aus Lightroom) – kleiner Stern oben links */
.pick-tag { position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(var(--dkr-14-15-17), .72); color: #ffc94d;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pick-tag svg { width: 14px; height: 14px; fill: currentColor; }
.tile:hover .pick-tag { left: 44px; }
.grid.selecting .pick-tag { opacity: .4; }
.pick-note { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--text-2); }
.pick-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: rgba(255, 201, 77, .16); color: #e0a520; }
.pick-dot svg { width: 11px; height: 11px; fill: currentColor; }
.lr-code { font-size: 28px; letter-spacing: .18em; text-align: center; margin: 6px 0 14px; padding: 12px; border-radius: 12px;
  background: rgba(255, 138, 61, .1); color: var(--accent); border: 1px solid rgba(255, 138, 61, .3); }
/* Plugin verbinden: wer sich verbindet – groß, mit Profilbild */
.lr-who { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin: 10px 0 16px; padding: 18px 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(var(--ink), .03); }
.lr-ava { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(135deg, #5a3a22, #2a1a10); color: #ffb37a; font-size: 30px; font-weight: 700;
  box-shadow: 0 0 0 3px var(--bg, #111), 0 0 0 5px var(--accent); }
.lr-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lr-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.lr-acc { line-height: 1.4; overflow-wrap: anywhere; }
.lr-who-sm { margin-top: 16px; padding: 12px; }
.lr-who-sm .lr-ava { width: 48px; height: 48px; font-size: 20px; }
.lr-who-sm .lr-name { font-size: 1.05rem; }

/* ===================== Reines Video-Proofing: keine Herzen, kein Limit ===================== */
body.vonly .tile .heart, body.vonly .dock-heart, body.vonly [data-filter-btn="liked"], body.vonly [data-filter-btn="unliked"],
body.vonly .lb-dock .dock-sep { display: none !important; }
.submit-count.vonly-count .ico { opacity: .8; }
.vonly-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.vonly-note .ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; }
.vonly-note b { color: var(--text); }
.opt[hidden] { display: none !important; }
body.vonly .chip-person, body.vonly .chip-both { display: none !important; }
.submit-bar.is-sent .vonly-count { display: none; }
/* Kommentare live: neuer/geänderter Eintrag leuchtet kurz auf */
.fc-item.fc-fresh { animation: fc-fresh 2.4s ease-out; }
@keyframes fc-fresh { 0%, 35% { box-shadow: 0 0 0 2px var(--accent); background: rgba(255,138,61,.10); } 100% { box-shadow: 0 0 0 0 transparent; } }
.lb-chat.lb-chat-float .lb-side-head { pointer-events: none; }
.lb-chat.lb-chat-float .lb-side-head[aria-expanded="false"] + .lb-chat-body { display: flex; }
.win-setup { border-color: rgba(255,138,61,.35); }
/* Integrationen: reiner Text, keine Bildchen */
.plug-kick { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.win-setup .plug-kick { color: var(--accent); }
.win-setup { background: linear-gradient(135deg, rgba(255,138,61,.10), transparent 55%), linear-gradient(180deg, rgba(var(--ink), 0.045), rgba(var(--ink), 0.02)); }
html[data-theme="light"] .win-setup { background: linear-gradient(135deg, #fff3ea, transparent 60%); }
.plug-kick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.plug-head { gap: 8px; }
#zugangsschluessel .plug-head { margin-bottom: 14px; }
/* Hochladen: Hinweis auf Einfügen per Strg+V */
.dz-paste { font-size: .78rem; color: var(--muted); }
.dz-paste kbd { min-width: 0; height: 18px; padding: 0 5px; font-size: .72rem; vertical-align: 1px; }
/* 1.65: Chat-Popup (neue Nachricht) – wie die Glocke, mit Bild der Person und „Antworten“ */
.chat-pop .inbox-item { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; padding: 12px; }
.cp-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: #1a1008; font-weight: 700; }
.cp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-head { font-size: .92rem; line-height: 1.3; }
.cp-text { margin: 4px 0 10px; font-size: .9rem; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* 1.66: Leere Glocke – eine kleine Spinne in ihrem Netz schaut dich an */
.inbox-empty-art { display: grid; place-items: center; padding: 14px 0 0; }
.spider { width: 196px; height: auto; overflow: visible; }
.sp-web { fill: none; stroke: rgba(var(--ink), .16); stroke-width: .7; stroke-linecap: round; }
.sp-thread { stroke: rgba(var(--ink), .28); stroke-width: .7; }
.sp-legs { fill: none; stroke: #4a4a57; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sp-body { fill: #35353f; stroke: rgba(255,255,255,.14); stroke-width: .8; }
.sp-eye > circle:first-child { fill: #fff; }
.sp-pupil { fill: #18181d; transition: transform .18s ease-out; }
.sp-glint { fill: #fff; }
.sp-cheek { fill: #ff8fa3; opacity: .55; }
.sp-smile { fill: none; stroke: #fff; stroke-width: .9; stroke-linecap: round; opacity: .85; }
.sp-eye { transform-box: fill-box; transform-origin: center; animation: sp-blink 5.2s infinite; }
.sp-eye + .sp-eye { animation-delay: .04s; }
@keyframes sp-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.sp-bob { animation: sp-bob 3.6s ease-in-out infinite; transform-origin: 80px 0; }
@keyframes sp-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(1.6px) rotate(1.2deg); } }
html[data-theme="light"] .sp-legs { stroke: #3d3d48; }
html[data-theme="light"] .sp-body { fill: #2d2d36; stroke: none; }
.inbox-empty-art + .inbox-empty { text-align: center; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .sp-eye, .sp-bob { animation: none; } }

/* 1.66: Proofing an – kleine Herzen poppen nacheinander schräg nach oben (wie „Zzz“) */
.ps-ico { position: relative; }
.ps-pops { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ps-pops svg { position: absolute; fill: var(--accent); stroke: none; opacity: 0; transform: scale(0); filter: drop-shadow(0 2px 4px rgba(255,138,61,.35)); }
.ps-pops .pp1 { width: 12px; height: 12px; left: 10px; top: -24px; --rot: 10deg; }
.ps-pops .pp2 { width: 9px; height: 9px; left: 20px; top: -34px; --rot: -8deg; }
.ps-pops .pp3 { width: 7px; height: 7px; left: 27px; top: -43px; --rot: 14deg; }
.proof-switch.on .ps-pops svg { animation: ps-pop 3.4s cubic-bezier(.2, 1.4, .4, 1) infinite; }
.proof-switch.on .ps-pops .pp2 { animation-delay: .38s; }
.proof-switch.on .ps-pops .pp3 { animation-delay: .76s; }
@keyframes ps-pop {
  0% { opacity: 0; transform: translateY(6px) scale(0) rotate(0); }
  9% { opacity: 1; transform: translateY(0) scale(1.3) rotate(var(--rot)); }
  15% { transform: translateY(0) scale(1) rotate(var(--rot)); }
  58% { opacity: 1; transform: translateY(-2px) scale(1) rotate(var(--rot)); }
  72%, 100% { opacity: 0; transform: translateY(-7px) scale(.8) rotate(var(--rot)); }
}
@media (prefers-reduced-motion: reduce) { .proof-switch.on .ps-pops svg { animation: none; opacity: 1; transform: none; } }
/* 1.66: Proofing aus – Bilder hierher holen? */
.flat-pick { display: grid; gap: 8px; margin: 14px 0 4px; }
.flat-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.flat-pick label:has(input:checked) { border-color: rgba(255,138,61,.55); background: rgba(255,138,61,.07); }
.flat-pick input { margin-top: 3px; accent-color: var(--accent); }
.flat-pick b { display: block; font-size: .92rem; }
.flat-pick small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.proof-switch.on .ps-ico .ps-pops svg, .proof-switch .ps-ico .ps-pops svg { fill: var(--accent); stroke: none; }
.proof-switch .ps-ico .ps-pops svg.pp1 { width: 13px; height: 13px; }
.proof-switch .ps-ico .ps-pops svg.pp2 { width: 10px; height: 10px; }
.proof-switch .ps-ico .ps-pops svg.pp3 { width: 7px; height: 7px; }
.dialog .flat-pick label { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin: 0; }
.dialog .flat-pick label > span { display: grid; gap: 2px; min-width: 0; }
.dialog .flat-pick b { color: var(--text); font-weight: 600; }
.dialog .flat-pick input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; }
/* 1.66.1: Das Herz steht frei (keine Kachel) und schlägt – „bumm-bumm, Pause“ */
.proof-switch .ps-ico, .proof-switch.on .ps-ico { width: 40px; height: 40px; background: none; border-radius: 0; transform: none; overflow: visible; }
.proof-switch .ps-ico > svg:first-child { width: 28px; height: 28px; stroke-width: 1.8; transition: color .25s, fill .25s; }
.proof-switch.on .ps-ico { color: var(--accent); }
.proof-switch.on .ps-ico > svg:first-child { fill: var(--accent); stroke: var(--accent); filter: drop-shadow(0 3px 10px rgba(255,138,61,.45));
  transform-origin: 50% 55%; animation: ps-beat 1.6s ease-in-out infinite; }
@keyframes ps-beat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.22); }
  18% { transform: scale(1.02); }
  27% { transform: scale(1.14); }
}
.proof-switch .ps-ico .ps-pops svg.pp1 { left: 9px; top: -27px; }
.proof-switch .ps-ico .ps-pops svg.pp2 { left: 19px; top: -37px; }
.proof-switch .ps-ico .ps-pops svg.pp3 { left: 26px; top: -46px; }
@media (prefers-reduced-motion: reduce) { .proof-switch.on .ps-ico > svg:first-child { animation: none; } }
/* 1.66.2: Netz in der Ecke oben rechts, Spinne mit Sprechblase */
#inbox-list .inbox-empty-art { position: relative; display: block; height: 150px; padding: 0; margin: -12px -12px 0 0; }
#inbox-list .inbox-empty-art .spider { position: absolute; top: 0; right: 0; width: 230px; height: 176px; }
.sp-say { position: absolute; top: 70px; right: 136px; padding: 8px 13px; border-radius: 14px; background: var(--dk-25262b, #26272c); border: 1px solid var(--line-hi);
  font-size: .86rem; font-weight: 600; color: var(--text); white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transform-origin: 100% 60%; animation: sp-say-in .5s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
.sp-say::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg);
  background: inherit; border-right: 1px solid var(--line-hi); border-top: 1px solid var(--line-hi); }
@keyframes sp-say-in { from { opacity: 0; transform: scale(.4) translateX(10px); } }
html[data-theme="light"] .sp-say { background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
#inbox-list .inbox-empty-art + .inbox-empty { text-align: left; margin-top: 0; position: relative; }
@media (prefers-reduced-motion: reduce) { .sp-say { animation: none; } }
/* 1.66.3: größere Spinne, Füße auf den Fäden, Sprechblase aus dem Mund */
#inbox-list .inbox-empty-art { height: 160px; }
#inbox-list .inbox-empty-art .spider { width: 240px; height: 190px; }
.sp-legs { stroke-width: 2.4; }
.sp-foot { fill: #4a4a57; }
html[data-theme="light"] .sp-foot { fill: #3d3d48; }
.sp-say { right: 120px; top: 60px; line-height: 1.05; padding: 8px 13px; }
.sp-say::after { display: none; }
.sp-tail { fill: var(--dk-25262b, #26272c); stroke: var(--line-hi); stroke-width: 1; stroke-linejoin: round; animation: sp-say-in .5s cubic-bezier(.2, 1.4, .4, 1) .35s both; transform-box: fill-box; transform-origin: 100% 50%; }
html[data-theme="light"] .sp-tail { fill: #fff; }
.sp-say { z-index: 1; }
#inbox-list .inbox-empty-art { height: 200px; }
#inbox-list .inbox-empty-art .spider { width: 312px; height: 247px; }
.sp-tail { stroke: var(--line-hi); stroke-width: .8; }
/* 1.66.4: Füße bleiben fest auf den Fäden – nur der Körper atmet ganz leicht */
.sp-bob { animation: none; }
.sp-legs { stroke-linejoin: round; stroke-width: 2.3; }
.sp-body { transform-box: fill-box; transform-origin: 50% 70%; animation: sp-breathe 3.2s ease-in-out infinite; }
@keyframes sp-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035, 1.02); } }
@media (prefers-reduced-motion: reduce) { .sp-body { animation: none; } }
/* 1.66.5: Sprechblase + Zipfel als eine Form (im Bild), der Text liegt darüber */
.sp-say { background: none !important; border: 0 !important; box-shadow: none !important; animation: sp-fade .4s ease .35s both; }
.sp-bubble { fill: var(--dk-25262b, #26272c); stroke: var(--line-hi); stroke-width: .8; stroke-linejoin: round; opacity: 0;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.28)); transform-box: fill-box; transform-origin: 100% 50%; }
.spider.has-bubble .sp-bubble { animation: sp-say-in .5s cubic-bezier(.2, 1.4, .4, 1) .3s both; opacity: 1; }
html[data-theme="light"] .sp-bubble { fill: #fff; filter: drop-shadow(0 6px 14px rgba(0,0,0,.08)); }
@keyframes sp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spider.has-bubble .sp-bubble, .sp-say { animation: none; } }
/* 1.66.6: klassische ovale Sprechblase – kräftiger Rand wie im Symbol */
.sp-bubble { stroke-width: 1.4; }
.sp-say { padding: 6px 4px; }
/* Cloud-Speicher (S3) */
.s3-form { margin-top: 14px; }
.s3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.s3-grid label { display: grid; gap: 4px; min-width: 0; }
.s3-grid input { min-width: 0; font-family: var(--mono); font-size: .85rem; }
.s3-more { margin-top: 10px; }
.s3-more > summary { cursor: pointer; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.s3-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.s3-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.s3-steps li { display: grid; grid-template-columns: 22px minmax(0, 190px) minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: .86rem; }
.s3-steps li::before { content: "✓"; font-weight: 700; color: #4cc38a; }
.s3-steps li.bad::before { content: "✕"; color: #ff6b6b; }
.s3-steps li.s3-run::before { content: "…"; color: var(--muted); }
.s3-steps li span { color: var(--muted); overflow-wrap: anywhere; }
.s3-steps li small { color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.s3-steps li.s3-sum { grid-template-columns: 22px 1fr; font-weight: 600; }
.s3-steps li.s3-sum.ok { border-color: rgba(76,195,138,.45); background: rgba(76,195,138,.07); }
.s3-steps li.s3-sum.bad { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.06); }
@media (max-width: 640px) { .s3-steps li { grid-template-columns: 22px 1fr; } .s3-steps li span, .s3-steps li small { grid-column: 2; } }
.s3-steps .s3-cors { margin-left: 6px; vertical-align: middle; }
/* Server-Protokoll */
.diag-sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.diag-sys > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.diag-sys dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.diag-sys dd { margin: 2px 0 0; font: 600 .92rem var(--mono); overflow-wrap: anywhere; }
.diag-actions { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.diag-log { max-height: 420px; overflow: auto; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(var(--ink), .04); border: 1px solid var(--line);
  font: .74rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; overscroll-behavior: contain; }
.diag-l + .diag-l { border-top: 1px dashed rgba(var(--ink), .06); }
.diag-warning { color: #ffb454; }
.diag-error, .diag-critical { color: #ff6b6b; }
.keys-head .diag-seg { margin-left: auto; }

/* ---------- Unternehmen (Inhaber des Servers): /admin/unternehmen ---------- */
.ac-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ac-sub { margin: 6px 0 0; }
.ac-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.ac-kpi { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; min-width: 0; }
button.ac-kpi { cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
button.ac-kpi:hover { border-color: var(--line-hi); background: var(--surface-hi); }
.ac-kpi.is-on { border-color: var(--accent); background: var(--accent-soft); }
.ac-kpi small { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ac-kpi b { font: 700 1.7rem/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ac-kpi span { font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-kpi .quota-bar { margin-top: 4px; }
.ac-panel { padding-top: 14px; }
.ac-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ac-search input { width: 100%; background: rgba(0,0,0,.25); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font: 400 15px var(--sans); }
.ac-search input:focus { outline: none; border-color: var(--accent); }
.ac-filter { flex-wrap: wrap; }
.ac-filter button { padding: 6px 10px; font-size: .82rem; white-space: nowrap; }
.ac-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.ac-sort select { height: 40px; }
.ac-table { display: flex; flex-direction: column; }
.ac-row { display: grid; grid-template-columns: minmax(220px, 2.2fr) minmax(150px, 1.2fr) minmax(150px, 1.3fr) minmax(150px, 1.4fr) minmax(100px, .8fr) 40px;
  gap: 14px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.ac-row:not(.ac-head):hover, .ac-row.is-open { background: rgba(var(--ink), 0.035); }
.ac-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ac-head { cursor: default; border-top: 0; padding-top: 4px; padding-bottom: 6px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ac-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-av { width: 36px; height: 36px; }
.ac-av img { width: 100%; height: 100%; object-fit: contain; }
.ac-name { display: flex; flex-direction: column; min-width: 0; }
.ac-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-name b .tm-state { vertical-align: 2px; margin-left: 4px; }
.ac-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-state.ac-on { background: rgba(126,212,154,.14); color: var(--ok); }
.ac-store { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-content, .ac-week { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-week em { font-style: normal; color: var(--ok); }
.ac-last { color: var(--text-2); }
.ac-last.ac-stale { color: var(--warn); }
.ac-ctl { display: flex; justify-content: flex-end; }
.ac-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 14px 16px 18px 56px; margin: 0 0 6px;
  border-radius: 0 0 12px 12px; background: rgba(var(--ink), 0.035); }
.ac-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: .88rem; }
.ac-facts dt { color: var(--muted); }
.ac-facts dd { margin: 0; overflow-wrap: anywhere; }
.ac-quota { display: inline-flex; align-items: center; gap: 8px; }
.ac-quota input { width: 110px; }
.ac-d-chart { display: flex; flex-direction: column; gap: 8px; }
.ac-spark { width: 100%; height: 48px; }
.ac-online { color: var(--ok); }
.ac-d-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ac-empty { padding: 24px 8px; text-align: center; }
.ac-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.ac-pager > div { display: flex; gap: 8px; }
/* Einstellungen: kurzer Kasten statt der ganzen Liste */
.acc-link { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; }
.acc-link:hover { border-color: var(--line-hi); background: var(--surface-hi); }
.acc-link .acc-link-n b { font-size: 1.3rem; }
.acc-link .small { flex: 1 1 200px; }
.acc-link .btn svg { width: 14px; height: 14px; margin: 0 0 0 4px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 1200px) {
  .ac-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-row { grid-template-columns: minmax(200px, 2fr) minmax(140px, 1.2fr) minmax(140px, 1.3fr) minmax(90px, .8fr) 40px; }
  .ac-row > :nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .ac-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-kpi b { font-size: 1.35rem; }
  .ac-head { display: none; }
  .ac-row { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "who ctl" "store store" "week last"; row-gap: 8px; }
  .ac-row > .ac-who { grid-area: who; } .ac-row > .ac-ctl { grid-area: ctl; } .ac-row > .ac-store { grid-area: store; }
  .ac-row > .ac-week { grid-area: week; } .ac-row > .ac-last { grid-area: last; text-align: right; }
  .ac-row > .ac-content { display: none; }
  .ac-detail { grid-template-columns: 1fr; padding-left: 16px; }
  .ac-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .ac-sort { width: 100%; } .ac-sort select { flex: 1; }
}
.ac-search { flex: 1 1 260px; }
.ac-search svg { top: 50%; transform: translateY(-50%); }
label.ac-sort { display: flex; flex-direction: row; align-items: center; gap: 8px; }
label.ac-sort > span { white-space: nowrap; }
.ac-sort select { width: auto; min-width: 170px; margin: 0; }

/* ---------- Betreiber-Konsole (op_base.html) ---------- */
.op-topbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.op-brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.15rem var(--sans); letter-spacing: -.02em; }
.op-tag { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); }
.op-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.op-nav a { color: var(--text-2); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: .9rem; }
.op-nav a:hover { color: var(--text); background: rgba(var(--ink), .05); }
.op-nav a[aria-current="page"] { color: var(--text); background: rgba(var(--ink), .09); }
.op-me { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.op-me form { margin: 0; }
.op-timer { color: var(--warn); font-variant-numeric: tabular-nums; }
.op-main { padding-bottom: 60px; }
.op-login { max-width: 440px; margin: 8vh auto 0; padding: 28px 28px 30px; }
.op-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.op-qr { background: #fff; padding: 14px; border-radius: 16px; width: 232px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.op-qr svg, .op-qr img { width: 100%; height: auto; display: block; }

.op-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; padding: 0; list-style: none; margin: 12px 0 18px; }
.op-grid { display: flex; flex-direction: column; gap: 18px; }
.op-reauth input { font: 600 1.4rem var(--mono); letter-spacing: .3em; text-align: center; }
.op-fb-item { padding: 12px 4px; border-top: 1px solid var(--line); }
.op-fb-item:first-child { border-top: 0; }
.op-fb-item header { display: flex; align-items: center; gap: 8px; }
.op-fb-item header .icon-btn { margin-left: auto; }
.op-fb-item.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; }
.op-fb-item p { margin: 6px 0 2px; white-space: pre-wrap; }
.op-fb-kind { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; background: rgba(var(--ink), .07); font-style: normal; }
.op-fb-kind.k-fehler { color: var(--warn); } .op-fb-kind.k-lob { color: var(--ok); }
.op-log { display: flex; flex-direction: column; }
.op-log-row { display: grid; grid-template-columns: 170px minmax(120px, 1fr) minmax(200px, 2fr) 50px 130px; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--line); align-items: center; }
.op-log-row.bad .op-st { color: var(--warn); }
@media (max-width: 760px) {
  .op-me { margin-left: 0; width: 100%; justify-content: space-between; }
  .op-log-row { grid-template-columns: 1fr auto; } .op-log-row > :nth-child(5) { display: none; } .op-log-row > :nth-child(3) { grid-column: 1 / -1; }
}
.op-log-row .mono { text-transform: none; letter-spacing: 0; }
.op-login .display { margin: 0 0 14px; }
.op-login .alert, .op-login .notice-ok { margin: 0 0 14px; }
.op-login > .muted { margin: 0 0 4px; }

/* Konsole: Anmeldung / 2FA einrichten – alles mittig, klare Schritte */
.op-login .display { text-align: center; }
.op-login .op-lead { text-align: center; }
.op-steps { list-style: none; padding: 0; margin: 18px 0 12px; counter-reset: s var(--start, 0); }
.op-steps[start="2"] { --start: 1; }
.op-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; }
.op-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .85rem var(--sans); background: var(--accent-soft); color: var(--accent); }
.op-steps li b { font-weight: 600; }
.op-qr-card { margin: 6px 0 4px; padding: 18px; border-radius: 18px; background: rgba(var(--ink), .035); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 14px; }
.op-qr-card figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.op-secret { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0,0,0,.25); color: var(--text); cursor: pointer; font: inherit; }
.op-secret:hover { border-color: var(--line-hi); }
.op-secret code { font: 500 .82rem var(--mono); letter-spacing: .06em; word-break: break-all; text-align: center; }
.op-secret svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; }
.op-secret.copied { border-color: var(--ok); color: var(--ok); }
.op-code { height: 58px !important; text-align: center; font: 600 1.6rem var(--mono) !important; letter-spacing: .45em; padding-left: .45em !important; }
.op-codes { background: rgba(var(--ink), .035); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; text-align: center; }
.op-setup .otp-alt { display: none; }          /* beim Einrichten gibt es noch keine Wiederherstellungscodes */
.op-reauth .otp { margin: 6px 0 4px; }
.me-email-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 6px; align-items: end; }
.me-email-grid label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.me-email-grid .btn { justify-self: start; }
.me-email-fix summary { cursor: pointer; color: var(--text-2); margin: 6px 0 2px; }
@media (max-width: 600px) { .me-email-grid { grid-template-columns: 1fr; } }
