/* Streamster Datenbank – Optik wie im Entwurf (Canvas): ruhiges Grau, dunkle Seitenleiste, ein Blau für Aktionen,
   farbige Chips je Ebene. Baut auf assets/css/admin.css der Hauptseite auf und überschreibt nur, was anders aussieht. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.dbx {
  --ink: #14171C; --bg: #F6F7F9; --card: #fff; --line: #DDE1E7; --line-soft: #EEF0F3; --mist: #5B6472; --field: #C9CED6;
  --accent: #1D4ED8; --accent-dark: #1E3A8A; --ok: #166534; --r: 6px; --r-card: 8px;
  /* Chips je Ebene – unterscheiden sich auch in der Helligkeit, nicht nur im Farbton */
  --c-team-bg: #DBE7FF; --c-team: #1E3A8A;
  --c-verein-bg: #FFE8D1; --c-verein: #8A3B00;
  --c-org-bg: #EDE3FF; --c-org: #4C1D95;
  --c-sport-bg: #DDF3E4; --c-sport: #14532D;
  --c-grey-bg: #ECEDEF; --c-grey: #374151;
  --c-warn-bg: #FDE2E1; --c-warn: #9B1C1C;
  grid-template-columns: 240px minmax(0, 1fr);
  font-size: 14px; background: var(--bg); color: var(--ink);
}
.dbx, .dbx input, .dbx select, .dbx textarea, .dbx button, .dbx h1, .dbx h2, .dbx h3, .dbx legend, .dbx .area-title, .dbx .btn {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.dbx .form input, .dbx .form select, .dbx .form textarea, .dbx .tagpick-input { font-family: "Inter", system-ui, sans-serif; font-size: 14px; }
.dbx :focus-visible { outline: 3px solid #93B4FF; outline-offset: 2px; }
.dbx h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.dbx h1 small { font: 400 15px "Inter", sans-serif; color: var(--mist); margin-left: 4px; }
.dbx .area-title, .dbx legend { font-size: 16px; font-weight: 600; }
.dbx .hint, .dbx .muted, .dbx small { color: var(--mist); }

/* ---- Seitenleiste ---- */
.dbx .side { background: var(--ink); padding: 24px 16px; gap: 18px; }
.dbx .brand { padding: 4px 12px 8px; }
.dbx .brand span { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.dbx [hidden] { display: none !important; }
.dbx .side .dbx-sports { display: flex; justify-content: flex-start; flex-direction: column; gap: 1px; overflow-y: auto; min-height: 0; flex: 1; margin: 0 -4px; padding: 0 4px; }
.dbx .dbx-sports a { padding: 7px 12px; border-radius: var(--r); color: #A9AFB9; font-size: 13px; font-weight: 500; text-decoration: none; }
.dbx .dbx-sports a:first-child { color: #E8EAEE; font-weight: 600; margin-bottom: 4px; }
.dbx .dbx-sports a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dbx .dbx-sports a[aria-current] { background: #2A2F38; color: #fff; font-weight: 600; box-shadow: none; }
.dbx .dbx-sports a[hidden] { display: none; }
.dbx-sport-find { margin: 2px 0 6px; padding: 7px 10px; border-radius: var(--r); border: 1px solid #2A2F38; background: #1C2027; color: #fff; font-size: 13px; }
.dbx-sport-find::placeholder { color: #8A929E; }
.dbx .side-foot { color: #A9AFB9; font-size: 13px; }
.dbx .side-foot a, .dbx .side-foot .linkish { color: #E8EAEE; }

/* ---- Hauptbereich: Pfad, Überschrift mit Knöpfen, dann Reiter, dann Inhalt ---- */
.dbx-main { display: flex; flex-direction: column; padding: 32px clamp(16px, 3vw, 40px) 60px; }
.dbx-main > * { order: 3; }
.dbx-main > .dbx-crumb, .dbx-main > .crumbs { order: 0; margin: 0 0 4px; font-size: 13px; color: var(--mist); }
.dbx-main:has(> .crumbs) > .dbx-crumb { display: none; }
.dbx-main > .head { order: 1; margin-bottom: 16px; align-items: flex-end; }
.dbx-main > .dbx-tabs { order: 2; }
.dbx-main > a, .dbx-main > button { align-self: flex-start; }
.dbx .crumbs a { color: var(--accent); text-decoration: none; }
.dbx .crumbs a:hover { text-decoration: underline; }

.dbx .tabs { gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.dbx .tabs a { padding: 12px 14px; font-weight: 500; color: var(--mist); border-bottom: 2px solid transparent; }
.dbx .tabs a:hover { color: var(--ink); }
.dbx .tabs a[aria-current] { color: var(--ink); font-weight: 600; border-color: var(--accent); }

/* ---- Knöpfe und Felder ---- */
.dbx .btn { background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 0 16px; min-height: 40px; border-radius: var(--r); }
.dbx .btn:hover { background: var(--accent-dark); }
.dbx .btn-ghost { background: #fff; color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--field); }
.dbx .btn-ghost:hover { background: var(--bg); }
.dbx .btn-danger { background: #fff; color: var(--c-warn); box-shadow: inset 0 0 0 1px #F0B9B5; }
.dbx .btn-danger:hover { background: #FFF5F5; }
.dbx .import-box input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]), .dbx .import-box select, .dbx .import-box textarea,
.dbx .tagblock input:not([type="checkbox"]):not(.tagpick-input), .dbx .tagblock select, .dbx .grid-add input:not(.tagpick-input), .dbx .grid-add select,
.dbx .bulkbar input:not([type="checkbox"]):not(.tagpick-input),
.dbx .filters input, .dbx .filters select, .dbx .form input:not([type="checkbox"]):not([type="file"]):not([type="color"]), .dbx .form select, .dbx .form textarea,
.dbx .db-add input, .dbx .db-add select { border: 1px solid var(--field); border-radius: var(--r); min-height: 40px; font-size: 14px; }
.dbx .filters { align-items: center; gap: 12px; }
.dbx .linkish { color: var(--accent); }
.dbx .danger-link { color: var(--c-warn); }

.dbx .import-box textarea { min-height: 64px; padding: 8px 12px; }
.dbx .import-box input, .dbx .import-box select { padding: 0 12px; background: #fff; }
.dbx .import-box .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dbx .import-box label { font-weight: 500; }
.dbx .grid-add input:not(.tagpick-input), .dbx .tagblock input:not([type="checkbox"]):not(.tagpick-input) { min-height: 36px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--r); }

/* ---- Tabellen und Karten ---- */
.dbx .table { box-shadow: 0 0 0 1px var(--line); border-radius: var(--r-card); }
.dbx .table th { background: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--mist); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dbx .table td { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.dbx .table .title { color: var(--ink); font-weight: 600; }
.dbx .db-table tr:hover td { background: #FAFBFC; }
.dbx .db-table tr:has([data-row-check]:checked) td { background: #EEF3FF; }
.dbx .db-table tr.is-dup td { background: var(--c-warn-bg); }
.dbx .pill-dup { background: var(--c-warn); }
.dbx fieldset, .dbx .tagblock, .dbx .db-add, .dbx .merge-box, .dbx .report, .dbx .upload-box, .dbx .import-sum div, .dbx .empty, .dbx .notice {
  box-shadow: 0 0 0 1px var(--line); border-radius: var(--r-card); }
.dbx .db-add { border-left: 0; }
.dbx .report { border-left: 0; }
.dbx .notice { border-left: 0; padding: 12px 16px; }
.dbx .notice-success { background: #E7F6EC; color: var(--ok); box-shadow: none; }
.dbx .notice-error { background: var(--c-warn-bg); color: #7F1D1D; box-shadow: none; }
.dbx .notice-warn, .dbx .notice-info { background: #FFF4D6; color: #6B4A00; box-shadow: none; }
.dbx .pager a, .dbx .pager span { border-radius: var(--r); }
.dbx .pager span { background: var(--accent); }
.dbx .bulkbar { background: var(--ink); border-radius: var(--r-card); }
.dbx .bulkbar .btn:not(.btn-ghost):not(.btn-danger) { background: var(--accent); }
.dbx .import-steps li.is-on { background: var(--accent); }

/* ---- Chips (Tags) ---- */
.dbx .tag { padding: 3px 10px; font-size: 13px; font-weight: 500; background: var(--c-grey-bg); color: var(--c-grey); }
.dbx .tag a { font-weight: 500; }
.dbx .tag.tag-team { background: var(--c-team-bg); color: var(--c-team); }
.dbx .tag.tag-team a, .dbx .tag a { color: inherit; }
.dbx .tag-verein { background: var(--c-verein-bg); color: var(--c-verein); }
.dbx .tag-liga, .dbx .tag-bewerb, .dbx .tag-verband, .dbx .tag-sparte, .dbx .tag-medien, .dbx .tag-sonstige, .dbx .tag-org { background: var(--c-org-bg); color: var(--c-org); }
.dbx .tag-sport { background: var(--c-sport-bg); color: var(--c-sport); }
.dbx .tag small { color: inherit; opacity: .75; }
.dbx .tag.is-main { box-shadow: inset 0 0 0 1.5px currentColor; }
.dbx .tag.is-derived { background: transparent; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.dbx .tag.is-new { background: #FFF4D6; color: #6B4A00; }
.dbx .tag-x { color: inherit; opacity: .6; }
.dbx .tag-x:hover { opacity: 1; color: var(--c-warn); }
.dbx .tagpick { box-shadow: inset 0 0 0 1px var(--field); min-height: 40px; }
.dbx .ac-list li:hover, .dbx .ac-list li.is-on { background: #EEF3FF; }

/* ---- Zugehörigkeits-Tabelle: Team · Verein · Organisation · Sportart ---- */
.dbx .grid-wrap { background: #fff; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); padding: 8px 12px; }
.dbx .grid-table th { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.dbx .grid-table td { border-top: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 8px; }
.dbx .grid-table tr.grid-new td { border-top: 0; border-bottom: 0; }
.dbx .grid-table td .tag { padding: 4px 10px; font-weight: 600; }
.dbx .gc-team .tag { background: var(--c-team-bg); color: var(--c-team); }
.dbx .gc-verein .tag { background: var(--c-verein-bg); color: var(--c-verein); }
.dbx .gc-org .tag { background: var(--c-org-bg); color: var(--c-org); }
.dbx .gc-sport .tag { background: var(--c-sport-bg); color: var(--c-sport); }
.dbx .grid-table .tag a { color: inherit; }
.dbx .grid-table .tag.is-derived-soft { opacity: 1; font-weight: 500; filter: saturate(.55); }
.dbx .grid-plus { width: auto; min-width: 44px; max-width: none; height: 30px; padding: 0 12px; border: 1px dashed #A9AFB9; background: transparent; color: var(--mist); font-size: 18px; }
.dbx .grid-plus:hover { background: var(--bg); color: var(--ink); }
.dbx .grid-none { color: var(--mist); }

@media (max-width: 760px) {
  .dbx { grid-template-columns: 1fr; }
  .dbx .side { position: static; height: auto; }
  .dbx-sports { flex-direction: row; flex-wrap: wrap; max-height: 140px; }
  .dbx-main { padding: 20px 16px 48px; }
}
@media print { .dbx .side, .dbx-tabs, .dbx-crumb { display: none; } .dbx { display: block; } }

/* ---- 1.1: Seitenleiste mit Projekten und Sportarten ---- */
.dbx .dbx-sports a.dbx-nav-head { color: #E8EAEE; font-weight: 600; margin: 10px 0 2px; }
.dbx .dbx-sports a.dbx-nav-head:first-child { margin-top: 0; }
.dbx-nav-empty { padding: 4px 12px; font-size: 12px; color: #8A929E; }
.dbx .dbx-sport-find { width: 100%; }
.dbx-main > .notice { order: 0; }

/* ---- 1.1: große Liste ---- */
.dbx-scroll { overflow-x: auto; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); background: #fff; }
.dbx-scroll > .table { box-shadow: none; border-radius: 0; }
.dbx .dbx-grid td { white-space: nowrap; vertical-align: middle; }
.dbx .dbx-grid td.dc-org, .dbx .dbx-grid td.dc-misc { white-space: normal; }
.dbx .dbx-grid .tag { margin: 1px 2px 1px 0; text-decoration: none; }
.dbx .dbx-grid .tag:hover { filter: brightness(.96); }
.dbx .dbx-grid td.is-edit { cursor: text; }
.dbx .dbx-grid td.is-edit:hover { background: #F2F6FF; }
.dbx .dbx-grid td.is-saving { opacity: .5; }
.dbx .dbx-cell-input { width: 100%; min-width: 70px; padding: 4px 6px; border: 1px solid var(--accent); border-radius: 4px; font: inherit; }
.dbx .dbx-grid tr.is-empty-row td { color: var(--mist); }
.dbx .dbx-grid th.dc-add, .dbx .dbx-grid td.dc-add { width: 48px; padding: 6px; text-align: center; }
.dbx .dbx-grid th.dc-add .grid-plus { min-width: 32px; height: 28px; padding: 0 8px; }
.dbx .dc-misc { background: #FAFAFB; color: #8A929E; font-size: 12px; min-width: 180px; max-width: 360px; }
.dbx .table th.dc-misc { color: #8A929E; background: #FAFAFB; }
.dbx .dc-misc span { display: inline-block; margin: 0 10px 2px 0; }
.dbx .dc-misc b { font-weight: 500; }
.dbx th small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.dbx .dbx-row-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.dbx .dbx-row-fields input { flex: 1 1 130px; padding: 0 10px; }
.dbx .dbx-col-new { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dbx .dbx-col-new input { flex: 1 1 220px; padding: 0 10px; }
.dbx .filters .check { color: var(--mist); font-size: 13px; }

/* ---- 1.1: Spalten ---- */
.dbx-col-list { list-style: none; margin: 0 0 16px; padding: 0; max-width: 720px; background: #fff; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); }
.dbx-col-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.dbx-col-list li:last-child { border-bottom: 0; }
.dbx-col-list li input:not([type="checkbox"]), .dbx-col-list li select { min-height: 34px; padding: 0 8px; border: 1px solid var(--field); border-radius: var(--r); font: inherit; }
.dbx-col-list .check { display: flex; gap: 8px; align-items: center; margin: 0; }
.dbx-grip { cursor: grab; color: #A9AFB9; width: 14px; }
.dbx-move { margin-left: auto; display: flex; gap: 8px; }
.dbx-col-list li.is-fixed { background: #FAFAFB; }

/* ---- 1.1: Import ---- */
.dbx-map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 16px; }
.dbx-map-src, .dbx-map-dst { display: grid; gap: 8px; }
.dbx-chip { display: grid; gap: 4px; padding: 10px 12px; background: #fff; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); cursor: grab; }
.dbx-chip.is-mapped { box-shadow: 0 0 0 1.5px var(--accent); }
.dbx-chip small { color: var(--mist); }
.dbx-chip select { min-height: 32px; border: 1px solid var(--field); border-radius: var(--r); font: inherit; font-size: 13px; }
.dbx-drop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; border: 1.5px dashed var(--field); border-radius: var(--r-card); background: #fff; }
.dbx-drop > span { font-weight: 500; }
.dbx-drop.is-filled { border-style: solid; border-color: var(--accent); background: #F5F8FF; }
.dbx-drop.is-over { border-color: var(--accent); background: #EEF3FF; }
.dbx-drop.is-new { background: #FFFDF5; }
.dbx-drop.is-misc, .dbx-drop.is-skip { background: #FAFAFB; color: var(--mist); }
.dbx-drop-in { display: flex; flex-wrap: wrap; gap: 4px; }
.dbx .check-table tr.is-skipped td { opacity: .45; }
.dbx .check-table tr.is-dup td { background: var(--c-warn-bg); }
.dbx-ask { display: grid; gap: 10px; margin-bottom: 16px; }
.dbx-ask-row { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.dbx-wechsel { display: grid; gap: 2px; }
.dbx-wechsel select { min-height: 32px; border: 1px solid #E0A100; border-radius: var(--r); font: inherit; font-size: 13px; }
.dbx-commit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
@media (max-width: 900px) { .dbx-map-grid { grid-template-columns: 1fr; } }

.dbx .filters input[type="checkbox"] { min-width: 0; min-height: 0; flex: none; width: auto; padding: 0; }

/* ---- 1.3: Prüfansicht – Zellen korrigieren ---- */
.dbx .check-table td.is-edit { cursor: text; }
.dbx .check-table td.is-edit:hover { background: #F2F6FF; }
.dbx .check-table td.is-set { box-shadow: inset 0 -2px 0 var(--accent); }
.dbx .check-table td.is-saving { opacity: .5; }
.dbx .check-table .tag-x { font-size: 1.2rem; }
.dbx .dbx-col-new form { margin: 6px 0; }

/* ---- 1.4: Spalten direkt im Tabellenkopf ---- */
.dbx .dbx-grid th.dbx-colhead { cursor: grab; user-select: none; white-space: nowrap; }
.dbx .dbx-grid th.dbx-colhead:hover { background: #F6F8FB; }
.dbx .dbx-grid th.is-dragging { opacity: .4; }
.dbx .dbx-grid th.is-over-l { box-shadow: inset 3px 0 0 var(--accent); }
.dbx .dbx-grid th.is-over-r { box-shadow: inset -3px 0 0 var(--accent); }
.dbx-ctx { position: fixed; z-index: 60; min-width: 220px; margin: 0; padding: 4px 0; list-style: none; background: #fff; border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(20,23,28,.18), 0 0 0 1px var(--line); }
.dbx-ctx[hidden] { display: none; }
.dbx-ctx button { display: block; width: 100%; padding: 8px 14px; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.dbx-ctx button:hover, .dbx-ctx button:focus { background: #EEF3FF; outline: none; }
.dbx-ctx button.is-on::after { content: "  ✓"; color: var(--accent); }
.dbx-ctx .danger-link { color: var(--c-warn); }
.dbx .dbx-col-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dbx .dbx-col-new[hidden] { display: none; }
.dbx .dbx-col-new input, .dbx .dbx-col-new select { min-height: 38px; border: 1px solid var(--field); border-radius: var(--r); padding: 0 10px; font: inherit; }
.dbx .dbx-col-new input { flex: 1 1 240px; }
.dbx .dbx-restore { border: 0; cursor: pointer; font: inherit; font-size: 13px; }

/* ---- 1.4.1: Eingabezeile „Zeile hinzufügen“ ---- */
.dbx .dbx-grid tr.dbx-newrow td { background: #F5F8FF; padding: 6px 8px; }
.dbx .dbx-grid tr.dbx-newrow input { width: 100%; min-width: 90px; min-height: 34px; padding: 0 8px; border: 1px solid var(--field); border-radius: var(--r); font: inherit; background: #fff; }
.dbx .dbx-grid tr.dbx-newrow .btn { min-height: 34px; padding: 0 10px; }

/* ---- 2.0: nur Zeilen und Spalten ---- */
.dbx .dbx-grid td.is-edit { cursor: text; white-space: nowrap; }
.dbx .dbx-grid td.is-edit:hover { background: #F2F6FF; }
.dbx .dbx-grid .dbx-page { margin-left: 6px; color: var(--accent); text-decoration: none; font-size: 11px; vertical-align: 1px; }
.dbx .dbx-grid td.dc-none { background: #FBFBFC; }
.dbx .dbx-grid tr.dbx-colfilter th { padding: 4px 6px 8px; background: #fff; }
.dbx .dbx-grid tr.dbx-colfilter input { width: 100%; min-width: 70px; min-height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.dbx .dbx-grid tr.dbx-colfilter input:not(:placeholder-shown) { border-color: var(--accent); background: #F5F8FF; }
.dbx-ctx li.sep { height: 1px; margin: 4px 0; background: var(--line); }
.dbx-ctx button[disabled] { color: #A9AFB9; cursor: default; background: none; }
.dbx .check-table td.is-diff { background: #FFF6E5; font-weight: 600; }
.dbx .dbx-replace { margin: 0 0 12px; padding: 12px 16px; display: grid; gap: 8px; }
.dbx .dbx-replace select { min-height: 32px; border: 1px solid var(--field); border-radius: var(--r); font: inherit; }

/* ---- 2.1: Sonstiges → Spalte, Status der Projektseite ---- */
.dbx-misc-tool { margin: 0 0 12px; padding: 10px 14px; background: #fff; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); }
.dbx-misc-tool summary { cursor: pointer; font-weight: 600; }
.dbx-misc-tool select { min-height: 36px; border: 1px solid var(--field); border-radius: var(--r); font: inherit; margin-left: 6px; }
.dbx-misc-tool label { display: inline-flex; align-items: center; gap: 4px; }
.dbx-pagestate { align-self: center; font-size: 13px; color: var(--mist); }

/* ---- 2.3: Mini-Logo statt ◆ – Seite vorhanden; blass = nicht öffentlich; graues Kästchen = noch kein Logo ---- */
.dbx .dbx-grid .dbx-page { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -3px 7px -3px 0; vertical-align: middle;
  border-radius: 4px; background: #14171C; overflow: hidden; text-decoration: none; flex: none; }
.dbx .dbx-grid .dbx-page img { max-width: 18px; max-height: 18px; object-fit: contain; display: block; }
.dbx .dbx-grid .dbx-page.is-nologo { background: #fff; border: 1.5px dashed #A9AFB9; }
.dbx .dbx-grid .dbx-page.is-private { opacity: .4; }
.dbx .dbx-grid .dbx-page:hover { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }

/* ---- 2.5: Seite ersetzen / Seite wählen ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dbx-dialog { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: var(--r-card); padding: 0; box-shadow: 0 20px 60px rgba(20,23,28,.3); }
.dbx-dialog::backdrop { background: rgba(20,23,28,.45); }
.dbx-pd { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.dbx-pd h2 { margin: 0; font-size: 20px; }
.dbx-pd input[type=search] { min-height: 42px; border: 1px solid var(--field); border-radius: var(--r); padding: 0 12px; font: inherit; }
.dbx-pd-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.dbx-pd-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: inherit; text-align: left; cursor: pointer; }
.dbx-pd-list button:hover, .dbx-pd-list button.is-on { background: #EEF3FF; }
.dbx-pd-list button.is-on { box-shadow: inset 0 0 0 2px var(--accent); }
.dbx-pd-list img, .dbx-pd-ph { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; background: #14171C; flex: none; }
.dbx-pd-ph { background: #fff; border: 1.5px dashed #A9AFB9; box-sizing: border-box; }
.dbx-pd-list span { display: flex; flex-direction: column; }
.dbx-pd-list small { color: var(--mist); }
.dbx-pd-scope { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dbx-pd-scope[hidden] { display: none; }
.dbx-pd-scope legend { font-weight: 600; margin-bottom: 4px; }
.dbx-pd-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dbx-toast { position: absolute; z-index: 70; padding: 7px 12px; border-radius: 6px; background: #14171C; color: #fff; font-size: 13px; box-shadow: 0 6px 18px rgba(20,23,28,.25); }

/* Icon für die Kachel (2.8): Vorschau in den Seitenfarben, Galerie zum Auswählen */
.tile-icon-prev { width: 72px; height: 72px; padding: 10px; border-radius: 10px; background: #11151C; }
.tile-icon-prev svg, .tile-icon-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.icon-gallery summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; margin-top: 10px; padding: 2px; }
.icon-pick { display: grid !important; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 8px; background: #11151C; cursor: pointer; font-weight: 400 !important; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { width: 40px; height: 40px; display: block; }
.icon-pick span svg, .icon-pick span img { width: 100%; height: 100%; display: block; object-fit: contain; }
.icon-pick small { color: #C9D1DC !important; font-size: .72rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-pick:has(input:checked) { box-shadow: 0 0 0 2px var(--accent, #FF6E28); }
.icon-pick:has(input:focus-visible) { outline: 2px solid #0A66C2; outline-offset: 2px; }

/* Spalten: geschützt (von Studio-Werkzeugen verwendet) und ausgeblendet (2.10) */
.dbx-lock { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .7; }
.dbx-hiddenbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; font-size: .9rem; color: var(--mist, #6B7480); }
.dbx-hiddenbar .tag { cursor: pointer; }
.dbx-ctx button:disabled { opacity: .4; cursor: not-allowed; }
.dbx-ctx-note { max-width: 260px; padding: 6px 10px 8px; font-size: .8rem; line-height: 1.35; color: var(--mist, #6B7480); white-space: normal; }

/* Vorschläge in der neuen Zeile (liegen über der Tabelle, damit sie nicht abgeschnitten werden) */
.ac-list.dbx-sugg { position: fixed; right: auto; z-index: 1000; max-width: 420px; }
.ac-list.dbx-sugg li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-list.dbx-sugg li:hover, .ac-list.dbx-sugg li.is-on { background: #EEF3FF; }
