:root {
    --color-bg: #f5f5f5;
    --color-dark: #1e1e1e;
    --color-accent: #e63942;
    --color-accent-dark: #c92e36;
    --color-text: #1e1e1e;
    --color-muted: #6b6b6b;
    --color-border: #e0e0e0;
    --color-white: #ffffff;
    --radius: 10px;
    --sidebar-width: 72px;
    --topbar-height: 56px;
    /* Letterbox-Hintergrund für Video-Thumbnails: Vorschaubilder werden vollständig
       eingepasst (object-fit: contain) statt beschnitten — Hochformat-Videos (z. B.
       9:16) bleiben komplett sichtbar (Pillarbox-Balken in dieser Farbe). 16:9 füllt
       den 16:9-Rahmen exakt, die Farbe ist dann nicht sichtbar. Brand-Schwarz. */
    --thumb-letterbox: #1e1e1e;
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

/* ---------- Auth (Login / Reset) ---------- */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
}

.auth-brand {
    margin-bottom: 28px;
}
/* Logo (dunkle Ausführung für die helle Login-Karte). Höhe an der bisherigen
   Wortmarke orientiert, Breite automatisch (nicht verzerren). */
.auth-brand-logo { height: 30px; width: auto; display: block; }

.auth-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 8px; }
.auth-intro { color: var(--color-muted); margin: 0 0 20px; font-size: 0.95rem; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.85rem; font-weight: 600; color: var(--color-dark); }

.field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
}
.field input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
}
.field-error { color: var(--color-accent); font-size: 0.8rem; }
/* Inline-Checkbox-Feld + Erläuterungstext (Profil, v0.26.0). */
.field-check { flex-direction: row; align-items: center; gap: 10px; }
.field-check input[type="checkbox"] { width: auto; padding: 0; flex: 0 0 auto; }
.field-hint { font-size: 0.8rem; color: var(--color-muted); margin: -2px 0 2px; }

.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
/* Auch als Button gestylte Links nie unterstreichen (B6). */
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); }

.auth-link {
    text-align: center;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.auth-link:hover { color: var(--color-accent); }

.auth-lang {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-muted);
}
.auth-lang a { color: var(--color-muted); text-decoration: none; margin: 0 4px; }
.auth-lang a.is-active { color: var(--color-dark); font-weight: 700; }
.auth-lang a:hover { color: var(--color-accent); }

/* ---------- Alerts ---------- */

.alert {
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.alert-error   { background: #fdecee; color: var(--color-accent-dark); }
.alert-success { background: #e9f7ef; color: #1e7e44; }

/* ---------- App-Layout (eingeloggt) ---------- */

.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--color-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}
/* Marken-Logo (Bild) statt Text — auf die Topbar-Höhe begrenzt, vertikal zentriert. */
.topbar-brand { display: inline-flex; align-items: center; height: 100%; text-decoration: none; }
.topbar-logo { height: 28px; width: auto; display: block; margin-top: 4px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user { font-size: 0.9rem; opacity: 0.85; }
.topbar-logout { margin: 0; }

.btn-link {
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.85;
}
.btn-link:hover { opacity: 1; color: var(--color-accent); }

/* ---------- Benutzermenü (Topbar-Dropdown) ---------- */

.user-menu { position: relative; }
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.9;
    padding: 6px 4px;
}
.user-menu-toggle:hover { opacity: 1; }
.user-menu-caret .icon { width: 16px; height: 16px; }
.user-menu[data-user-menu] .user-menu-toggle[aria-expanded="true"] .user-menu-caret { transform: rotate(180deg); }
.user-menu-caret { display: inline-flex; transition: transform 0.15s; }

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 232px;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    padding: 6px;
    z-index: 30;
}
.user-menu-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 6px;
}
.user-menu-head-name { font-weight: 800; }
.user-menu-head-email { font-size: 0.8rem; color: var(--color-muted); word-break: break-all; }
.user-menu-head-role {
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 7px;
    cursor: pointer;
}
.user-menu-item .icon { width: 18px; height: 18px; color: var(--color-muted); flex: none; }
.user-menu-item:hover { background: var(--color-bg); }
.user-menu-logout {
    margin: 6px 0 0;
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
}
.user-menu-item-danger { color: var(--color-accent); }
.user-menu-item-danger .icon { color: var(--color-accent); }

.sidebar {
    position: fixed;
    top: var(--topbar-height); left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-dark);
    z-index: 10;
}

.content {
    margin-left: var(--sidebar-width);
    padding: calc(var(--topbar-height) + 32px) 40px 40px;
}

.page-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.page-lead  { color: var(--color-muted); margin: 0; }

/* ---------- Sidebar-Navigation (Icon + Label) ---------- */

.sidenav { display: flex; flex-direction: column; align-items: stretch; padding-top: 10px; gap: 2px; }
.sidenav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    color: #cfcfcf;
    text-decoration: none;
}
.sidenav-item .icon { width: 22px; height: 22px; }
.sidenav-label {
    font-size: 9px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
}
.sidenav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidenav-item.is-active { color: #fff; }
.sidenav-item.is-active .icon { color: var(--color-accent); }
.sidenav-item.is-active::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-accent);
}

/* ---------- Migrationsübersicht ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-value { font-size: 2rem; font-weight: 800; }
.stat-label { color: var(--color-muted); font-size: 0.85rem; }
.stat-head { font-weight: 700; color: var(--color-dark); margin-bottom: 4px; }
.stat-line { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

.panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.panel-hint { margin: 0 0 8px; color: var(--color-muted); font-size: 0.9rem; }
.cli {
    display: inline-block;
    background: var(--color-dark);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.85rem;
}

.action-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; }
.inline-form { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.inline-form-title { font-size: 0.85rem; }
.inline-form input {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
}
.btn-sm { padding: 8px 12px; font-size: 0.85rem; }
.btn-ghost {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
}
.data-table th { background: #fafafa; font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.data-table .empty { text-align: center; color: var(--color-muted); padding: 24px; }
.err { color: var(--color-accent); font-weight: 800; cursor: help; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-pending    { background: #eee;    color: #555; }
.badge-processing { background: #e3f0fd; color: #1c64c4; }
.badge-done       { background: #e9f7ef; color: #1e7e44; }
.badge-failed     { background: #fdecee; color: var(--color-accent-dark); }

.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pager-page { font-weight: 700; }
.pager-jump, .pager-size { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pager-label { font-size: 0.85rem; color: #555; }
.pager-input { width: 64px; text-align: center; }
.pager-total { margin-left: auto; font-size: 0.85rem; color: #777; }
.bulk-assign { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.pager .disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Admin: Kopfzeile, Formulare, Aktionen ---------- */

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-link { text-decoration: none; color: inherit; transition: border-color 0.15s; }
.stat-link:hover { border-color: var(--color-accent); }

.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-card select,
.form-card textarea,
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: #fafafa;
}
.form-card textarea { resize: vertical; min-height: 64px; }
.form-card select:focus,
.form-card textarea:focus,
.form-card input:focus { outline: none; border-color: var(--color-accent); background: #fff; }
.form-card input[readonly] {
    background: #f0f0f0;
    color: var(--color-muted);
    cursor: not-allowed;
}
.form-card input[readonly]:focus { border-color: var(--color-border); background: #f0f0f0; }

.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 160px; }
.field-narrow { max-width: 120px; }
.field-label small { font-weight: 400; color: var(--color-muted); }

.field-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.field-check input { width: auto; }
.field-check small { color: var(--color-muted); }

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px 16px;
    margin-top: 4px;
}
.check-grid .field-check { margin: 0; }

.form-section {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}
.form-section legend { font-weight: 700; padding: 0 6px; }

.form-actions { display: flex; gap: 12px; align-items: center; }

.filter-bar { margin: 16px 0; }

/* v0.22.0 Migrationsseite: kompakte globale Aktionen + Tabellen-Werkzeugleiste */
.mig-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.mig-action { display: flex; flex-direction: column; gap: 3px; }
.mig-action .inline-form { gap: 8px; }
.mig-action-sub { font-size: 0.82rem; color: var(--color-muted); }
.mig-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-muted); font-size: 11px; line-height: 1; cursor: help; user-select: none; flex-shrink: 0; }
.mig-info:hover, .mig-info:focus { border-color: var(--color-accent); color: var(--color-accent); outline: none; }

.table-toolbar { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 10px 14px; margin: 16px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.table-toolbar .filter-bar { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border-top: 1px solid var(--color-border); padding-top: 10px; }
.bulk-actions { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.toolbar-actions .bulk-assign { margin-left: 6px; }
.toolbar-sep { width: 1px; align-self: stretch; min-height: 22px; background: var(--color-border); margin: 0 4px; }

.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.field-inline select {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
}

/* Audit-Log-Viewer (v0.23.0) */
.audit-otype { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--color-muted); background: #f0f0f0; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.audit-ctx { font-size: 0.85rem; color: var(--color-muted); }

.row-actions { display: flex; align-items: center; gap: 12px; }
.row-actions form { margin: 0; }
.link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-dark);
    text-decoration: none;
    cursor: pointer;
}
.link:hover { color: var(--color-accent); }
.link-danger { color: var(--color-accent); }
.link-danger:hover { color: var(--color-accent-dark); text-decoration: underline; }

/* --- Versionsanzeige (dezent) --- */
.app-footer {
    margin-top: 32px;
    padding-top: 12px;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.app-copyright { color: var(--color-muted); }
.app-footer-sep { color: var(--color-border); }
.app-footer-link { color: var(--color-muted); text-decoration: none; }
.app-footer-link:hover { color: var(--color-accent); text-decoration: underline; }
.app-version {
    color: var(--color-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.auth-version {
    margin-top: 14px;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* ---------- Support-Modus-Banner ---------- */
.support-banner {
    position: fixed;
    top: var(--topbar-height);
    left: 0; right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: #9a5b00;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 15;
}
.support-banner form { margin: 0; }
.support-banner-leave {
    background: #fff;
    color: #9a5b00;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.support-banner-leave:hover { background: #ffe9cc; }
.has-support-banner .sidebar { top: calc(var(--topbar-height) + 44px); }
.has-support-banner .content { padding-top: calc(var(--topbar-height) + 44px + 32px); }

/* ---------- Vimeo-Thumbnail in der Migrationsliste ---------- */
.vid-thumb {
    width: 64px;
    height: 36px;
    object-fit: contain; /* Hochformat vollständig einpassen statt beschneiden */
    border-radius: 4px;
    display: block;
    background: var(--thumb-letterbox);
}

/* ---------- Sortierbare Tabellen-Header ---------- */
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { color: var(--color-accent); }

/* ---------- Workspace-Detail / Projekte (WP10) ---------- */
.page-head-actions { display: flex; gap: 8px; align-items: center; }
.section-title { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.page-subtitle { color: var(--color-muted); margin: -4px 0 20px; font-size: 0.95rem; }
.empty-state { background: var(--color-white); border: 1px dashed var(--color-border); border-radius: 8px; padding: 32px; text-align: center; color: var(--color-muted); }
.alert-warning { background: #fff8e1; border: 1px solid #ffd966; color: #6b5800; }
.rename-form { margin-top: 8px; }

/* ---------- Video-Upload (WP11) ---------- */
.vid-thumb-empty { display: inline-block; background: #e8e8e8; }
/* „Archiviert"-Platzhalter statt Thumbnail (Punkt 10) */
.vid-thumb-archived { display: inline-flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #ececec, #ececec 8px, #e3e3e3 8px, #e3e3e3 16px); color: #777; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
/* Archiviert-Box auf der Videodetailseite (statt Player) */
.vd-archived-box { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #f5f5f5; color: #555; text-align: center; padding: 0 24px; }
.vd-archived-badge { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: #8a8a8a; padding: 4px 12px; border-radius: 20px; }
.vd-archived-hint { margin: 0; font-size: 13.5px; max-width: 460px; line-height: 1.5; }
.field-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
}
.field-input:focus { outline: none; border-color: var(--color-accent); background: var(--color-white); }

.vu-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.vu-overlay[hidden] { display: none; }
.vu-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.vu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.vu-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.vu-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--color-muted); }
.vu-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.vu-body .field-label { margin-top: 10px; }
.vu-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--color-border); }
.vu-drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 96px; padding: 16px; border: 2px dashed var(--color-border); border-radius: 8px; cursor: pointer; color: var(--color-muted); margin-bottom: 6px; }
.vu-drop.is-drag { border-color: var(--color-accent); background: #fdeef0; color: var(--color-dark); }
/* Ausgewählte Datei: deutlich grün + fett (konsistent zum Datei-Upload-Element, v0.24.3). */
.vu-drop.is-selected { border-color: #1a7f37; color: #1a7f37; font-weight: 700; }
.vu-drop.is-selected [data-vu-droptext]::before { content: "✓ "; }
.vu-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.vu-bar { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.vu-bar-fill { width: 0; height: 100%; background: var(--color-accent); transition: width .2s; }
.vu-pct { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--color-muted); }

/* ---------- Versionstabelle (WP12) ---------- */
.vv-table tr.vv-current { background: #fffaf5; }
.vv-vthumb { display: inline-block; width: 48px; height: 27px; vertical-align: middle; margin-right: 8px; border-radius: 4px; background: var(--thumb-letterbox); overflow: hidden; }
.vv-vthumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vv-by { font-size: 11px; color: var(--color-muted); }
.vv-note { cursor: text; padding: 4px 6px; margin: -4px -6px; border-radius: 4px; line-height: 1.4; min-height: 22px; font-size: 0.85rem; }
.vv-note:hover { background: #fff4cc; outline: 1px dashed #d4a017; }
.vv-note:empty::before { content: attr(data-placeholder); color: #9a9a9a; font-style: italic; }

/* ---------- Video-Detail-Seite (WP13, Vorlage docs/mockups/wp13_video_detail_mockup.html) ---------- */
.btn-sec { background: #fff; color: var(--color-dark); border: 1px solid #d0d0d0; }
.vd-btn-icon { padding: 10px 12px; font-weight: 700; }
.vd-btn-icon svg { width: 16px; height: 16px; display: block; }
[data-vd-reviewcopy].vd-copied { color: var(--color-accent); }
.vd-disabled { background: #e5e7eb !important; color: #9a9a9a !important; cursor: default !important; }
.vd-mono { font-family: monospace; font-size: 11.5px; }

.vd-crumb { font-size: 12.5px; color: #6f6f6f; margin-bottom: 12px; }
.vd-crumb .vd-sep { color: #c0c0c0; padding: 0 6px; }
.vd-crumb a { color: #6f6f6f; text-decoration: none; }
.vd-crumb a:hover { color: var(--color-accent); }
.vd-crumb .vd-curr { color: var(--color-dark); font-weight: 600; }

.vd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.vd-title { font-size: 26px; font-weight: 800; line-height: 1.15; cursor: text; padding: 4px 8px; margin-left: -8px; border-radius: 4px; flex: 1; }
.vd-title:hover { background: #fff4cc; outline: 1px dashed #d4a017; }
.vd-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
/* „Zur aktuellen Version" — auffälliger Amber-Hinweis, nur in Vorversionen sichtbar. */
.vd-to-current { background: #f59e0b; color: #fff; border: 1px solid #d97706; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.vd-to-current:hover, .vd-to-current:focus { background: #d97706; color: #fff; }
.vd-to-current svg { width: 16px; height: 16px; }
.vd-dd-wrap { position: relative; }
.vd-dd-menu { position: absolute; top: 46px; right: 0; min-width: 230px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; display: none; overflow: hidden; }
.vd-dd-menu.vd-open { display: block; }
.vd-dd-item { padding: 11px 16px; font-size: 13px; cursor: pointer; }
.vd-dd-item:hover { background: #fafafa; }
.vd-dd-item.vd-danger { color: #b91c1c; }
.vd-dd-sep { border-top: 1px solid #f0f0f0; }

.vd-phases { display: flex; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid #e8e8e8; margin-bottom: 22px; gap: 4px; }
.vd-phase { flex: 1; padding: 12px 16px; cursor: pointer; border-radius: 7px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #9a9a9a; transition: all .15s; }
.vd-num { width: 22px; height: 22px; border-radius: 50%; background: #eaeaea; color: #6f6f6f; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.vd-lbl { display: flex; flex-direction: column; line-height: 1.15; }
.vd-main-lbl { font-weight: 800; }
.vd-sub-lbl { font-size: 10.5px; color: #9a9a9a; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-top: 1px; }
.vd-phase.vd-done { color: #166534; }
.vd-phase.vd-done .vd-num { background: #dcfce7; color: #166534; }
.vd-phase.vd-done .vd-num span { display: none; }
.vd-phase.vd-done .vd-num::before { content: "✓"; }
.vd-phase.vd-current { color: var(--color-accent); background: #fef2f2; }
.vd-phase.vd-current .vd-num { background: var(--color-accent); color: #fff; }
.vd-phase.vd-current .vd-sub-lbl { color: var(--color-accent); }
.vd-phase.vd-skipped, .vd-phase.vd-upcoming { color: #c0c0c0; }
.vd-phase.vd-viewing { outline: 2px solid #c7d2fe; }

/* v1.21.0: Video links (max. 50% Bildschirmbreite), Blöcke als Tabs rechts. */
.vd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; align-items: start; }
.vd-left { min-width: 0; max-width: 50vw; position: sticky; top: 16px; }
.vd-col-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* Block-Tableiste rechts neben dem Video. */
.vd-blocktabs { display: flex; flex-wrap: wrap; gap: 4px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 6px; }
.vd-blocktab { font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: #555; cursor: pointer; white-space: nowrap; }
.vd-blocktab:hover { background: #f3f3f3; }
.vd-blocktab.is-active { background: var(--color-accent); color: #fff; }
.vd-blocks { display: flex; flex-direction: column; min-width: 0; }
.vd-blocks > div { min-width: 0; }
.vd-block-off { display: none !important; }
.vd-blocks .vd-section, .vd-blocks .vd-card { margin-bottom: 0; }
/* Rechte Spalte kann mehrere gestapelte Boxen enthalten (v0.28.0: Review-Status +
   Versionen im Review-Tab) — gleichmäßiger Abstand, kompaktere Versionstabelle. */
#vd-rightbottom { display: flex; flex-direction: column; gap: 18px; }
#vd-rightbottom .vd-section { margin-bottom: 0; }
#vd-rightbottom .vd-section-head { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
#vd-rightbottom table.vd-versions { font-size: 12px; }
#vd-rightbottom table.vd-versions th, #vd-rightbottom table.vd-versions td { padding: 8px 10px; }
#vd-rightbottom .vd-vthumb2 { width: 46px; }
#vd-rightbottom .vd-vcell { gap: 7px; }
.vd-card { background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; overflow: hidden; }
.vd-player { aspect-ratio: 16/9; background: #000; }
.vd-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.vd-vbar { padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #6f6f6f; border-top: 1px solid #f0f0f0; }
.vd-card-head { padding: 12px 18px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.vd-card-head h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #6f6f6f; }
/* Kein fester Höhen-/Scroll-Rahmen mehr – Metabox + Veröffentlichungs-Block
   sollen ohne Scrollleiste passen (v0.18.7). */
.vd-card-body { padding: 14px 18px; }
.vd-card-body.vd-full { max-height: none; }

.vd-meta-section { margin-bottom: 12px; }
.vd-meta-section.vd-desc { padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.vd-meta-label { font-size: 10.5px; text-transform: uppercase; color: #9a9a9a; font-weight: 700; letter-spacing: .4px; margin-bottom: 4px; }
.vd-meta-value { font-size: 13px; color: var(--color-dark); padding: 3px 5px; margin-left: -5px; border-radius: 4px; min-height: 22px; }
.vd-editable { cursor: text; }
.vd-editable:hover { background: #fff4cc; outline: 1px dashed #d4a017; }
.vd-editable:empty::before { content: attr(data-placeholder); color: #9a9a9a; font-style: italic; }
.vd-meta-desc { font-size: 13px; line-height: 1.5; color: #4a4a4a; }
/* Kompaktes Raster: 2 Spalten, auf breiten Screens 3 (responsiv) – kein Scrollen. */
.vd-meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 12.5px; }
@media (min-width: 1500px) { .vd-meta-row { grid-template-columns: repeat(3, 1fr); } }
/* Footage / Rohdaten (v1.50.0): Direkt-Upload Browser→Hetzner. */
.vd-footage { padding-top: 12px; border-top: 1px solid #f0f0f0; }
.vd-footage-hint { font-size: 12px; color: var(--color-muted); margin: 2px 0 8px; }
.vd-footage-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1.5px dashed #d2d2d2; border-radius: 8px; cursor: pointer; background: #fafafa; }
.vd-footage-drop.ft-over { border-color: var(--color-accent); background: #fdecee; }
.vd-footage-drop-txt { font-size: 12.5px; color: var(--color-muted); }
.vd-footage-progress { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ft-prow { font-size: 12px; }
.ft-prow-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ft-pname { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-pmeta { color: var(--color-muted); white-space: nowrap; }
.ft-bar { height: 6px; border-radius: 4px; background: #ececec; overflow: hidden; }
.ft-fill { height: 100%; width: 0; background: var(--color-accent); transition: width .2s; }
.ft-prow.ft-error .ft-fill { background: #b3261e; }
.ft-prow.ft-error .ft-pmeta { color: #b3261e; }
.vd-footage-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.ft-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; font-size: 12.5px; }
.ft-row:hover { background: #f6f7f8; }
.ft-name { flex: 1; min-width: 0; color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-name:hover { color: var(--color-accent); text-decoration: underline; }
.ft-size { color: var(--color-muted); flex-shrink: 0; }
.ft-del { background: none; border: 0; color: #b3261e; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; padding: 2px 4px; border-radius: 5px; }
.ft-del:hover { background: #fdecee; }
.vd-footage-empty { font-size: 12px; color: var(--color-muted); margin: 8px 0 0; }
.vd-footage-toolbar { display: flex; gap: 8px; margin-top: 10px; }
.vd-footage-toolbar .vd-footage-delall { color: #b3261e; }
/* Review-Frist (WP-P5-3). */
.vd-deadline-sec { padding-top: 12px; border-top: 1px solid #f0f0f0; }
.vd-deadline-row { display: flex; align-items: center; gap: 10px; }
.vd-deadline-input { font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid #d8d8d8; border-radius: 7px; }
.vd-deadline-input:focus { outline: none; border-color: var(--color-accent); }
.vd-deadline-msg { font-size: 12px; font-weight: 700; color: #1b7a32; }
/* Datepicker-Host (Datum-only) in der Frist-Zeile: feste, kompakte Breite. */
.vd-deadline-host { width: 160px; flex-shrink: 0; }
.vd-deadline-host .dp-input { font-size: 13px; padding: 6px 34px 6px 9px; }
/* „Frist entfernen"-Button neben dem Datepicker. */
.vd-deadline-clear { flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #d8d8d8; border-radius: 7px; background: #fff; color: #8a8a8a; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.vd-deadline-clear:hover { border-color: var(--color-accent); color: var(--color-accent); }
/* Review-Frist innerhalb der Box „Review-Status" (v0.28.0). */
.vd-rev-deadline { padding-top: 12px; margin-top: 4px; border-top: 1px solid #f0f0f0; }
.vd-rev-deadline .vd-meta-label { margin-bottom: 5px; }
/* Review-Seite an/aus + „aktiv bis" (Punkt 5) */
.vd-rev-page { padding-top: 12px; margin-top: 12px; border-top: 1px solid #f0f0f0; }
.vd-rp-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.vd-rp-toggle input { width: 15px; height: 15px; flex-shrink: 0; }
.vd-rev-page .vd-meta-label { margin-bottom: 5px; }
/* Projekt-Review-Seite an/aus (Punkt 6) + deaktivierter Split-Button */
.pdv-rp { padding: 4px 2px 2px; }
.pdv-rp-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.pdv-rp-toggle input { width: 16px; height: 16px; flex-shrink: 0; }
.pdv-rp-hint { font-size: 12px; color: #9a9a9a; margin-top: 5px; line-height: 1.4; }
.pdv-rp-until { margin-top: 12px; max-width: 260px; }
.pdv-rp-lbl { font-size: 12px; font-weight: 700; color: #555; margin-bottom: 5px; }
.pdv-rev-off .pdv-rev-open.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.vd-meta-hint { font-size: 11px; color: #9a9a9a; margin-top: 5px; line-height: 1.4; }
.vd-tags { display: flex; flex-wrap: wrap; gap: 5px; cursor: text; padding: 3px 5px; margin-left: -5px; border-radius: 4px; font-size: 12.5px; }
.vd-tags:hover { background: #fff4cc; outline: 1px dashed #d4a017; }

.vd-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.vd-b-green { background: #dcfce7; color: #166534; }
.vd-b-amber { background: #fef3c7; color: #92400e; }
.vd-b-gray { background: #e5e7eb; color: #374151; }
.vd-b-blue { background: #dbeafe; color: #1e40af; }
.vd-b-red { background: #fee2e2; color: #991b1b; }
.vd-b-purple { background: #ede9fe; color: #5b21b6; }

.vd-rev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.vd-rs { background: #fafafa; border-radius: 6px; padding: 8px 10px; }
.vd-rs .vd-num { font-size: 18px; font-weight: 800; line-height: 1; }
.vd-rslbl { font-size: 10px; color: #6f6f6f; text-transform: uppercase; font-weight: 700; margin-top: 3px; }
.vd-rs.vd-done .vd-num { color: #166534; }
.vd-rs.vd-pending .vd-num { color: #92400e; }
.vd-hint { font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 6px; }
.vd-h-warn { background: #fff8e1; border-left: 3px solid #ffd966; color: #6b5800; }
.vd-h-info { background: #eef2ff; border-left: 3px solid #818cf8; color: #312e81; }

.vd-dl-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f3f3f3; gap: 12px; }
.vd-dl-row:last-child { border-bottom: none; }
.vd-dl-row b { font-size: 12.5px; }
.vd-dl-row span { font-size: 11px; color: #6f6f6f; }
.vd-mini { padding: 5px 10px; font-size: 11px; font-weight: 700; border: 1px solid #d0d0d0; background: #fff; border-radius: 5px; cursor: pointer; }

.vd-embed-params { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.vd-ep { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.vd-ep input { accent-color: var(--color-accent); }
.vd-ep-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.vd-sel, .vd-inp { width: 100%; padding: 6px 8px; border: 1px solid #d0d0d0; border-radius: 5px; font-size: 12.5px; font-family: inherit; }
.vd-embed-code { background: #1e1e1e; color: #d6d6d6; padding: 10px 28px 10px 12px; border-radius: 6px; font-family: 'SF Mono', Menlo, monospace; font-size: 11px; line-height: 1.5; overflow-x: auto; position: relative; max-height: 160px; white-space: pre-wrap; word-break: break-all; }
.vd-embed-code.vd-disabled { opacity: .35; text-decoration: line-through; pointer-events: none; }
.vd-embed-code .vd-copy { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.12); color: #fff; border: none; padding: 3px 9px; border-radius: 4px; cursor: pointer; font-size: 10px; font-weight: 600; }
.vd-embed-hint { margin-top: 8px; font-size: 12px; }
.vd-embed-hint > summary { cursor: pointer; color: var(--color-muted, #6b6b6b); font-weight: 600; user-select: none; }
.vd-embed-hint > summary:hover { color: var(--color-dark, #1e1e1e); }
.vd-embed-hint-body { color: #555; line-height: 1.5; margin: 8px 0; }
.vd-embed-hint-code { background: #1e1e1e; color: #d6d6d6; padding: 10px 12px; border-radius: 6px; font-family: 'SF Mono', Menlo, monospace; font-size: 11px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.vd-ws-info { background: #fafafa; border-radius: 6px; padding: 10px 12px; font-size: 12px; }
.vd-ws-row { display: flex; gap: 8px; margin-bottom: 4px; line-height: 1.4; }
.vd-ws-key { color: #6f6f6f; min-width: 130px; font-weight: 600; }
.vd-ws-val { color: var(--color-dark); word-break: break-word; }
.vd-ws-link { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--color-accent); text-decoration: none; font-weight: 600; }

.vd-preview-hint { background: #eef2ff; border: 1px solid #c7d2fe; color: #312e81; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; margin-bottom: 16px; }
.vd-section { background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; margin-bottom: 18px; overflow: hidden; }
.vd-section-head { padding: 14px 22px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.vd-section-head h2 { font-size: 15px; font-weight: 800; }
.vd-section-body { padding: 18px 22px; }
.vd-muted { color: #9a9a9a; font-size: 13px; }
.vd-oldtoggle { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.vd-oldtoggle .vd-switch { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; cursor: pointer; }
.vd-oldtoggle .vd-muted { font-size: 12px; }
table.vd-versions { width: 100%; border-collapse: collapse; font-size: 13px; }
table.vd-versions th { text-align: left; padding: 10px 12px; color: #6f6f6f; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; background: #fafafa; border-bottom: 1px solid #e8e8e8; }
table.vd-versions td { padding: 12px; border-bottom: 1px solid #f0f0f0; }
table.vd-versions tr.vd-vcurrent { background: #fffaf5; }
.vd-vcell { display: flex; align-items: center; gap: 10px; }
.vd-vthumb2 { width: 70px; aspect-ratio: 16/9; background: linear-gradient(135deg,#222,#444); border-radius: 4px; flex-shrink: 0; }
.vd-by { font-size: 11px; color: #6f6f6f; }
.vd-note { font-size: 12.5px; color: #4a4a4a; cursor: text; padding: 4px 6px; margin: -4px -6px; border-radius: 4px; line-height: 1.4; min-height: 22px; }
.vd-note:hover { background: #fff4cc; outline: 1px dashed #d4a017; }
.vd-note.empty:empty::before { content: attr(data-placeholder); color: #9a9a9a; font-style: italic; }
.vd-note-cell { position: relative; }
.vd-note-cell.vd-note-saved::after {
    content: '✓'; position: absolute; top: 2px; right: 4px; color: #2e7d32; font-weight: 700; font-size: 13px;
    animation: vdNoteSavedFade 1.4s ease forwards;
}
@keyframes vdNoteSavedFade { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
.vd-track { display: flex; align-items: center; padding: 11px 14px; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 8px; gap: 12px; }
.vd-tracklang { font-weight: 700; font-size: 13px; min-width: 130px; }
.vd-tracktype { font-size: 11px; padding: 2px 8px; background: #eef2ff; color: #4338ca; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.vd-trans-box { background: #fafafa; border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.vd-trans-box .info b { display: block; margin-bottom: 3px; font-size: 13px; }
.vd-trans-box .info span { color: #6f6f6f; font-size: 12px; }
/* Kapitel (Tab „Freigabe", v0.28.0) */
table.vd-chapters { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
table.vd-chapters th { text-align: left; padding: 8px 10px; color: #6f6f6f; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; background: #fafafa; border-bottom: 1px solid #e8e8e8; }
table.vd-chapters td { padding: 7px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
table.vd-chapters th.vd-ch-num, table.vd-chapters td.vd-ch-num { width: 34px; text-align: center; color: #9a9a9a; font-weight: 700; }
.vd-chapters .vd-ch-time { width: 92px; text-align: center; }
.vd-chapters .vd-ch-title { width: 100%; }
.vd-chapters-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.vd-chapters-right { display: flex; align-items: center; gap: 8px; }
.vd-chapters-msg { font-size: 12.5px; font-weight: 600; margin-top: 10px; }
/* Kapitelvorschlag aus der Transkription (D120) */
.vd-ch-suggest { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #f3f6fb; border: 1px solid #e1e9f5; border-radius: 8px; padding: 9px 12px; margin: 10px 0; }
.vd-ch-suggest-t { font-size: 12.5px; font-weight: 700; color: #2b4c70; }
.vd-ch-suggest-act { display: flex; gap: 8px; }
.vd-chapters-msg.ok { color: #1a7f37; }
.vd-chapters-msg.err { color: #b3261e; }

/* Download-Auslieferung (v0.21.0) */
.vd-dl-acts { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
/* Download-Seite: Inhaltsauswahl + „Verfügbar bis" (WP v1.29.0). */
.vd-dlcontent { padding: 12px 0; margin-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.vd-dlc-head { font-weight: 700; }
.vd-dlc-list { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 4px; }
.vd-dlc-row { display: flex; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.vd-dlc-row:hover { background: #fafafa; }
.vd-dlc-row.off { color: #aaa; cursor: default; }
.vd-dlc-row.off:hover { background: none; }
.vd-dlc-row input { width: 15px; height: 15px; accent-color: var(--color-accent); }
.vd-dlc-label { flex: 1; }
.vd-dlc-na { font-size: 11px; font-style: italic; color: #bbb; }
.vd-dlc-deadline { margin-top: 10px; }
.vd-dlc-deadline .vd-deadline-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
/* Download-Inventar (v1.30.0): Element · Download-Aktionen · Bereitstellen. */
.vd-inv-head, .vd-inv-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(140px, 1.8fr) 96px; align-items: center; gap: 10px; padding: 7px; }
.vd-inv-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: #999; font-weight: 800; border-bottom: 1px solid #ececec; }
.vd-inv-row { font-size: 13px; border-bottom: 1px solid #f4f4f4; }
.vd-inv-row.off { color: #aaa; }
.vd-inv-label { font-weight: 600; }
.vd-inv-acts { display: flex; flex-wrap: wrap; gap: 5px; }
.vd-inv-check { text-align: right; }
.vd-inv-check input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.vd-inv-email { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; flex-wrap: wrap; }
.vd-inv-email .vd-meta-hint { margin: 0; }
/* Separater Download-Seiten-Link (v1.23.0). */
.vd-dlpage { padding: 4px 0 12px; margin-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.vd-dlpage-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 2px; }
a.vd-mini { text-decoration: none; display: inline-block; color: var(--color-dark); }
a.vd-mini:hover, .vd-mini:hover { border-color: var(--color-accent); color: var(--color-accent); }
/* Untertitel: Spur-Liste + Upload-Form + Transkription (v0.21.0) */
.vd-track .vd-del-btn { margin-left: auto; }
/* Internes Notizfeld pro Untertitelspur (v0.26.0) — nur intern, nicht in der Auslieferung. */
.vd-track-note { flex: 1; min-width: 120px; padding: 5px 9px; border: 1px solid #e0e0e0; border-radius: 6px; font: inherit; font-size: 12px; background: #fafafa; color: #333; }
.vd-track-note:focus { outline: none; border-color: var(--color-accent); background: #fff; }
.vd-track-note::placeholder { color: #aaa; font-style: italic; }
/* Download-Auswahl je Untertitelspur (v0.28.5) */
.vd-track-dl { flex-shrink: 0; padding: 5px 8px; border: 1px solid #e0e0e0; border-radius: 6px; font: inherit; font-size: 12px; background: #fff; color: #333; cursor: pointer; }
.vd-track-dl:focus { outline: none; border-color: var(--color-accent); }
/* Veröffentlichen/Entwurf-Schalter je Untertitelspur (v1.27.0) */
.vd-pubtog { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid #d8d8d8; background: #f3f3f3; color: #777; cursor: pointer; white-space: nowrap; }
.vd-pubtog::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b8b8b8; }
.vd-pubtog.is-on { background: #e9f7ef; border-color: #b6e0c5; color: #1a7f37; }
.vd-pubtog.is-on::before { background: #1a9e44; }
.vd-pubtog:hover:not(:disabled) { border-color: var(--color-accent); }
.vd-pubtog:disabled { opacity: .55; cursor: not-allowed; }
/* Audiodateien (Hetzner, v0.26.1). */
.vd-audio-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.vd-audio-item audio { height: 34px; max-width: 280px; }
.vd-audio-info { display: flex; flex-direction: column; min-width: 120px; }
.vd-audio-name { font-weight: 700; font-size: 13px; word-break: break-all; }
.vd-audio-size { font-size: 11px; color: var(--color-muted); }
.vd-audio-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.vd-audio-up { margin-top: 4px; }
.vd-audio-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vd-audio-msg { font-size: 12px; margin-top: 6px; color: var(--color-muted); }
/* MP3 aus Video erzeugen (MP3-WP). */
.vd-mp3 { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fafafa; }
.vd-mp3-title { font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.vd-mp3-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.vd-mp3-br { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .3px; }
.vd-mp3-br select { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 10px; border: 1px solid #d8d8d8; border-radius: 7px; background: #fff; cursor: pointer; }
.vd-mp3-br select:disabled { opacity: .55; cursor: not-allowed; }
.vd-mp3-msg { font-size: 12px; margin-top: 8px; color: var(--color-muted); }
/* Live-Fortschritt (Quelle laden / Encodieren / Hochladen). */
.vd-mp3-prow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.vd-mp3-plabel { width: 110px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--color-dark); }
.vd-mp3-bar { flex: 1; height: 8px; background: #e6e6e6; border-radius: 5px; overflow: hidden; max-width: 260px; }
.vd-mp3-bar i { display: block; height: 100%; width: 0; background: var(--color-accent); border-radius: 5px; transition: width .3s ease; }
.vd-mp3-bar.busy i { width: 35%; animation: vd-mp3-indef 1.1s ease-in-out infinite; }
@keyframes vd-mp3-indef { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.vd-mp3-pct { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--color-muted); min-width: 30px; }
.vd-mp3-dash { color: #bbb; font-weight: 700; }
.vd-cap-upload { margin-top: 12px; }
.vd-cap-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vd-cap-row input[type=file] { font-size: 12px; max-width: 230px; }
.vd-cap-lang { width: 90px !important; flex: 0 0 auto; }
.vd-cap-label { width: 150px !important; flex: 0 0 auto; }
.vd-cap-msg { color: #b3261e; font-size: 12px; font-weight: 600; margin-top: 8px; }
.vd-trans-act { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.vd-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vd-stat { background: #fafafa; border-radius: 8px; padding: 16px; }
.vd-stat .vd-num { font-size: 22px; font-weight: 800; }
.vd-statlbl { font-size: 11px; color: #6f6f6f; text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; font-weight: 700; }

@media (max-width: 900px) {
    .vd-grid { grid-template-columns: 1fr; }
    .vd-left { max-width: none; position: static; }
}

/* Wiederverwendbares, gestyltes Datei-Upload-Element (v0.24.0) — ersetzt den
   nativen „Choose File"-Button app-weit (SRT/VTT, Thumbnail …). */
.amp-file { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; vertical-align: middle; }
.amp-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.amp-file-btn { display: inline-block; background: #fff; color: var(--color-dark); border: 1px solid #d0d0d0; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 12.5px; white-space: nowrap; transition: border-color .12s, color .12s; }
.amp-file:hover .amp-file-btn { border-color: var(--color-accent); color: var(--color-accent); }
.amp-file-input:focus-visible + .amp-file-btn { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.amp-file-name { font-size: 12.5px; color: #6f6f6f; word-break: break-all; }
.amp-file-name.is-empty { color: #9a9a9a; font-style: italic; }
/* Ausgewählter Zustand: deutlich grün + fett (vs. dezenter Platzhalter), app-weit (v0.24.3). */
.amp-file-name:not(.is-empty) { color: #1a7f37; font-weight: 700; }
.amp-file-name:not(.is-empty)::before { content: "✓ "; }

/* Thumbnail setzen (Tab „Veröffentlicht", v0.24.0) */
.vd-thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.vd-thumb-caption { font-size: 11px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; margin-bottom: 6px; }
.vd-thumb-prev { width: 100%; aspect-ratio: 16/9; background: var(--thumb-letterbox) center/contain no-repeat; border-radius: 8px; border: 1px solid #e2e2e2; display: flex; align-items: center; justify-content: center; color: #888; font-size: 12px; text-align: center; padding: 8px; }
.vd-thumb-ways { display: flex; flex-direction: column; gap: 16px; }
.vd-thumb-way { border: 1px solid #ececec; border-radius: 8px; padding: 14px 16px; }
.vd-thumb-way h4 { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.vd-thumb-way .vd-meta-hint { margin: 4px 0 10px; }
.vd-thumb-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vd-thumb-msg { font-size: 12px; font-weight: 600; margin-top: 8px; }
.vd-thumb-msg.ok { color: #1a7f37; }
.vd-thumb-msg.err { color: #b3261e; }
.vd-frame-stage { width: 100%; max-width: 440px; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.vd-frame-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.vd-frame-scrub { width: 100%; max-width: 440px; margin: 10px 0; accent-color: var(--color-accent); display: block; }
.vd-frame-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vd-frame-stage, .vd-frame-scrub { max-width: 100%; }
@media (max-width: 980px) { .vd-thumb-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .vd-thumb-grid { grid-template-columns: 1fr; } }

/* „Auslieferung über Review-Seite"-Checkbox im Download-Block (v0.25.0) */
.vd-deliver { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; cursor: pointer; }
.vd-deliver input { accent-color: var(--color-accent); }

/* ---------- Hotfix-Bundle v0.14.2 ---------- */
/* Encoding-Spinner im Thumbnail */
.enc-spinner { position: relative; background: #1a1a1a; }
.enc-spinner::after {
    content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.3); border-top-color: var(--color-accent);
    border-radius: 50%; animation: enc-spin .8s linear infinite;
}
@keyframes enc-spin { to { transform: rotate(360deg); } }

/* Dateiformat-Hinweis im Upload-Modal */
.vu-formats { font-size: 11px; color: var(--color-muted); margin: 6px 0 4px; line-height: 1.4; }
.vu-autoreview { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin: 12px 0 2px; cursor: pointer; }
.vu-autoreview input { accent-color: var(--color-accent); }
/* Mehrfach-Upload (Punkt 2): Hinweis statt der Einzelfelder bei >1 Datei. */
.vu-multi-note { background: #fff7d6; border: 1px solid #f0e0a0; color: #5b4b18; font-size: 13px; line-height: 1.5; font-weight: 600; padding: 11px 13px; border-radius: 8px; margin: 6px 0; }

/* Schwebendes Upload-Fortschritts-Widget (unten rechts, stapelbar) */
.vw-stack { position: fixed; right: 20px; bottom: 20px; width: 320px; display: flex; flex-direction: column; gap: 10px; z-index: 1100; }
.vw-item { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 12px 14px; }
.vw-item[data-state="error"] { border-color: var(--color-accent); }
.vw-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vw-name { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-x { background: none; border: none; font-size: 18px; line-height: 1; color: var(--color-muted); cursor: pointer; }
.vw-bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin: 8px 0 6px; }
.vw-fill { width: 0; height: 100%; background: var(--color-accent); transition: width .2s; }
.vw-item[data-state="done"] .vw-fill { background: #1e7e44; }
.vw-meta { font-size: 11px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.vw-item[data-state="error"] .vw-meta { color: var(--color-accent); }
.vw-actions { margin-top: 8px; display: flex; gap: 6px; }
.vw-actions:empty { display: none; }

/* Gestylte Dialoge (ampConfirm/ampAlert) */
.amp-dialog-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.amp-dialog { background: #fff; border-radius: 12px; max-width: 440px; width: 100%; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.amp-dialog-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; }
.amp-dialog-body { font-size: 0.92rem; line-height: 1.5; color: #4a4a4a; margin-bottom: 20px; }
.amp-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.amp-dialog.amp-danger .amp-dialog-title { color: var(--color-accent); }
.amp-dialog-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin: 0 0 18px; cursor: pointer; }
.amp-dialog-check input { accent-color: var(--color-accent); }
.amp-dialog-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: 200px; overflow-y: auto; }
.amp-dialog-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; }
.amp-dialog-warn { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; }
.vd-del-btn { background: none; border: 1px solid #e0e0e0; color: var(--color-accent); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.vd-del-btn:hover { background: #fdecee; border-color: var(--color-accent); }

/* ---------- Video-Detail-Modal (WP9, Vorlage: docs/mockups/migration_video_detail_modal.html) ---------- */
.vdm-row { cursor: pointer; }
.vdm-row:hover { background: #fafafa; }
.vdm-srcwarn { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #fff3cd; color: #8a6100; font-size: 10.5px; font-weight: 800; white-space: nowrap; cursor: help; vertical-align: middle; }
body.vdm-noscroll { overflow: hidden; }

.vdm-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.vdm-overlay[hidden] { display: none; }
.vdm-modal {
    background: #fff; border-radius: 12px; width: 100%; max-width: 1400px; height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

/* Header */
.vdm-head { background: var(--color-dark); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.vdm-nav { display: flex; gap: 6px; }
.vdm-navbtn { background: rgba(255,255,255,.08); color: #fff; border: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.vdm-navbtn:hover { background: rgba(255,255,255,.18); }
.vdm-navbtn:disabled { opacity: .3; cursor: not-allowed; }
.vdm-position { font-size: 12px; color: #b0b0b0; font-weight: 600; white-space: nowrap; }
.vdm-title { font-size: 16px; font-weight: 700; flex: 1; margin: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdm-vid { font-size: 11px; color: #999; font-weight: 600; white-space: nowrap; }
.vdm-actions { display: flex; align-items: center; gap: 12px; }
.vdm-checkbox { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: rgba(255,255,255,.08); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .12s; white-space: nowrap; }
.vdm-checkbox:hover { background: rgba(255,255,255,.16); }
.vdm-checkbox input { width: 16px; height: 16px; accent-color: var(--color-accent); cursor: pointer; }
.vdm-checkbox.checked { background: rgba(230,57,66,.2); }
.vdm-close { background: transparent; border: none; color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vdm-close:hover { background: rgba(255,255,255,.12); }

/* Body: 2 Spalten */
.vdm-body { display: flex; flex: 1; overflow: hidden; }
.vdm-player-side { width: 55%; background: #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vdm-player { width: 100%; aspect-ratio: 16/9; }
.vdm-player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Tabs rechts */
.vdm-tabs-side { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.vdm-tabs { display: flex; border-bottom: 1px solid var(--color-border); padding: 0 8px; flex-shrink: 0; background: #fafafa; overflow-x: auto; }
.vdm-tab { padding: 14px 16px; cursor: pointer; font-size: 13px; font-weight: 600; color: #6f6f6f; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .12s; }
.vdm-tab:hover { color: var(--color-dark); }
.vdm-tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.vdm-tabcount { display: inline-block; margin-left: 6px; background: #e0e0e0; color: #5f5f5f; font-size: 11px; padding: 1px 7px; border-radius: 9px; font-weight: 700; }
.vdm-tab.active .vdm-tabcount { background: #fdeaeb; color: var(--color-accent); }

.vdm-tabcontent { padding: 24px 28px; overflow-y: auto; flex: 1; }
.vdm-tabcontent h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9a9a9a; margin: 22px 0 10px; font-weight: 700; }
.vdm-tabcontent h3:first-child { margin-top: 0; }
.vdm-muted { color: #9a9a9a; font-size: 13px; }

/* Datenliste */
.vdm-data dl { display: grid; grid-template-columns: 160px 1fr; gap: 9px 18px; font-size: 13.5px; }
.vdm-data dt { color: #6f6f6f; font-weight: 600; }
.vdm-data dd { color: var(--color-dark); word-break: break-word; }
.vdm-data dd code, .vdm-tabcontent code { background: #f3f3f3; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; font-family: 'SF Mono', Menlo, monospace; word-break: break-all; }
.vdm-desc { font-size: 13.5px; line-height: 1.6; color: #4a4a4a; padding: 14px 16px; background: #f9f9f9; border-radius: 8px; border-left: 3px solid var(--color-accent); }

/* Thumbnail */
.vdm-thumb-row { display: flex; gap: 16px; align-items: flex-start; }
.vdm-thumb-img { width: 200px; aspect-ratio: 16/9; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: var(--thumb-letterbox); }
.vdm-thumb-meta { flex: 1; }
.vdm-thumb-dl { grid-column: 1 / -1; margin-top: 8px; }
.vdm-thumb-dl a { color: var(--color-accent); font-size: 12.5px; font-weight: 600; text-decoration: none; }

/* Files */
.vdm-filerow { display: flex; align-items: center; padding: 12px 14px; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 8px; gap: 14px; }
.vdm-res { font-weight: 700; font-size: 13px; min-width: 70px; }
.vdm-filemeta { font-size: 12px; color: #6f6f6f; flex: 1; }
.vdm-filesize { font-size: 12px; color: var(--color-dark); font-weight: 600; }

/* Texttracks */
.vdm-track { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 8px; }
.vdm-tracklang { font-weight: 700; font-size: 13px; }
.vdm-tracktype { font-size: 11px; padding: 2px 8px; background: #eef2ff; color: #4338ca; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.vdm-trackfmt { font-size: 12px; color: #6f6f6f; }
.vdm-trackactions { margin-left: auto; display: flex; gap: 8px; }
.vdm-trackactions a { font-size: 12px; color: var(--color-accent); text-decoration: none; font-weight: 600; }

/* Tags */
.vdm-tagcloud { margin-bottom: 8px; }
.vdm-tag { display: inline-block; padding: 4px 10px; background: #f3f3f3; border-radius: 14px; font-size: 12px; margin: 0 5px 5px 0; }

/* Stats */
.vdm-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vdm-stat { background: #fafafa; border-radius: 8px; padding: 16px; }
.vdm-statnum { font-size: 26px; font-weight: 800; color: var(--color-dark); line-height: 1; }
.vdm-statlbl { font-size: 11px; color: #6f6f6f; text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; font-weight: 700; }

/* Raw */
.vdm-raw { background: #1e1e1e; color: #d6d6d6; padding: 16px; border-radius: 8px; font-size: 12px; overflow-x: auto; font-family: 'SF Mono', Menlo, monospace; line-height: 1.6; white-space: pre; }

/* Hinweisbox */
.vdm-hintbox { background: #fff8e1; border: 1px solid #ffd966; padding: 12px 14px; border-radius: 8px; font-size: 12.5px; color: #6b5800; margin-top: 20px; }

/* Footer */
.vdm-foot { background: #fafafa; padding: 12px 20px; border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; font-size: 12px; color: #6f6f6f; gap: 16px; }
.vdm-foot-status b { color: var(--color-dark); }
.vdm-foot-keys { font-size: 11px; color: #9a9a9a; text-align: right; }

/* ===================== Workspace-Detail / Projekt-Karten (WP15) ===================== */
.wd-crumb { font-size: 12.5px; color: var(--color-muted); margin-bottom: 12px; }
.wd-crumb .sep { color: #c0c0c0; padding: 0 6px; }
.wd-crumb a { color: var(--color-muted); text-decoration: none; }
.wd-crumb a:hover { color: var(--color-accent); }
.wd-crumb .curr { color: var(--color-dark); font-weight: 600; }

.wd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.wd-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.wd-sub { font-size: 13px; color: var(--color-muted); }
.wd-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* Filterleiste */
.wd-filter { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wd-filter .wd-label { font-size: 11px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .4px; }
.wd-filter select { padding: 7px 10px; border: 1px solid #d0d0d0; border-radius: 5px; font: inherit; font-size: 13px; background: #fff; min-width: 130px; }
.wd-search { flex: 1; min-width: 200px; padding: 7px 10px; border: 1px solid #d0d0d0; border-radius: 5px; font: inherit; font-size: 13px; }
.wd-view-toggle { display: flex; border: 1px solid #d0d0d0; border-radius: 5px; overflow: hidden; }
.wd-view-toggle button { background: #fff; border: none; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--color-muted); font-family: inherit; }
.wd-view-toggle button.active { background: var(--color-dark); color: #fff; }
.wd-view-toggle button:disabled { cursor: not-allowed; opacity: .6; }
.wd-stats { font-size: 13px; color: var(--color-muted); }
.wd-stats b { color: var(--color-dark); }

/* Jahres-Header */
.wd-year[hidden] { display: none; }
.wd-year-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.wd-year:first-child .wd-year-head { margin-top: 0; }
.wd-year-head h2 { font-size: 18px; font-weight: 800; margin: 0; }
.wd-year-count { background: #fef2f2; color: var(--color-accent); padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.wd-year-divider { flex: 1; height: 1px; background: #e0e0e0; }

/* Projekt-Tabellenansicht (v1.4.0) — Gegenstück zur Karten-Ansicht */
.wd-tablecard { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); overflow: hidden; }
.wd-table { width: 100%; border-collapse: collapse; }
.wd-table thead th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--color-muted); padding: 13px 16px; border-bottom: 1px solid var(--color-border); }
.wd-table thead th.num, .wd-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.wd-table tbody tr { border-bottom: 1px solid #f1f1f1; cursor: pointer; }
.wd-table tbody tr:last-child { border-bottom: none; }
.wd-table tbody tr:hover { background: #fafafa; }
.wd-table tbody td { padding: 12px 16px; font-size: 14px; vertical-align: middle; }
.wd-trow-name { font-weight: 700; color: var(--color-dark); text-decoration: none; }
.wd-trow-name:hover { color: var(--color-accent); }
.wd-trow-sub { font-size: 12.5px; color: var(--color-muted); margin-top: 2px; }
.wd-trow.archived { opacity: .55; }
.wd-trow.archived:hover { opacity: .8; }
.wd-trow-archive { color: var(--color-muted); }
.wd-badge-row { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.wd-badge-row.active { background: #dcfce7; color: #166534; }
.wd-badge-row.done { background: #e5e7eb; color: #4b5563; }
.wd-badge-row.archived { background: #ede9fe; color: #5b21b6; }
.wd-embed-on { color: #166534; font-weight: 600; }
.wd-embed-off { color: #c0c0c0; }

/* Karten-Grid */
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wd-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e8e8e8; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.wd-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); border-color: #d0d0d0; }
.wd-cover { aspect-ratio: 16/9; background-color: var(--thumb-letterbox); background-image: linear-gradient(135deg, #1a1a1a, #2a2a2a); position: relative; }
.wd-badge-status { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.wd-badge-status.active { background: #dcfce7; color: #166534; }
.wd-badge-status.done { background: #e5e7eb; color: #4b5563; }
.wd-badge-status.archived { background: #ede9fe; color: #5b21b6; }
.wd-video-count { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.7); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.wd-card.archived { opacity: .6; }
.wd-card.archived:hover { opacity: .85; }
.wd-card.archived .wd-cover { background: repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 8px, #353535 8px, #353535 16px); display: flex; align-items: center; justify-content: center; }
.wd-archive-icon { color: #6b7280; opacity: .6; }
.wd-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.wd-body h3 { font-size: 14.5px; font-weight: 800; line-height: 1.25; margin: 0 0 5px; }
.wd-year-lbl { font-size: 12px; color: var(--color-accent); font-weight: 700; margin-bottom: 8px; }
.wd-client { font-size: 12px; color: var(--color-muted); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.wd-client svg { width: 12px; height: 12px; flex-shrink: 0; }
.wd-desc { font-size: 12px; color: #4a4a4a; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wd-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid #f3f3f3; background: #fafafa; font-size: 11px; color: var(--color-muted); }
.wd-activity { display: flex; align-items: center; gap: 4px; }

/* "+ Neues Projekt"-Karte */
.wd-card-new { background: transparent; border: 2px dashed #d0d0d0; border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 220px; cursor: pointer; font: inherit; }
.wd-card-new:hover { border-color: var(--color-accent); background: #fef2f2; }
.wd-card-new .inner { text-align: center; color: #9a9a9a; display: flex; flex-direction: column; align-items: center; }
.wd-card-new:hover .inner { color: var(--color-accent); }
.wd-card-new .plus { font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.wd-card-new .lbl { font-size: 13px; font-weight: 700; }

/* Modal-Radio-Reihe */
.wd-radio-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; margin-top: 4px; }
.wd-radio-row label { display: inline-flex; align-items: center; gap: 6px; }

/* ===================== Projekt-Detailseite (v0.16.4, nach Mockup) ===================== */
/* Status-Farben (konsistent zu WP13 Video-Detail). */
.pdv {
    --pdv-line: #e7e7e7; --pdv-muted: #8a8a8a;
    --s-entwurf-bg:#eceff2; --s-entwurf-fg:#5b6470;
    --s-review-bg:#fef3c7;  --s-review-fg:#b45309;
    --s-changes-bg:#fde2e4; --s-changes-fg:#c1121f;
    --s-frei-bg:#dcfce7;    --s-frei-fg:#15803d;
    --s-veroeff-bg:#dbeafe; --s-veroeff-fg:#1d4ed8;
    --s-archiv-bg:#ede9fe;  --s-archiv-fg:#6d28d9;
    --s-ok-bg:#dcfce7;      --s-ok-fg:#15803d;
    max-width: 1340px;
}

/* Breadcrumb + Kopf */
.pdv-crumb { font-size: 12px; color: var(--pdv-muted); margin-bottom: 8px; }
.pdv-crumb a { color: var(--pdv-muted); text-decoration: none; }
.pdv-crumb a:hover { color: var(--color-accent); }
.pdv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pdv-h1 { font-size: 27px; font-weight: 800; line-height: 1.1; margin: 0; cursor: text; }
.pdv-h1-edit { outline: none; border-bottom: 2px solid var(--color-accent); }
.pdv-ws { font-size: 13px; color: var(--pdv-muted); margin-top: 4px; font-weight: 600; }
.pdv-actions { display: flex; gap: 9px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.pdv-actions .inline-form { margin: 0; }
.pdv-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.pdv-actions .btn svg { width: 15px; height: 15px; }
.btn-danger { color: var(--color-accent); border: 1px solid #f3c4c7; background: #fff; }
.btn-danger:hover { background: #fdecee; border-color: #f3c4c7; }
/* Review-Link Split-Button (öffnen + kopieren, v0.28.1) */
.pdv-rev-split { display: inline-flex; align-items: stretch; }
.pdv-rev-split .pdv-rev-open { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pdv-rev-split .pdv-rev-copy { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(255,255,255,.35); padding-left: 9px; padding-right: 9px; }
.pdv-rev-split .pdv-rev-copy svg { width: 15px; height: 15px; }
.pdv-rev-split .pdv-rev-copy.pdv-copied { font-weight: 800; }
/* „Löschen" dezent in den Stammdaten (v0.28.1) */
.pdv-danger-row { padding: 12px 20px 16px; border-top: 1px solid var(--pdv-line); }
.pdv-danger-row .inline-form { margin: 0; }
.pdv-delete-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 4px 2px; cursor: pointer; font: inherit; font-size: 13px; color: var(--pdv-muted); }
.pdv-delete-link svg { width: 14px; height: 14px; }
.pdv-delete-link:hover { color: var(--color-accent); }

/* Karte */
.pdv-card { background: #fff; border: 1px solid var(--pdv-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); margin-bottom: 22px; }
.pdv-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--pdv-line); }
.pdv-card-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.pdv-edit-hint { font-size: 11.5px; color: var(--pdv-muted); display: flex; align-items: center; gap: 5px; }
.pdv-edit-hint svg { width: 13px; height: 13px; }

/* Stammdaten-Grid */
.pdv-meta { padding: 8px 12px 14px; }
.pdv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 4px; }
.pdv-field { padding: 12px 14px; border-radius: 9px; border: 1.5px dashed transparent; cursor: text; transition: .12s; min-height: 62px; }
.pdv-field[data-field]:hover { border-color: #f5c518; background: #fffdf3; }
.pdv-field.pdv-editing { border-color: var(--color-accent); background: #fff; cursor: default; }
.pdv-field.pdv-spacer { border: none; background: none; cursor: default; min-height: 0; padding: 0; }
.pdv-flbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--pdv-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.pdv-flbl svg { width: 12px; height: 12px; }
.pdv-val { font-size: 14px; font-weight: 600; color: var(--color-dark); line-height: 1.5; }
.pdv-field.full .pdv-val { font-weight: 500; line-height: 1.55; }
.pdv-empty { color: #b8b8b8; font-weight: 500; font-style: italic; }
.pdv-field.full { grid-column: 1 / -1; }
.pdv-input { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; }
.pdv-input:focus { outline: none; border-color: var(--color-accent); }
textarea.pdv-input { resize: vertical; min-height: 70px; }

.pdv-pill-date { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.pdv-pill-date svg { width: 14px; height: 14px; color: var(--pdv-muted); }

/* Wiederverwendbarer Datepicker (v1.4.0) — Text-Eingabe TT.MM.JJJJ + Kalender-Popup */
.dp { position: relative; display: inline-flex; align-items: stretch; width: 100%; }
.dp-input { width: 100%; font: inherit; font-size: 14px; padding: 6px 34px 6px 8px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; }
.dp-input:focus { outline: none; border-color: var(--color-accent); }
.dp-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 30px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--color-muted); padding: 0; }
.dp-toggle:hover { color: var(--color-accent); }
.dp-toggle svg { width: 16px; height: 16px; }
.dp-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 10px; width: 252px; }
/* Ans <body> portiertes Popup (v1.34.2): aus Clipping-Containern gelöst, über allem. */
.dp-pop.dp-pop-fixed { position: fixed; top: 0; left: 0; z-index: 1000; }
.dp-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-cal-title { font-size: 13px; font-weight: 700; text-transform: capitalize; }
.dp-nav { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--color-muted); padding: 2px 8px; border-radius: 5px; }
.dp-nav:hover { background: #f2f2f2; color: var(--color-dark); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--color-muted); padding: 2px 0; }
.dp-empty { aspect-ratio: 1; }
.dp-day { aspect-ratio: 1; border: none; background: none; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; color: var(--color-dark); }
.dp-day:hover:not(:disabled) { background: #f2f2f2; }
.dp-day.today { font-weight: 800; box-shadow: inset 0 0 0 1px var(--color-border); }
.dp-day.sel { background: var(--color-accent); color: #fff; font-weight: 700; }
.dp-day:disabled { color: #cfcfcf; cursor: default; }

/* Changelog-Seite (v1.35.0) */
.changelog-intro { color: var(--color-muted); margin: -4px 0 22px; }
.changelog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
/* Feedback-Modal (Bug melden / Änderung vorschlagen). */
.fb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.fb-overlay[hidden] { display: none; }
.fb-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; box-shadow: 0 16px 48px rgba(0,0,0,.25); padding: 20px 22px; max-height: 90vh; overflow-y: auto; }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fb-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.fb-x { background: none; border: none; font-size: 24px; line-height: 1; color: var(--color-muted); cursor: pointer; padding: 0 4px; }
.fb-x:hover { color: var(--color-dark); }
.fb-error { background: #fdecee; border: 1px solid #f3c4c7; color: var(--color-accent); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }
.fb-success { background: #e8f6ec; border: 1px solid #b9e3c6; color: #1d7a3a; border-radius: 8px; padding: 12px; font-size: 14px; }
.fb-label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; }
.fb-types { display: flex; gap: 18px; }
.fb-radio { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fb-input { width: 100%; box-sizing: border-box; border: 1px solid #d0d0d0; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; }
.fb-input:focus { outline: none; border-color: var(--color-accent); }
textarea.fb-input { resize: vertical; }
.fb-note { font-size: 12px; color: var(--color-muted); margin: 8px 0 0; }
.fb-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
/* Screenshot-Feld (Datei / Zwischenablage / Drag&Drop). */
.fb-shot-drop { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed #c8c8c8; border-radius: 8px; padding: 10px 12px; }
.fb-shot-drop.is-drag { border-color: var(--color-accent); background: #fdecee; }
.fb-shot-text { font-size: 13px; color: var(--color-muted); }
.fb-shot-preview { position: relative; margin-top: 8px; display: inline-block; }
.fb-shot-preview img { max-width: 100%; max-height: 220px; border: 1px solid var(--color-border); border-radius: 8px; display: block; }
.fb-shot-remove { position: absolute; top: 6px; right: 6px; background: rgba(30,30,30,.82); color: #fff; border: none; border-radius: 6px; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.fb-shot-remove:hover { background: #1e1e1e; }
.changelog { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-border); max-width: 720px; }
.changelog-item { display: flex; gap: 18px; padding: 0 0 22px 20px; position: relative; }
.changelog-item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); border: 2px solid #fff; }
.changelog-meta { flex: 0 0 92px; padding-top: 1px; }
.changelog-date { font-size: 12.5px; font-weight: 700; color: var(--color-muted); }
.changelog-ver { font-size: 11px; font-weight: 800; color: var(--color-accent); margin-top: 3px; }
.changelog-body { flex: 1; }
.changelog-title { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.changelog-text { margin: 0; color: var(--color-dark); font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) { .changelog-item { flex-direction: column; gap: 4px; } .changelog-meta { flex-basis: auto; display: flex; gap: 8px; align-items: baseline; } .changelog-ver { margin-top: 0; } }

.pdv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pdv-tag { background: #f0f0f0; border: 1px solid #e2e2e2; color: #444; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }

/* Projektmaterialien (Links + Inline-Editor) */
.pdv-materials .pdv-flbl svg { width: 14px; height: 14px; }
.pdv-mat-links { display: flex; flex-direction: column; gap: 6px; }
.pdv-mat-link { display: inline-flex; align-items: center; gap: 7px; color: var(--color-accent); font-weight: 600; font-size: 14px; text-decoration: none; width: fit-content; }
.pdv-mat-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.pdv-mat-link:hover { text-decoration: underline; }
.pdv-mat-editor { margin-top: 4px; }
/* Archiv-Download-Liste (Vimeo → Hetzner, v0.26.1). */
.pdv-arch-list { display: flex; flex-direction: column; gap: 6px; }
.pdv-arch-row { display: flex; align-items: center; gap: 12px; }
.pdv-arch-name { font-weight: 600; font-size: 14px; word-break: break-word; }
.pdv-arch-dl { margin-left: auto; color: var(--color-accent); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.pdv-arch-dl:hover { text-decoration: underline; }
.pdv-arch-del { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 2px 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--pdv-muted); white-space: nowrap; }
.pdv-arch-del svg { width: 14px; height: 14px; }
.pdv-arch-del:hover { color: var(--color-accent); }
.pdv-arch-del:disabled { opacity: .5; cursor: default; }
.pdv-arch-hint { margin-top: 6px; font-size: 12px; color: #b8b8b8; }
.pdv-mat-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.pdv-mat-in { font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; }
.pdv-mat-in:focus { outline: none; border-color: var(--color-accent); }
.pdv-mat-label { flex: 0 0 34%; min-width: 0; }
.pdv-mat-url { flex: 1; min-width: 0; }
.pdv-mat-del { flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--color-border); background: #fff; border-radius: 7px; color: var(--pdv-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.pdv-mat-del:hover { border-color: #e63942; color: #e63942; }
.pdv-mat-add { background: none; border: none; color: var(--color-accent); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; padding: 2px 0; }
.pdv-mat-add:hover { text-decoration: underline; }
.pdv-mat-err { color: #c1121f; font-size: 12.5px; font-weight: 600; margin: 4px 0; }
.pdv-mat-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* Status-Badges */
.pdv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 4px 10px; border-radius: 20px; }
.pdv-badge .pdv-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pdv-b-entwurf { background: var(--s-entwurf-bg); color: var(--s-entwurf-fg); }
.pdv-b-review  { background: var(--s-review-bg);  color: var(--s-review-fg); }
.pdv-b-changes { background: var(--s-changes-bg); color: var(--s-changes-fg); }
.pdv-b-frei    { background: var(--s-frei-bg);    color: var(--s-frei-fg); }
.pdv-b-veroeff { background: var(--s-veroeff-bg); color: var(--s-veroeff-fg); }
.pdv-b-archiv  { background: var(--s-archiv-bg);  color: var(--s-archiv-fg); }

/* Videos-Karte */
.pdv-vid-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--pdv-line); }
.pdv-vid-title { display: flex; align-items: baseline; gap: 9px; }
.pdv-vid-title h2 { font-size: 16px; font-weight: 800; margin: 0; }
.pdv-count { font-size: 13px; color: var(--pdv-muted); font-weight: 600; }
.pdv-filter { display: flex; align-items: center; gap: 8px; }
.pdv-filter label { font-size: 12px; font-weight: 700; color: var(--pdv-muted); text-transform: uppercase; letter-spacing: .3px; }
.pdv-filter select { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 11px; border: 1px solid var(--pdv-line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--color-dark); }
/* Video-Suchfeld in der Projektübersicht (Punkt 9) */
.pdv-vsearch { position: relative; display: inline-flex; align-items: center; }
.pdv-vsearch svg { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--pdv-muted); pointer-events: none; }
.pdv-vsearch input { font: inherit; font-size: 13px; padding: 7px 11px 7px 30px; border: 1px solid var(--pdv-line); border-radius: 8px; background: #fff; color: var(--color-dark); width: 220px; }
.pdv-vsearch input:focus { outline: none; border-color: var(--color-accent); }

.pdv-vtable { width: 100%; border-collapse: collapse; }
.pdv-vtable thead th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--pdv-muted); padding: 13px 16px; border-bottom: 1px solid var(--pdv-line); }
.pdv-vtable thead th.num { text-align: right; }
/* Sortierbare Spaltenüberschriften (v0.28.1) */
.pdv-th-sort { cursor: pointer; user-select: none; }
.pdv-th-sort:hover { color: var(--color-dark); }
.pdv-th-sort .pdv-th-in { display: inline-flex; align-items: center; gap: 5px; }
.pdv-vtable thead th.num .pdv-th-in { flex-direction: row-reverse; }
.pdv-sort-arr { font-size: 10px; line-height: 1; color: var(--color-accent); min-width: 8px; }
.pdv-th-sort.pdv-sort-active { color: var(--color-dark); }
.pdv-vtable tbody tr { border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background .1s; }
.pdv-vtable tbody tr:last-child { border-bottom: none; }
.pdv-vtable tbody tr:hover { background: #fafafa; }
.pdv-vtable tbody td { padding: 16px; font-size: 14px; vertical-align: middle; }
.pdv-thumb-cell { width: 123px; }
.pdv-vtable .vid-thumb { width: 107px; height: 60px; border-radius: 6px; object-fit: contain; background: var(--thumb-letterbox); display: block; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* „Archiv"-Platzhalter in der Videotabelle horizontal + vertikal zentrieren
   (überschreibt das display:block der Regel darüber). */
.pdv-vtable .vid-thumb.vid-thumb-archived { display: inline-flex; align-items: center; justify-content: center; }
.pdv-vtable .vid-thumb.enc-spinner { background: #1a1a1a; }
.pdv-vtitle { font-weight: 700; color: var(--color-dark); text-decoration: none; }
.pdv-vtitle:hover { color: var(--color-accent); }
.pdv-vsub { font-size: 12px; color: var(--pdv-muted); font-weight: 500; margin-top: 2px; }
.pdv-vnote { font-size: 12px; color: var(--pdv-muted); font-style: italic; margin-top: 2px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdv-vtable td.num { text-align: right; font-variant-numeric: tabular-nums; color: #555; font-weight: 600; }
.pdv-muted-cell { color: var(--pdv-muted); font-weight: 600; }
.pdv-empty-row { text-align: center; color: var(--pdv-muted); padding: 28px; }
/* Einbettungscode-Button je Video-Zeile (v0.28.8) */
.pdv-vtable th.pdv-th-actions { width: 44px; }
.pdv-vtable td.pdv-vactions { text-align: right; white-space: nowrap; }
.pdv-embed-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; cursor: pointer; color: var(--pdv-muted); font: inherit; font-size: 12px; }
.pdv-embed-btn svg { width: 16px; height: 16px; }
.pdv-embed-btn:hover { color: var(--color-accent); border-color: #f0d4d6; background: #fdf2f3; }
.pdv-embed-btn.pdv-copied { color: #1a7f37; }

/* Archiv-Hinweis */
.pdv-archiv-hint { margin: -6px 0 22px; padding: 13px 16px; background: var(--s-archiv-bg); border: 1px solid #d8ccfb; border-radius: 10px; color: var(--s-archiv-fg); font-size: 13px; font-weight: 600; }

@media (max-width: 720px) { .pdv-grid { grid-template-columns: 1fr; } .pdv-field.pdv-spacer { display: none; } }

/* ===================== Arbeitsbereiche: Liste (v0.16.5, nach Mockup) ===================== */
.wsl { --wsl-line:#e7e7e7; --wsl-muted:#8a8a8a; max-width: 1340px; }
.wsl-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.wsl-head h1 { font-size: 27px; font-weight: 800; margin: 0; }
.wsl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.wsl-search { position: relative; flex: 1; max-width: 340px; }
.wsl-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--wsl-muted); }
.wsl-search input { width: 100%; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 12px 9px 34px; border: 1px solid var(--wsl-line); border-radius: 9px; background: #fff; }
.wsl-search input:focus { outline: none; border-color: var(--color-accent); }
.wsl-toggle { display: inline-flex; background: #ececec; border-radius: 9px; padding: 3px; gap: 2px; }
.wsl-toggle button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border: none; background: transparent; color: #777; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wsl-toggle button svg { width: 15px; height: 15px; }
.wsl-toggle button.active { background: #fff; color: var(--color-dark); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

.wsl-mono { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; background-size: cover; background-position: center; }
.wsl-mono-lg { width: 44px; height: 44px; border-radius: 11px; font-size: 17px; }
.wsl-mono-img { color: transparent; }

.wsl-tablecard { background: #fff; border: 1px solid var(--wsl-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); overflow: hidden; }
.wsl-table { width: 100%; border-collapse: collapse; }
.wsl-table thead th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--wsl-muted); padding: 14px 18px; border-bottom: 1px solid var(--wsl-line); }
.wsl-table thead th.num, .wsl-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.wsl-table tbody tr { border-bottom: 1px solid #f1f1f1; cursor: pointer; }
.wsl-table tbody tr:last-child { border-bottom: none; }
.wsl-table tbody tr:hover { background: #fafafa; }
.wsl-table tbody td { padding: 14px 18px; font-size: 14px; vertical-align: middle; }
.wsl-table td.num { font-weight: 700; }
.wsl-name-cell { display: flex; align-items: center; gap: 12px; }
.wsl-name { font-weight: 700; }
.wsl-resp { font-size: 12px; color: var(--wsl-muted); font-weight: 600; margin-top: 1px; display: flex; align-items: center; gap: 5px; }
.wsl-resp svg { width: 13px; height: 13px; }
.wsl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.wsl-tag { background: #f0f0f0; border: 1px solid #e2e2e2; color: #555; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.wsl-region-badge { display: inline-block; background: #eef2ff; color: #3949ab; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.wsl-region-empty { color: #c2c2c2; font-style: italic; font-size: 13px; }
.wsl-idhead { font-weight: 800; text-transform: uppercase; letter-spacing: .4px; font-size: 11.5px; color: var(--wsl-muted); }
.wsl-id { color: #777; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
.wsl-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.wsl-ico-btn { border: 1px solid var(--wsl-line); background: #fff; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; color: var(--color-dark); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.wsl-ico-btn:hover { border-color: #cfcfcf; }
.wsl-ico-btn svg { width: 14px; height: 14px; }

.wsl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.wsl-card { background: #fff; border: 1px solid var(--wsl-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; cursor: pointer; transition: .14s; display: flex; flex-direction: column; }
.wsl-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.wsl-stripe { height: 6px; }
.wsl-card-body { padding: 16px 18px 6px; }
.wsl-card-top { display: flex; align-items: flex-start; gap: 12px; }
.wsl-card-top h3 { font-size: 17px; font-weight: 800; line-height: 1.15; margin: 0; }
.wsl-card-top .wsl-resp { font-size: 12.5px; margin-top: 2px; }
.wsl-desc { font-size: 13px; color: #555; font-weight: 500; line-height: 1.5; margin: 11px 0 9px; min-height: 38px; }
.wsl-desc-empty { color: #b8b8b8; font-style: italic; }
.wsl-kpis { display: flex; border-top: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1; margin: 6px 0; }
.wsl-kpi { flex: 1; text-align: center; padding: 11px 4px; border-right: 1px solid #f1f1f1; }
.wsl-kpi:last-child { border-right: none; }
.wsl-kpi .v { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wsl-kpi .l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--wsl-muted); margin-top: 2px; }
.wsl-metarow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 10px; }
.wsl-activity { font-size: 12px; color: var(--wsl-muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.wsl-activity svg { width: 13px; height: 13px; }
.wsl-card-foot { display: flex; gap: 7px; padding: 0 18px 16px; }
.wsl-card-foot .wsl-ico-btn { flex: 1; justify-content: center; }
.wsl-id-faint { font-size: 11px; color: #bdbdbd; font-weight: 600; padding: 0 18px 12px; font-variant-numeric: tabular-nums; }
.wsl-noresults { text-align: center; color: var(--wsl-muted); padding: 30px; }

/* ===================== Arbeitsbereich-Einstellungen (v0.16.5, nach Mockup) ===================== */
.wss { --wss-line:#e7e7e7; --wss-muted:#8a8a8a; display: block; }
.wss-actionbar { position: sticky; top: var(--topbar-height); z-index: 5; background: rgba(245,245,245,.94); backdrop-filter: blur(6px); border: 1px solid var(--wss-line); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.wss-actionbar h1 { font-size: 21px; font-weight: 800; margin: 0; }
.wss-crumb { font-size: 12px; color: var(--wss-muted); margin-bottom: 3px; }
.wss-crumb a { color: var(--wss-muted); text-decoration: none; }
.wss-crumb a:hover { color: var(--color-accent); }
.wss-actions { display: flex; gap: 9px; align-items: center; flex-shrink: 0; }
.wss-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.wss-actions .btn svg { width: 15px; height: 15px; }
.wss-content { max-width: 920px; }

.wss-card { background: #fff; border: 1px solid var(--wss-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); margin-bottom: 22px; overflow: hidden; }
.wss-card-head { display: flex; align-items: center; gap: 9px; padding: 16px 22px; border-bottom: 1px solid var(--wss-line); }
.wss-card-head svg { width: 18px; height: 18px; color: var(--color-accent); }
.wss-card-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.wss-card-body { padding: 20px 22px; }
.wss-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.wss-field.full { grid-column: 1 / -1; }
.wss-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--wss-muted); margin-bottom: 6px; }
.wss input[type=text], .wss textarea, .wss select { width: 100%; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 12px; border: 1px solid var(--wss-line); border-radius: 9px; background: #fff; color: var(--color-dark); }
.wss textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
.wss input:focus, .wss textarea:focus, .wss select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(230,57,66,.12); }
.wss-hint { font-size: 12px; color: var(--wss-muted); font-weight: 500; margin-top: 6px; line-height: 1.4; }
.wss-team-count { font-size: 13px; font-weight: 800; color: var(--color-accent); margin-bottom: 8px; }
.wss-team-list { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--wss-line); border-radius: 10px; padding: 6px; max-height: 260px; overflow-y: auto; }
.wss-team-list .wss-team-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--wss-muted); font-weight: 500; transition: background .12s, color .12s; }
.wss-team-item:hover { background: #f5f5f5; }
.wss-team-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.wss-team-tick { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #ccc; flex: none; color: #fff; }
.wss-team-tick svg { width: 12px; height: 12px; opacity: 0; }
.wss-team-item.is-checked { color: var(--color-dark); font-weight: 700; background: #fdecee; }
.wss-team-item.is-checked .wss-team-tick { background: var(--color-accent); border-color: var(--color-accent); }
.wss-team-item.is-checked .wss-team-tick svg { opacity: 1; }
.wss-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wss-colorpick { display: flex; align-items: center; gap: 10px; }
.wss-swatch { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); cursor: pointer; flex-shrink: 0; position: relative; overflow: hidden; }
.wss-swatch input[type=color] { position: absolute; inset: -4px; width: 130%; height: 130%; border: none; padding: 0; cursor: pointer; }
.wss-hexin { width: 120px !important; flex: 0 0 auto; }
.wss-mono-preview { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; flex-shrink: 0; }

.wss-ident { display: flex; flex-direction: column; gap: 14px; }
.wss-ident-row { display: flex; align-items: center; gap: 14px; }
.wss-logo-preview { width: 64px; height: 64px; border-radius: 12px; border: 1.5px dashed #cfcfcf; display: flex; align-items: center; justify-content: center; color: #bdbdbd; background: #fafafa center/cover no-repeat; flex-shrink: 0; overflow: hidden; }
.wss-logo-preview svg { width: 22px; height: 22px; }
.wss-ident-sep { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #bdbdbd; }

.wss-tagbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--wss-line); border-radius: 9px; padding: 7px 9px; }
.wss-tag { background: #f0f0f0; border: 1px solid #e2e2e2; color: #444; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.wss-tag b { cursor: pointer; color: #999; font-weight: 800; }
.wss-tagbox input { border: none !important; flex: 1; min-width: 90px; padding: 4px !important; font-size: 13px; font-weight: 600; box-shadow: none !important; }
.wss-tagbox input:focus { outline: none; box-shadow: none !important; }

.wss-subhead { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--wss-muted); margin: 18px 0 11px; }
.wss-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; }
.wss-chk { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.wss-chk input { width: 17px; height: 17px; accent-color: var(--color-accent); cursor: pointer; }
.wss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wss-chip { position: relative; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 20px; border: 1px solid var(--wss-line); background: #fff; color: #777; cursor: pointer; font-variant-numeric: tabular-nums; user-select: none; }
.wss-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.wss-chip:has(input:checked) { background: #fdecee; border-color: var(--color-accent); color: var(--color-accent); }

.wss-toggle-row { display: flex; align-items: center; gap: 11px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.wss-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.wss-switch input { opacity: 0; width: 0; height: 0; }
.wss-slider { position: absolute; inset: 0; background: #d4d4d4; border-radius: 24px; transition: .18s; cursor: pointer; }
.wss-slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.wss-switch input:checked + .wss-slider { background: var(--color-accent); }
.wss-switch input:checked + .wss-slider:before { transform: translateX(18px); }

.wss-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #16a34a; color: #fff; font-size: 13px; font-weight: 700; padding: 11px 20px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: .25s; display: flex; align-items: center; gap: 8px; z-index: 1300; }
.wss-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.wss-toast svg { width: 16px; height: 16px; }

/* Gefahrenzone: Arbeitsbereich löschen (nur Admin im Support-Modus). */
.wss-danger { margin-top: 28px; border: 1.5px solid #e63942; border-radius: 12px; background: #fff5f5; padding: 18px 20px; max-width: 720px; }
.wss-danger-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; color: #c1121f; text-transform: uppercase; letter-spacing: .4px; }
.wss-danger-head svg { width: 18px; height: 18px; }
.wss-danger-text { font-size: 13px; font-weight: 600; color: #1e1e1e; margin: 10px 0 4px; line-height: 1.5; }
.wss-danger-note { font-size: 12.5px; font-weight: 700; color: #c1121f; margin: 0 0 14px; line-height: 1.45; }
.wss-danger-label { display: block; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 6px; }
.wss-danger-input { width: 100%; max-width: 340px; font-family: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid #e0a3a6; border-radius: 9px; margin-bottom: 12px; }
.wss-danger-input:focus { outline: none; border-color: #e63942; box-shadow: 0 0 0 3px rgba(230,57,66,.12); }
.wss-danger-btn { display: block; font-family: inherit; font-size: 13px; font-weight: 800; padding: 10px 16px; border-radius: 9px; border: none; background: #e63942; color: #fff; cursor: pointer; }
.wss-danger-btn:disabled { background: #e9b9bb; cursor: not-allowed; }
.wss-danger-btn:not(:disabled):hover { filter: brightness(.93); }

@media (max-width: 760px) { .wss-grid2 { grid-template-columns: 1fr; } .wss-checks { grid-template-columns: 1fr; } }

/* ===================== Migrationstabelle: Spaltenbreiten (v0.16.3) ===================== */
.table-tools { display: flex; justify-content: flex-end; margin: 8px 0; }
.table-scroll { overflow-x: auto; }
.col-resize-handle { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; user-select: none; z-index: 2; }
.col-resize-handle:hover { background: rgba(230, 57, 66, 0.25); }
body.col-resizing { cursor: col-resize; user-select: none; }
body.col-resizing * { user-select: none; }
/* Bei fixed Layout: Zellinhalte sauber umbrechen statt zu überlaufen. */
#migration-table th, #migration-table td { overflow: hidden; }

/* ===================== Migrationsseite: Inline-Ziel-Zuweisung (v0.16.1) ===================== */
.assign-hint { border-left: 4px solid var(--color-accent); background: #fff8e1; }
.assign-hint-text { margin: 0 0 12px; font-weight: 700; color: #6b5800; }
.assign-hint-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.assign-hint-row select { padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px; font: inherit; min-width: 180px; }

/* ===================== Dashboard (v0.16.7, nach Mockup) ===================== */
.dash { --dash-line:#e7e7e7; --dash-muted:#8a8a8a; max-width: 1320px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dash-head h1 { font-size: 25px; font-weight: 800; margin: 0; }
.dash-sub { font-size: 13px; color: var(--dash-muted); margin-top: 4px; }
/* Dashboard-Suche (v1.33.0): Feld im Kopf + Trefferliste darunter. */
.dash-searches { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; }
.dash-search { position: relative; width: 300px; max-width: 44vw; flex-shrink: 0; }
.dash-search-deep { width: 340px; }
/* Deep-Search: breitere Trefferliste (Platz für Snippets), nach links ausgerichtet. */
.dash-search-results.dash-deep-results { width: 460px; max-width: 80vw; left: auto; right: 0; }
.dsr-deep { align-items: flex-start; }
.dsr-snip { font-size: 12px; color: #555; margin-top: 3px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dsr-snip-meta { display: inline-block; font-size: 10px; font-weight: 800; color: var(--color-accent); background: #fdecee; border-radius: 4px; padding: 1px 5px; margin-right: 6px; }
.dsr-snip mark { background: #fff2a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.dash-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9aa0a6; pointer-events: none; }
.dash-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid #e0e0e0; border-radius: 10px; font: inherit; font-size: 13px; color: #222; background: #fff; }
.dash-search input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(230,57,66,.10); }
.dash-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.14); max-height: 64vh; overflow-y: auto; z-index: 60; padding: 6px; }
.dsr-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; font-weight: 800; color: #9aa0a6; padding: 9px 8px 4px; }
.dsr-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; text-decoration: none; color: inherit; }
.dsr-row:hover { background: #f6f7f8; }
.dsr-thumb { width: 50px; height: 28px; border-radius: 5px; object-fit: contain; background: var(--thumb-letterbox); flex-shrink: 0; }
.dsr-mono { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; background-size: cover; background-position: center; }
.dsr-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.dsr-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsr-sub { font-size: 11.5px; color: var(--dash-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsr-row .dash-badge { flex-shrink: 0; }
.dsr-none { padding: 16px 10px; font-size: 13px; color: var(--dash-muted); text-align: center; }

.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.dash-col3 { grid-column: span 3; } .dash-col4 { grid-column: span 4; }
.dash-col6 { grid-column: span 6; } .dash-col8 { grid-column: span 8; } .dash-col12 { grid-column: span 12; }
.dash-w { background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
a.dash-w:hover { border-color: #d0d0d0; }
/* „Braucht deine Aufmerksamkeit" (WP-P5-3). */
.dash-attention { border-color: #f3c4c7; background: #fff7f7; }
.dash-attn-count { background: #e63942; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.dash-attn-list { display: flex; flex-direction: column; gap: 8px; }
.dash-attn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid #eee; border-radius: 9px; background: #fff; text-decoration: none; color: inherit; }
.dash-attn-row:hover { border-color: #e63942; }
.dash-attn-name { font-size: 13.5px; font-weight: 700; }
.dash-attn-v { color: #9a9a9a; font-weight: 600; font-size: 12px; }
.dash-attn-tags { display: flex; gap: 6px; flex-shrink: 0; }
.dash-attn-tag { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.dash-attn-tag.ready { background: #e8f5e9; color: #1b7a32; }
.dash-attn-tag.overdue { background: #fdecee; color: #c1121f; }
.dash-wh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-wh h3 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
.dash-wh h3 svg { width: 16px; height: 16px; color: var(--color-accent); }
.dash-wlink { font-size: 12px; font-weight: 700; color: var(--color-accent); text-decoration: none; }

/* KPI */
.dash-kpi { display: flex; flex-direction: column; gap: 4px; }
.dash-kpi .ico { width: 34px; height: 34px; border-radius: 9px; background: #fdecee; color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.dash-kpi .ico svg { width: 18px; height: 18px; }
.dash-kpi .v { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-kpi .l { font-size: 12px; color: var(--dash-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

/* Status-Verteilung (Dashboard-WP: zwei Gruppen-Balken) */
.dash-statusgroups { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.dash-statusgroup { display: flex; flex-direction: column; gap: 6px; }
.dash-sg-head { display: flex; align-items: baseline; justify-content: space-between; }
.dash-sg-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--dash-muted); }
.dash-sg-count { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-statusbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin-bottom: 0; }
.dash-statusbar span { display: block; }
.dash-statlegend { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; }
.dash-statlegend .row { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.dash-statlegend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.dash-statlegend .n { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-c-entwurf { background: #9aa3af; } .dash-c-review { background: #f0a91d; } .dash-c-changes { background: #e0566a; }
.dash-c-frei { background: #2fae5f; } .dash-c-veroeff { background: #3b82f6; } .dash-c-archiv { background: #8b5cf6; }

/* Schnellzugriff */
.dash-qa { display: flex; flex-direction: column; gap: 9px; }
.dash-qa a, .dash-qa button { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--dash-line); border-radius: 10px; text-decoration: none; color: var(--color-dark); font-weight: 700; font-size: 13.5px; transition: .12s; background: #fff; cursor: pointer; font-family: inherit; width: 100%; text-align: left; }
.dash-qa a:hover, .dash-qa button:hover { border-color: var(--color-accent); background: #fdecee; }
.dash-qa a svg, .dash-qa button svg { width: 17px; height: 17px; color: var(--color-accent); }
.dash-qa-form { margin: 0; }

/* Workspace-Mini-Karten */
.dash-wsmini { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.dash-wsmini:hover { background: #fafafa; }
.dash-mono { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; background-size: cover; background-position: center; }
.dash-mono-img { color: transparent; }
.dash-wsmini .nm { font-weight: 700; font-size: 14px; }
.dash-wsmini .me { font-size: 12px; color: var(--dash-muted); font-weight: 600; }
.dash-wsmini .stat { margin-left: auto; font-size: 12px; color: var(--dash-muted); font-weight: 700; text-align: right; }

/* Feed */
.dash-feed { display: flex; flex-direction: column; gap: 2px; }
.dash-feed .it { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f2f2f2; }
.dash-feed .it:last-child { border-bottom: none; }
.dash-feed .fi { width: 30px; height: 30px; border-radius: 8px; background: #f1f3f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #6b7280; }
.dash-feed .fi svg { width: 15px; height: 15px; }
.dash-feed .tx { font-size: 13px; font-weight: 600; line-height: 1.35; }
.dash-feed .tx b { font-weight: 800; }
.dash-feed .tm { font-size: 11.5px; color: var(--dash-muted); font-weight: 600; margin-top: 1px; }

/* Zuletzt bearbeitet (D50): klickbare Zeilen mit Direktsprung zur Videodetailseite.
   Dashboard-WP: angereichert (Art/Bearbeiter/Kommentar-Auszug) auf größerer Fläche. */
.dash-recent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f2f2f2; text-decoration: none; color: inherit; }
.dash-recent-row:last-child { border-bottom: none; }
.dash-recent-row:hover .rc-title { color: var(--color-accent); }
.dash-recent-row .rc-main { min-width: 0; flex: 1; }
.dash-recent-row .rc-title { font-size: 13px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-recent-row .rc-v { font-weight: 700; color: var(--dash-muted); font-size: 11px; }
.dash-recent-row .rc-ctx { font-size: 11.5px; color: var(--dash-muted); font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-recent-row .rc-activity { font-size: 11.5px; font-weight: 700; margin-top: 4px; color: #5b5b5b; }
.dash-recent-row .rc-act-type { color: var(--color-accent); }
.dash-recent-row .rc-act-who { color: var(--dash-muted); font-weight: 600; margin-left: 5px; }
.dash-recent-row .rc-excerpt { font-size: 12px; font-weight: 600; color: #6b6b6b; margin-top: 3px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-recent-row .rc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.dash-recent-row .rc-time { font-size: 11px; color: var(--dash-muted); font-weight: 600; }
/* Kleines Thumbnail je „Zuletzt bearbeitet"-Zeile (v1.32.0). */
.dash-recent-row .rc-thumb { width: 60px; height: 34px; border-radius: 6px; object-fit: contain; background: var(--thumb-letterbox); flex-shrink: 0; }
.dash-recent-row .rc-thumb-empty { display: inline-block; }
/* „Meine Projekte": Projekt-Zeilen (ohne Workspace-Monogramm). */
.dash-projmini > div { min-width: 0; }
.dash-projmini .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-badge { font-size: 10px; font-weight: 800; color: #fff; border-radius: 20px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }

/* Migrations-Fortschritt */
.dash-mig-total { font-size: 13px; color: var(--dash-muted); font-weight: 700; margin-bottom: 10px; }
.dash-progress { height: 16px; background: #eee; border-radius: 9px; overflow: hidden; display: flex; margin-bottom: 12px; }
.dash-progress span { display: block; height: 100%; }
.dash-mig-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.dash-mig-legend .row { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.dash-mig-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.dash-mig-legend .n { font-weight: 800; }

/* Speicher & Kosten */
.dash-kostrow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f2f2f2; font-size: 14px; font-weight: 600; }
.dash-kostrow:last-of-type { border-bottom: none; }
.dash-kostrow b { font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-kostrow .accent { color: var(--color-accent); }
.dash-hint { font-size: 12px; color: var(--dash-muted); font-weight: 600; margin-top: 10px; }
.dash-empty { color: var(--dash-muted); font-size: 13px; padding: 6px 0 10px; }

/* Ziel-Dialog */
.dash-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; z-index: 1200; }
.dash-modal-bg.show { display: flex; }
.dash-modal { background: #fff; border-radius: 16px; width: 440px; max-width: 92vw; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dash-modal h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.dash-modal .msub { font-size: 13px; color: var(--dash-muted); font-weight: 600; margin-bottom: 18px; line-height: 1.45; }
.dash-modal .field { margin-bottom: 14px; }
.dash-modal label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--dash-muted); margin-bottom: 6px; }
.dash-modal select { width: 100%; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 12px; border: 1px solid var(--dash-line); border-radius: 9px; background: #fff; cursor: pointer; }
.dash-modal .mfoot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.dash-mbtn { font: inherit; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--dash-line); background: #fff; cursor: pointer; }
.dash-mbtn.primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.dash-mbtn.primary:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 1000px) {
    .dash-col3 { grid-column: span 6; } .dash-col4 { grid-column: span 12; }
    .dash-col6, .dash-col8 { grid-column: span 12; }
    .dash-statlegend { grid-template-columns: 1fr 1fr; }
}

/* ===================== Admin-Abrechnung (v0.16.8, nach Mockup) ===================== */
.bill { --bill-line:#e7e7e7; --bill-muted:#8a8a8a; max-width: 1180px; }
.bill-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.bill-head h1 { font-size: 25px; font-weight: 800; margin: 0; }
.bill-head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bill-monthform { margin: 0; }
.bill-head-right select { font: inherit; font-size: 13px; font-weight: 700; padding: 9px 30px 9px 13px; border: 1px solid var(--bill-line); border-radius: 8px; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bill-head-right .btn svg { width: 15px; height: 15px; }


.bill-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.bill-kpi { background: #fff; border: 1px solid var(--bill-line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.bill-kpi .ico { width: 34px; height: 34px; border-radius: 9px; background: #fdecee; color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.bill-kpi .ico svg { width: 18px; height: 18px; }
.bill-kpi .v { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bill-kpi .l { font-size: 12px; color: var(--bill-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-top: 5px; }
.bill-kpi .d { font-size: 12px; font-weight: 700; margin-top: 6px; }
.bill-kpi .d.up { color: #15803d; } .bill-kpi .d.down { color: var(--color-accent); }

.bill-card { background: #fff; border: 1px solid var(--bill-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); overflow: hidden; margin-bottom: 22px; }
.bill-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--bill-line); }
.bill-card-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.bill-card-head .hint { font-size: 12px; color: var(--bill-muted); font-weight: 600; }

.bill-table { width: 100%; border-collapse: collapse; }
.bill-table thead th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--bill-muted); padding: 13px 20px; border-bottom: 1px solid var(--bill-line); }
.bill-table thead th.num, .bill-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.bill-table tbody td { padding: 13px 20px; font-size: 14px; vertical-align: middle; }
.bill-table td.cost { font-weight: 800; }
.bill-agrow { border-top: 1px solid #f0f0f0; cursor: pointer; }
.bill-agrow:first-child { border-top: none; }
.bill-agrow:hover { background: #fafafa; }
.bill-agname { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.bill-chev { width: 16px; height: 16px; color: var(--bill-muted); transition: transform .15s; flex-shrink: 0; }
.bill-agrow.open .bill-chev { transform: rotate(90deg); }
.bill-sub { font-size: 12px; color: var(--bill-muted); font-weight: 600; }
.bill-wsrow { background: #fbfbfb; border-top: 1px solid #f3f3f3; display: none; }
.bill-wsrow.show { display: table-row; }
.bill-wsrow td:first-child { padding-left: 50px; }
.bill-wsname { font-weight: 700; font-size: 13.5px; }
.bill-table tfoot td { padding: 14px 20px; font-size: 14px; border-top: 2px solid var(--bill-line); font-weight: 800; background: #fafafa; }
.bill-table tfoot td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bill-empty-row { text-align: center; color: var(--bill-muted); padding: 26px; }
.bill-vid { font-weight: 700; }
.bill-vid-mismatch { color: var(--color-accent); font-weight: 800; }

/* Trend-Chart */
.bill-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 16px 20px 12px; }
.bill-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; cursor: pointer; height: 100%; text-decoration: none; color: inherit; }
.bill-bar .fill { width: 100%; max-width: 34px; background: #e2e2e2; border-radius: 6px 6px 0 0; transition: .12s; }
.bill-bar:hover .fill { background: #f3b1b6; }
.bill-bar.active .fill { background: var(--color-accent); }
.bill-bar .ml { font-size: 10px; font-weight: 700; color: var(--bill-muted); text-transform: uppercase; letter-spacing: .3px; }
.bill-bar.active .ml { color: var(--color-accent); }
.bill-bar .mv { font-size: 10.5px; font-weight: 800; color: var(--color-dark); opacity: 0; transition: .12s; white-space: nowrap; }
.bill-bar:hover .mv, .bill-bar.active .mv { opacity: 1; }

/* Accounts */
.bill-acc { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-top: 1px solid #f0f0f0; }
.bill-acc:first-of-type { border-top: none; }
.bill-acc .an { font-weight: 700; }
.bill-acc .as { font-size: 12px; color: var(--bill-muted); font-weight: 600; }
.bill-acc .right { display: flex; align-items: center; gap: 14px; }
.bill-acc .av { font-weight: 800; font-variant-numeric: tabular-nums; }
.bill-invlink { font-size: 12.5px; font-weight: 700; color: var(--color-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; vertical-align: middle; }
.bill-invlink svg { width: 14px; height: 14px; }
.bill-accnote { font-size: 12px; color: var(--bill-muted); font-weight: 600; padding: 12px 20px; border-top: 1px solid #f0f0f0; background: #fafafa; line-height: 1.45; }
.bill-acc-sum { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-top: 2px solid var(--color-dark); }
.bill-acc-sum .an { font-weight: 800; }
.bill-acc-sum .av { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.bill-tariff-missing { font-size: 12px; font-weight: 700; color: var(--bill-muted); }
.bill-note-plain { font-size: 12.5px; color: var(--bill-muted); font-weight: 600; padding: 4px 2px 20px; }

@media (max-width: 900px) { .bill-kpis { grid-template-columns: 1fr 1fr; } }

/* ===================== Projekt-Detail: Review-Link-Leiste (Phase 5) ===================== */
.pdv-reviewbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.pdv-rb-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--color-muted); }
.pdv-rb-url { flex: 1; min-width: 220px; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px; background: #fafafa; color: var(--color-dark); }
.pdv-rb-hint { font-size: 13px; color: var(--color-muted); font-weight: 600; }
.pdv-reviewbar .inline-form { margin: 0; }

/* CSV-Bulk-Import (v0.29.0) */
.imp { max-width: 980px; }
.imp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.imp-head h1 { font-size: 22px; font-weight: 800; margin: 0; }
.imp-sub { color: var(--color-muted); font-size: 13.5px; margin-top: 4px; max-width: 640px; }
.imp-card { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.imp-card h2 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.imp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 820px) { .imp-grid { grid-template-columns: repeat(3, 1fr); } }
.imp-stat { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 12px 10px; text-align: center; }
.imp-stat-err { background: #fdf2f3; border-color: #f3c4c7; }
.imp-num { font-size: 22px; font-weight: 800; color: var(--color-dark); }
.imp-stat-err .imp-num { color: var(--color-accent); }
.imp-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--color-muted); margin-top: 3px; }
.imp-errors { margin-top: 8px; }
.imp-errors-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.imp-err-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.imp-err-table th { text-align: left; padding: 7px 9px; background: #fafafa; border-bottom: 1px solid #e8e8e8; color: #6f6f6f; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.imp-err-table td { padding: 7px 9px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.imp-confirm { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.imp-confirm .inline-form { margin: 0; }
.imp-progress { height: 12px; background: #ececec; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.imp-progress-bar { height: 100%; background: var(--color-accent); width: 0; transition: width .4s; }
.imp-progress-txt { font-size: 13px; font-weight: 700; color: #444; font-variant-numeric: tabular-nums; }
.imp-format { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.imp-format-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--color-muted); margin-bottom: 4px; }
.imp-cols { display: block; margin-top: 8px; padding: 9px 11px; background: #1e1e1e; color: #e6e6e6; border-radius: 7px; font-size: 12px; overflow-x: auto; white-space: nowrap; }

/* ============================================================
   Projektdetail-Tabs + Statistik-Tab (WP-P6-2, v1.6.0)
   ============================================================ */
.pdv-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--color-border); margin: 18px 0 0; }
.pdv-tab { padding: 12px 20px; font: inherit; font-weight: 700; font-size: 15px; color: var(--color-muted); cursor: pointer; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pdv-tab:hover { color: var(--color-dark); }
.pdv-tab.active { color: var(--color-dark); border-bottom-color: var(--color-accent); }
.pdv-tab-count { background: #eee; color: var(--color-muted); font-size: 12px; font-weight: 700; border-radius: 20px; padding: 1px 8px; margin-left: 4px; }
.pdv-tab.active .pdv-tab-count { background: #fde7e9; color: var(--color-accent); }
.pdv-panel { margin-top: 18px; }
.pdv-panel[hidden] { display: none; }

.st-card { padding: 18px 20px; }
.st-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--color-muted); margin-bottom: 8px; }
.st-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.st-card-h h2 { font-size: 17px; font-weight: 800; margin: 0; }
.st-hint { color: var(--color-muted); font-size: 13px; font-weight: 600; }

/* Filter */
.st-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.st-preset { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 13px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; color: var(--color-dark); cursor: pointer; }
.st-preset:hover { border-color: #c8c8c8; }
.st-preset.active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.st-range { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.st-range[hidden] { display: none; }
.st-range .dp { width: 150px; }
.st-range-sep { color: var(--color-muted); }

/* Segment-Umschalter */
.st-seg { display: inline-flex; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.st-seg button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; background: #fff; border: none; cursor: pointer; color: var(--color-muted); }
.st-seg button.active { background: var(--color-accent); color: #fff; }

/* KPI-Strip */
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 18px; }
.st-kpi { border: 1px solid var(--color-border); border-radius: 10px; padding: 14px 16px; background: #fff; }
.st-kpi .l { font-size: 12px; font-weight: 700; color: var(--color-muted); }
.st-kpi .n { font-size: 26px; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.st-kpi .d { font-size: 11.5px; color: #9a9a9a; }
.st-loading { color: var(--color-muted); padding: 10px; }

/* Drilldown-Tabellen */
.st-dd { width: 100%; border-collapse: collapse; }
.st-dd th { text-align: right; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--color-muted); padding: 0 12px 10px; border-bottom: 1px solid var(--color-border); }
.st-dd th:first-child { text-align: left; }
.st-dd td { padding: 10px 12px; border-bottom: 1px solid #f3f3f3; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st-dd td.num { text-align: right; }
.st-vdd th[data-sort] { cursor: pointer; user-select: none; }
.st-vdd th[data-sort]:hover { color: var(--color-dark); }
.st-vdd th.sorted { color: var(--color-dark); }
.st-vdd th[data-arrow]:not([data-arrow=""])::after { content: " " attr(data-arrow); }
.st-vrow td:first-child, .st-trow.st-mtop td:first-child, .st-yrow td:first-child, .st-mrow td:first-child { font-weight: 700; }
.st-vrow, .st-clickable, .st-yrow { cursor: pointer; }
.st-vrow:hover, .st-clickable:hover, .st-yrow:hover { background: #fafafa; }
.st-chev { display: inline-block; width: 12px; color: var(--color-muted); transition: transform .12s; font-size: 10px; }
.st-chev.open { transform: rotate(90deg); }
.st-monthly { font-size: 11px; color: #b0b0b0; font-weight: 600; }
.st-indent td:first-child, .st-msub td:first-child { padding-left: 26px; }
.st-indent2 { padding-left: 42px !important; }
.st-day td, .st-tday td { color: #555; }
.st-hide { display: none; }
/* Thumbnail + Ø-Länge in der Nach-Video-Tabelle */
.st-vthumb { display: inline-block; width: 64px; height: 36px; border-radius: 4px; object-fit: cover; vertical-align: middle; margin: 0 10px; background: #ececec; }
.st-vthumb-ph { background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 6px, #e8e8e8 6px, #e8e8e8 12px); }
.st-vname { vertical-align: middle; }
.st-vlen { color: var(--color-muted); font-weight: 600; }
.st-legend { color: var(--color-muted); font-size: 12px; margin-top: 12px; }
/* Aufmerksamkeitsverlauf (Heatmap-Kurve, Variante B) unter dem Player */
.st-hm { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.st-hm-empty { color: var(--color-muted); font-size: 12px; }
.st-hm-title { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--color-muted); margin-bottom: 8px; }
.st-hm-bars { display: flex; align-items: flex-end; gap: 1px; height: 72px; background: #fafafa; border-radius: 6px; padding: 6px; }
.st-hm-bar { flex: 1 1 0; min-width: 2px; background: #d6d6d6; border-radius: 1px; transition: background .12s; }
.st-hm-bar:hover { background: #b8b8b8; }
.st-hm-bar.peak { background: var(--color-accent, #e63942); }
.st-hm-axis { display: flex; justify-content: space-between; color: var(--color-muted); font-size: 11px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.st-hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-hm-chip { background: #f3f3f3; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #555; }
.st-hm-chip b { color: var(--color-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.st-hm-legend { color: var(--color-muted); font-size: 11px; margin-top: 8px; }
/* Engagement-Funnel (eigenes anonymes Tracking, neben den Bunny-Zahlen) */
.st-eng { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.st-eng-h { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--color-muted); }
.st-eng-note { color: var(--color-muted); font-size: 11px; margin: 4px 0 10px; }
.st-eng-row { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.st-eng-l { flex: 0 0 110px; font-size: 12.5px; color: #555; }
.st-eng-bar { flex: 1 1 auto; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.st-eng-bar i { display: block; height: 100%; background: var(--color-accent, #e63942); border-radius: 4px; }
.st-eng-v { flex: 0 0 120px; text-align: right; font-size: 12.5px; color: var(--color-dark); font-variant-numeric: tabular-nums; }

/* Aufgeklapptes Video: Player + Heatmap */
.st-detail td { background: #fbfbfb; }
/* max-width:0 → die Detailzeile darf die Tabellenbreite nicht aufblasen (Player/Diagramme sprengten sonst den Viewport) */
.st-detail > td { max-width: 0; overflow: hidden; }
.st-detail-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 6px 2px 12px; }
.st-detail-in > * { min-width: 0; }
.st-player { position: relative; min-width: 0; max-width: 100%; }
.st-player iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; background: #000; display: block; }
.st-enlarge { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border: none; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.st-detail-side .dh { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.st-detail-side .note { font-size: 13px; color: var(--color-muted); line-height: 1.5; }

/* ===== Engagement-Panel v2 (ENG2-2) ===== */
.st-src { display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; border-radius: 5px; padding: 1px 6px; vertical-align: middle; }
.st-src-eng { color: #e63942; background: #fdeced; }
.st-seclabel { font-size: 11px; letter-spacing: .5px; color: var(--color-muted); font-weight: 800; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }

/* data quality box (sits next to the player) */
.st-dq { border: 1px solid var(--color-border); background: #fff; border-radius: 10px; padding: 12px 13px; align-self: start; }
.st-dq-top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.st-dot-green { background: #1f9d57; } .st-dot-amber { background: #e3a008; } .st-dot-red { background: #e63942; } .st-dot-grey { background: #b8b8b8; }
.st-dq-foot { font-size: 11.5px; color: var(--color-muted); margin-top: 5px; }
.st-meter { height: 7px; border-radius: 5px; background: #eee; margin-top: 9px; overflow: hidden; }
.st-meter span { display: block; height: 100%; border-radius: 5px; }

/* mini KPIs */
.st-mkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.st-mkpi { border: 1px solid var(--color-border); background: #fff; border-radius: 10px; padding: 12px 13px; }
.st-mkpi .l { font-size: 11px; color: var(--color-muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.st-mkpi .val { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-top: 5px; line-height: 1; font-variant-numeric: tabular-nums; }
.st-mkpi .f { font-size: 10.5px; color: #9a9a9a; margin-top: 4px; }

.st-att { margin: 18px 0; }
.st-hm-bar.st-hm-exit { background: #e63942; }
.st-hm-chip-exit { background: #fdeced; color: #e63942; }
.st-hm-chip-exit b { color: #e63942; }

/* retention funnel + toggle */
.st-eng2 { margin: 4px 0 22px; }
.st-eng2-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.st-eng2-head .st-seclabel { margin: 0; }
.st-toggle { display: inline-flex; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; background: #fff; }
.st-toggle button { font: inherit; font-size: 11.5px; font-weight: 700; border: 0; background: #fff; color: var(--color-muted); padding: 6px 12px; cursor: pointer; }
.st-toggle button.on { background: #e63942; color: #fff; }
.st-toggle button[disabled] { opacity: .5; cursor: not-allowed; }
.st-fn-row { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.st-fn-row:last-child { margin-bottom: 0; }
.st-fn-l { width: 118px; flex: 0 0 auto; font-size: 12.5px; font-weight: 700; }
.st-fn-track { flex: 1; background: #efefef; border-radius: 6px; height: 22px; overflow: hidden; }
.st-fn-track i { display: block; height: 100%; background: #e63942; border-radius: 6px; }
.st-fn-v { width: 110px; flex: 0 0 auto; text-align: right; font-size: 12px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.st-fn-v b { color: var(--color-dark); font-weight: 800; }

/* Kapitel-Retention (Punkt 11): je Kapitel zwei Balken (begonnen/gesehen). */
.st-chap-note { font-size: 11.5px; color: var(--color-muted); margin-bottom: 10px; }
.st-chap-row { margin-bottom: 12px; }
.st-chap-row:last-child { margin-bottom: 0; }
.st-chap-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.st-chap-t { font-size: 12.5px; font-weight: 800; color: var(--color-dark); }
.st-chap-time { font-size: 11px; color: var(--color-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.st-chap-b { display: flex; align-items: center; gap: 11px; margin-bottom: 5px; }
.st-chap-b:last-child { margin-bottom: 0; }
.st-chap-l { width: 78px; flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--color-muted); }
.st-chap-track { flex: 1; background: #efefef; border-radius: 6px; height: 16px; overflow: hidden; }
.st-chap-track i { display: block; height: 100%; border-radius: 6px; }
/* Eigene Palette (NICHT die Geräte-Farben Rot/Schwarz): begonnen = Slate, gesehen = Akzentrot. */
.st-chap-track i.started { background: #5f6b7a; }
.st-chap-track i.seen { background: #e63942; }
.st-chap-v { width: 96px; flex: 0 0 auto; text-align: right; font-size: 11.5px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.st-chap-v b { color: var(--color-dark); font-weight: 800; }
.st-chap-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--color-muted); margin-bottom: 10px; }
.st-chap-legend span { display: inline-flex; align-items: center; gap: 6px; cursor: help; }
.st-chap-legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.st-chap-legend .sw.started { background: #5f6b7a; }
.st-chap-legend .sw.seen { background: #e63942; }
.st-dq-pending { font-style: italic; }

/* two-up: devices + when */
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.st-empty { color: var(--color-muted); font-size: 12px; }
.st-donut-wrap { display: flex; align-items: center; gap: 16px; }
.st-donut { position: relative; width: 118px; height: 118px; flex: 0 0 auto; border-radius: 50%; }
.st-donut::after { content: ''; position: absolute; inset: 17px; background: #fbfbfb; border-radius: 50%; }
.st-donut-c { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.st-donut-c .big { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-dev-list { flex: 1; }
.st-dev { margin-bottom: 11px; } .st-dev:last-child { margin-bottom: 0; }
.st-dev-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.st-sw { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.st-dev-pct { margin-left: auto; font-weight: 800; }
.st-dev-f { font-size: 10.5px; color: var(--color-muted); margin-top: 2px; padding-left: 16px; }

/* week x hour heatmap */
.st-whgrid { display: grid; grid-template-columns: 28px repeat(24, 1fr); gap: 3px; align-items: center; }
.st-wh-h { font-size: 9px; color: #9a9a9a; text-align: center; }
.st-wh-d { font-size: 10px; color: var(--color-muted); font-weight: 700; }
.st-wh-c { height: 13px; border-radius: 3px; }
.st-wh-corner { height: 13px; }
.st-wh-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #9a9a9a; margin-top: 9px; justify-content: flex-end; }
.st-wh-grad { width: 64px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f0f0f0, #f3a9ad, #e63942); }

/* embedded on */
.st-emb { margin-bottom: 6px; }
.st-emb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 12.5px; }
.st-emb-row:last-child { border-bottom: 0; }
.st-emb-dom { flex: 1; font-weight: 600; word-break: break-all; }
.st-emb-dom small { display: block; color: #9a9a9a; font-weight: 600; font-size: 10.5px; }
.st-emb-track { width: 160px; background: #efefef; border-radius: 5px; height: 8px; overflow: hidden; flex: 0 0 auto; }
.st-emb-track span { display: block; height: 100%; background: #e63942; }
.st-emb-val { width: 58px; text-align: right; font-weight: 800; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.st-emb-cov { width: 64px; text-align: right; font-size: 11px; color: var(--color-muted); flex: 0 0 auto; }

/* seek-engagement heatmap */
.st-seek { margin: 4px 0 22px; }
.st-seek-bars { display: flex; align-items: stretch; gap: 3px; }
.st-seek-b { flex: 1; display: flex; flex-direction: column; }
.st-seek-top { height: 44px; display: flex; align-items: flex-end; }
.st-seek-bot { height: 44px; }
.st-seek-b .up { display: block; width: 100%; background: #1f9d57; border-radius: 3px 3px 0 0; }
.st-seek-b .dn { display: block; width: 100%; background: #e0b3b6; border-radius: 0 0 3px 3px; }
.st-seek-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--color-muted); margin-top: 8px; }
.st-seek-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-seek-legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.st-seek-legend .sw.up { background: #1f9d57; }
.st-seek-legend .sw.dn { background: #e0b3b6; }
.st-seek-note { font-size: 11.5px; color: var(--color-muted); margin-top: 6px; }
.st-seek-note b { color: var(--color-dark); }

/* graceful degradation */
.st-degraded { display: flex; gap: 14px; align-items: flex-start; background: #fbfbfb; border: 1px dashed var(--color-border); border-radius: 10px; padding: 16px; margin: 18px 0; font-size: 13px; color: #444; line-height: 1.6; }
.st-degraded-ic { font-size: 20px; color: var(--color-muted); }

.st-transnote { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 13px; background: #f6f6f6; border-radius: 8px; font-size: 13px; color: #555; }

/* Regionen */
.st-geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.st-geo-row { display: grid; grid-template-columns: 1fr 90px auto; align-items: center; gap: 12px; padding: 6px 0; }
.st-geo-c { font-size: 13.5px; font-weight: 600; }
.st-geo-bar { background: #f0f0f0; height: 8px; border-radius: 5px; overflow: hidden; }
.st-geo-bar i { display: block; height: 100%; background: var(--color-accent); border-radius: 5px; }
.st-geo-val { text-align: right; font-size: 13px; color: #555; font-variant-numeric: tabular-nums; }
.st-geo-empty { color: var(--color-muted); padding: 6px 0; }

/* Heatmap-Modal */
.st-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.st-modal[hidden] { display: none; }
.st-modal-box { background: #fff; border-radius: 12px; width: min(900px, 100%); overflow: hidden; }
.st-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--color-border); }
.st-modal-head h3 { margin: 0; font-size: 16px; }
.st-modal-close { font-size: 24px; line-height: 1; background: none; border: none; cursor: pointer; color: var(--color-muted); }
.st-modal-body iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #000; }

@media (max-width: 860px) {
  .st-kpis { grid-template-columns: repeat(2, 1fr); }
  .st-detail-in, .st-geo-grid { grid-template-columns: minmax(0, 1fr); }
  .st-mkpis { grid-template-columns: repeat(2, 1fr); }
  .st-two { grid-template-columns: 1fr; }
}

/* Statistik-Bericht-Block (WP-P6-3) */
.st-report { max-width: 640px; }
.st-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--color-muted); margin: 14px 0 6px; }
.st-lbl:first-child { margin-top: 0; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; background: #f0f0f0; border: 1px solid #e2e2e2; border-radius: 20px; padding: 3px 6px 3px 11px; font-size: 13px; }
.st-chip button { border: none; background: none; cursor: pointer; color: var(--color-muted); font-size: 15px; line-height: 1; padding: 0 2px; }
.st-chip button:hover { color: var(--color-accent); }
.st-chip-input { flex: 1; min-width: 160px; border: none; outline: none; font: inherit; font-size: 13.5px; padding: 4px; }
.st-radios { display: flex; flex-wrap: wrap; gap: 16px; }
.st-radios label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.st-report-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.st-report-msg { font-size: 13px; color: var(--color-muted); font-weight: 600; }
.st-disclaim { margin-top: 12px; font-size: 12px; color: #9a9a9a; }

/* Formular-Datepicker (WP1, systemweit) */
.amp-date-field { display: inline-block; vertical-align: middle; width: 190px; max-width: 100%; }
.amp-date-field .dp { width: 100%; }

/* Untertitel-Spurname im Freigabe-Tab (WP1) */
.vd-trackname { font-weight: 700; font-size: 13.5px; min-width: 150px; }
.vd-trackname-empty { font-weight: 500; font-style: italic; color: var(--color-muted); }

/* Videos verschieben — Mehrfachauswahl (WP4) */
.pdv-th-check, .pdv-check { width: 34px; text-align: center; }
.pdv-check-lbl { display: inline-flex; padding: 6px; cursor: pointer; }
.pdv-bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; margin-bottom: 10px; background: #fef2f2; border: 1px solid #f6d4d6; border-radius: 8px; }
.pdv-bulkbar[hidden] { display: none; }
.pdv-bulk-count { font-weight: 700; font-size: 13.5px; color: var(--color-dark); }
.pdv-bulk-actions { display: flex; gap: 8px; }
/* Bulk-Löschen-Button (Punkt 7): dezent rot, klar als destruktiv erkennbar. */
.pdv-bulk-del { color: var(--color-accent); border-color: #f0c4c6; }
.pdv-bulk-del:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pdv-move-summary { font-size: 14px; margin: 0 0 12px; }
.pdv-move-msg { margin-top: 10px; font-size: 13px; color: var(--color-accent); font-weight: 600; }

/* Spaltensortierung Listen-Tabellen (WP3) */
.wd-th-sort, .wsl-th-sort { cursor: pointer; user-select: none; }
.wd-th-sort:hover, .wsl-th-sort:hover { color: var(--color-dark); }
.wd-sort-arr, .wsl-sort-arr { margin-left: 4px; font-size: 10px; }
.wd-sort-active, .wsl-sort-active { color: var(--color-dark); }

/* Tag-Gruppierung Listen (WP3 Teil B) */
.wd-tagdrop { position: relative; display: inline-block; }
.wd-tagdrop-btn { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; color: var(--color-dark); cursor: pointer; }
.wd-tagdrop-btn.active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.wd-tagdrop-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 200px; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; }
.wd-tagdrop-menu[hidden] { display: none; }
.wd-tag-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 13.5px; border-radius: 6px; cursor: pointer; }
.wd-tag-opt:hover { background: #f5f5f5; }
.wd-grp-head td { background: #fafafa; font-weight: 800; padding: 10px 16px; }
.wd-grp-label { color: var(--color-dark); }
.lv-group-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
.lv-group-head h2 { font-size: 17px; font-weight: 800; margin: 0; }
.lv-group-count { background: #fef2f2; color: var(--color-accent); padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.lv-group-line { flex: 1; height: 1px; background: #e0e0e0; }
.wsl-taggroup:first-child .lv-group-head, .wd-year:first-child .lv-group-head { margin-top: 0; }
