/* Janitza DAM – Screen-Entwürfe (statisch).
   Stil abgeleitet aus dem Janitza-WordPress-Backend (mu-plugin janitza-backend: DESIGN.md, assets/ui/css/base.css,
   nav.css, components.css, lists.css, Canvas „MediaLibrary“). Tokens und Baustein-Namen (.jz-*) sind bewusst übernommen. */

/* ── Tokens (wie base.css) ── */
:root {
    --jz-ground: #f4f5f7; --jz-surface: #ffffff; --jz-surface-muted: #fbfbfc;
    --jz-line: #e4e7eb; --jz-line-soft: #eef0f2; --jz-field: #d5d9de;
    --jz-text: #1b1f24; --jz-text-2: #3c434a; --jz-muted: #5b636b; --jz-faint: #8a9199;
    --jz-accent: #1488c9; --jz-accent-strong: #0f6fa3; --jz-accent-soft: #e8f3fa; --jz-accent-softer: #f3f9fd;
    --jz-ring: 0 0 0 3px rgba(20, 136, 201, .3);
    --jz-ok: #1d7a43; --jz-ok-bg: #e7f5ec; --jz-ok-line: #cbe9d6;
    --jz-warn: #a2510b; --jz-warn-bg: #fdf1e3; --jz-warn-line: #f6dcb9;
    --jz-error: #b42318; --jz-error-bg: #fdecea; --jz-error-line: #f7cdc8;
    --jz-info-bg: #f3f9fd; --jz-info-line: #cfe5f3;
    --jz-ki: #5b3fc4; --jz-ki-bg: #f3f0ff; --jz-ki-line: #d9d0f7;
    --jz-badge: #c2410c;
    --jz-r-chip: 6px; --jz-r-field: 8px; --jz-r-card: 12px; --jz-r-dialog: 16px;
    --jz-shadow-pop: 0 12px 32px rgba(16, 24, 40, .14);
    --jz-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --jz-side: 0px; --jz-top: 52px;
}

/* ── Grundlagen ── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { padding-top: var(--jz-top); background: var(--jz-ground); color: var(--jz-text); font: 14px/1.45 var(--jz-font); -webkit-font-smoothing: antialiased; }
a { color: var(--jz-accent-strong); text-decoration: none; }
a:hover { color: #0a5580; }
button, input, select, textarea { font-family: var(--jz-font); }
:focus-visible { outline: 0; box-shadow: var(--jz-ring); }
h1, h2, h3, p { margin: 0; }
.ico { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--jz-muted); } .faint { color: var(--jz-faint); } .small { font-size: 12.5px; }
.space { flex: 1; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: #c9ced4 transparent; }

/* ── Topbar ── */
.jz-top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--jz-top); display: flex; align-items: center; gap: 6px; padding: 0 12px 0 20px; background: var(--jz-surface); border-bottom: 1px solid var(--jz-line); font-size: 13px; color: var(--jz-text-2); }
.jz-logo { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: var(--jz-text); margin-right: 6px; }
.jz-logo svg { width: 22px; height: 22px; }
.jz-place-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--jz-line); border-radius: var(--jz-r-field); background: var(--jz-surface); font: 600 14px/1 var(--jz-font); color: var(--jz-text); cursor: pointer; }
.jz-place-btn:hover { border-color: var(--jz-field); }
.jz-place-btn .ico { width: 14px; height: 14px; color: var(--jz-muted); }
.jz-env { height: 22px !important; margin: 0 6px 0 4px !important; padding: 0 8px !important; border-radius: 11px !important; font: 700 11.5px/22px var(--jz-font) !important; letter-spacing: .04em; }
.jz-cmd { display: flex; align-items: center; gap: 10px; width: 420px; max-width: 30vw; height: 34px; margin-left: 4px; padding: 0 6px 0 12px; border: 1px solid var(--jz-line); border-radius: var(--jz-r-field); background: var(--jz-surface-muted); color: var(--jz-muted); font-size: 14px; }
.jz-cmd span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { padding: 3px 6px; font: 12px/1 var(--jz-font); color: var(--jz-text-2); border: 1px solid var(--jz-field); border-radius: 5px; background: var(--jz-surface); }
.jz-top-item { display: flex; align-items: center; gap: 6px; height: var(--jz-top); padding: 0 10px; color: var(--jz-text); position: relative; }
.jz-top-item:hover { background: var(--jz-ground); color: var(--jz-text); }
.jz-top-item .jz-count { position: absolute; top: 9px; right: 2px; }
.jz-avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 8px; border-radius: 50%; background: var(--jz-accent-soft); color: var(--jz-accent-strong); font-size: 13px; font-weight: 600; }
.jz-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--jz-badge); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

/* ── Sidebar ── */
.jz-side { position: fixed; z-index: 40; top: var(--jz-top); bottom: 0; left: 0; width: var(--jz-side); display: flex; flex-direction: column; padding: 12px 0 0; background: var(--jz-surface); border-right: 1px solid var(--jz-line); overflow-y: auto; }
.jz-side a { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 0 10px 1px; padding: 0 10px; border-radius: 7px; color: var(--jz-text-2); font-size: 13.5px; }
.jz-side a .ico { width: 17px; height: 17px; }
.jz-side a:hover { background: var(--jz-ground); color: var(--jz-text); }
.jz-side a.is-current { background: var(--jz-accent-soft); color: var(--jz-accent-strong); font-weight: 600; }
.jz-side a.is-stub { color: var(--jz-faint); }
.jz-side a .jz-count { margin-left: auto; }
.jz-side-group { margin: 14px 20px 4px; font-size: 12px; font-weight: 600; color: var(--jz-faint); }
.jz-side-sub { margin: 2px 10px 6px 28px; }
.jz-side-sub a { min-height: 0; margin: 0; padding: 6px 10px 6px 18px; border-radius: 0; border-left: 2px solid var(--jz-line); font-size: 13px; }
.jz-side-sub a:hover { background: transparent; color: var(--jz-accent-strong); }
.jz-side-sub a.is-current { background: transparent; border-left-color: var(--jz-accent); }
.jz-side-foot { margin: 6px 20px 0; padding: 6px 0 12px; border-top: 1px solid var(--jz-line); }
.jz-side-foot a { margin: 0 -10px 1px; }

/* ── Seite ── */
.jz-main { margin-left: var(--jz-side); min-height: calc(100vh - var(--jz-top)); }
.wrap { padding: 24px 32px 48px 28px; min-width: 0; }
.jz-main.has-aside { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.jz-list-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }
.jz-list-title { flex: 1; min-width: 240px; }
.jz-crumb { margin-bottom: 4px; font-size: 13px; color: var(--jz-muted); }
.jz-crumb a { color: var(--jz-muted); } .jz-crumb a:hover { color: var(--jz-accent-strong); }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h1 .jz-state { vertical-align: 5px; margin-left: 8px; }
.jz-h-count { margin-left: 8px; font-size: 18px; font-weight: 400; color: var(--jz-muted); letter-spacing: 0; }
.subtitle { margin-top: 4px; font-size: 13px; color: var(--jz-muted); }
.jz-list-actions { display: flex; align-items: center; gap: 8px; }
.jz-list-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* ── Buttons ── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid var(--jz-field); border-radius: var(--jz-r-field); background: var(--jz-surface); color: var(--jz-text); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.button:hover { background: var(--jz-surface-muted); border-color: #c3c9d0; color: var(--jz-text); }
.button-primary { background: var(--jz-accent); border-color: var(--jz-accent); color: #fff; font-weight: 600; }
.button-primary:hover { background: var(--jz-accent-strong); border-color: var(--jz-accent-strong); color: #fff; }
.button-large { min-height: 38px; padding: 0 16px; }
.button-small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.button .ico { width: 15px; height: 15px; }
.jz-btn-danger { background: var(--jz-error); border-color: var(--jz-error); color: #fff; font-weight: 600; }
.jz-btn-danger:hover { background: #8f1c12; border-color: #8f1c12; color: #fff; }
.jz-btn-danger-ghost { color: var(--jz-error); }
.jz-link-danger { color: var(--jz-error); } .jz-link-danger:hover { color: #8f1c12; }
.jz-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--jz-muted); cursor: pointer; }
.jz-icon-btn:hover { background: var(--jz-ground); color: var(--jz-text); }

/* ── Felder ── */
input[type="text"], input[type="search"], input[type="date"], select, textarea { min-height: 36px; padding: 0 10px; border: 1px solid var(--jz-field); border-radius: var(--jz-r-field); background: var(--jz-surface); color: var(--jz-text); font-size: 14px; }
textarea { padding: 8px 10px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--jz-accent); box-shadow: var(--jz-ring); }
input[readonly] { background: var(--jz-ground); color: #6b737b; border-color: var(--jz-line); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--jz-accent); flex: 0 0 auto; }
.jz-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.jz-field:last-child { margin-bottom: 0; }
.jz-field > label, .jz-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--jz-text); }
.jz-field input:not([type=checkbox]):not([type=radio]), .jz-field select, .jz-field textarea { width: 100%; }
.description { color: var(--jz-muted); font-size: 12.5px; }
.jz-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.jz-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; min-width: 220px; border: 1px solid var(--jz-field); border-radius: var(--jz-r-field); background: var(--jz-surface); color: var(--jz-muted); }
.jz-search input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none !important; }

/* ── Hinweise ── */
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--jz-info-line); border-radius: 10px; background: var(--jz-info-bg); font-size: 13.5px; color: var(--jz-text-2); }
.notice .ico { margin-top: 2px; color: var(--jz-accent-strong); }
.notice-warning { background: #fef7ee; border-color: var(--jz-warn-line); } .notice-warning .ico { color: var(--jz-warn); }
.notice-error { background: #fef3f2; border-color: var(--jz-error-line); } .notice-error .ico { color: var(--jz-error); }
.notice strong { color: var(--jz-text); }

/* ── Karte ── */
.jz-card { background: var(--jz-surface); border: 1px solid var(--jz-line); border-radius: var(--jz-r-card); margin-bottom: 16px; }
.jz-card-head { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 16px; border-bottom: 1px solid var(--jz-line); }
.jz-card-head strong { font-size: 14px; font-weight: 600; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.jz-card-body { padding: 16px; }
.jz-head-meta { font-size: 12.5px; color: var(--jz-muted); white-space: nowrap; }

/* ── Status-Pill, Etikett, Chips ── */
.jz-state { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: #eef0f2; color: #4b535b; letter-spacing: 0; }
.jz-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.jz-state--warn { background: var(--jz-warn-bg); color: var(--jz-warn); }
.jz-state--review { background: var(--jz-ki-bg); color: var(--jz-ki); }
.jz-state--info { background: var(--jz-accent-soft); color: var(--jz-accent-strong); }
.jz-state--ok { background: var(--jz-ok-bg); color: var(--jz-ok); }
.jz-state--error { background: var(--jz-error-bg); color: var(--jz-error); }
.jz-term { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--jz-r-chip); background: var(--jz-line-soft); font-size: 12.5px; color: var(--jz-text-2); white-space: nowrap; }
.jz-terms { display: flex; flex-wrap: wrap; gap: 4px; }
.jz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jz-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 10px; border-radius: 8px; background: var(--jz-line-soft); font-size: 13px; color: var(--jz-text); }
.jz-chip-x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--jz-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.jz-chip-x:hover { color: var(--jz-error); }
.jz-chip-add { height: 30px; padding: 0 10px; border: 1px dashed var(--jz-field); border-radius: 8px; background: none; color: var(--jz-accent-strong); font-size: 13px; font-weight: 500; cursor: pointer; }
/* KI-Vorschlag: gestrichelt violett, mit Übernehmen/Ablehnen */
.jz-badge-ki { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--jz-ki-bg); color: var(--jz-ki); font-size: 11px; font-weight: 700; }
.jz-badge-ki .ico { width: 11px; height: 11px; }
.jz-chip--ki { padding: 0 3px 0 10px; background: var(--jz-surface); border: 1px dashed #b3a4ec; color: var(--jz-ki); }
.jz-chip--ki small { font-size: 11px; color: var(--jz-faint); margin: 0 2px; }
.jz-chip--ki button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: none; cursor: pointer; color: var(--jz-muted); }
.jz-chip--ki button .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.jz-chip--ki .ok:hover { background: var(--jz-ok-bg); color: var(--jz-ok); }
.jz-chip--ki .no:hover { background: var(--jz-error-bg); color: var(--jz-error); }
.jz-ki-box { margin-top: 8px; padding: 10px 12px; border: 1px dashed #b3a4ec; border-radius: 10px; background: #faf8ff; font-size: 13px; color: var(--jz-text-2); }
.jz-ki-box-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.jz-ki-box-foot { display: flex; gap: 6px; margin-top: 8px; }
.jz-ki-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--jz-line-soft); }

/* ── Segmente, Filter-Chips, Auswahlleiste, Reiter, Schalter ── */
.jz-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: #e9ecef; }
.jz-seg-item { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--jz-text-2); cursor: pointer; white-space: nowrap; }
.jz-seg-item:hover { color: var(--jz-text); background: rgba(255, 255, 255, .6); }
.jz-seg-item.is-active { background: var(--jz-surface); color: var(--jz-text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.jz-seg-item .count { color: var(--jz-muted); font-weight: 400; }
.jz-seg--sm .jz-seg-item { height: 24px; padding: 0 8px; font-size: 12px; }
.jz-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--jz-field); border-radius: 16px; background: var(--jz-surface); font-size: 13px; color: var(--jz-text); cursor: pointer; }
.jz-filter.is-set { padding-right: 6px; background: var(--jz-text); border-color: var(--jz-text); color: #fff; }
.jz-filter.is-warn { background: #fef7ee; border-color: var(--jz-warn-line); color: var(--jz-warn); font-weight: 500; }
.jz-filter-x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 15px; line-height: 20px; cursor: pointer; }
.jz-filter-x:hover { background: rgba(255, 255, 255, .18); }
.jz-selbar { position: sticky; top: calc(var(--jz-top) + 8px); z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; padding: 8px 10px 8px 14px; border-radius: 10px; background: var(--jz-text); color: #fff; font-size: 13.5px; }
.jz-selbar-n { font-weight: 600; }
.jz-selbar-sep { width: 1px; height: 18px; background: var(--jz-text-2); }
.jz-selbar button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: #2c3238; color: #fff; font-size: 13px; cursor: pointer; }
.jz-selbar button:hover { background: #3c434a; }
.jz-selbar button .ico { width: 14px; height: 14px; }
.jz-selbar .jz-selbar-clear { background: transparent; color: #c3c9d0; }
.jz-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 4px 0 16px; border-bottom: 1px solid var(--jz-line); }
.jz-tabs a { margin-bottom: -1px; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--jz-muted); font-size: 14px; font-weight: 500; line-height: 20px; }
.jz-tabs a:hover { color: var(--jz-text); }
.jz-tabs a.is-active { border-bottom-color: var(--jz-accent); color: var(--jz-text); font-weight: 600; }
.jz-tabs .count { color: var(--jz-faint); font-weight: 400; }
.jz-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.jz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.jz-switch span { position: relative; flex: 0 0 auto; width: 42px; height: 22px; border-radius: 11px; background: #c9ced4; transition: background .15s; }
.jz-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.jz-switch input:checked + span { background: var(--jz-accent); }
.jz-switch input:checked + span::after { transform: translateX(20px); }
.jz-switch input:disabled + span { opacity: .55; }

/* ── Tabelle ── */
.jz-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--jz-surface); border: 1px solid var(--jz-line); border-radius: var(--jz-r-card); overflow: hidden; }
.jz-table th { padding: 12px; background: var(--jz-surface); color: var(--jz-muted); font-size: 12px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--jz-line); white-space: nowrap; }
.jz-table td { padding: 10px 12px; font-size: 13px; color: var(--jz-text-2); vertical-align: middle; border-bottom: 1px solid var(--jz-line-soft); }
.jz-table tbody tr:last-child td { border-bottom: 0; }
.jz-table tbody tr:hover { background: var(--jz-surface-muted); }
.jz-table tbody tr.is-sel, .jz-table tbody tr.is-active { background: var(--jz-accent-softer); }
.jz-table .col-file { width: 36%; max-width: 0; }
.jz-table .check { width: 44px; padding-left: 18px; padding-right: 0; }
.jz-table .row-title { color: var(--jz-text); font-weight: 500; font-size: 14px; }
.jz-table .row-title:hover { color: var(--jz-accent-strong); }
.jz-table .sub { display: block; font-size: 12.5px; color: var(--jz-muted); }
.jz-table-card { margin-bottom: 0; border: 0; }
.jz-card > .jz-table { border: 0; border-radius: 0 0 var(--jz-r-card) var(--jz-r-card); }
.jz-table-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--jz-muted); }
.jz-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jz-file .thumb { flex: 0 0 52px; width: 52px; border-radius: 6px; }
.jz-file > div { min-width: 0; }
.jz-file .row-title, .jz-file .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.jz-pub-row { display: flex; gap: 12px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--jz-line-soft); }
.jz-pub-row:last-child { border-bottom: 0; } .jz-pub-row:first-child { padding-top: 0; }
.jz-pub-row > span:first-child { flex: 0 0 110px; color: var(--jz-muted); font-size: 13px; }
.jz-pub-row > :last-child { flex: 1; min-width: 0; }

/* ── Vorschaubild-Platzhalter + Asset-Karte ── */
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e3e8ec; }
.thumb svg.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jz-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.jz-assets--sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.jz-asset { position: relative; display: block; border-radius: 10px; background: var(--jz-surface); box-shadow: 0 0 0 1px var(--jz-line); overflow: hidden; color: var(--jz-text); cursor: pointer; }
.jz-asset:hover { box-shadow: 0 0 0 1px #c3c9d0; color: var(--jz-text); }
.jz-asset.is-sel { box-shadow: 0 0 0 2px var(--jz-accent); }
.jz-asset-info { display: block; padding: 8px 10px 9px; }
.jz-asset-name { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-asset-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; color: var(--jz-muted); white-space: nowrap; }
.jz-asset-meta .ico { width: 12px; height: 12px; margin-left: auto; color: var(--jz-accent-strong); }
.jz-asset-check { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #fff; background: rgba(27, 31, 36, .28); opacity: 0; }
.jz-asset-check .ico { width: 12px; height: 12px; stroke: #fff; stroke-width: 3.2; opacity: 0; }
.jz-asset:hover .jz-asset-check, .jz-assets.has-sel .jz-asset-check { opacity: 1; }
.jz-asset.is-sel .jz-asset-check { opacity: 1; background: var(--jz-accent); border-color: var(--jz-accent); }
.jz-asset.is-sel .jz-asset-check .ico { opacity: 1; }
.jz-asset-flags { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.jz-flag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 5px; background: #eef0f2; color: #4b535b; font-size: 10.5px; font-weight: 600; }
.jz-flag .ico { width: 10px; height: 10px; stroke-width: 2.2; }
.jz-flag--warn { background: var(--jz-warn-bg); color: var(--jz-warn); }
.jz-flag--error { background: var(--jz-error-bg); color: var(--jz-error); }
.jz-flag--review { background: var(--jz-ki-bg); color: var(--jz-ki); }
.jz-flag--dark { background: rgba(27, 31, 36, .78); color: #fff; }
.jz-asset-type { position: absolute; left: 8px; bottom: 8px; }

/* ── Filterleiste (Assets) ── */
.jz-aside { position: sticky; top: var(--jz-top); align-self: start; height: calc(100vh - var(--jz-top)); overflow-y: auto; padding: 24px 12px; background: var(--jz-surface); border-right: 1px solid var(--jz-line); font-size: 13.5px; }
.jz-aside-head { display: flex; align-items: center; padding: 0 8px 8px; }
.jz-aside-head strong { flex: 1; font-size: 15px; }
.jz-fgroup { padding: 10px 0 8px; border-top: 1px solid var(--jz-line-soft); }
.jz-fgroup:first-of-type { border-top: 0; }
.jz-fgroup h3 { display: flex; align-items: center; padding: 0 8px 4px; font-size: 12px; font-weight: 600; color: var(--jz-muted); }
.jz-fgroup label { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--jz-text-2); cursor: pointer; }
.jz-fgroup label:hover { background: var(--jz-ground); }
.jz-fgroup label:has(input:checked) { color: var(--jz-text); font-weight: 500; }
.jz-fgroup label span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-fgroup label small { font-size: 12px; color: #6b737b; font-weight: 400; }
.jz-fgroup .jz-search { height: 32px; min-width: 0; margin: 2px 8px 8px; }
.jz-fgroup .jz-terms { padding: 0 8px; }
.jz-fgroup .jz-term { cursor: pointer; }
.jz-fgroup .jz-term.is-on { background: var(--jz-text); color: #fff; }

/* Suche mit Modus (Text · ähnliches Bild · Person) */
.jz-find { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px; border: 1px solid var(--jz-field); border-radius: 11px; background: var(--jz-surface); }
.jz-find .jz-search { flex: 1; border: 0; height: 34px; }
.jz-find-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: -6px 0 14px; padding: 10px 12px; border: 1px dashed var(--jz-field); border-radius: 10px; background: var(--jz-surface); font-size: 13px; color: var(--jz-muted); }
.jz-find-hint .thumb { width: 48px; border-radius: 6px; flex: 0 0 48px; }
.jz-person { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border: 1px solid var(--jz-field); border-radius: 16px; background: var(--jz-surface); font-size: 13px; color: var(--jz-text); cursor: pointer; }
.jz-person i { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--jz-accent-soft); color: var(--jz-accent-strong); font-style: normal; font-size: 10.5px; font-weight: 600; }

/* ── Detail-Layout ── */
.jz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; }
.jz-preview { border-radius: var(--jz-r-card) var(--jz-r-card) 0 0; aspect-ratio: 16 / 9.4; background: #dfe5ea; }
.jz-preview-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; font-size: 12.5px; color: var(--jz-muted); }
.jz-rows > * { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--jz-line-soft); font-size: 13.5px; }
.jz-rows > :last-child { border-bottom: 0; }
.jz-rows .grow { flex: 1; min-width: 0; }
.jz-rows strong { display: block; font-weight: 500; color: var(--jz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-rows small { display: block; font-size: 12.5px; color: var(--jz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-rows .thumb { flex: 0 0 44px; width: 44px; border-radius: 6px; }
.jz-row-ico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; background: var(--jz-ground); color: var(--jz-muted); }
.jz-ver { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; background: var(--jz-ground); font-size: 12px; font-weight: 600; color: var(--jz-text-2); }
.jz-ver.is-current { background: var(--jz-accent-soft); color: var(--jz-accent-strong); }
.jz-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--jz-accent-soft); color: var(--jz-accent-strong); font-size: 11px; font-weight: 600; }
.jz-meter { height: 6px; border-radius: 3px; background: var(--jz-line-soft); overflow: hidden; margin: 8px 0 4px; }
.jz-meter i { display: block; height: 100%; border-radius: 3px; background: var(--jz-ok); }
.jz-checks label { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--jz-text-2); cursor: pointer; }
.jz-checks label input { margin-top: 2px; }
.jz-checks small { display: block; font-size: 12.5px; color: var(--jz-muted); }
.jz-actionbar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--jz-line); background: var(--jz-surface); border-radius: 0 0 var(--jz-r-card) var(--jz-r-card); }

/* ── Collections ── */
.jz-split { display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: 16px; align-items: start; }
.jz-coll { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--jz-line-soft); color: var(--jz-text); }
.jz-coll:last-child { border-bottom: 0; border-radius: 0 0 var(--jz-r-card) var(--jz-r-card); }
.jz-coll:hover { background: var(--jz-surface-muted); color: var(--jz-text); }
.jz-coll.is-active { background: var(--jz-accent-softer); box-shadow: inset 2px 0 0 var(--jz-accent); }
.jz-coll-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; flex: 0 0 52px; width: 52px; height: 40px; border-radius: 6px; overflow: hidden; }
.jz-coll-mosaic .thumb { aspect-ratio: auto; height: 100%; }
.jz-coll .grow { flex: 1; min-width: 0; }
.jz-coll strong { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-coll small { display: block; font-size: 12.5px; color: var(--jz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 100%; aspect-ratio: 4 / 3.72; border: 1px dashed var(--jz-field); border-radius: 10px; color: var(--jz-muted); font-size: 12.5px; text-align: center; padding: 8px; }
.jz-drop .ico { width: 20px; height: 20px; color: var(--jz-faint); }

/* ── Dialog ── */
.jz-dialog-back { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(27, 31, 36, .45); }
.jz-dialog { display: flex; flex-direction: column; gap: 14px; width: 560px; max-width: 100%; max-height: 84vh; overflow: auto; padding: 22px; background: var(--jz-surface); border-radius: var(--jz-r-dialog); box-shadow: 0 24px 64px rgba(16, 24, 40, .3); }
.jz-dialog h2 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.jz-dialog-muted { color: var(--jz-muted); font-size: 12.5px; }
.jz-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.jz-dialog-foot .button { min-height: 38px; }
.jz-opts { display: flex; flex-direction: column; gap: 6px; }
.jz-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--jz-line); border-radius: 10px; cursor: pointer; }
.jz-opt:has(input:checked) { border-color: var(--jz-accent); background: var(--jz-accent-soft); }
.jz-opt strong { display: block; font-size: 13.5px; font-weight: 600; }
.jz-opt small { display: block; font-size: 12.5px; color: var(--jz-muted); }
.jz-linkbox { display: flex; gap: 8px; }
.jz-linkbox input { flex: 1; font-size: 13px; }

/* ── Berechtigungs-Matrix ── */
.jz-matrix th, .jz-matrix td { text-align: center; }
.jz-matrix th:first-child, .jz-matrix td:first-child { text-align: left; }
.jz-matrix thead th { vertical-align: bottom; white-space: normal; line-height: 1.3; }
.jz-matrix thead th small { display: block; font-weight: 400; color: var(--jz-faint); }
.jz-matrix tr.grp td { padding: 8px 12px; background: var(--jz-surface-muted); font-size: 12px; font-weight: 600; color: var(--jz-muted); text-align: left; }
.jz-matrix td:first-child { color: var(--jz-text); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.jz-matrix th.is-active, .jz-matrix td.is-active { background: var(--jz-accent-softer); }
.jz-perm { display: inline-flex; gap: 3px; padding: 3px; border-radius: 8px; }
.jz-perm b { display: flex; align-items: center; justify-content: center; width: 26px; height: 24px; border-radius: 6px; color: #c9ced4; cursor: pointer; }
.jz-perm b .ico { width: 14px; height: 14px; }
.jz-perm b.on { background: var(--jz-ok-bg); color: var(--jz-ok); }
.jz-perm b:hover { box-shadow: 0 0 0 1px var(--jz-field) inset; }
.jz-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--jz-muted); }
.jz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jz-role { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--jz-line-soft); cursor: pointer; }
.jz-role:last-child { border-bottom: 0; }
.jz-role:hover { background: var(--jz-surface-muted); }
.jz-role.is-active { background: var(--jz-accent-softer); box-shadow: inset 2px 0 0 var(--jz-accent); }
.jz-role .grow { flex: 1; min-width: 0; }
.jz-role strong { display: block; font-size: 13.5px; font-weight: 500; }
.jz-role small { display: block; font-size: 12.5px; color: var(--jz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jz-rule { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--jz-line-soft); }
.jz-rule:last-child { border-bottom: 0; }
.jz-rule .grow { flex: 1; }
.jz-rule strong { display: block; font-size: 13.5px; font-weight: 500; }
.jz-rule small { display: block; font-size: 12.5px; color: var(--jz-muted); }

/* ── Übersicht (index) ── */
.jz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.jz-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--jz-line); border-radius: var(--jz-r-card); background: var(--jz-surface); color: var(--jz-text); }
.jz-tile:hover { border-color: #c3c9d0; color: var(--jz-text); }
.jz-tile .jz-row-ico { background: var(--jz-accent-soft); color: var(--jz-accent-strong); margin-bottom: 6px; }
.jz-tile strong { font-size: 15px; font-weight: 600; }
.jz-tile span { font-size: 13px; color: var(--jz-muted); line-height: 1.5; }

/* Eingang: Herkunft einzeilig */
.jz-inbox td:nth-child(3) { width: 30%; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--jz-text); }
.jz-inbox td:nth-child(3) .sub { overflow: hidden; text-overflow: ellipsis; }
.jz-table td:last-child { white-space: nowrap; }

/* ── Schmal (Artefakt-Ansicht am Telefon): Seitenleiste als Zeile, Spalten untereinander ── */
@media (max-width: 860px) {
    .jz-cmd, .jz-env, .jz-side-group, .jz-side-foot, .jz-side .is-stub, .jz-side > .space { display: none !important; }
    .jz-top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .jz-side { position: static; width: auto; flex-direction: row; padding: 6px; border-right: 0; border-bottom: 1px solid var(--jz-line); overflow-x: auto; }
    .jz-side a { margin: 0 2px; white-space: nowrap; }
    .jz-main { margin-left: 0; }
    .jz-main.has-aside, .jz-cols, .jz-split { grid-template-columns: minmax(0, 1fr) !important; }
    .jz-aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--jz-line); }
    .wrap { padding-block: 16px 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .jz-table { display: block; overflow-x: auto; }
    .jz-grid-2 { grid-template-columns: 1fr; }
    .jz-find, .jz-rows > * { flex-wrap: wrap; }
    h1 { font-size: 22px; overflow-wrap: anywhere; }
}

/* ── Horizontale Navigation in der Kopfzeile (statt Seitenleiste): volle Breite für die Assets ── */
.jz-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; min-width: 0; }
.jz-nav a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--jz-text-2); font-size: 13.5px; white-space: nowrap; }
.jz-nav a .ico { width: 16px; height: 16px; }
.jz-nav a:hover { background: var(--jz-ground); color: var(--jz-text); }
.jz-nav a.is-current { background: var(--jz-accent-soft); color: var(--jz-accent-strong); font-weight: 600; }
.jz-nav a.is-stub { color: var(--jz-faint); }
.jz-nav-sep { width: 1px; height: 20px; margin: 0 8px; background: var(--jz-line); }
.jz-top .jz-cmd { width: 220px; margin: 0 4px 0 0; }
.jz-main.no-aside { grid-template-columns: minmax(0, 1fr); }
.jz-main.no-aside .jz-aside { display: none; }
.jz-assets { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 1640px) { .jz-nav a.is-stub { display: none; } }
.jz-place-btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 1080px) { .jz-top .jz-cmd { display: none; } }
@media (max-width: 860px) {
    .jz-top { height: auto; min-height: var(--jz-top); flex-wrap: wrap; position: sticky; padding-block: 8px; }
    body { padding-top: 0; }
    .jz-nav { order: 9; flex: 0 0 100%; margin: 0; overflow-x: auto; }
    .jz-nav-sep { display: none; }
}

/* ── Aufklappmenü (Baustein Kontextmenü: 12er-Radius, Zeilen 34 px) ── */
.jz-dd { position: relative; display: inline-flex; }
.jz-dd-chev, .jz-filter .ico { width: 13px !important; height: 13px !important; color: currentColor; opacity: .7; }
.jz-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 230px; padding: 6px; background: var(--jz-surface); border: 1px solid var(--jz-line); border-radius: var(--jz-r-card); box-shadow: var(--jz-shadow-pop); }
.jz-menu .jz-menu-item { display: flex; align-items: center; gap: 10px; height: auto; min-height: 34px; padding: 7px 10px; border-radius: 7px; color: var(--jz-text); font-size: 13.5px; font-weight: 400; background: none; }
.jz-menu .jz-menu-item:hover { background: var(--jz-ground); }
.jz-menu .jz-menu-item.is-current { background: var(--jz-accent-soft); color: var(--jz-accent-strong); font-weight: 600; }
.jz-menu .jz-menu-item.is-stub { display: flex; color: var(--jz-faint); }
.jz-menu .jz-menu-item .ico { color: var(--jz-muted); }
.jz-menu .jz-fgroup { padding: 0; border: 0; font-size: 13.5px; }
.jz-menu .jz-fgroup .jz-search { margin: 2px 2px 8px; }
.jz-menu .jz-fgroup .jz-terms { padding: 0 2px 4px; max-width: 280px; }

/* ── Filterleiste unter der Kopfzeile (Assets) ── */
.jz-filterbar { position: sticky; top: var(--jz-top); z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 32px 8px 28px; background: var(--jz-surface); border-bottom: 1px solid var(--jz-line); }
.jz-filterbar-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--jz-text); }
.jz-filterbar .jz-filter.is-set { padding-right: 12px; }
.jz-filterbar .jz-filter:hover { border-color: #c3c9d0; }
.jz-filterbar ~ .wrap .jz-selbar { top: calc(var(--jz-top) + 57px); }
@media (max-width: 860px) { .jz-filterbar { position: static; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } .jz-nav { overflow: visible; flex-wrap: wrap; } }

/* Kein Wechsler zwischen DAM und Websites: Name steht fest neben dem Logo */
.jz-place-name { font: 600 15px/1 var(--jz-font); color: var(--jz-text); white-space: nowrap; margin-right: 4px; }
.jz-place-name:hover { color: var(--jz-text); }

/* Suche in der Filterleiste: Feld links, Suchart als kleine Segmente im Feld */
.jz-filterbar .jz-find { flex: 1 1 380px; min-width: 300px; height: 36px; margin: 0; padding: 0 4px 0 0; gap: 4px; border-radius: var(--jz-r-field); }
.jz-filterbar .jz-find .jz-search { height: 34px; min-width: 0; padding: 0 8px 0 12px; }
.jz-filterbar .jz-find:focus-within { border-color: var(--jz-accent); box-shadow: var(--jz-ring); }

/* ── Weniger Schwarz: gesetzte Filter und gewählte Tags in hellem Akzent statt dunkel ── */
.jz-filter.is-set { background: var(--jz-accent-soft); border-color: #b7d8ec; color: var(--jz-accent-strong); font-weight: 500; }
.jz-filter.is-set:hover { border-color: var(--jz-accent); }
.jz-filter-x { color: var(--jz-accent-strong); }
.jz-filter-x:hover { background: rgba(20, 136, 201, .16); }
.jz-fgroup .jz-term.is-on, .jz-term.is-on { background: var(--jz-accent-soft); color: var(--jz-accent-strong); box-shadow: inset 0 0 0 1px #b7d8ec; }
.jz-flag--dark { background: rgba(255, 255, 255, .92); color: var(--jz-text-2); box-shadow: 0 0 0 1px rgba(16, 24, 40, .08); }

/* ── Auswahlleiste als helle Aktionsleiste, unten im Fenster fixiert ── */
.jz-selbar, .jz-filterbar ~ .wrap .jz-selbar {
    position: fixed; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 45;
    flex-wrap: nowrap; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 8px 8px 8px 16px; gap: 10px;
    border: 1px solid var(--jz-line); border-radius: var(--jz-r-card); background: var(--jz-surface); color: var(--jz-text); box-shadow: var(--jz-shadow-pop);
}
.jz-selbar-n { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.jz-selbar-n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jz-accent); }
.jz-selbar-sep { background: var(--jz-line); height: 20px; }
.jz-selbar button { height: 34px; padding: 0 12px; border: 1px solid var(--jz-field); border-radius: var(--jz-r-field); background: var(--jz-surface); color: var(--jz-text); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.jz-selbar button:hover { background: var(--jz-surface-muted); border-color: #c3c9d0; }
.jz-selbar button .ico { color: var(--jz-muted); }
.jz-selbar .space { flex: 0 0 8px; }
.jz-selbar .jz-selbar-clear { border-color: transparent; background: transparent; color: var(--jz-muted); font-weight: 400; }
.jz-selbar .jz-selbar-clear:hover { background: var(--jz-ground); border-color: transparent; color: var(--jz-text); }
.wrap { padding-bottom: 96px; }
@media (max-width: 860px) { .jz-selbar, .jz-filterbar ~ .wrap .jz-selbar { left: 16px; right: 16px; transform: none; width: auto; max-width: none; overflow-x: auto; } }

/* ══ Phase-1-Ergänzungen ══ */
.jz-soon { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--jz-ground); box-shadow: inset 0 0 0 1px var(--jz-line); color: var(--jz-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.jz-menu .jz-soon { margin-left: auto; }
.jz-card.is-later { border-style: dashed; }
.jz-card.is-later > .jz-card-head strong { color: var(--jz-text-2); }
.jz-req { font-size: 11px; font-weight: 500; color: var(--jz-badge); }
.jz-top-drafts { font-size: 12.5px; color: var(--jz-muted); }
.jz-menu .jz-menu-item.is-stub { margin-top: 0; }
.jz-nav .jz-menu a:nth-last-child(2) { margin-top: 6px; position: relative; }
.jz-nav .jz-menu a:nth-last-child(2)::before { content: ""; position: absolute; left: 4px; right: 4px; top: -4px; height: 1px; background: var(--jz-line-soft); }

/* Kennzahlen */
.jz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.jz-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--jz-line); border-radius: var(--jz-r-card); background: var(--jz-surface); color: var(--jz-text); }
a.jz-stat:hover { border-color: #c3c9d0; color: var(--jz-text); }
.jz-stat small { font-size: 12.5px; color: var(--jz-muted); }
.jz-stat b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.jz-stat span { font-size: 12.5px; color: var(--jz-muted); }
.jz-stat.is-warn b { color: var(--jz-warn); } .jz-stat.is-error b { color: var(--jz-error); }

/* Hochladen */
.jz-upzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 16px; border: 1.5px dashed #b9c4cd; border-radius: var(--jz-r-card); background: var(--jz-surface); color: var(--jz-muted); font-size: 13.5px; text-align: center; }
.jz-upzone > .ico { width: 26px; height: 26px; color: var(--jz-accent); }
.jz-upzone strong { font-size: 15px; font-weight: 600; color: var(--jz-text); }
.jz-upzone-actions { display: flex; gap: 8px; margin-top: 8px; }
.jz-prog { width: 150px; flex: 0 0 150px; }
.jz-prog .jz-meter { margin: 0 0 3px; } .jz-prog .jz-meter i { background: var(--jz-accent); }
.jz-prog small { font-variant-numeric: tabular-nums; }
.jz-rows > .is-dupe { background: #fef7ee; flex-wrap: wrap; }
.jz-dupe-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 100%; padding-left: 56px; font-size: 12.5px; color: var(--jz-warn); }

/* Tag-Baum */
.jz-tree a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; color: var(--jz-text-2); font-size: 13.5px; border-bottom: 1px solid var(--jz-line-soft); }
.jz-tree a:last-child { border-bottom: 0; }
.jz-tree a:hover { background: var(--jz-surface-muted); color: var(--jz-text); }
.jz-tree a.is-active { background: var(--jz-accent-softer); box-shadow: inset 2px 0 0 var(--jz-accent); color: var(--jz-text); font-weight: 600; }
.jz-tree a.l0 { font-weight: 600; color: var(--jz-text); }
.jz-tree a.l1 { padding-left: 34px; } .jz-tree a.l2 { padding-left: 56px; }
.jz-tree a small { margin-left: auto; font-size: 12px; font-weight: 400; color: #6b737b; font-variant-numeric: tabular-nums; }
.jz-tree a .ico { width: 12px; height: 12px; color: var(--jz-faint); }
.jz-lang-field { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.jz-lang-field input { width: 100%; }
.jz-lang.is-missing { background: transparent; color: var(--jz-faint); border: 1px dashed #c9ced4; }

/* Anmeldung */
.jz-login { min-height: 100vh; margin-top: calc(-1 * var(--jz-top)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; }
.jz-login-card { width: 400px; max-width: 100%; padding: 32px; border: 1px solid var(--jz-line); border-radius: var(--jz-r-dialog); background: var(--jz-surface); text-align: center; }
.jz-login-card .jz-logo { margin: 0 auto 14px; width: 44px; height: 44px; } .jz-login-card .jz-logo svg { width: 38px; height: 38px; }
.jz-login-card h1 { font-size: 22px; } .jz-login-card p { margin-top: 8px; font-size: 13.5px; color: var(--jz-muted); line-height: 1.5; }
.jz-login-card .button { width: 100%; min-height: 42px; margin-top: 20px; font-size: 14px; }
.jz-ms { display: grid; grid-template-columns: 8px 8px; gap: 2px; } .jz-ms i { width: 8px; height: 8px; background: currentColor; opacity: .9; }
.jz-login-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--jz-error-bg); color: var(--jz-error); } .jz-login-ico .ico { width: 20px; height: 20px; }

/* Schlüssel-Feld, Ampel */
.jz-keyfield { display: flex; gap: 8px; } .jz-keyfield input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .04em; }
.jz-light { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.jz-light::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--jz-ok); box-shadow: 0 0 0 3px var(--jz-ok-bg); }
.jz-table td .jz-meter { width: 120px; margin: 0; } .jz-table td .jz-meter i { background: var(--jz-accent); }
.jz-table td.num, .jz-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.jz-table .acts { white-space: nowrap; text-align: right; } .jz-table .acts a { margin-left: 10px; font-size: 13px; }
.jz-table code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--jz-muted); }
h2.jz-sec { margin: 26px 0 12px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
h2.jz-sec:first-of-type { margin-top: 0; }
@media (max-width: 860px) { .jz-top-drafts { display: none; } .jz-prog { flex-basis: 100%; width: auto; } }

/* ── KI-Vorschläge zählen in Suche und Filter mit, bis „Nur bestätigte Metadaten“ an ist ── */
.jz-ki-ico { color: var(--jz-ki) !important; opacity: 1 !important; }
.jz-ki-text { color: var(--jz-ki); }
body.only-confirmed .is-ki, body.only-confirmed .jz-ki-ico { display: none !important; }
.jz-filterbar .jz-switch { font-size: 13px; white-space: nowrap; }
.jz-selbar-group { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--jz-line); font-size: 12.5px; color: var(--jz-ki); font-weight: 600; white-space: nowrap; }
.jz-chip--off { background: transparent; box-shadow: inset 0 0 0 1px var(--jz-line); color: var(--jz-faint); text-decoration: line-through; padding-right: 10px; }
.jz-statline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--jz-muted); }
.jz-statline b { font-weight: 600; color: var(--jz-text); }
.jz-human { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--jz-line-soft); font-size: 12.5px; color: var(--jz-muted); }
.jz-human .ico { width: 14px; height: 14px; margin-top: 1px; }

/* ── Profil-Menü mit Sprachumschalter (Oberfläche DE/EN) ── */
.jz-dd--right { margin-left: 8px; } .jz-dd--right .jz-avatar { margin-left: 0; cursor: pointer; }
.jz-dd--right > .jz-avatar:hover, .jz-dd--right > .jz-avatar.is-open { box-shadow: 0 0 0 2px var(--jz-line); color: var(--jz-accent-strong); }
.jz-dd--right .jz-menu { left: auto; right: 0; min-width: 270px; }
.jz-menu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 4px 10px 10px; border-bottom: 1px solid var(--jz-line-soft); }
.jz-menu-head .jz-avatar { margin: 0; flex: 0 0 auto; }
.jz-menu-head strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--jz-text); } .jz-menu-head small { display: block; font-size: 12px; color: var(--jz-muted); }
.jz-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin-bottom: 4px; padding: 4px 6px 8px 10px; border-bottom: 1px solid var(--jz-line-soft); font-size: 13.5px; color: var(--jz-text); white-space: nowrap; }
.jz-menu-row > span:first-child { display: inline-flex; align-items: center; gap: 10px; } .jz-menu-row .ico { color: var(--jz-muted); }

/* ── Schmale Fenster: Navigation rutscht in eine zweite Zeile der Kopfzeile, nichts überlappt ── */
body[data-shell="none"] { padding-top: 0; } .jz-login { margin-top: 0; }
.jz-top > .space { min-width: 8px; }
@media (min-width: 861px) and (max-width: 1240px) {
    :root { --jz-top: 96px; }
    .jz-top { flex-wrap: wrap; align-content: center; row-gap: 4px; }
    .jz-nav { order: 9; flex: 0 0 100%; margin: 0 0 0 -6px; }
    .jz-top .jz-cmd { display: flex; width: 240px; }
}
@media (max-width: 860px) { .jz-nav { row-gap: 2px; } .jz-top .jz-cmd { display: none; } .jz-dd--right .jz-menu { max-width: calc(100vw - 32px); } }
@media (max-width: 1240px) { .jz-top-item { height: 40px; border-radius: 7px; } .jz-top-item .jz-count { top: 2px; } }

/* ── Auswahlfelder: eigener Pfeil mit Abstand zum Rand statt Browser-Standard ── */
select { -webkit-appearance: none; appearance: none; padding: 0 34px 0 10px; text-overflow: ellipsis; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b636b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; background-size: 14px 14px; }
/* Aufklapp-Chips: Pfeil sitzt rechts mit festem Abstand zum Text */
.jz-filter[data-dd] { gap: 8px; padding-right: 10px; }
.jz-filterbar .jz-filter.is-set[data-dd] { padding-right: 10px; }
.jz-filter[data-dd] .ico:last-child { margin-left: 2px; }
.jz-nav [data-dd] .jz-dd-chev { margin-left: -2px; }

/* ── Chips (Tags, Länder, Kanäle) leicht blau, damit sie sich von den grauen Umschaltern abheben ── */
.jz-chip:not(.jz-chip--ki):not(.jz-chip--off) { background: var(--jz-accent-soft); color: #0b4f75; }
.jz-chip:not(.jz-chip--ki):not(.jz-chip--off) .jz-chip-x { color: #4b88ab; }
.jz-chip:not(.jz-chip--ki):not(.jz-chip--off) .jz-chip-x:hover { color: var(--jz-error); }

/* ── Focus Point, Schutzbereich und „Vorschau im Einsatz“ (Asset-Detail) ── */
.jz-fp-wrap { display: flex; justify-content: center; background: #dfe5ea; border-radius: var(--jz-r-card) var(--jz-r-card) 0 0; overflow: hidden; }
.jz-fp-stage { position: relative; height: min(58vh, 560px); max-width: 100%; aspect-ratio: 3 / 2; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.jz-fp-stage svg.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.jz-fp-rect { position: absolute; border: 1.5px dashed #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(27, 31, 36, .55), 0 0 0 9999px rgba(27, 31, 36, .16); cursor: move; }
.jz-fp-rect[hidden] { display: none; }
.jz-fp-rect span { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(27, 31, 36, .72); color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.jz-fp-rect i { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1.5px var(--jz-text-2); cursor: nwse-resize; }
.jz-fp-point { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid #fff; background: rgba(20, 136, 201, .28); box-shadow: 0 0 0 1.5px var(--jz-accent), 0 2px 8px rgba(16, 24, 40, .35); cursor: grab; }
.jz-fp-point::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--jz-accent); }
.jz-fp-point.is-ki { background: rgba(91, 63, 196, .26); box-shadow: 0 0 0 1.5px var(--jz-ki), 0 2px 8px rgba(16, 24, 40, .35); border-style: dashed; }
.jz-fp-point.is-ki::after { box-shadow: 0 0 0 1.5px var(--jz-ki); }
.jz-fp-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid var(--jz-line-soft); font-size: 13px; }
.jz-fp-bar strong { font-weight: 600; }
.jz-fp-bar .num { color: var(--jz-muted); font-variant-numeric: tabular-nums; }
.jz-uses { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 16px; }
.jz-use { display: flex; flex-direction: column; gap: 3px; min-width: 132px; max-width: 290px; }
.jz-use-img { position: relative; height: 118px; border-radius: 8px; overflow: hidden; background: #dfe5ea; box-shadow: 0 0 0 1px var(--jz-line); margin-bottom: 5px; }
.jz-use-img svg.art { display: block; width: 100%; height: 100%; }
.jz-use.is-warn .jz-use-img { box-shadow: 0 0 0 2px var(--jz-warn-line); }
.jz-use strong { font-size: 13px; font-weight: 600; }
.jz-use small { font-size: 12px; color: var(--jz-muted); font-variant-numeric: tabular-nums; }
.jz-use-warn { display: flex; align-items: flex-start; gap: 5px; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--jz-warn); max-width: 200px; }
.jz-use-warn .ico { width: 12px; height: 12px; margin-top: 2px; }
.jz-use-warn.is-error { color: var(--jz-error); }
